From 36efbef92279e22888059ccd225aa7798fe9f4ae Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 28 Jul 2010 05:25:56 +0000 Subject: fsa lm phrase mystery remains, but bool fsa::simple_phrase_score indicates whether stateless features should copy phrases from rules (e.g. unigram lm) git-svn-id: https://ws10smt.googlecode.com/svn/trunk@444 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_lm.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'decoder/ff_lm.cc') diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 75778756..e8d3bbb0 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -4,6 +4,23 @@ /* backoff weight for truncating context */ // does that need to be used? i think so. + +// if defined, and EDGE_INFO is defined, then --show_derivation will give a nice summary of all the components of the LM score, if you pass debug as the first param to the LM +// (TODO) - because components are hidden within lm impl class, would have to pass edge in +#define LM_DEBUG 0 + +#define LM_DEBUG_DEBUG 0 +# define LMDBGif(i,e,x) do { if (i) { if (LM_DEBUG_CERR){std::cerr< +# define LMDBG(e,x) LMDBGif(debug(),e,x) +# define LMDBGnl(e) LMDBGif_nl(debug(),e,x) +#else +# define LMDBG(e,x) +# define LMDBGnl(e) +#endif + namespace { char const* usage_name="LanguageModel"; char const* usage_short="srilm.gz [-n FeatureName] [-o StateOrder] [-m LimitLoadOrder]"; -- cgit v1.2.3