diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-24 21:18:01 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-24 21:18:01 +0000 |
commit | 2cb224de7db49b761ac06b031090fe7f846744fe (patch) | |
tree | dc1d4e949081ea0e0868773bd7a31b96faa77487 /decoder/hg.cc | |
parent | 1fbdaa4d49acf90d2124aef8810d723ddbb0dad5 (diff) |
FSA: simpler Scan1 ScanT1 methods, otherewise also expose edge to full Scan
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@399 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg.cc')
-rw-r--r-- | decoder/hg.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/hg.cc b/decoder/hg.cc index 5a33fc97..e7a86c5b 100644 --- a/decoder/hg.cc +++ b/decoder/hg.cc @@ -100,7 +100,7 @@ prob_t Hypergraph::ComputeEdgePosteriors(double scale, vector<prob_t>* posts) co ScaledTransitionEventWeightFunction>(*this, &pv, weight, w2); posts->resize(edges_.size()); for (int i = 0; i < edges_.size(); ++i) - (*posts)[i] = prob_t(pv.value(i)); + (*posts)[i] = prob_t(pv.get(i)); return prob_t(inside); } @@ -113,7 +113,7 @@ prob_t Hypergraph::ComputeBestPathThroughEdges(vector<prob_t>* post) const { ViterbiTransitionEventWeightFunction>(*this, &pv); post->resize(edges_.size()); for (int i = 0; i < edges_.size(); ++i) - (*post)[i] = pv.value(i).v_; + (*post)[i] = pv.get(i).v_; return viterbi_weight.v_; } |