mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself
This commit is contained in:
parent
433186ae25
commit
deb2187428
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user