This repository was archived by the owner on Feb 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.java
More file actions
60 lines (51 loc) · 1.33 KB
/
Copy pathEntity.java
File metadata and controls
60 lines (51 loc) · 1.33 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
public class Entity extends Annotation {
private int start_offset;
private int end_offset;
private String term;
Entity(String annotation_id,String type, int setStart_offset, int setEnd_offset, String term) {
super(annotation_id,type);
this.start_offset = setStart_offset;
this.end_offset = setEnd_offset;
this.term = term;
}
/**
* @return the start_offset
*/
public int getStart_offset() {
return start_offset;
}
/**
* @param start_offset the start_offset to set
*/
public void setStart_offset(int start_offset) {
this.start_offset = start_offset;
}
/**
* @return the end_offset
*/
public int getEnd_offset() {
return end_offset;
}
/**
* @param end_offset the end_offset to set
*/
public void setEnd_offset(int end_offset) {
this.end_offset = end_offset;
}
/**
* @return the term
*/
public String getTerm() {
return term;
}
/**
* @param term the term to set
*/
public void setTerm(String term) {
this.term = term;
}
@Override
public String toString() {
return super.toString() + "Entity{" + "start_offset=" + start_offset + ", end_offset=" + end_offset + ", term=" + term + '}';
}
}