From 113f2910ea62a7930914ad91d531afa28fdb6ff6 Mon Sep 17 00:00:00 2001 From: redpony Date: Fri, 22 Oct 2010 17:21:57 +0000 Subject: assert git-svn-id: https://ws10smt.googlecode.com/svn/trunk@687 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_wordalign.cc | 1 + 1 file changed, 1 insertion(+) 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& triggers = triggers_[smeta.GetSentenceID()]; for (int i = 0; i < triggers.size(); ++i) { FireFeature(triggers[i], src, trg, features); -- cgit v1.2.3