Created by: pkuyym
原始函数的频次阈值固定为50
TYPO_FREQ = 50 word_freq = filter(lambda x: x[1] > TYPO_FREQ, word_freq.items())
应该给用户预留接口,自主设定阈值
def build_dict(TYPO_FREQ=50):