Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/nplm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXapaJIaMnu <nheart@gmail.com>2014-10-16 17:47:18 +0400
committerXapaJIaMnu <nheart@gmail.com>2014-10-16 17:47:18 +0400
commitcfc957ceedbd00ee972fbfed5c8d28f2d5ed9186 (patch)
tree0c82b5c944810aafff232e4a41fc4d62d3404b1b
parent641207503691f5fda73492b2203ac51be2e05307 (diff)
Expose the vocabulary map to use with Moses
-rw-r--r--src/vocabulary.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vocabulary.h b/src/vocabulary.h
index fee76f6..1f844a7 100644
--- a/src/vocabulary.h
+++ b/src/vocabulary.h
@@ -77,6 +77,8 @@ public:
}
const std::vector<std::string> &words() const { return m_words; }
+
+ const boost::unordered_map<std::string, int>& get_idmap() const { return m_index; }
};
} // namespace nplm