Traceback (most recent call last):


 "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable

Traceback (most recent call last):


 "AIExpFrameWork.py", line 182, in <module>

main()


 "AIExpFrameWork.py", line 156, in main

mp.readfile().clean().detectLanguage().anonymize().enhance().page_rank().encode().cluster().postprocess().nameIntents()


 "/home/tiru/Desktop/cluster_pipline/make_pipeline.py", line 84, in clean

self.raw_data['cleaned'] = self.raw_data['text'].apply(pipeline_utils.clean_simple_csv)


 "/usr/local/lib/python3.5/dist-packages/pandas/core/series.py", line 3194, in apply

mapped = lib.map_infer(values, f, convert=convert_dtype)


 "pandas/_libs/src/inference.pyx", line 1472, in pandas._libs.lib.map_infer


 "/home/tiru/Desktop/cluster_pipline/utils.py", line 28, in clean_simple_csv

line = date_identification.main(matcher,text)


 "/home/tiru/Desktop/cluster_pipline/date_identification.py", line 168, in main

doc = nlp(text)


 "/usr/local/lib/python3.5/dist-packages/spacy/language.py", line 346, in __call__

doc = self.make_doc(text)


 "/usr/local/lib/python3.5/dist-packages/spacy/language.py", line 378, in make_doc

return self.tokenizer(text)


 "tokenizer.pyx", line 116, in spacy.tokenizer.Tokenizer.__call__


 "tokenizer.pyx", line 157, in spacy.tokenizer.Tokenizer._tokenize


 "tokenizer.pyx", line 236, in spacy.tokenizer.Tokenizer._attach_tokens


 "vocab.pyx", line 130, in spacy.vocab.Vocab.get


 "vocab.pyx", line 166, in spacy.vocab.Vocab._new_lexeme
TypeError: an integer is required
