運行出現的問題:
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "pynlpir/__init__.py", line 99, in open
- raise RuntimeError("NLPIR function 'NLPIR_Init' failed.")
- RuntimeError: NLPIR function 'NLPIR_Init' failed.
檢查 pynlpir/Data/NLPIR.user文件內容,有
[...]pynlpir/pynlpir/Data/NLPIR.user Not valid license or your license expired! Please feel free to contact [email protected]!`
```
說明 pynlpir的library的授權過期了
解決方法
可到github上下載新的授權:https://github.com/NLPIR-team/NLPIR/tree/master/License,並將新的授權放到data文件夾下,並重啓項目,再次測試分詞程序,分詞成功。
我用到的是分詞的功能,提供分詞的license for a month 一個月的有效期,如果失效再去網上下載新的授權覆蓋源文件即可 NLPIR.user