File size: 615 Bytes
fd49381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
//
//  Match.h
//  fuzzy-match
//
//  Created by Hieu Hoang on 25/07/2012.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#ifndef fuzzy_match_Match_h
#define fuzzy_match_Match_h

namespace tmmt
{

/* data structure for n-gram match between input and corpus */

class Match
{
public:
  int input_start;
  int input_end;
  int tm_start;
  int tm_end;
  int min_cost;
  int max_cost;
  int internal_cost;
  Match( int is, int ie, int ts, int te, int min, int max, int i )
    :input_start(is), input_end(ie), tm_start(ts), tm_end(te), min_cost(min), max_cost(max), internal_cost(i) {
  }
};

}

#endif