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
path: root/moses
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-02-08 03:50:23 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-02-08 03:50:23 +0300
commit066a681b43a4e153db5789ae0b3a39b623030a93 (patch)
tree2ec56cf99ad0ba145bfcdc53c068027606874fc6 /moses
parent755bd609f506fa6ce68a935f72499e055a6a4b6c (diff)
fix word lattice input feature for non-binary pt
Diffstat (limited to 'moses')
-rw-r--r--moses/TypeDef.h2
-rw-r--r--moses/WordLattice.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/moses/TypeDef.h b/moses/TypeDef.h
index 0a1e1ad9b..a56b3fbac 100644
--- a/moses/TypeDef.h
+++ b/moses/TypeDef.h
@@ -122,7 +122,7 @@ enum InputTypeEnum {
,ConfusionNetworkInput = 1
,WordLatticeInput = 2
,TreeInputType = 3
- ,WordLatticeInput2 = 4
+ //,WordLatticeInput2 = 4
, TabbedSentenceInput = 5
,ForestInputType = 6
};
diff --git a/moses/WordLattice.h b/moses/WordLattice.h
index 325271234..dc1582d78 100644
--- a/moses/WordLattice.h
+++ b/moses/WordLattice.h
@@ -21,6 +21,10 @@ private:
public:
WordLattice();
+
+ InputTypeEnum GetType() const
+ { return WordLatticeInput; }
+
size_t GetColumnIncrement(size_t ic, size_t j) const;
void Print(std::ostream&) const;
/** Get shortest path between two nodes