Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

授权问题 #103

Open
linshizhen opened this issue Jan 21, 2018 · 3 comments
Open

授权问题 #103

linshizhen opened this issue Jan 21, 2018 · 3 comments

Comments

@linshizhen
Copy link

hello,第一次运行是说要pynlpir update 然后我下载了最新的nlpir.user 更新的data文件下的文件,再次运行时有报错RuntimeError: NLPIR function 'NLPIR_Init' failed. 我百度说还是授权问题????

@linshizhen linshizhen changed the title 授权问你 授权问题 Jan 21, 2018
@tsroten
Copy link
Owner

tsroten commented Jan 21, 2018

@linshizhen , 你不需要下载最新的nlpir.user 更新:

$ pip install pynlpir
$ pynlpir update
$ python3
>>> import pynlpir
>>> pynlpir.open()
>>> pynlpir.segment('这是一个句子', pos_english=False)
[('这', '代词'), ('是', '动词'), ('一个', '数词'), ('句子', '名词')]

@linshizhen
Copy link
Author

2
1
3

这个在Python2.7也是可以用的吧?

@tsroten
Copy link
Owner

tsroten commented Jan 22, 2018

那不是一个 Python2.7的问题。 可以用Python2.7. 你的问题就是不可以接入D:\anaconda2\lib\site-packages\pynlpir\Data\NLPIR.user。检查你的文件权限。

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

No branches or pull requests

2 participants