Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lm/vocab.hh')
-rw-r--r--lm/vocab.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/lm/vocab.hh b/lm/vocab.hh
index 343fc98a5..a25432f97 100644
--- a/lm/vocab.hh
+++ b/lm/vocab.hh
@@ -141,7 +141,9 @@ class ProbingVocabulary : public base::Vocabulary {
WordIndex Insert(const StringPiece &str);
- void FinishedLoading(ProbBackoff *reorder_vocab);
+ template <class Weights> void FinishedLoading(Weights * /*reorder_vocab*/) {
+ InternalFinishedLoading();
+ }
std::size_t UnkCountChangePadding() const { return 0; }
@@ -150,6 +152,8 @@ class ProbingVocabulary : public base::Vocabulary {
void LoadedBinary(bool have_words, int fd, EnumerateVocab *to);
private:
+ void InternalFinishedLoading();
+
typedef util::ProbingHashTable<ProbingVocabuaryEntry, util::IdentityHash> Lookup;
Lookup lookup_;