public interface Dictionary
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String word)
Checks if the given word is available in the dictionary.
|
boolean |
contains(String[] multiWord)
Checks if the given multi word is available in the dictionary.
|
int |
getEntryCount()
Returns the number of entries that are stored in the dictionary.
|
String |
getLanguage()
Returns the language of this dictionary
|
String |
getTypeName()
Returns the type name which should use to create annotations
|
DictionaryMatch |
matchEntry(int pos,
org.apache.uima.cas.text.AnnotationFS[] annotFSs,
FeaturePathInfo featPathInfo)
Checks if at the current position in the token array a match in the
dictionary is found.
|
boolean contains(String word)
word - word to look forboolean contains(String[] multiWord)
multiWord - multi word to look forDictionaryMatch matchEntry(int pos, org.apache.uima.cas.text.AnnotationFS[] annotFSs, FeaturePathInfo featPathInfo)
pos - current array positionannotFSs - input annotation FS arrayfeatPathInfo - featurePath information for the matchingint getEntryCount()
String getTypeName()
String getLanguage()
Copyright © 2006–2025 The Apache Software Foundation. All rights reserved.