summaryrefslogtreecommitdiff
path: root/extractor/matching.h
blob: 4c46559ecd337c6d528000bb5f3933ad937bffaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _MATCHING_H_
#define _MATCHING_H_

#include <memory>
#include <vector>

using namespace std;

struct Matching {
  Matching(vector<int>::iterator start, int len, int sentence_id);

  vector<int> Merge(const Matching& other, int num_subpatterns) const;

  vector<int> positions;
  int sentence_id;
};

#endif