diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-15 21:43:41 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-15 21:43:41 +0400 |
commit | 3f8972d67b4fb566a3ad644c61dc9745e6a14d74 (patch) | |
tree | 16bc8af2b87b3bae21fed5b2e33580305ff1f4a7 /moses/Manager.cpp | |
parent | c9d09a716872231b80e38db6bd6668d4e54bb991 (diff) |
move collection of generation-table from Staticdata to GenerationDictionary
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r-- | moses/Manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp index 697eef347..fbf721ffa 100644 --- a/moses/Manager.cpp +++ b/moses/Manager.cpp @@ -691,7 +691,7 @@ void Manager::OutputFeatureWeightsForSLF(std::ostream &outputSearchGraphStream) for( size_t i=0; i<pds.size(); i++ ) { featureIndex = OutputFeatureWeightsForSLF(featureIndex, pds[i], outputSearchGraphStream); } - const vector<const GenerationDictionary*>& gds = staticData.GetGenerationDictionaries(); + const vector<GenerationDictionary*>& gds = GenerationDictionary::GetColl(); for( size_t i=0; i<gds.size(); i++ ) { featureIndex = OutputFeatureWeightsForSLF(featureIndex, gds[i], outputSearchGraphStream); } @@ -730,7 +730,7 @@ void Manager::OutputFeatureValuesForSLF(const Hypothesis* hypo, bool zeros, std: for( size_t i=0; i<pds.size(); i++ ) { featureIndex = OutputFeatureValuesForSLF(featureIndex, zeros, hypo, pds[i], outputSearchGraphStream); } - const vector<const GenerationDictionary*>& gds = staticData.GetGenerationDictionaries(); + const vector<GenerationDictionary*>& gds = GenerationDictionary::GetColl(); for( size_t i=0; i<gds.size(); i++ ) { featureIndex = OutputFeatureValuesForSLF(featureIndex, zeros, hypo, gds[i], outputSearchGraphStream); } @@ -764,7 +764,7 @@ void Manager::OutputFeatureValuesForHypergraph(const Hypothesis* hypo, std::ostr for( size_t i=0; i<pds.size(); i++ ) { featureIndex = OutputFeatureValuesForHypergraph(featureIndex, hypo, pds[i], outputSearchGraphStream); } - const vector<const GenerationDictionary*>& gds = staticData.GetGenerationDictionaries(); + const vector<GenerationDictionary*>& gds = GenerationDictionary::GetColl(); for( size_t i=0; i<gds.size(); i++ ) { featureIndex = OutputFeatureValuesForHypergraph(featureIndex, hypo, gds[i], outputSearchGraphStream); } |