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:
authorPhil Williams <philip.williams@mac.com>2014-04-21 13:19:00 +0400
committerPhil Williams <philip.williams@mac.com>2014-04-21 13:19:00 +0400
commitb308bd56579a6791ccd8d0d326acb0e0b74d1b20 (patch)
tree5393a4ca2e7f86de37c19712d2a9653fe823aec8 /moses/ChartManager.h
parent76a4609cff1b5bc9a5581e83dcddaf21d696682d (diff)
moses_chart: enable ChartKBestExtractor.
Diffstat (limited to 'moses/ChartManager.h')
-rw-r--r--moses/ChartManager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/ChartManager.h b/moses/ChartManager.h
index 6beffc45e..27914e207 100644
--- a/moses/ChartManager.h
+++ b/moses/ChartManager.h
@@ -30,6 +30,7 @@
#include "SentenceStats.h"
#include "ChartTranslationOptionList.h"
#include "ChartParser.h"
+#include "ChartKBestExtractor.h"
#include <boost/shared_ptr.hpp>
@@ -71,6 +72,7 @@ public:
void AddXmlChartOptions();
const ChartHypothesis *GetBestHypothesis() const;
void CalcNBest(size_t count, ChartTrellisPathList &ret, bool onlyDistinct=0) const;
+ void CalcNBest(size_t n, std::vector<boost::shared_ptr<ChartKBestExtractor::Derivation> > &nBestList, bool onlyDistinct=false) const;
void GetSearchGraph(long translationId, std::ostream &outputSearchGraphStream) const;
void FindReachableHypotheses( const ChartHypothesis *hypo, std::map<unsigned,bool> &reachable ) const; /* auxilliary function for GetSearchGraph */