opennlp.tools.dictionary
Class Index

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

public class Index
extends java.lang.Object

This classes indexes TokenLists. This makes it possible to check if a certain Token is contained in at least one of the TokenLists.


Constructor Summary
Index(java.util.Iterator tokenLists)
          Initializes the current instance with the given TokenList Iterator.
 
Method Summary
 boolean contains(Token token)
          Checks if at leat one TokenList 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(java.util.Iterator tokenLists)
Initializes the current instance with the given TokenList Iterator.

Parameters:
tokenLists -
Method Detail

contains

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

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


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.