public class Hit extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
annotationSetName
Annotation Set Name - the annotation set this Hit belongs to
|
protected String |
documentID
Document ID - the document this Hit belongs to
|
protected int |
endOffset
End Offset of the found pattern
|
protected String |
queryString
Query that matches with this instance of Hit.
|
protected int |
startOffset
Start OFfset of the found pattern
|
Constructor and Description |
---|
Hit(String docID,
String annotationSetName,
int startOffset,
int endOffset,
String queryString)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationSetName()
Returns the annotation set this pattern belongs to.
|
String |
getDocumentID()
Returns the document ID
|
int |
getEndOffset()
Returns the end offset of the matching part (query matched part)
|
String |
getQueryString()
Returns the query for which the current pattern was matched
|
int |
getStartOffset()
Returns the start offset of the matching part (query matched part)
|
protected int startOffset
protected int endOffset
protected String documentID
protected String annotationSetName
protected String queryString
public int getStartOffset()
public int getEndOffset()
public String getDocumentID()
public String getQueryString()
public String getAnnotationSetName()
Copyright © 2024 GATE. All rights reserved.