diff options
author | Phil Williams <philip.williams@mac.com> | 2014-04-21 13:19:00 +0400 |
---|---|---|
committer | Phil Williams <philip.williams@mac.com> | 2014-04-21 13:19:00 +0400 |
commit | b308bd56579a6791ccd8d0d326acb0e0b74d1b20 (patch) | |
tree | 5393a4ca2e7f86de37c19712d2a9653fe823aec8 /moses/ChartManager.h | |
parent | 76a4609cff1b5bc9a5581e83dcddaf21d696682d (diff) |
moses_chart: enable ChartKBestExtractor.
Diffstat (limited to 'moses/ChartManager.h')
-rw-r--r-- | moses/ChartManager.h | 2 |
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 */ |