summaryrefslogtreecommitdiff
path: root/decoder/translator.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2010-12-12 15:32:19 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2010-12-12 15:32:19 -0500
commit8c16b9384e8b85abf9e51bc670e548bf5cd4a0c5 (patch)
tree83cb68bb8c884fcf14aa33eddf88f428ad60f807 /decoder/translator.h
parentb8f314dddda3d440164e4772830e3c951ba06ee4 (diff)
facility for adding programmitically generated grammars
Diffstat (limited to 'decoder/translator.h')
-rw-r--r--decoder/translator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/translator.h b/decoder/translator.h
index 6b0a02e4..9d6dd97d 100644
--- a/decoder/translator.h
+++ b/decoder/translator.h
@@ -39,6 +39,7 @@ class Translator {
// Free any sentence-specific resources
void SentenceComplete();
+ virtual std::string GetDecoderType() const;
protected:
virtual bool TranslateImpl(const std::string& src,
SentenceMetadata* smeta,
@@ -55,6 +56,8 @@ class SCFGTranslatorImpl;
class SCFGTranslator : public Translator {
public:
SCFGTranslator(const boost::program_options::variables_map& conf);
+ void SetSupplementalGrammar(const std::string& grammar);
+ virtual std::string GetDecoderType() const;
protected:
bool TranslateImpl(const std::string& src,
SentenceMetadata* smeta,