From 64b0b76ee1da649c4465226e4f155a6729697520 Mon Sep 17 00:00:00 2001 From: Robyn Speer Date: Tue, 8 Sep 2015 13:50:34 -0400 Subject: [PATCH] actually fix logic of apostrophe-fixing Former-commit-id: 715361ca0d68f390063b2d26f0609d454e2836e4 --- wordfreq_builder/wordfreq_builder/word_counts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):