diff options
author | Patrick Simianer <p@simianer.de> | 2013-09-20 20:01:03 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-09-20 20:01:03 +0200 |
commit | 73f2592edc0c8f510029e4834acd899751c85862 (patch) | |
tree | c7db5a6d797ccaf38c5693263a7cf6bcc2a60e13 /extractor/sampler.h | |
parent | 0893b546617e39f818a001a061c6c6b9b57ae1a5 (diff) |
loo
Diffstat (limited to 'extractor/sampler.h')
-rw-r--r-- | extractor/sampler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extractor/sampler.h b/extractor/sampler.h index be4aa1bb..30e747fd 100644 --- a/extractor/sampler.h +++ b/extractor/sampler.h @@ -2,6 +2,9 @@ #define _SAMPLER_H_ #include <memory> +#include <unordered_set> + +#include "data_array.h" using namespace std; @@ -20,7 +23,7 @@ class Sampler { virtual ~Sampler(); // Samples uniformly at most max_samples phrase occurrences. - virtual PhraseLocation Sample(const PhraseLocation& location) const; + virtual PhraseLocation Sample(const PhraseLocation& location, const unordered_set<int> blacklisted_sentence_ids, const shared_ptr<DataArray> source_data_array) const; protected: Sampler(); |