mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
523806d6db
commit
d6d2eac920
@ -222,4 +222,4 @@ def correct_apostrophe_trimming(freqs):
|
|||||||
freq = freqs[trim_word]
|
freq = freqs[trim_word]
|
||||||
freqs[trim_word] = freq * (1 - trim_prob)
|
freqs[trim_word] = freq * (1 - trim_prob)
|
||||||
freqs[trim_word + "'t"] = freq * trim_prob
|
freqs[trim_word + "'t"] = freq * trim_prob
|
||||||
return freqs
|
return freqs
|
||||||
|
Loading…
Reference in New Issue
Block a user