mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix dict.itervalues mistake
This commit is contained in:
parent
6a3f228c72
commit
626b415152
@ -92,7 +92,7 @@ def initialize(*args):
|
||||
if load_from_cache_fail:
|
||||
trie,FREQ,total = gen_trie(abs_path)
|
||||
FREQ = dict([(k,log(float(v)/total)) for k,v in FREQ.items()]) #normalize
|
||||
min_freq = min(FREQ.itervalues())
|
||||
min_freq = min(FREQ.values())
|
||||
logger.debug("dumping model to file cache %s" % cache_file)
|
||||
try:
|
||||
tmp_suffix = "."+str(random.random())
|
||||
|
Loading…
x
Reference in New Issue
Block a user