blob: fbb504ef7d083e3d56be92ff248019067aee58fa (
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
26
27
28
29
30
31
32
|
#ifndef _MATCHINGS_FINDER_H_
#define _MATCHINGS_FINDER_H_
#include <memory>
#include <string>
using namespace std;
namespace extractor {
class PhraseLocation;
class SuffixArray;
class MatchingsFinder {
public:
MatchingsFinder(shared_ptr<SuffixArray> suffix_array);
virtual ~MatchingsFinder();
virtual PhraseLocation Find(PhraseLocation& location, const string& word,
int offset);
protected:
MatchingsFinder();
private:
shared_ptr<SuffixArray> suffix_array;
};
} // namespace extractor
#endif
|