diff options
author | Patrick Simianer <p@simianer.de> | 2011-07-24 20:46:22 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-23 19:13:57 +0200 |
commit | 3da2d6bef3d6f6c0e1e0d8845003db59d5697c90 (patch) | |
tree | f76ba4bf59aabc8cce9837dbfb4bbe716e50e1ec /decoder/decoder.cc | |
parent | 8e67ebda72410a84830b679db0c46251935e7892 (diff) |
added dtrain, implemented psg setting in decoder/translator, implemented psmetrics, ngram statistics, main carcass
Diffstat (limited to 'decoder/decoder.cc')
-rw-r--r-- | decoder/decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc index ff068be9..434109c2 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -708,6 +708,10 @@ void Decoder::SetSupplementalGrammar(const std::string& grammar_string) { assert(pimpl_->translator->GetDecoderType() == "SCFG"); static_cast<SCFGTranslator&>(*pimpl_->translator).SetSupplementalGrammar(grammar_string); } +void Decoder::SetSentenceGrammar(const std::string& grammar_string) { + assert(pimpl_->translator->GetDecoderType() == "SCFG"); + static_cast<SCFGTranslator&>(*pimpl_->translator).SetSentenceGrammar(grammar_string); +} bool DecoderImpl::Decode(const string& input, DecoderObserver* o) { |