From 0039988869085619c9ac2748f935796ad84dc38f Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Tue, 15 Jul 2014 08:35:14 +0100 Subject: [PATCH] Dropped P2l and P3l from language_models --- language_models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/language_models.py b/language_models.py index 8f4bd9c..d8b9da8 100644 --- a/language_models.py +++ b/language_models.py @@ -90,8 +90,6 @@ def log_probability_of_unknown_word(key, N): Pw = Pdist(datafile('count_1w.txt'), log_probability_of_unknown_word) Pw_wrong = Pdist(datafile('count_1w.txt'), lambda _k, N: log10(1/N)) Pl = Pdist(datafile('count_1l.txt'), lambda _k, _N: 0) -P2l = Pdist(datafile('count_2l.txt'), lambda _k, _N: 0) -P3l = Pdist(datafile('count_3l.txt'), lambda _k, _N: 0) def Pwords(words): """The Naive Bayes log probability of a sequence of words. -- 2.34.1