Package opennlp.tools.util.featuregen
Class WordClusterDictionary
java.lang.Object
opennlp.tools.util.featuregen.WordClusterDictionary
- All Implemented Interfaces:
- SerializableArtifact
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Constructor SummaryConstructorsConstructorDescriptionRead word2vec and clark clustering style lexicons.
- 
Method SummaryModifier and TypeMethodDescriptionClass<?> Retrieves the class which can serialize and recreate this artifact.lookupToken(String string) voidserialize(OutputStream out) 
- 
Constructor Details- 
WordClusterDictionaryRead word2vec and clark clustering style lexicons.- Parameters:
- in- the- InputStreamto read from.
- Throws:
- IOException- Thrown if IO errors occurred during read.
 
 
- 
- 
Method Details- 
lookupToken
- 
serialize- Throws:
- IOException
 
- 
getArtifactSerializerClassDescription copied from interface:SerializableArtifactRetrieves the class which can serialize and recreate this artifact.Note: The serializer class must have a public zero argument constructoror an exception is thrown during model serialization/loading.- Specified by:
- getArtifactSerializerClassin interface- SerializableArtifact
- Returns:
- The corresponding ArtifactSerializerclass.
 
 
-