diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-07 14:00:28 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-07 14:00:28 +0000 |
commit | 43d74920424e83c397321db549290f167e15db46 (patch) | |
tree | acc3109168da5cdccd9fabf4aae5d3e1aa476c63 /decoder | |
parent | 0e2d2d42c03cd37a56edd4fc5970c21c17c6c1ec (diff) |
get
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@172 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/ff_lm.cc | 2 | ||||
-rw-r--r-- | decoder/hg.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 8333bf7b..03dc2054 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -322,8 +322,8 @@ class LanguageModelImpl { //TODO: make sure this is correct. int len = rule.ELength(); // use a gap for each variable buffer_.resize(len + 1); - buffer_[len] = kNONE; WordID * const rend=&buffer_[0]+len; + *rend=kNONE; WordID *r=rend; // append by *--r = x const vector<WordID>& e = rule.e(); //SRILM is reverse order null terminated diff --git a/decoder/hg.cc b/decoder/hg.cc index 2cff17af..b6b9d8bd 100644 --- a/decoder/hg.cc +++ b/decoder/hg.cc @@ -148,7 +148,7 @@ void Hypergraph::PruneEdges(const std::vector<bool>& prune_edge, bool run_inside // I dislike. If you know of a better way that doesn't involve specialization, // fix this! vector<Boolean> reachable; - bool goal_derivable = Inside/* <Boolean, EdgeExistsWeightFunction> */(*this, &reachable, wf).get(); + bool goal_derivable = Inside/* <Boolean, EdgeExistsWeightFunction> */(*this, &reachable, wf); if (!goal_derivable) { edges_.clear(); nodes_.clear(); |