diff options
| author | Paul Baltescu <pauldb89@gmail.com> | 2013-02-14 23:17:15 +0000 | 
|---|---|---|
| committer | Paul Baltescu <pauldb89@gmail.com> | 2013-02-14 23:17:15 +0000 | 
| commit | 63b30ed9c8510da8c8e2f6a456576424fddacc0e (patch) | |
| tree | 1b5278fb5a4480b7f7a965bb6de8f6f9e9c4d333 /extractor/sampler.h | |
| parent | 0a53f7eca74c165b5ce1c238f1999ddf1febea55 (diff) | |
Working version of the grammar extractor.
Diffstat (limited to 'extractor/sampler.h')
| -rw-r--r-- | extractor/sampler.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/extractor/sampler.h b/extractor/sampler.h index 3b3e3a4d..9cf321fb 100644 --- a/extractor/sampler.h +++ b/extractor/sampler.h @@ -12,7 +12,12 @@ class Sampler {   public:    Sampler(shared_ptr<SuffixArray> suffix_array, int max_samples); -  PhraseLocation Sample(const PhraseLocation& location) const; +  virtual ~Sampler(); + +  virtual PhraseLocation Sample(const PhraseLocation& location) const; + + protected: +  Sampler();   private:    int Round(double x) const; | 
