Class WordClusterDictionary
java.lang.Object
opennlp.tools.util.featuregen.WordClusterDictionary
- All Implemented Interfaces:
opennlp.tools.util.model.SerializableArtifact
public class WordClusterDictionary
extends Object
implements opennlp.tools.util.model.SerializableArtifact
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionRead word2vec and clark clustering style lexicons. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> lookupToken(String string) voidserialize(OutputStream out)
-
Constructor Details
-
WordClusterDictionary
Read word2vec and clark clustering style lexicons.- Parameters:
in- theInputStreamto read from.- Throws:
IOException- Thrown if IO errors occurred during read.
-
-
Method Details
-
lookupToken
-
serialize
- Throws:
IOException
-
getArtifactSerializerClass
- Specified by:
getArtifactSerializerClassin interfaceopennlp.tools.util.model.SerializableArtifact
-