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