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

imikolov数据集里面build_dict函数 #1983

Closed
pkuyym opened this issue May 3, 2017 · 0 comments · Fixed by #1984
Closed

imikolov数据集里面build_dict函数 #1983

pkuyym opened this issue May 3, 2017 · 0 comments · Fixed by #1984

Comments

@pkuyym
Copy link
Contributor

pkuyym commented May 3, 2017

原始函数的频次阈值固定为50

TYPO_FREQ = 50
word_freq = filter(lambda x: x[1] > TYPO_FREQ, word_freq.items())

应该给用户预留接口,自主设定阈值

def build_dict(TYPO_FREQ=50):

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

Successfully merging a pull request may close this issue.

1 participant