Class Entry
- java.lang.Object
-
- opennlp.tools.dictionary.serializer.Entry
-
public class Entry extends Object
AnEntryis aStringListwhich can optionally be mapped to attributes.entriesare read and written by theDictionaryEntryPersistor.- See Also:
DictionaryEntryPersistor,Attributes
-
-
Constructor Summary
Constructors Constructor Description Entry(StringList tokens, Attributes attributes)Initializes anEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesgetAttributes()StringListgetTokens()
-
-
-
Constructor Detail
-
Entry
public Entry(StringList tokens, Attributes attributes)
Initializes anEntry.- Parameters:
tokens- The tokens to keep.attributes- The (optional)Attributesto set.
-
-
Method Detail
-
getTokens
public StringList getTokens()
- Returns:
- Retrieves the tokens.
-
getAttributes
public Attributes getAttributes()
- Returns:
- Retrieves the
Attributes.
-
-