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
path: root/moses/FF
diff options
context:
space:
mode:
authorMosesAdmin <moses-support-owner@mit.edu>2015-10-16 22:17:00 +0300
committerMosesAdmin <moses-support-owner@mit.edu>2015-10-16 22:17:00 +0300
commitecbe68e6f87814134859d64e826bac9c56a4a15e (patch)
treea2d6cf31d50d9162352e2f691a67a87aff6e90af /moses/FF
parent92091012924bb29e0fd4e44dbc9e52aa15814d08 (diff)
daily automatic beautifier
Diffstat (limited to 'moses/FF')
-rw-r--r--moses/FF/TargetNgramFeature.cpp4
-rw-r--r--moses/FF/WordTranslationFeature.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/moses/FF/TargetNgramFeature.cpp b/moses/FF/TargetNgramFeature.cpp
index 5730293e6..c1863bf67 100644
--- a/moses/FF/TargetNgramFeature.cpp
+++ b/moses/FF/TargetNgramFeature.cpp
@@ -281,7 +281,7 @@ FFState* TargetNgramFeature::EvaluateWhenApplied(const ChartHypothesis& cur_hypo
suffixTerminals++;
// everything else
else {
- util::StringStream ngram;
+ util::StringStream ngram;
ngram << m_baseName;
if (m_factorType == 0)
ngram << factorZero;
@@ -418,7 +418,7 @@ FFState* TargetNgramFeature::EvaluateWhenApplied(const ChartHypothesis& cur_hypo
// remove duplicates
size_t size = contextFactor.size();
if (makePrefix && makeSuffix && (size <= m_n)) {
- util::StringStream curr_ngram;
+ util::StringStream curr_ngram;
curr_ngram << m_baseName;
for (size_t i = 0; i < size; ++i) {
curr_ngram << (*contextFactor[i]).GetString(m_factorType);
diff --git a/moses/FF/WordTranslationFeature.cpp b/moses/FF/WordTranslationFeature.cpp
index 6b2302c1c..88d0ef3a4 100644
--- a/moses/FF/WordTranslationFeature.cpp
+++ b/moses/FF/WordTranslationFeature.cpp
@@ -209,7 +209,7 @@ void WordTranslationFeature::EvaluateWithSourceContext(const InputType &input
// use topic probabilities
const vector<string> &topicid_prob = *(input.GetTopicIdAndProb());
if (atol(topicid_prob[0].c_str()) == -1) {
- util::StringStream feature;
+ util::StringStream feature;
feature << m_description << "_unk_";
feature << sourceWord;
feature << "~";
@@ -248,7 +248,7 @@ void WordTranslationFeature::EvaluateWithSourceContext(const InputType &input
size_t globalSourceIndex = inputPath.GetWordsRange().GetStartPos() + sourceIndex;
if (!m_domainTrigger && globalSourceIndex == 0) {
// add <s> trigger feature for source
- util::StringStream feature;
+ util::StringStream feature;
feature << m_description << "_";
feature << "<s>,";
feature << sourceWord;
@@ -278,7 +278,7 @@ void WordTranslationFeature::EvaluateWithSourceContext(const InputType &input
if (m_domainTrigger) {
if (sourceTriggerExists) {
- util::StringStream feature;
+ util::StringStream feature;
feature << m_description << "_";
feature << sourceTrigger;
feature << "_";