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

#include <memory>
#include <vector>

using namespace std;

struct PhraseLocation {
  PhraseLocation(int sa_low = -1, int sa_high = -1);

  PhraseLocation(shared_ptr<vector<int> > matchings, int num_subpatterns);

  bool IsEmpty();

  friend bool operator==(const PhraseLocation& a, const PhraseLocation& b);

  int sa_low, sa_high;
  shared_ptr<vector<int> > matchings;
  int num_subpatterns;
};

#endif