pkuseg-python icon indicating copy to clipboard operation
pkuseg-python copied to clipboard

词性标注模型加载报错

Open Yang-X-Y opened this issue 6 years ago • 2 comments

seg = pkuseg.pkuseg(postag=True) # 开启词性标注功能 WARNING: features.pkl does not exist, try loading features.json WARNING: features.json does not exist, try loading using old format Traceback (most recent call last): File "", line 1, in File "/home/11103333/data/config/anaconda3/lib/python3.7/site-packages/pkuseg/init.py", line 234, in init self.tagger = Postag(postag_dir) File "/home/11103333/data/config/anaconda3/lib/python3.7/site-packages/pkuseg/postag/init.py", line 16, in init self.feature_extractor = FeatureExtractor.load(modelDir) File "pkuseg/postag/feature_extractor.pyx", line 318, in pkuseg.postag.feature_extractor.FeatureExtractor.load FileNotFoundError: [Errno 2] No such file or directory: '/home/11103333/.pkuseg/postag/featureIndex.txt_0'

Yang-X-Y avatar Oct 14 '19 13:10 Yang-X-Y

unzip the download file

liujshi avatar Oct 23 '19 03:10 liujshi

unzip the download file

请问是解压哪个文件

hweidream avatar Sep 22 '20 01:09 hweidream