diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-10-25 16:06:02 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-10-25 16:06:02 -0400 |
commit | 8682110b8162fad3bd59d8244fe3fd56fa5d354e (patch) | |
tree | d17ef352fdf5eab29888a22a0ffc7f273d533f4e /decoder/incremental.h | |
parent | df5445c3651fa1cc99ed4bdb682dcf57092dd4e2 (diff) | |
parent | b015577f42314efe57c1791c6d41885ef6b3487c (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/incremental.h')
-rw-r--r-- | decoder/incremental.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/decoder/incremental.h b/decoder/incremental.h index 180383ce..f791a626 100644 --- a/decoder/incremental.h +++ b/decoder/incremental.h @@ -6,6 +6,18 @@ class Hypergraph; -void PassToIncremental(const char *model_file, const std::vector<weight_t> &weights, unsigned int pop_limit, const Hypergraph &hg); +class IncrementalBase { + public: + static IncrementalBase *Load(const char *model_file, const std::vector<weight_t> &weights); + + virtual ~IncrementalBase(); + + virtual void Search(unsigned int pop_limit, const Hypergraph &hg) const = 0; + + protected: + IncrementalBase(const std::vector<weight_t> &weights); + + const std::vector<weight_t> &cdec_weights_; +}; #endif // _INCREMENTAL_H_ |