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:
authorgraehl <graehl@gmail.com>2015-06-25 23:32:08 +0300
committergraehl <graehl@gmail.com>2015-06-25 23:32:59 +0300
commit82aaac92cc138b16b4bc9ff06056bb985b4166d6 (patch)
tree658b39478924812bc3470873001669e90a325e2a
parent363c73cacf94d965a8759ae8b55f56d8c1c29bb1 (diff)
lookup_word nplm 0.1 backward compat
-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
{