public class POSDictionary extends Object implements opennlp.tools.util.model.SerializableArtifact
TabulatedFormat corpus and create an
automatic dictionary from it.| Modifier and Type | Class and Description |
|---|---|
static class |
POSDictionary.POSDictionarySerializer |
| Constructor and Description |
|---|
POSDictionary(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArtifactSerializerClass() |
String |
getMostFrequentTag(String word) |
com.google.common.collect.TreeMultimap<Integer,String> |
getOrderedMap(String word) |
void |
serialize(OutputStream out)
Serialize the dictionary to original corpus format
|
public POSDictionary(InputStream in) throws IOException
IOExceptionpublic com.google.common.collect.TreeMultimap<Integer,String> getOrderedMap(String word)
public void serialize(OutputStream out) throws IOException
out - the output streamIOException - if io problemspublic Class<?> getArtifactSerializerClass()
getArtifactSerializerClass in interface opennlp.tools.util.model.SerializableArtifactCopyright © 2016 IXA pipes. All rights reserved.