public class LemmaResource extends Object implements opennlp.tools.util.model.SerializableArtifact
| Modifier and Type | Class and Description |
|---|---|
static class |
LemmaResource.LemmaResourceSerializer |
| Constructor and Description |
|---|
LemmaResource(InputStream in)
Build the Lemma Dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArtifactSerializerClass() |
String |
lookUpLemma(String word,
String postag)
Look-up lemma in dictionary.
|
List<String> |
lookUpLemmaArray(String[] tokens,
String[] postags)
Look-up lemmas in dictionary.
|
void |
serialize(OutputStream out) |
public LemmaResource(InputStream in) throws IOException
in - the input streamIOException - the io exceptionpublic String lookUpLemma(String word, String postag)
word - the wordpostag - the postagpublic List<String> lookUpLemmaArray(String[] tokens, String[] postags)
tokens - the sentencepostags - the postags for each tokenpublic void serialize(OutputStream out) throws IOException
IOExceptionpublic Class<?> getArtifactSerializerClass()
getArtifactSerializerClass in interface opennlp.tools.util.model.SerializableArtifactCopyright © 2015 IXA pipes. All rights reserved.