summaryrefslogtreecommitdiff
path: root/decoder/incremental.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-10-25 16:06:02 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-10-25 16:06:02 -0400
commit8682110b8162fad3bd59d8244fe3fd56fa5d354e (patch)
treed17ef352fdf5eab29888a22a0ffc7f273d533f4e /decoder/incremental.h
parentdf5445c3651fa1cc99ed4bdb682dcf57092dd4e2 (diff)
parentb015577f42314efe57c1791c6d41885ef6b3487c (diff)
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/incremental.h')
-rw-r--r--decoder/incremental.h14
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_