Class Entry
- java.lang.Object
-
- opennlp.tools.dictionary.serializer.Entry
-
public class Entry extends Object
AnEntry
is aStringList
which can optionally be mapped to attributes.entries
are 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 Attributes
getAttributes()
StringList
getTokens()
-
-
-
Constructor Detail
-
Entry
public Entry(StringList tokens, Attributes attributes)
Initializes anEntry
.- Parameters:
tokens
- The tokens to keep.attributes
- The (optional)Attributes
to set.
-
-
Method Detail
-
getTokens
public StringList getTokens()
- Returns:
- Retrieves the tokens.
-
getAttributes
public Attributes getAttributes()
- Returns:
- Retrieves the
Attributes
.
-
-