diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-04 14:24:33 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-04 14:24:33 +0300 |
commit | b526efea2361f936a8a04c3e1ee1a5dd5b94982b (patch) | |
tree | 870a60a8ddecb7788ff46f192db72e2b6ba0fcb7 /moses/IOWrapper.h | |
parent | cec03c949ecaefbb34038df18e4d477317ee8a40 (diff) |
gut IOWrapper
Diffstat (limited to 'moses/IOWrapper.h')
-rw-r--r-- | moses/IOWrapper.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/moses/IOWrapper.h b/moses/IOWrapper.h index 8fcc2feff..e59e54de0 100644 --- a/moses/IOWrapper.h +++ b/moses/IOWrapper.h @@ -74,8 +74,6 @@ class IOWrapper protected: const std::vector<Moses::FactorType> *m_inputFactorOrder; - const std::vector<Moses::FactorType> *m_outputFactorOrder; - Moses::FactorMask m_inputFactorUsed; std::string m_inputFilePath; Moses::InputFileStream *m_inputFile; std::istream *m_inputStream; @@ -100,22 +98,6 @@ protected: bool m_surpressSingleBestOutput; - // CHART - typedef std::vector<std::pair<Moses::Word, Moses::WordsRange> > ApplicationContext; - - void OutputTranslationOptions(std::ostream &out, ApplicationContext &applicationContext, const Moses::ChartHypothesis *hypo, const Moses::Sentence &sentence, long translationId); - void OutputTranslationOptions(std::ostream &out, ApplicationContext &applicationContext, const search::Applied *applied, const Moses::Sentence &sentence, long translationId); - void OutputTranslationOption(std::ostream &out, ApplicationContext &applicationContext, const Moses::ChartHypothesis *hypo, const Moses::Sentence &sentence, long translationId); - void OutputTranslationOption(std::ostream &out, ApplicationContext &applicationContext, const search::Applied *applied, const Moses::Sentence &sentence, long translationId); - - void ReconstructApplicationContext(const Moses::ChartHypothesis &hypo, - const Moses::Sentence &sentence, - ApplicationContext &context); - void ReconstructApplicationContext(const search::Applied *applied, - const Moses::Sentence &sentence, - ApplicationContext &context); - void WriteApplicationContext(std::ostream &out, - const ApplicationContext &context); public: IOWrapper(); @@ -124,8 +106,6 @@ public: Moses::InputType* GetInput(Moses::InputType *inputType); bool ReadInput(Moses::InputTypeEnum inputType, Moses::InputType*& source); - void Backtrack(const Moses::Hypothesis *hypo); - Moses::OutputCollector *GetSingleBestOutputCollector() { return m_singleBestOutputCollector; } @@ -162,11 +142,6 @@ public: return m_detailTreeFragmentsOutputCollector; } - - // CHART - - // phrase-based - // post editing std::ifstream *spe_src, *spe_trg, *spe_aln; |