Package opennlp.tools.dictionary
Class Index
java.lang.Object
opennlp.tools.dictionary.Index
This classes indexes
string lists. This makes it possible
to check if a certain token is contained in at least one of the
StringLists.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if at least oneStringListcontains the specifiedtoken.
-
Constructor Details
-
Index
- Parameters:
tokenLists- The iterableStringListelements.
-
-
Method Details
-
contains
Checks if at least oneStringListcontains the specifiedtoken.- Parameters:
token- The element to check for.- Returns:
trueif the token is contained,falseotherwise.
-