public class PredicateContext extends Object implements opennlp.tools.util.model.SerializableArtifact
PredicateContext resource containing
predicate and window feature information about that predicate.
The format of the file contains: predicate, context predicate
and region mark in that order. For example:
set\tbeen set .\t1| Modifier and Type | Class and Description |
|---|---|
static class |
PredicateContext.PredicateContextSerializer |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
dotInsideI
Turkish capital letter I with dot.
|
| Constructor and Description |
|---|
PredicateContext(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArtifactSerializerClass() |
List<List<String>> |
getPredicateContext() |
void |
serialize(OutputStream out)
Serialize the dictionary to original corpus format
|
public static final Pattern dotInsideI
public PredicateContext(InputStream in) throws IOException
IOExceptionpublic 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.