summaryrefslogtreecommitdiff
path: root/vest/viterbi_envelope.cc
diff options
context:
space:
mode:
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);