diff options
| -rw-r--r-- | decoder/ff.h | 1 | ||||
| -rw-r--r-- | decoder/ff_lm.cc | 1 | 
2 files changed, 2 insertions, 0 deletions
| diff --git a/decoder/ff.h b/decoder/ff.h index a0b39c26..9ff67dd8 100644 --- a/decoder/ff.h +++ b/decoder/ff.h @@ -184,6 +184,7 @@ class ModelSet {                           std::string* residual_context,                           prob_t* combination_cost_estimate = NULL) const; +  //this is called INSTEAD of above when result of edge is goal (must be a unary rule - i.e. one variable, but typically it's assumed that there are no target terminals either (e.g. for LM))    void AddFinalFeatures(const std::string& residual_context,                          Hypergraph::Edge* edge,                          SentenceMetadata const& smeta) const; diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 28312b4f..6579fbee 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -303,6 +303,7 @@ class LanguageModelImpl {      return ProbNoRemnant(len - 1, len);    } +  //FIXME: this assumes no target words on final unary -> goal rule.  is that ok?    // for <s> (n-1 left words) and (n-1 right words) </s>    double FinalTraversalCost(const void* state) {      if (unigram) return 0.; | 
