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:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-11-17 14:14:18 +0300
committerRico Sennrich <rico.sennrich@gmx.ch>2014-11-17 14:48:51 +0300
commitd58f43085e9fc6399baa8f794d872864c9697bfa (patch)
tree83fdade9b9fdcd05b22a8fcb23d08619846e0f5e
parent41de6b6ded0ddb5006afeed67aecd5c9936b23e6 (diff)
re-apply cfc957 (expose vocabulary map to 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 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