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

src/isSimilar.py有Error #4

Open
307509256 opened this issue Apr 7, 2017 · 1 comment
Open

src/isSimilar.py有Error #4

307509256 opened this issue Apr 7, 2017 · 1 comment

Comments

@307509256
Copy link

你是python 3.X的版本吗? 我的是python 2.7

python src/isSimilar.py data/1.ori data/key.ori data/stopwords.txt data/word.dict -c 0.8
会有Error:
src/features.py", line 20, in compute
feature[self.word_dict[token]] += 1
KeyError: u'\u62a5\u8003'

@zyymax
Copy link
Owner

zyymax commented Oct 18, 2017

你的.ori文件里有字典中不存在的token,重新生成下字典就行

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

2 participants