opennlp.tools.dictionary
Class Index

java.lang.Object
  extended by opennlp.tools.dictionary.Index

public class Index
extends Object

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
Index(Iterator<StringList> tokenLists)
          Initializes the current instance with the given StringList Iterator.
 
Method Summary
 boolean contains(String token)
          Checks if at leat one StringList contains the given Token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index

public Index(Iterator<StringList> tokenLists)
Initializes the current instance with the given StringList Iterator.

Parameters:
tokenLists -
Method Detail

contains

public boolean contains(String token)
Checks if at leat one StringList contains the given Token.

Parameters:
token -
Returns:
true if the Token is contained otherwise false.


Copyright © 2010. All Rights Reserved.