diff options
author | Kenneth Heafield <github@kheafield.com> | 2016-03-24 00:28:55 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2016-03-24 00:28:55 +0300 |
commit | 90b772734c1fce361d25508ece02334fd248614b (patch) | |
tree | 742fe07624cc887f56f6457725c82df95a47b385 /moses/FF | |
parent | 4c07496eb2c5d21ca238abdcad11fad7b93657d4 (diff) |
Delete unnecessary virtual
Diffstat (limited to 'moses/FF')
-rw-r--r-- | moses/FF/OSM-Feature/KenOSM.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/FF/OSM-Feature/KenOSM.h b/moses/FF/OSM-Feature/KenOSM.h index 03deead07..4975b559b 100644 --- a/moses/FF/OSM-Feature/KenOSM.h +++ b/moses/FF/OSM-Feature/KenOSM.h @@ -27,18 +27,18 @@ public: KenOSM(const std::string& file) : m_kenlm(new KenModel(file.c_str())) {} - virtual float Score(const lm::ngram::State &in_state, + float Score(const lm::ngram::State &in_state, const std::string& word, lm::ngram::State &out_state) const { return m_kenlm->Score(in_state, m_kenlm->GetVocabulary().Index(word), out_state); } - virtual const lm::ngram::State &BeginSentenceState() const { + const lm::ngram::State &BeginSentenceState() const { return m_kenlm->BeginSentenceState(); } - virtual const lm::ngram::State &NullContextState() const { + const lm::ngram::State &NullContextState() const { return m_kenlm->NullContextState(); } |