public class SequenceModelResource extends Object implements opennlp.tools.util.model.SerializableArtifact
| Modifier and Type | Class and Description |
|---|---|
static class |
SequenceModelResource.SequenceModelResourceSerializer |
| Constructor and Description |
|---|
SequenceModelResource(InputStream in)
Construct the SequenceModelResource from the inputstream.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArtifactSerializerClass() |
String[] |
lemmatize(String[] tokens)
Lemmatize the current sentence.
|
Span[] |
seqToSpans(String[] tokens)
Tag the current sentence.
|
void |
serialize(OutputStream out)
Serialize this model into the overall Sequence model.
|
public SequenceModelResource(InputStream in) throws IOException
in - the input streamIOException - io exceptionpublic Span[] seqToSpans(String[] tokens)
tokens - the current sentencepublic String[] lemmatize(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 © 2017 IXA pipes. All rights reserved.