public interface Dictionary
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String word)
Checks if the given word is available in the dictionary.
|
boolean |
contains(java.lang.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.
|
java.lang.String |
getLanguage()
Returns the language of this dictionary
|
java.lang.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(java.lang.String word)
word
- word to look forboolean contains(java.lang.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()
java.lang.String getTypeName()
java.lang.String getLanguage()
Copyright © 2013. All Rights Reserved.