summaryrefslogtreecommitdiff
path: root/extractor/sampler.h
blob: 3c4e37f1941bb6b1713f2cc0b042d6385b5531d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _SAMPLER_H_
#define _SAMPLER_H_

#include <memory>
#include <unordered_set>

using namespace std;

namespace extractor {

class PhraseLocation;

/**
 * Base sampler class.
 */
class Sampler {
 public:
  virtual PhraseLocation Sample(
      const PhraseLocation& location,
      const unordered_set<int>& blacklisted_sentence_ids) const = 0;
};

} // namespace extractor

#endif