Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weibinfighting opened this issue Aug 3, 2023 · 2 comments
Open

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

weibinfighting opened this issue Aug 3, 2023 · 2 comments

Comments

@weibinfighting
Copy link

使用

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
Copy link

lcyyyyyyyyyyy commented Aug 3, 2023 via email

@Sinoftj
Copy link

Sinoftj commented Mar 19, 2024

你为什么不解压?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants