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>2013-11-15 21:43:41 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-15 21:43:41 +0400
commit3f8972d67b4fb566a3ad644c61dc9745e6a14d74 (patch)
tree16bc8af2b87b3bae21fed5b2e33580305ff1f4a7 /moses/GenerationDictionary.h
parentc9d09a716872231b80e38db6bd6668d4e54bb991 (diff)
move collection of generation-table from Staticdata to GenerationDictionary
Diffstat (limited to 'moses/GenerationDictionary.h')
-rw-r--r--moses/GenerationDictionary.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/moses/GenerationDictionary.h b/moses/GenerationDictionary.h
index a22cb930c..257162ae1 100644
--- a/moses/GenerationDictionary.h
+++ b/moses/GenerationDictionary.h
@@ -46,12 +46,18 @@ class GenerationDictionary : public DecodeFeature
{
typedef std::map<const Word* , OutputWordCollection, WordComparer> Collection;
protected:
+ static std::vector<GenerationDictionary*> s_staticColl;
+
Collection m_collection;
// 1st = source
// 2nd = target
std::string m_filePath;
public:
+ static const std::vector<GenerationDictionary*>& GetColl() {
+ return s_staticColl;
+ }
+
GenerationDictionary(const std::string &line);
virtual ~GenerationDictionary();