delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself

This commit is contained in:
Hieu Hoang 2014-10-07 19:28:44 +01:00
parent 433186ae25
commit deb2187428
2 changed files with 6 additions and 3 deletions

View File

@ -226,6 +226,11 @@ GetInput(InputType* inputType)
}
}
void IOWrapper::ResetTranslationId()
{
m_translationId = StaticData::Instance().GetStartTranslationId();
}
std::map<size_t, const Factor*> GetPlaceholders(const Hypothesis &hypo, FactorType placeholderFactor)
{
const InputPath &inputPath = hypo.GetTranslationOption().GetInputPath();

View File

@ -111,9 +111,7 @@ public:
void OutputLatticeMBRNBestList(const std::vector<LatticeMBRSolution>& solutions,long translationId);
void Backtrack(const Moses::Hypothesis *hypo);
void ResetTranslationId() {
m_translationId = 0;
}
void ResetTranslationId();
Moses::OutputCollector *GetSingleBestOutputCollector() {
return m_singleBestOutputCollector;