diff --git a/wordfreq_builder/wordfreq_builder/word_counts.py b/wordfreq_builder/wordfreq_builder/word_counts.py index f4fc4ca..93c65aa 100644 --- a/wordfreq_builder/wordfreq_builder/word_counts.py +++ b/wordfreq_builder/wordfreq_builder/word_counts.py @@ -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):