aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

TypeError: norm() got an unexpected keyword argument 'axis' #107

Open ghost opened 7 years ago

ghost commented 7 years ago

I am a novice, want to use the polyglot, but there is an error,In centos7 python2.7 using Named Entity Extraction, appear: The approach used: from polyglot.text import Text blob = """Rascal Flatts""" # text = Text(blob) text.entities vectors = self.vectors.T / np.linalg.norm(self.vectors, ord, axis=1) TypeError: norm() got an unexpected keyword argument 'axis' -------------------- >> begin captured logging << -------------------- polyglot.detect.base: WARNING: Detector is not able to detect the language reliably. polyglot.mapping.expansion: INFO: We have 100004 original words. polyglot.mapping.expansion: INFO: Added 144991 new words. polyglot.mapping.expansion: INFO: The new total number of words is 244995 polyglot.mapping.expansion: DEBUG: Words added

I took a few hours and I don't know how to return a responsibility?Please help me, thank you