diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-04 17:43:23 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-04 17:43:23 +0300 |
commit | 80eada0640dc3590a347851da0366636f6701742 (patch) | |
tree | 700d73d2a6e3ec02228f4daa8d555d75aba6d0f7 /moses/IOWrapper.h | |
parent | 5e4b27412a0db2ded959156bba42e826dac91b50 (diff) |
delete unused methods in IOWrapper
Diffstat (limited to 'moses/IOWrapper.h')
-rw-r--r-- | moses/IOWrapper.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/moses/IOWrapper.h b/moses/IOWrapper.h index c805286b6..afd72938a 100644 --- a/moses/IOWrapper.h +++ b/moses/IOWrapper.h @@ -102,7 +102,6 @@ protected: // CHART typedef std::vector<std::pair<Moses::Word, Moses::WordsRange> > ApplicationContext; - typedef std::set< std::pair<size_t, size_t> > Alignments; void Backtrack(const ChartHypothesis *hypo); void OutputTranslationOptions(std::ostream &out, ApplicationContext &applicationContext, const Moses::ChartHypothesis *hypo, const Moses::Sentence &sentence, long translationId); @@ -133,29 +132,6 @@ protected: void OutputSurface(std::ostream &out, const Hypothesis &edge, const std::vector<FactorType> &outputFactorOrder, char reportSegmentation, bool reportAllFactors); - size_t OutputAlignment(Alignments &retAlign, const Moses::ChartHypothesis *hypo, size_t startTarget); - size_t OutputAlignmentNBest(Alignments &retAlign, - const Moses::ChartKBestExtractor::Derivation &derivation, - size_t startTarget); - std::size_t OutputAlignmentNBest(Alignments &retAlign, const Moses::Syntax::KBestExtractor::Derivation &derivation, std::size_t startTarget); - - size_t CalcSourceSize(const Moses::ChartHypothesis *hypo); - size_t CalcSourceSize(const Syntax::KBestExtractor::Derivation &d) const; - - template <class T> - void ShiftOffsets(std::vector<T> &offsets, T shift) - { - T currPos = shift; - for (size_t i = 0; i < offsets.size(); ++i) { - if (offsets[i] == 0) { - offsets[i] = currPos; - ++currPos; - } else { - currPos += offsets[i]; - } - } - } - public: IOWrapper(); ~IOWrapper(); @@ -206,12 +182,8 @@ public: void OutputBestNone(long translationId); - void OutputNBestList(const std::vector<boost::shared_ptr<Moses::ChartKBestExtractor::Derivation> > &nBestList, long translationId); - void OutputNBestList(const Moses::Syntax::KBestExtractor::KBestVec &nBestList, long translationId); - void OutputDetailedAllTranslationReport(const std::vector<boost::shared_ptr<Moses::ChartKBestExtractor::Derivation> > &nBestList, const Moses::ChartManager &manager, const Moses::Sentence &sentence, long translationId); - void OutputAlignment(size_t translationId , const Moses::ChartHypothesis *hypo); void OutputUnknowns(const std::vector<Moses::Phrase*> &, long); void OutputUnknowns(const std::set<Moses::Word> &, long); |