summaryrefslogtreecommitdiff
path: root/decoder/incremental.h
blob: 46b4817bd34bece5428fd509488ade671df427c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef INCREMENTAL_H_
#define INCREMENTAL_H_

#include "weights.h"
#include <vector>

class Hypergraph;

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_