mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
parent
d6d2eac920
commit
64b0b76ee1
@ -78,7 +78,9 @@ def read_freqs(filename, cutoff=0, lang=None):
|
||||
values[word] /= total
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user