Dropped P2l and P3l from language_models
authorNeil Smith <neil.git@njae.me.uk>
Tue, 15 Jul 2014 07:35:14 +0000 (08:35 +0100)
committerNeil Smith <neil.git@njae.me.uk>
Tue, 15 Jul 2014 07:35:14 +0000 (08:35 +0100)
language_models.py

index 8f4bd9c34eb9f5c148da4da9be0215bab9dd45b1..d8b9da8dc8e60e7301aa6fec5dbab328e86abcef 100644 (file)
@@ -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.