diff options
-rw-r--r-- | src/neuralLM.h | 10 |
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 { |