mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
actually fix logic of apostrophe-fixing
This commit is contained in:
parent
c4c1af8213
commit
715361ca0d
@ -78,7 +78,9 @@ def read_freqs(filename, cutoff=0, lang=None):
|
|||||||
values[word] /= total
|
values[word] /= total
|
||||||
|
|
||||||
if lang == 'en':
|
if lang == 'en':
|
||||||
return correct_apostrophe_trimming(values)
|
values = correct_apostrophe_trimming(values)
|
||||||
|
|
||||||
|
return values
|
||||||
|
|
||||||
|
|
||||||
def freqs_to_cBpack(in_filename, out_filename, cutoff=-600, lang=None):
|
def freqs_to_cBpack(in_filename, out_filename, cutoff=-600, lang=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user