From c4c1af821329e56e7e5000e07677983c19ec118f Mon Sep 17 00:00:00 2001 From: Rob Speer Date: Tue, 8 Sep 2015 13:47:58 -0400 Subject: [PATCH] fix logic of apostrophe-fixing --- wordfreq_builder/wordfreq_builder/word_counts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordfreq_builder/wordfreq_builder/word_counts.py b/wordfreq_builder/wordfreq_builder/word_counts.py index 4bc0deb..f4fc4ca 100644 --- a/wordfreq_builder/wordfreq_builder/word_counts.py +++ b/wordfreq_builder/wordfreq_builder/word_counts.py @@ -222,4 +222,4 @@ def correct_apostrophe_trimming(freqs): freq = freqs[trim_word] freqs[trim_word] = freq * (1 - trim_prob) freqs[trim_word + "'t"] = freq * trim_prob - return freqs + return freqs