diff options
author | XapaJIaMnu <nheart@gmail.com> | 2014-10-16 17:47:18 +0400 |
---|---|---|
committer | XapaJIaMnu <nheart@gmail.com> | 2014-10-16 17:47:18 +0400 |
commit | cfc957ceedbd00ee972fbfed5c8d28f2d5ed9186 (patch) | |
tree | 0c82b5c944810aafff232e4a41fc4d62d3404b1b | |
parent | 641207503691f5fda73492b2203ac51be2e05307 (diff) |
Expose the vocabulary map to use with Moses
-rw-r--r-- | src/vocabulary.h | 2 |
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 |