Skip to content

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

Description

@weibinfighting

使用

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions