程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python | pynlpir library | pynlpir LicenseError:Your license appears to have expired. Try running “pynlpir“

編輯:Python

Use pynlpir Make mistakes in Chinese word segmentation and keyword extraction :

pynlpir.LicenseError:Your license appears to have expired. Try running “pynlpir update”. perhaps NLPIR Not valid license or your license expired! This means that the authorization has expired , Reauthorization required . The solution is as follows :

Any of the above exceptions or errors are pynlpir The user rights file of the package has expired . stay https://github.com/NLPIR-team/NLPIR/ Upload and download NLPIR.user file , Replace with this file pynlpir Bag data The original in the folder NLPIR.user file .

Direct the new NLPIR.user Download the file to data There may be insufficient permissions under the folder , You can download to another path first , And then move from another path to data Under the folder , During the process, you will be asked whether to grant administrator permission , Agree . Restart after modification jupyter notebook.

Fuck its official GitHub Download the new license from the ( Download the whole project , open License Folder is ok )

Download and click License Folder , Select the authorization folder for one month , As shown below :

Copy the file (NLPIR.urer) file , Replace to install pynlp Modular Data Existing files in the folder .

You can use it directly Everything Search for pynlpir The path of , The replacement path is as follows :

explain : Usually by pip Installation of the package , It's all in Lib The folder site-packages In the folder .

Authorization for other functions is required , Same operation : Download the corresponding authorization file 、 Replace local Data The original file under the folder 、 Restart project .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved