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