Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-31 01:13:57 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-31 01:13:57 +0400
commit9c81696143df766281ecda174b3bf9b1b36841f3 (patch)
treec03158ee504ab89f03fb22e22b1a2e63a0f586b8 /moses/FeatureVector.cpp
parentf9d6528088a25c7014252455cd4f24a16da52ef1 (diff)
figure out which feature function to apply at which decode step. Book-keeping
Diffstat (limited to 'moses/FeatureVector.cpp')
-rw-r--r--moses/FeatureVector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp
index d56e00fe7..359c22154 100644
--- a/moses/FeatureVector.cpp
+++ b/moses/FeatureVector.cpp
@@ -807,8 +807,8 @@ void FVector::merge(const FVector &other)
{
// dense
for (size_t i = 0; i < m_coreFeatures.size(); ++i) {
- FValue thisVal = m_coreFeatures[i];
- FValue otherVal = other.m_coreFeatures[i];
+ FValue &thisVal = m_coreFeatures[i];
+ const FValue otherVal = other.m_coreFeatures[i];
if (otherVal) {
CHECK(thisVal == 0 || thisVal == otherVal);