make GetOutputLanguageModelOrder() const

This commit is contained in:
Hieu Hoang 2014-12-28 17:57:21 +05:30
parent 9739b7a8a7
commit eea29752a4
2 changed files with 3 additions and 2 deletions

View File

@ -553,7 +553,8 @@ void Manager::OutputWordGraph(std::ostream &outputWordGraphStream, const Hypothe
outputWordGraphStream << endl;
}
void Manager::GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo ) {
void Manager::GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo ) const
{
Phrase translation;
hypo->GetOutputPhrase(translation);
const std::vector<const StatefulFeatureFunction*> &statefulFFs = StatefulFeatureFunction::GetStatefulFeatureFunctions();

View File

@ -157,7 +157,7 @@ public:
void PrintAllDerivations(long translationId, std::ostream& outputStream) const;
void printDivergentHypothesis(long translationId, const Hypothesis* hypo, const std::vector <const TargetPhrase*> & remainingPhrases, float remainingScore , std::ostream& outputStream) const;
void printThisHypothesis(long translationId, const Hypothesis* hypo, const std::vector <const TargetPhrase* > & remainingPhrases, float remainingScore , std::ostream& outputStream) const;
void GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo );
void GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo ) const;
void GetWordGraph(long translationId, std::ostream &outputWordGraphStream) const;
int GetNextHypoId();