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>2015-01-02 21:09:27 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-01-02 21:09:27 +0300
commit1ff52ebb0ec1acf8085e93622721dbb8fc7bff7d (patch)
tree30cff4a64852001a0412b5654b9da489beaac031 /moses/Manager.h
parentb7650b2d8b8c819f57ff9c7fb956d2edecd19a97 (diff)
move OutputBest() from TranslationTask to Manager
Diffstat (limited to 'moses/Manager.h')
-rw-r--r--moses/Manager.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/moses/Manager.h b/moses/Manager.h
index 1c8c25fe3..8dacea593 100644
--- a/moses/Manager.h
+++ b/moses/Manager.h
@@ -129,6 +129,9 @@ protected:
// output
// nbest
+ mutable std::ostringstream m_latticeNBestOut;
+ mutable std::ostringstream m_alignmentOut;
+
void OutputNBest(std::ostream& out
, const Moses::TrellisPathList &nBestList
, const std::vector<Moses::FactorType>& outputFactorOrder
@@ -145,6 +148,8 @@ protected:
void OutputWordGraph(std::ostream &outputWordGraphStream, const Hypothesis *hypo, size_t &linkId) const;
+ void OutputAlignment(std::ostringstream &out, const TrellisPath &path) const;
+
public:
Manager(InputType const& source, SearchAlgorithm searchAlgorithm);
~Manager();
@@ -167,9 +172,6 @@ public:
char reportSegmentation, bool reportAllFactors, std::ostream& out) const;
void OutputBestHypo(const Moses::TrellisPath &path, long /*translationId*/,char reportSegmentation, bool reportAllFactors, std::ostream &out) const;
- void OutputAlignment(Moses::OutputCollector* collector, size_t lineNo, const Moses::TrellisPath &path);
- void OutputAlignment(OutputCollector* collector, size_t lineNo , const std::vector<const Hypothesis *> &edges);
-
#ifdef HAVE_PROTOBUF
void SerializeSearchGraphPB(long translationId, std::ostream& outputStream) const;
#endif