diff --git a/Source/Data/bin/cook.py b/Source/Data/bin/cook.py index d0d9b427..aa7fd2d3 100755 --- a/Source/Data/bin/cook.py +++ b/Source/Data/bin/cook.py @@ -143,7 +143,7 @@ sys.exit('[ERROR] %s key mismatches.' % mykey) phrases[mykey] = myvalue - for (mykey, myvalue) in phrases.items(): + for mykey, myvalue in phrases.items(): readings = bpmf_phrases.get(mykey) if readings: @@ -191,11 +191,6 @@ # 很罕用的注音建議不要列入 heterophony?.list,這樣的話 # 就可以直接進來這個 condition handle.close() - for k in bpmf_chars: - if k not in phrases: - for v in bpmf_chars[k]: - output.append((k, v, UNK_LOG_FREQ)) - pass with open(sys.argv[4]) as punctuations_file: for line in punctuations_file: