diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-11-17 14:14:18 +0300 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-11-17 14:48:51 +0300 |
commit | d58f43085e9fc6399baa8f794d872864c9697bfa (patch) | |
tree | 83fdade9b9fdcd05b22a8fcb23d08619846e0f5e | |
parent | 41de6b6ded0ddb5006afeed67aecd5c9936b23e6 (diff) |
re-apply cfc957 (expose vocabulary map to 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 11fbfcd..a987522 100644 --- a/src/vocabulary.h +++ b/src/vocabulary.h @@ -88,6 +88,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 |