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 <hieuhoang@gmail.com>2014-03-07 16:18:18 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-03-07 16:18:18 +0400
commit5e93c3f804f3a37af95612ef262383d30368b19d (patch)
tree5ef048fd9c39ee5587d386f7e29f3aa43a6b6645 /moses/StaticData.h
parent6e72af9d879a3d7937f0323679465b558f6d1cbc (diff)
parent3f7778db9592f104664ae503dfea557ae8522960 (diff)
conflicts
Diffstat (limited to 'moses/StaticData.h')
-rw-r--r--moses/StaticData.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/moses/StaticData.h b/moses/StaticData.h
index 217daf712..5a8fc3d90 100644
--- a/moses/StaticData.h
+++ b/moses/StaticData.h
@@ -220,6 +220,8 @@ protected:
std::map<Word, std::set<Word> > m_soft_matches_map;
std::map<Word, std::set<Word> > m_soft_matches_map_reverse;
+ const StatefulFeatureFunction* m_treeStructure;
+
public:
bool IsAlwaysCreateDirectTranslationOption() const {
@@ -755,6 +757,15 @@ public:
void ResetWeights(const std::string &denseWeights, const std::string &sparseFile);
+ // need global access for output of tree structure
+ const StatefulFeatureFunction* GetTreeStructure() const {
+ return m_treeStructure;
+ }
+
+ void SetTreeStructure(const StatefulFeatureFunction* treeStructure) {
+ m_treeStructure = treeStructure;
+ }
+
};
}