diff options
author | Lane Schwartz <dowobeha@gmail.com> | 2013-02-20 20:03:23 +0400 |
---|---|---|
committer | Lane Schwartz <dowobeha@gmail.com> | 2013-02-23 01:28:47 +0400 |
commit | e7563111de02c5e39ff297e58641b612ff02fb4b (patch) | |
tree | 7814a5b856f423535ff1b0609e2240df6b0ca07c /moses/Manager.h | |
parent | e106e04dc3c3fe609f82780cbd8286d042a5e47d (diff) |
More work on outputting HTK lattice format
Diffstat (limited to 'moses/Manager.h')
-rw-r--r-- | moses/Manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/moses/Manager.h b/moses/Manager.h index 0ae7cd6f1..c5f54847b 100644 --- a/moses/Manager.h +++ b/moses/Manager.h @@ -93,6 +93,11 @@ class Manager Manager(Manager const&); void operator=(Manager const&); const TranslationSystem* m_system; +private: + void OutputFeatureWeightsForSLF(std::ostream &outputSearchGraphStream) const; + size_t OutputFeatureWeightsForSLF(size_t index, const FeatureFunction* ff, std::ostream &outputSearchGraphStream) const; + void OutputFeatureValuesForSLF(const Hypothesis* hypo, bool zeros, std::ostream &outputSearchGraphStream) const; + size_t OutputFeatureValuesForSLF(size_t index, bool zeros, const Hypothesis* hypo, const FeatureFunction* ff, std::ostream &outputSearchGraphStream) const; protected: // data // InputType const& m_source; /**< source sentence to be translated */ @@ -103,6 +108,7 @@ 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, @@ -113,7 +119,6 @@ protected: public: - size_t m_lineNumber; InputType const& m_source; /**< source sentence to be translated */ Manager(size_t lineNumber, InputType const& source, SearchAlgorithm searchAlgorithm, const TranslationSystem* system); ~Manager(); |