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

预训练模型“default_v2”导入报错

Open weibinfighting opened this issue 2 years ago • 2 comments

使用

seg = pkuseg.pkuseg(model_name='pre_model/pkuseg/default_v2.zip',postag=True) 

导入下载的预训练模型“default_v2”时,导入失败,显示没有“unigram_word.txt”文件

  File "......\Python38\lib\site-packages\pkuseg\__init__.py", line 241, in __init__
    self.feature_extractor = FeatureExtractor.load()
  File "pkuseg/feature_extractor.pyx", line 625, in pkuseg.feature_extractor.FeatureExtractor.load
FileNotFoundError: [Errno 2] No such file or directory: 'pre_model/pkuseg/default_v2.zip\\unigram_word.txt'

weibinfighting avatar Aug 03 '23 02:08 weibinfighting

@.***,本次回复为系统自动回复!

lcyyyyyyyyyyy avatar Aug 03 '23 02:08 lcyyyyyyyyyyy

你为什么不解压?

Sinoftj avatar Mar 19 '24 15:03 Sinoftj