diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-12 15:32:19 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-12 15:32:19 -0500 |
commit | 8c16b9384e8b85abf9e51bc670e548bf5cd4a0c5 (patch) | |
tree | 83cb68bb8c884fcf14aa33eddf88f428ad60f807 /decoder/decoder.h | |
parent | b8f314dddda3d440164e4772830e3c951ba06ee4 (diff) |
facility for adding programmitically generated grammars
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r-- | decoder/decoder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/decoder.h b/decoder/decoder.h index abaf3740..813400e3 100644 --- a/decoder/decoder.h +++ b/decoder/decoder.h @@ -29,6 +29,11 @@ struct Decoder { void SetId(int id); ~Decoder(); const boost::program_options::variables_map& GetConf() const { return conf; } + + // add grammar rules (currently only supported by SCFG decoders) + // 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); private: boost::program_options::variables_map conf; boost::shared_ptr<DecoderImpl> pimpl_; |