Package opennlp.tools.dictionary
Class Index
java.lang.Object
opennlp.tools.dictionary.Index
This classes indexes
StringLists. This makes it possible
to check if a certain token is contained in at least one of the
StringLists.-
Constructor Summary
ConstructorsConstructorDescriptionIndex(Iterator<StringList> tokenLists) Initializes the current instance with the givenStringListIterator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if at leat oneStringListcontains the given token.
-
Constructor Details
-
Index
Initializes the current instance with the givenStringListIterator.- Parameters:
tokenLists-
-
-
Method Details
-
contains
Checks if at leat oneStringListcontains the given token.- Parameters:
token-- Returns:
- true if the token is contained otherwise false.
-