summaryrefslogtreecommitdiff
path: root/decoder/ff_source_path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_source_path.cc')
-rw-r--r--decoder/ff_source_path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_source_path.cc b/decoder/ff_source_path.cc
index d5fa6bb3..56cbfc48 100644
--- a/decoder/ff_source_path.cc
+++ b/decoder/ff_source_path.cc
@@ -30,7 +30,7 @@ void SourcePathFeatures::TraversalFeaturesImpl(const SentenceMetadata& smeta,
for (unsigned i = 0; i < f.size(); ++i) {
int cur = f[i];
if (cur <= 0)
- cur = *reinterpret_cast<const WordID*>(ant_contexts[cur]);
+ cur = *reinterpret_cast<const WordID*>(ant_contexts[-cur]);
else
FireUnigramFeature(cur, features);
if (prev) FireBigramFeature(prev, cur, features);