summaryrefslogtreecommitdiff
path: root/decoder/translator.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/translator.h
parent7a562c98d69abfe9ec921f37828f827f44d5dc82 (diff)
big update: working iterating, pretty output, test scripts and more
Diffstat (limited to 'decoder/translator.h')
-rw-r--r--decoder/translator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/translator.h b/decoder/translator.h
index 5abf9fd6..cfd3b08a 100644
--- a/decoder/translator.h
+++ b/decoder/translator.h
@@ -7,6 +7,8 @@
#include <boost/shared_ptr.hpp>
#include <boost/program_options/variables_map.hpp>
+#include "grammar.h"
+
class Hypergraph;
class SentenceMetadata;
@@ -57,7 +59,7 @@ class SCFGTranslator : public Translator {
public:
SCFGTranslator(const boost::program_options::variables_map& conf);
void SetSupplementalGrammar(const std::string& grammar);
- void SetSentenceGrammar(const std::string& grammar);
+ void SetSentenceGrammarFromString(const std::string& grammar);
virtual std::string GetDecoderType() const;
protected:
bool TranslateImpl(const std::string& src,