mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 03:33:37 +03:00
delete m_translationId variable
This commit is contained in:
parent
c21ae90943
commit
d744400a33
@ -146,8 +146,10 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
|
||||
// read each sentence & decode
|
||||
InputType *source=0;
|
||||
InputType *source=NULL;
|
||||
size_t lineCount = staticData.GetStartTranslationId();
|
||||
while(ReadInput(*ioWrapper,staticData.GetInputType(),source)) {
|
||||
source->SetTranslationId(lineCount);
|
||||
IFVERBOSE(1)
|
||||
ResetUserTime();
|
||||
|
||||
@ -161,6 +163,7 @@ int main(int argc, char* argv[])
|
||||
task->Run();
|
||||
delete task;
|
||||
#endif
|
||||
++lineCount;
|
||||
}
|
||||
|
||||
#ifdef WITH_THREADS
|
||||
|
@ -215,10 +215,6 @@ IOWrapper::
|
||||
GetInput(InputType* inputType)
|
||||
{
|
||||
if(inputType->Read(*m_inputStream, m_inputFactorOrder)) {
|
||||
if (long x = inputType->GetTranslationId()) {
|
||||
if (x>=m_translationId) m_translationId = x+1;
|
||||
} else inputType->SetTranslationId(m_translationId++);
|
||||
|
||||
return inputType;
|
||||
} else {
|
||||
delete inputType;
|
||||
|
@ -169,10 +169,6 @@ void IOWrapperChart::ResetTranslationId()
|
||||
InputType*IOWrapperChart::GetInput(InputType* inputType)
|
||||
{
|
||||
if(inputType->Read(*m_inputStream, m_inputFactorOrder)) {
|
||||
if (long x = inputType->GetTranslationId()) {
|
||||
if (x>=m_translationId) m_translationId = x+1;
|
||||
} else inputType->SetTranslationId(m_translationId++);
|
||||
|
||||
return inputType;
|
||||
} else {
|
||||
delete inputType;
|
||||
|
Loading…
Reference in New Issue
Block a user