From faea049a3c2adc9cb373414e084976e032886dfb Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 26 Jul 2010 17:25:57 +0000 Subject: comment cleanup git-svn-id: https://ws10smt.googlecode.com/svn/trunk@421 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_lm.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoder/ff_lm.cc') diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 12f760bf..0f44f8d3 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -617,13 +617,12 @@ LanguageModelFsa::LanguageModelFsa(string const& param) { set_ngram_order(lmorder); } -//TODO: use sri equivalent states (expose in lm impl?) void LanguageModelFsa::Scan(SentenceMetadata const& /* smeta */,const Hypergraph::Edge& /* edge */,WordID w,void const* old_st,void *new_st,FeatureVector *features) const { //variable length array is in C99, msvc++, if it doesn't support it, #ifdef it or use a stackalloc call (forget the name) Featval p; if (ctxlen_) { WordID ctx[ngram_order_]; - state_cpy(ctx,old_st); + state_copy(ctx,old_st); ctx[ctxlen_]=TD::none; // make this part of state? wastes space but saves copies. p=pimpl_->WordProb(w,ctx); // states are sri contexts so are in reverse order (most recent word is first, then 1-back comes next, etc.). -- cgit v1.2.3