Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-10-07 22:16:30 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-10-07 22:16:30 +0400
commit433186ae255ec2e446e067530bee26a8ec11afcd (patch)
tree16cc563343ae3d4490055aa48948f53caa66fabf /moses/Manager.h
parent0d7048803a44d8481528cf1264f5513e8eb94571 (diff)
delete lineNumber variable from Manager and TranslationTask. It should always be carried by the input sentence itself
Diffstat (limited to 'moses/Manager.h')
-rw-r--r--moses/Manager.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/Manager.h b/moses/Manager.h
index 9512bb472..ef4612de1 100644
--- a/moses/Manager.h
+++ b/moses/Manager.h
@@ -118,7 +118,6 @@ protected:
size_t interrupted_flag;
std::auto_ptr<SentenceStats> m_sentenceStats;
int m_hypoId; //used to number the hypos as they are created.
- size_t m_lineNumber;
void GetConnectedGraph(
std::map< int, bool >* pConnected,
@@ -130,7 +129,7 @@ protected:
public:
InputType const& m_source; /**< source sentence to be translated */
- Manager(size_t lineNumber, InputType const& source, SearchAlgorithm searchAlgorithm);
+ Manager(InputType const& source, SearchAlgorithm searchAlgorithm);
~Manager();
const TranslationOptionCollection* getSntTranslationOptions();
@@ -145,7 +144,7 @@ public:
void GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo );
void GetWordGraph(long translationId, std::ostream &outputWordGraphStream) const;
int GetNextHypoId();
- size_t GetLineNumber() const {return m_lineNumber;}
+
#ifdef HAVE_PROTOBUF
void SerializeSearchGraphPB(long translationId, std::ostream& outputStream) const;
#endif