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:
Diffstat (limited to 'src/vocabulary.h')
-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