summaryrefslogtreecommitdiff
path: root/decoder/decoder.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-08-29 22:02:45 +0200
committerPatrick Simianer <p@simianer.de>2011-09-23 19:13:58 +0200
commitaa5f96417ff81408b15b54aab35a3c16b845adf8 (patch)
treecb9715696bf11d095215a97e299e22fed940ec02 /decoder/decoder.h
parent7a562c98d69abfe9ec921f37828f827f44d5dc82 (diff)
big update: working iterating, pretty output, test scripts and more
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r--decoder/decoder.h4
1 files changed, 3 insertions, 1 deletions
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 <boost/shared_ptr.hpp>
#include <boost/program_options/variables_map.hpp>
+#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<DecoderImpl> pimpl_;