diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-20 00:46:10 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-20 00:46:10 -0400 |
commit | 09d085e16f31b36b1177b313ee54414eb29d9082 (patch) | |
tree | 9b718b8129790860052ac35524b66b1645df847c /decoder/translator.h | |
parent | 30c3f2b7186e6dc19acb8856b280b8dd97d1f679 (diff) |
enable programmatic setting of grammar objects, cleanup of grammar handling
Diffstat (limited to 'decoder/translator.h')
-rw-r--r-- | decoder/translator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/translator.h b/decoder/translator.h index cfd3b08a..fc2bb760 100644 --- a/decoder/translator.h +++ b/decoder/translator.h @@ -58,8 +58,8 @@ class SCFGTranslatorImpl; class SCFGTranslator : public Translator { public: SCFGTranslator(const boost::program_options::variables_map& conf); - void SetSupplementalGrammar(const std::string& grammar); - void SetSentenceGrammarFromString(const std::string& grammar); + void AddSupplementalGrammar(GrammarPtr gp); + void AddSupplementalGrammarFromString(const std::string& grammar); virtual std::string GetDecoderType() const; protected: bool TranslateImpl(const std::string& src, |