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
commit113f2910ea62a7930914ad91d531afa28fdb6ff6 (patch)
treec92457662cf793c2718b0aa63e8ebe635e1ad584 /decoder/ff_wordalign.cc
parented364db2699dec02f5bd18b9c15147e0a02efee1 (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);