fix logic of apostrophe-fixing

This commit is contained in:
Rob Speer 2015-09-08 13:47:58 -04:00
parent 912171f8e7
commit c4c1af8213

View File

@ -222,4 +222,4 @@ def correct_apostrophe_trimming(freqs):
freq = freqs[trim_word]
freqs[trim_word] = freq * (1 - trim_prob)
freqs[trim_word + "'t"] = freq * trim_prob
return freqs
return freqs