From 433186ae255ec2e446e067530bee26a8ec11afcd Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 7 Oct 2014 19:16:30 +0100 Subject: delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself --- moses/HypergraphOutput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'moses/HypergraphOutput.cpp') diff --git a/moses/HypergraphOutput.cpp b/moses/HypergraphOutput.cpp index da7e804dc..5c689eaee 100644 --- a/moses/HypergraphOutput.cpp +++ b/moses/HypergraphOutput.cpp @@ -124,7 +124,7 @@ template void HypergraphOutput::Write(const M& manager) const { stringstream fileName; - fileName << m_hypergraphDir << "/" << manager.GetLineNumber(); + fileName << m_hypergraphDir << "/" << manager.GetSource().GetTranslationId(); if ( m_appendSuffix ) { fileName << "." << m_compression; } @@ -144,7 +144,7 @@ void HypergraphOutput::Write(const M& manager) const { manager.OutputSearchGraphAsHypergraph(file); file.flush(); } else { - TRACE_ERR("Cannot output hypergraph for line " << manager.GetLineNumber() + TRACE_ERR("Cannot output hypergraph for line " << manager.GetSource().GetTranslationId() << " because the output file " << fileName.str() << " is not open or not ready for writing" << std::endl); -- cgit v1.2.3