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/ChartHypothesis.h
parent76a4609cff1b5bc9a5581e83dcddaf21d696682d (diff)
moses_chart: enable ChartKBestExtractor.
Diffstat (limited to 'moses/ChartHypothesis.h')
-rw-r--r--moses/ChartHypothesis.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/ChartHypothesis.h b/moses/ChartHypothesis.h
index 150b53fd0..12050e764 100644
--- a/moses/ChartHypothesis.h
+++ b/moses/ChartHypothesis.h
@@ -45,6 +45,7 @@ typedef std::vector<ChartHypothesis*> ChartArcList;
class ChartHypothesis
{
friend std::ostream& operator<<(std::ostream&, const ChartHypothesis&);
+ friend class ChartKBestExtractor;
protected:
#ifdef USE_HYPO_POOL
@@ -75,6 +76,9 @@ protected:
//! not implemented
ChartHypothesis(const ChartHypothesis &copy);
+ //! only used by ChartKBestExtractor
+ ChartHypothesis(const ChartHypothesis &, const ChartKBestExtractor &);
+
public:
#ifdef USE_HYPO_POOL
void *operator new(size_t /* num_bytes */) {
@@ -93,9 +97,6 @@ public:
}
#endif
- //! only used by ChartKBestExtractor
- ChartHypothesis(const ChartHypothesis &, const ChartKBestExtractor &);
-
ChartHypothesis(const ChartTranslationOptions &, const RuleCubeItem &item,
ChartManager &manager);