Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Error #494

Open
shihuanting opened this issue Mar 26, 2021 · 5 comments
Open

Error #494

shihuanting opened this issue Mar 26, 2021 · 5 comments

Comments

@shihuanting
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@shihuanting
Copy link
Author

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants