Package opennlp.tools.dictionary
Class Index
- java.lang.Object
-
- opennlp.tools.dictionary.Index
-
public class Index extends Object
This classes indexesstring lists
. 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(Iterator<StringList> tokenLists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String token)
Checks if at least oneStringList
contains the specifiedtoken
.
-
-
-
Constructor Detail
-
Index
public Index(Iterator<StringList> tokenLists)
- Parameters:
tokenLists
- The iterableStringList
elements.
-
-
Method Detail
-
contains
public boolean contains(String token)
Checks if at least oneStringList
contains the specifiedtoken
.- Parameters:
token
- The element to check for.- Returns:
true
if the token is contained,false
otherwise.
-
-