public class LuceneQueryResult extends Object
Constructor and Description |
---|
LuceneQueryResult(Object docID,
String annotationSetName,
List<?> firstTermPositions,
List<Integer> patternLength,
int queryType,
List<List<PatternAnnotation>> gateAnnotations,
String query)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationSetName()
Gets the annotation set Name for this result
|
Object |
getDocumentID() |
List<?> |
getFirstTermPositions() |
List<List<PatternAnnotation>> |
getGateAnnotations()
Gets the GateAnnotations for each pattern.
|
String |
getQuery()
Returns the main query.
|
int |
getQueryType() |
List<Integer> |
patternLength()
Returns an arraylist which for each pattern contains a number of
annotation in it.
|
public LuceneQueryResult(Object docID, String annotationSetName, List<?> firstTermPositions, List<Integer> patternLength, int queryType, List<List<PatternAnnotation>> gateAnnotations, String query)
docID
- - ID of the documentfirstTermPositions
- - Position of the first termspatternLength
- queryType
- gateAnnotations
- query
- public int getQueryType()
public Object getDocumentID()
public List<?> getFirstTermPositions()
public List<Integer> patternLength()
public List<List<PatternAnnotation>> getGateAnnotations()
public String getQuery()
public String getAnnotationSetName()
Copyright © 2024 GATE. All rights reserved.