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 | c01ce7e68fe62119a553235afcb241542da50d91 (patch) | |
tree | aac3498b84cfff76cca734a44dadd0271a2e8960 /decoder/incremental.h | |
parent | 198cc8c885a69b9bbe06c842d3a868583885c526 (diff) | |
parent | cbb1fafd55947ca288bbe508a9dfb36691ce80f6 (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_ |