pynlpir.LicenseError: Your license appears to have expired. Try running "pynlpir update".
2017-05-24 18:48
609 查看
本篇讲的是Python环境,但是其他环境原理相同
但是如果你使用的java环境,或许 JAVA环境 解决NLPIR的License过期问题 可以更好地帮助你
执行代码
后,出现
这说明你的NLPIR授权过期了,这个时候需要到github的license地址下载新的NLPIR.user
然后覆盖DATA文件夹中的原文件(NLPIR.user)即可
比如我是在anconda环境下使用pip install pynlpir安装的pynlpir,
所以要到覆盖到D:\Anaconda2\Lib\site-packages\pynlpir\Data中
如果你只使用了pip但是又不知道该类库的位置,那么你可以在cmd中输入pip install nplir
这是系统会显示已经安装好的的nplir的位置
如果你是自己使用swig调用的nplir的类库,那么你只需要直接覆盖你的项目中的原文件即可
但是如果你使用的java环境,或许 JAVA环境 解决NLPIR的License过期问题 可以更好地帮助你
执行代码
import pynlpir pynlpir.open() str = '欢迎科研人员、技术工程师、企事业单位与个人参与NLPIR平台的建设工作。' print(pynlpir.segment(str))
后,出现
pynlpir.LicenseError: Your license appears to have expired. Try running "pynlpir update". # 或者NLPIR Not valid license or your license expired!
这说明你的NLPIR授权过期了,这个时候需要到github的license地址下载新的NLPIR.user
然后覆盖DATA文件夹中的原文件(NLPIR.user)即可
比如我是在anconda环境下使用pip install pynlpir安装的pynlpir,
所以要到覆盖到D:\Anaconda2\Lib\site-packages\pynlpir\Data中
如果你只使用了pip但是又不知道该类库的位置,那么你可以在cmd中输入pip install nplir
这是系统会显示已经安装好的的nplir的位置
如果你是自己使用swig调用的nplir的类库,那么你只需要直接覆盖你的项目中的原文件即可
相关文章推荐
- NLPIR.user Not valid license or your license expired! Please feel free to contact pipy_zhang@msn.com
- android “Debug certificate expired”&&""Your project contains error(s), please fix it before running
- 解决报错"Your security system have blocked an application with expired or not yet valid certificate from running"
- NLPIR.user Not valid license or your license expired! Please feel free to contact pipy_zhang@msn.com
- How to resolve "your security settings have blocked an untrusted application from running
- 利用Mysql进行update时,出现You have an error in your SQL syntax check the manual that corresponds to your My
- "Out of Memory" error message appears when you have a large number of programs running
- How to resolve "your security settings have blocked an untrusted application from running" in Mac
- How to resolve "your security settings have blocked an untrusted application from running" in Mac
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- An unexpected error has occurred" error appears when you try to create a SharePoint Enterprise Search Center on a Site Collection
- ERROR: "This virtual machine appears to be in use"
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- ERROR: "This virtual machine appears to be in use"
- [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- "Unexpected Error 0x8ffe2740 Occurred" Error Message When You Try to Start a Web Site
- Error message when you try to save a table in SQL Server 2008: "Saving changes is not permitted"