Package opennlp.tools.dictionary
Class Index
- java.lang.Object
-
- opennlp.tools.dictionary.Index
-
public class Index extends Object
This classes indexesStringLists. This makes it possible to check if a certain token is contained in at least one of theStringLists.
-
-
Constructor Summary
Constructors Constructor Description Index(Iterator<StringList> tokenLists)Initializes the current instance with the givenStringListIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String token)Checks if at leat oneStringListcontains the given token.
-
-
-
Constructor Detail
-
Index
public Index(Iterator<StringList> tokenLists)
Initializes the current instance with the givenStringListIterator.- Parameters:
tokenLists-
-
-
Method Detail
-
contains
public boolean contains(String token)
Checks if at leat oneStringListcontains the given token.- Parameters:
token-- Returns:
- true if the token is contained otherwise false.
-
-