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 <hieu@hoang.co.uk>2013-12-05 16:19:55 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-12-05 16:19:55 +0400
commitd3301fa1a3324fdf9e57db6eb3eaea8acdbae968 (patch)
tree5b602d960e58e103aa0e4f8768290bcd25b7b03b /moses/DecodeGraph.h
parent0dac035a125bc42ad2ed5a5f1768ce5b69d7086d (diff)
move backoff parameter into decode graph class
Diffstat (limited to 'moses/DecodeGraph.h')
-rw-r--r--moses/DecodeGraph.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/moses/DecodeGraph.h b/moses/DecodeGraph.h
index 9c72ae907..e882e3904 100644
--- a/moses/DecodeGraph.h
+++ b/moses/DecodeGraph.h
@@ -40,6 +40,7 @@ protected:
std::list<const DecodeStep*> m_steps;
size_t m_position;
size_t m_maxChartSpan;
+ size_t m_backoff;
public:
/**
@@ -47,8 +48,9 @@ public:
**/
DecodeGraph(size_t position)
: m_position(position)
- , m_maxChartSpan(NOT_FOUND) {
- }
+ , m_maxChartSpan(NOT_FOUND)
+ , m_backoff(0)
+ {}
// for chart decoding
DecodeGraph(size_t position, size_t maxChartSpan)
@@ -82,6 +84,14 @@ public:
return m_maxChartSpan;
}
+ size_t GetBackoff() const {
+ return m_backoff;
+ }
+
+ void SetBackoff(size_t backoff){
+ m_backoff = backoff;
+ }
+
size_t GetPosition() const {
return m_position;
}