summaryrefslogtreecommitdiff
path: root/vest/viterbi_envelope.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-17 18:45:16 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-17 18:45:16 +0000
commit2435d1443a7c846fab9d9f3d187af2e98fcae2e2 (patch)
treece48f645ddc6000bdb1a928c902fc8ab91a5a0be /vest/viterbi_envelope.cc
parent41e6416bcc72c069cd04a9fb09a897ae867d4a6d (diff)
fix bug when vest starts with an origin = 0
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@578 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/viterbi_envelope.cc')
-rw-r--r--vest/viterbi_envelope.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vest/viterbi_envelope.cc b/vest/viterbi_envelope.cc
index 5c24c018..9fcf75a0 100644
--- a/vest/viterbi_envelope.cc
+++ b/vest/viterbi_envelope.cc
@@ -153,6 +153,7 @@ void Segment::ConstructTranslation(vector<WordID>* trans) const {
}
size_t ant_size = ant_trans.size();
vector<const vector<WordID>*> pants(ant_size);
+ assert(ant_size == cur->edge->tail_nodes_.size());
--ant_size;
for (int i = 0; i < pants.size(); ++i) pants[ant_size - i] = &ant_trans[i];
cur->edge->rule_->ESubstitute(pants, trans);