opennlp.tools.dictionary.serializer
Class Entry

java.lang.Object
  extended by opennlp.tools.dictionary.serializer.Entry

public class Entry
extends Object

An Entry is a StringList which can optionally be mapped to attributes. Entrys is a read and written by the DictionarySerializer.

See Also:
DictionarySerializer, Attributes

Constructor Summary
Entry(StringList tokens, Attributes attributes)
          Initializes the current instance.
 
Method Summary
 Attributes getAttributes()
          Retrieves the Attributes.
 StringList getTokens()
          Retrieves the Tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entry

public Entry(StringList tokens,
             Attributes attributes)
Initializes the current instance.

Parameters:
tokens -
attributes -
Method Detail

getTokens

public StringList getTokens()
Retrieves the Tokens.

Returns:
the Tokens

getAttributes

public Attributes getAttributes()
Retrieves the Attributes.

Returns:
the Attributes


Copyright © 2010. All Rights Reserved.