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 11:33:38 +0300
committergraehl <graehl@gmail.com>2015-06-25 11:33:38 +0300
commit5fbf9611d24b6fd80c5839fe547f1edb141fa162 (patch)
tree174079a6a77d1e9f1a3ab9b3369a6ef16162d20a
parenta3dd9155bab174643fe358c1041f881fd98474e8 (diff)
compile
-rw-r--r--src/neuralTM.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/neuralTM.h b/src/neuralTM.h
index 4c3db51..9bb6d16 100644
--- a/src/neuralTM.h
+++ b/src/neuralTM.h
@@ -54,9 +54,9 @@ class neuralTM : public neuralNetwork, graehl::replace_digits
if (graehl::ascii_digit(word[i])) {
std::string mapped_word(word);
replace(mapped_word, i);
- return vocab->lookup_word(mapped_word);
+ return vocab.lookup_word(mapped_word);
}
- return vocab->lookup_word(word);
+ return vocab.lookup_word(word);
}
int lookup_word(std::pair<char const*, char const*> slice, vocabulary const& vocab) const
@@ -66,9 +66,9 @@ class neuralTM : public neuralNetwork, graehl::replace_digits
if (graehl::ascii_digit(*i)) {
std::string mapped_word(slice.first, slice.second);
replace(mapped_word, i - slice.first);
- return vocab->lookup_word(mapped_word);
+ return vocab.lookup_word(mapped_word);
}
- return vocab->lookup_word(slice);
+ return vocab.lookup_word(slice);
}
int lookup_input_word(const std::string &word) const