diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-28 05:25:56 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-28 05:25:56 +0000 |
commit | b2cbd45b1f8b1d2194624d43ffee12bf53d56a4d (patch) | |
tree | fc8c1912616a9340686f87077b253b6b6f386ef9 /decoder/ff_lm.cc | |
parent | fd09366d32dff751f8611bbb8d52627886b84150 (diff) |
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
Diffstat (limited to 'decoder/ff_lm.cc')
-rw-r--r-- | decoder/ff_lm.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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<<x;} INFO_EDGE(e,x); if (LM_DEBUG_DEBUG){std::cerr<<"LMDBGif edge.info "<<&e<<" = "<<e.info()<<std::endl;}} } while(0) +# define LMDBGif_nl(i,e) do { if (i) { if (LM_DEBUG_CERR) std::cerr<<std::endl; INFO_EDGE(e,"; "); } } while(0) +#if LM_DEBUG +# include <iostream> +# 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]"; |