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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 20:07:45 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 20:07:45 +0300
commitf247e26fed78347cfcaeb8f82b8db6b50feff3f8 (patch)
treece29bcefd75605890ffbc90f0a0ccd1e869bcc6d /moses/Syntax
parentfbfe5890d13760a6610abaf2b1797dc1db5cc9f4 (diff)
More options refactoring (OOV Handling this time).
Diffstat (limited to 'moses/Syntax')
-rw-r--r--moses/Syntax/S2T/OovHandler-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/Syntax/S2T/OovHandler-inl.h b/moses/Syntax/S2T/OovHandler-inl.h
index 3655a0155..ab9e3b07f 100644
--- a/moses/Syntax/S2T/OovHandler-inl.h
+++ b/moses/Syntax/S2T/OovHandler-inl.h
@@ -95,7 +95,7 @@ TargetPhrase *OovHandler<RuleTrie>::SynthesizeTargetPhrase(
template<typename RuleTrie>
bool OovHandler<RuleTrie>::ShouldDrop(const Word &oov)
{
- if (!StaticData::Instance().GetDropUnknown()) {
+ if (!StaticData::Instance().options().unk.drop) {
return false;
}
const Factor *f = oov[0]; // TODO hack. shouldn't know which factor is surface