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
StringList
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if at least oneStringList
contains the specifiedtoken
.
-
Constructor Details
-
Index
- Parameters:
tokenLists
- The iterableStringList
elements.
-
-
Method Details
-
contains
Checks if at least oneStringList
contains the specifiedtoken
.- Parameters:
token
- The element to check for.- Returns:
true
if the token is contained,false
otherwise.
-