diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-10-22 17:21:57 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-10-22 17:21:57 +0000 |
commit | e080ea6566fe60ec235e74f8e577e27e4da2b1a4 (patch) | |
tree | 0bb6bf630597a4669eefdfd29906814947a93944 /decoder | |
parent | c94d18f3c6f71dfc1c23405c61341fe042277c3d (diff) |
assert
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@687 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/ff_wordalign.cc | 1 |
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); |