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
diff options
context:
space:
mode:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-10 18:46:41 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-10 18:46:41 +0400
commitbed22776edd38a0d6d512f105e46e71608d4a0b7 (patch)
tree54aeae6b256059defa7fc8cb323526d27f54fb4f /moses
parent94191dadf022c13c1eefee96ab4e33e5db7d4590 (diff)
adjust calls to InitializeForInput
Diffstat (limited to 'moses')
-rw-r--r--moses/src/TranslationSystem.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/moses/src/TranslationSystem.cpp b/moses/src/TranslationSystem.cpp
index f5dc13b8d..26393fea8 100644
--- a/moses/src/TranslationSystem.cpp
+++ b/moses/src/TranslationSystem.cpp
@@ -119,15 +119,15 @@ namespace Moses {
for(size_t i=0;i<m_globalLexicalModels.size();++i) {
m_globalLexicalModels[i]->InitializeForInput((Sentence const&)source);
}
- for(size_t i=0;i<m_statefulFFs.size();++i) {
- if (m_statefulFFs[i]->GetScoreProducerWeightShortName() == "glm")
- ((GlobalLexicalModelUnlimited*)m_statefulFFs[i])->InitializeForInput((Sentence const&)source);
- else if (m_statefulFFs[i]->GetScoreProducerWeightShortName() == "wt")
- ((WordTranslationFeature*)m_statefulFFs[i])->InitializeForInput((Sentence const&)source);
- }
+ //for(size_t i=0;i<m_statefulFFs.size();++i) {
+ //}
for(size_t i=0;i<m_statelessFFs.size();++i) {
if (m_statelessFFs[i]->GetScoreProducerWeightShortName() == "pp")
- ((PhrasePairFeature*)m_statelessFFs[i])->InitializeForInput((Sentence const&)source);
+ ((PhrasePairFeature*)m_statelessFFs[i])->InitializeForInput((Sentence const&)source);
+ else if (m_statelessFFs[i]->GetScoreProducerWeightShortName() == "glm")
+ ((GlobalLexicalModelUnlimited*)m_statelessFFs[i])->InitializeForInput((Sentence const&)source);
+ else if (m_statelessFFs[i]->GetScoreProducerWeightShortName() == "wt")
+ ((WordTranslationFeature*)m_statelessFFs[i])->InitializeForInput((Sentence const&)source);
}
LMList::const_iterator iterLM;