From 354561ec7006b6a67884227e0a37465608a01152 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 24 Jul 2011 20:46:22 +0200 Subject: added dtrain, implemented psg setting in decoder/translator, implemented psmetrics, ngram statistics, main carcass --- decoder/decoder.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'decoder/decoder.cc') 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(*pimpl_->translator).SetSupplementalGrammar(grammar_string); } +void Decoder::SetSentenceGrammar(const std::string& grammar_string) { + assert(pimpl_->translator->GetDecoderType() == "SCFG"); + static_cast(*pimpl_->translator).SetSentenceGrammar(grammar_string); +} bool DecoderImpl::Decode(const string& input, DecoderObserver* o) { -- cgit v1.2.3