public class WordClusterDictionary extends Object implements SerializableArtifact
Modifier and Type | Class and Description |
---|---|
static class |
WordClusterDictionary.WordClusterDictionarySerializer |
Constructor and Description |
---|
WordClusterDictionary(InputStream in)
Read word2vec and clark clustering style lexicons.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getArtifactSerializerClass()
Retrieves the class which can serialize and recreate this artifact.
|
String |
lookupToken(String string) |
void |
serialize(OutputStream out) |
public WordClusterDictionary(InputStream in) throws IOException
in
- the inputstreamIOException
- the io exceptionpublic void serialize(OutputStream out) throws IOException
IOException
public Class<?> getArtifactSerializerClass()
SerializableArtifact
getArtifactSerializerClass
in interface SerializableArtifact
Copyright © 2017 The Apache Software Foundation. All rights reserved.