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:
-rw-r--r--src/neuralLM.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/neuralLM.h b/src/neuralLM.h
index 5febaeb..f0eebd8 100644
--- a/src/neuralLM.h
+++ b/src/neuralLM.h
@@ -45,6 +45,16 @@ class neuralLM : public neuralNetwork, graehl::replace_digits
const vocabulary &get_vocabulary() const { return *(this->vocab); }
+ int lookup_input_word(const std::string &word) const
+ {
+ return lookup_word(word);
+ }
+
+ int lookup_input_word(std::pair<char const*, char const*> word) const
+ {
+ return lookup_word(word);
+ }
+
int lookup_word(const std::string &word) const
{