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

model/bigram_word.txt 不存在 #1

Closed
aenon opened this Issue Oct 25, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@aenon

aenon commented Oct 25, 2018

试图运行 Python 版

python3 main.py test a.txt out.txt

报错:

Traceback (most recent call last):
  File "main.py", line 316, in <module>
    run()
  File "main.py", line 17, in run
    testFeature = Feature(config.readFile, 'test')
  File "/Users/xilins/Personal/PKUSeg-python/feature.py", line 11, in __init__
    self.test_init()
  File "/Users/xilins/Personal/PKUSeg-python/feature.py", line 26, in test_init
    self.readBigramFeature(config.modelDir+'/bigram_word.txt')
  File "/Users/xilins/Personal/PKUSeg-python/feature.py", line 54, in readBigramFeature
    with open(file, 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'model/bigram_word.txt'
@luoruixuan

This comment has been minimized.

Collaborator

luoruixuan commented Oct 29, 2018

你需要在自己的数据集上进行训练或者下载我们提供的预训练模型并放到model目录下。下载链接见README.md。

@aenon aenon closed this Oct 29, 2018

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