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
path: root/moses
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-02-06 18:37:47 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-02-06 18:37:47 +0300
commit4145999e3335592576bf2d4154834dcfe16e0a56 (patch)
tree0133926497eaa9f89fca8311fb987ffd7a9e6238 /moses
parent65f94e615b266c6b02e94c71d76a131c897222fb (diff)
virtual destructor for KenOSMBase /Jeroen Vermeulen
Diffstat (limited to 'moses')
-rw-r--r--moses/FF/OSM-Feature/KenOSM.h2
-rw-r--r--moses/LM/Ken.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/moses/FF/OSM-Feature/KenOSM.h b/moses/FF/OSM-Feature/KenOSM.h
index a50589edc..03deead07 100644
--- a/moses/FF/OSM-Feature/KenOSM.h
+++ b/moses/FF/OSM-Feature/KenOSM.h
@@ -10,6 +10,8 @@ namespace Moses
class KenOSMBase
{
public:
+ virtual ~KenOSMBase() {}
+
virtual float Score(const lm::ngram::State&, const std::string&,
lm::ngram::State&) const = 0;
diff --git a/moses/LM/Ken.cpp b/moses/LM/Ken.cpp
index ab2e5df80..e7267f66c 100644
--- a/moses/LM/Ken.cpp
+++ b/moses/LM/Ken.cpp
@@ -470,7 +470,7 @@ LanguageModel *ConstructKenLM(const std::string &lineOrig)
} else if (name == "lazyken") {
lazy = boost::lexical_cast<bool>(value);
} else {
- // pass to bases class to interpret
+ // pass to base class to interpret
line << " " << name << "=" << value;
}
}