From c946ad175601eda5a8cb3e6cd0e7c973d3656012 Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 21 Jul 2010 20:52:35 +0000 Subject: tdict TD:: ss se unk and reserved(i) git-svn-id: https://ws10smt.googlecode.com/svn/trunk@362 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_lm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/ff_lm.cc') diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 2f0277c8..15e3f20e 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -187,7 +187,7 @@ class LanguageModelImpl { kSTART = TD::Convert(""); kSTOP = TD::Convert(""); kUNKNOWN = TD::Convert(""); - kNONE = -1; + kNONE = TD::none; kSTAR = TD::Convert("<{STAR}>"); } @@ -289,7 +289,7 @@ class LanguageModelImpl { //TODO: use stateless_cost instead of ProbNoRemnant, check left words only. for items w/ fewer words than ctx len, how are they represented? kNONE padded? - //TODO: make sure that Vocab_None is set to kNONE in srilm (-1), or that SRILM otherwise interprets -1 as a terminator and not a word + //Vocab_None is (unsigned)-1 in srilm, same as kNONE. in srilm (-1), or that SRILM otherwise interprets -1 as a terminator and not a word double EstimateProb(const void* state) { if (unigram) return 0.; int len = StateSize(state); -- cgit v1.2.3