From aa5f96417ff81408b15b54aab35a3c16b845adf8 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 29 Aug 2011 22:02:45 +0200 Subject: big update: working iterating, pretty output, test scripts and more --- decoder/decoder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/decoder.cc') diff --git a/decoder/decoder.cc b/decoder/decoder.cc index 434109c2..55d9f1d7 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -708,9 +708,9 @@ 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) { +void Decoder::SetSentenceGrammarFromString(const std::string& grammar_str) { assert(pimpl_->translator->GetDecoderType() == "SCFG"); - static_cast(*pimpl_->translator).SetSentenceGrammar(grammar_string); + static_cast(*pimpl_->translator).SetSentenceGrammarFromString(grammar_str); } -- cgit v1.2.3