public class POSModelResource extends Object implements opennlp.tools.util.model.SerializableArtifact
| Modifier and Type | Class and Description |
|---|---|
static class |
POSModelResource.POSModelResourceSerializer |
| Constructor and Description |
|---|
POSModelResource(InputStream in)
Construct the POSModelResource from the inputstream.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArtifactSerializerClass() |
String[] |
posTag(String[] tokens)
POS tag the current sentence.
|
void |
serialize(OutputStream out)
Serialize the POS model into the NERC model.
|
public POSModelResource(InputStream in) throws IOException
in - the input streamIOException - io exceptionpublic String[] posTag(String[] tokens)
tokens - the current sentencepublic void serialize(OutputStream out) throws IOException
out - the output streamIOException - io exceptionpublic Class<?> getArtifactSerializerClass()
getArtifactSerializerClass in interface opennlp.tools.util.model.SerializableArtifactCopyright © 2016 IXA pipes. All rights reserved.