|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dictionary
Dictionary interface to work with a dictionary. The interface defines methods to check if a word or multi-word is available in the dictionary and to match tokens against the dictionary.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean contains(java.lang.String word)
word
- word to look for
boolean contains(java.lang.String[] multiWord)
multiWord
- multi word to look for
DictionaryMatch matchEntry(int pos, org.apache.uima.cas.text.AnnotationFS[] annotFSs, FeaturePathInfo featPathInfo)
pos
- current array positionannotFSs
- input annotation FS arrayfeatPathInfo
- featurePath information for the matching
int getEntryCount()
java.lang.String getTypeName()
java.lang.String getLanguage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |