diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-07 22:16:30 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-07 22:16:30 +0400 |
commit | 433186ae255ec2e446e067530bee26a8ec11afcd (patch) | |
tree | 16cc563343ae3d4490055aa48948f53caa66fabf /moses/HypergraphOutput.cpp | |
parent | 0d7048803a44d8481528cf1264f5513e8eb94571 (diff) |
delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself
Diffstat (limited to 'moses/HypergraphOutput.cpp')
-rw-r--r-- | moses/HypergraphOutput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<class M> void HypergraphOutput<M>::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<M>::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); |