lancopku / pkuseg-python

pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation
MIT License
6.55k stars 986 forks source link

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

Open weibinfighting opened 1 year ago

weibinfighting commented 1 year ago

使用

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'
lcyyyyyyyyyyy commented 1 year ago

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

Sinoftj commented 8 months ago

你为什么不解压?