|
|||||||||||
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(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. |
Method Detail |
---|
boolean contains(String word)
word
- word to look for
boolean contains(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()
String getTypeName()
String getLanguage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |