ner community detection script add modularity