mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +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)
|
std::map<size_t, const Factor*> GetPlaceholders(const Hypothesis &hypo, FactorType placeholderFactor)
|
||||||
{
|
{
|
||||||
const InputPath &inputPath = hypo.GetTranslationOption().GetInputPath();
|
const InputPath &inputPath = hypo.GetTranslationOption().GetInputPath();
|
||||||
|
@ -111,9 +111,7 @@ public:
|
|||||||
void OutputLatticeMBRNBestList(const std::vector<LatticeMBRSolution>& solutions,long translationId);
|
void OutputLatticeMBRNBestList(const std::vector<LatticeMBRSolution>& solutions,long translationId);
|
||||||
void Backtrack(const Moses::Hypothesis *hypo);
|
void Backtrack(const Moses::Hypothesis *hypo);
|
||||||
|
|
||||||
void ResetTranslationId() {
|
void ResetTranslationId();
|
||||||
m_translationId = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Moses::OutputCollector *GetSingleBestOutputCollector() {
|
Moses::OutputCollector *GetSingleBestOutputCollector() {
|
||||||
return m_singleBestOutputCollector;
|
return m_singleBestOutputCollector;
|
||||||
|
Loading…
Reference in New Issue
Block a user