jawahar273 / practNLPTools-lite

Practical Natural Language Processing Tools for Humans is build on the top of Senna Natural Language Processing (NLP) predictions: part-of-speech (POS) tags, chunking (CHK), name entity recognition (NER), semantic role labeling (SRL) and syntactic parsing (PSG) with skip-gram all in Python and still more features will be added. The website give is for downlarding Senna tool
http://ronan.collobert.com/senna/
MIT License
22 stars 6 forks source link

Error #494

Open shihuanting opened 3 years ago

shihuanting commented 3 years ago

from pntl.tools import Annotator text = "Unlike the classic PPP technique, in our new approach, the ionospheric-free linear combination is not used." annotator = Annotator()

'srl'返回字典列表,标识句子中各种动词的语义角色。

result = [] result = annotator.get_annoations(text)['srl'] I reported an error after running this code OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: ''

jawahar273 commented 3 years ago

I have no idea that senna could run non-english🙈 text. This error could be raised from senna directly or from you system terminal

shihuanting commented 3 years ago

I have no idea that senna could run non-english🙈 text. This error could be raised from senna directly or from you system terminal I am running English text. Is senna only in win32, not win64?

jawahar273 commented 3 years ago

Senna don't have different between Windows32 or Windows 64. Check you terminal support UTF

shihuanting commented 3 years ago

annotator.get_annoations("He created the robot and broke it after making it")["srl"] Why is the output like this[{'A0': 'H e , c r e a t e d , t h e r o b o t a n d b r o k e i', 'V': 't', 'A1': 'a f t e r m a k i n g i t'}]

jawahar273 commented 3 years ago

I count not find the root😑. But you found the issue or like to get your hands dirty please free to PR❤️