summaryrefslogtreecommitdiff
path: root/decoder/ff_wordalign.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-10-22 17:21:57 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-10-22 17:21:57 +0000
commite080ea6566fe60ec235e74f8e577e27e4da2b1a4 (patch)
tree0bb6bf630597a4669eefdfd29906814947a93944 /decoder/ff_wordalign.cc
parentc94d18f3c6f71dfc1c23405c61341fe042277c3d (diff)
assert
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@687 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_wordalign.cc')
-rw-r--r--decoder/ff_wordalign.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ff_wordalign.cc b/decoder/ff_wordalign.cc
index f8b8060c..f2f07033 100644
--- a/decoder/ff_wordalign.cc
+++ b/decoder/ff_wordalign.cc
@@ -454,6 +454,7 @@ void LexicalTranslationTrigger::TraversalFeaturesImpl(const SentenceMetadata& sm
assert(edge.rule_->FWords() == 1);
WordID trg = edge.rule_->e()[0];
WordID src = edge.rule_->f()[0];
+ assert(triggers_.size() > smeta.GetSentenceID());
const vector<WordID>& triggers = triggers_[smeta.GetSentenceID()];
for (int i = 0; i < triggers.size(); ++i) {
FireFeature(triggers[i], src, trg, features);