From: Neil Smith Date: Tue, 15 Jul 2014 07:35:14 +0000 (+0100) Subject: Dropped P2l and P3l from language_models X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=0039988869085619c9ac2748f935796ad84dc38f;p=cipher-training.git Dropped P2l and P3l from language_models --- 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.