diff options
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r-- | decoder/decoder.h | 4 |
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_; |