mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
fix logic of apostrophe-fixing
This commit is contained in:
parent
912171f8e7
commit
c4c1af8213
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user