public interface Searcher
Modifier and Type | Method and Description |
---|---|
void |
exportResults(File outputFile)
This method can be used for exporting results
|
int |
freq(List<Hit> patternsToSearchIn,
String annotationType,
boolean inMatchedSpan,
boolean inContext) |
int |
freq(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
String value,
boolean inMatchedSpan,
boolean inContext) |
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType) |
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName) |
int |
freq(String corpusToSearchIn,
String annotationSetToSearchIn,
String annotationType,
String featureName,
String value) |
Map<String,Integer> |
freqForAllValues(List<Hit> patternsToSearchIn,
String annotationType,
String feature,
boolean inMatchedSpan,
boolean inContext) |
Map<String,List<String>> |
getAnnotationTypesMap()
Returns the Map containing all possible values of AnnotationTypes
and Feature Values for each of this annotationType.
|
Hit[] |
getHits()
return the last seen hits once again
|
String[] |
getIndexedAnnotationSetNames()
Returns an containing names of the indexed annotation sets
* Each entry has the following format:
|
Map<String,Object> |
getParameters()
Returns the recently set parameters
|
String |
getQuery()
Query to search
|
Hit[] |
next(int numberOfHits)
Return the next numberOfHits -1 indicates all
|
boolean |
search(String query,
Map<String,Object> parameters)
Search method that allows searching
|
boolean search(String query, Map<String,Object> parameters) throws SearchException
SearchException
String getQuery()
Hit[] next(int numberOfHits) throws SearchException
SearchException
Map<String,List<String>> getAnnotationTypesMap()
String[] getIndexedAnnotationSetNames() throws SearchException
corpusName;annotationSetName
where, the corpusName is the name of the corpus the annotationSetName belongs to.SearchException
void exportResults(File outputFile)
Hit[] getHits()
int freq(String corpusToSearchIn, String annotationSetToSearchIn, String annotationType, String featureName, String value) throws SearchException
SearchException
int freq(String corpusToSearchIn, String annotationSetToSearchIn, String annotationType) throws SearchException
SearchException
int freq(String corpusToSearchIn, String annotationSetToSearchIn, String annotationType, String featureName) throws SearchException
SearchException
int freq(List<Hit> patternsToSearchIn, String annotationType, String feature, String value, boolean inMatchedSpan, boolean inContext) throws SearchException
SearchException
int freq(List<Hit> patternsToSearchIn, String annotationType, boolean inMatchedSpan, boolean inContext) throws SearchException
SearchException
Map<String,Integer> freqForAllValues(List<Hit> patternsToSearchIn, String annotationType, String feature, boolean inMatchedSpan, boolean inContext) throws SearchException
SearchException
Copyright © 2024 GATE. All rights reserved.