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