From b06634ce6ac1d3e0e18c788cd25d7f15ef70bbf3 Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 27 Jul 2010 05:00:07 +0000 Subject: set fsa features() properly git-svn-id: https://ws10smt.googlecode.com/svn/trunk@433 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_lm_fsa.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'decoder/ff_lm_fsa.h') diff --git a/decoder/ff_lm_fsa.h b/decoder/ff_lm_fsa.h index c2c0972e..c1d875eb 100755 --- a/decoder/ff_lm_fsa.h +++ b/decoder/ff_lm_fsa.h @@ -39,6 +39,7 @@ struct LanguageModelFsa : public FsaFeatureFunctionBase { //post: [left,e] are the seen left words return e; } + template void ScanPhraseAccum(SentenceMetadata const& /* smeta */,const Hypergraph::Edge&edge,WordID const* begin,WordID const* end,void const* old_st,void *new_st,Accum *a) const { if (begin==end) return; // otherwise w/ shortening it's possible to end up with no words at all. @@ -73,6 +74,7 @@ struct LanguageModelFsa : public FsaFeatureFunctionBase { FSALMDBGnl(edge); Add(p,a); } + template void ScanAccum(SentenceMetadata const& /* smeta */,const Hypergraph::Edge& /* edge */,WordID w,void const* old_st,void *new_st,Accum *a) const { if (!ctxlen_) { -- cgit v1.2.3