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.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'decoder/decoder.h') diff --git a/decoder/decoder.h b/decoder/decoder.h index 6eca12c1..236eacd5 100644 --- a/decoder/decoder.h +++ b/decoder/decoder.h @@ -7,6 +7,8 @@ #include #include +#include "grammar.h" + class SentenceMetadata; struct Hypergraph; struct DecoderImpl; @@ -34,7 +36,7 @@ struct Decoder { // that will be used on subsequent calls to Decode. rules should be in standard // text format. This function does NOT read from a file. void SetSupplementalGrammar(const std::string& grammar); - void SetSentenceGrammar(const std::string& grammar); + void SetSentenceGrammarFromString(const std::string& grammar_str); private: boost::program_options::variables_map conf; boost::shared_ptr pimpl_; -- cgit v1.2.3