public interface SequenceLabelerCodec<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
areOutcomesCompatible(String[] outcomes)
Checks if the outcomes of the model are compatible with the codec.
|
opennlp.tools.util.SequenceValidator<T> |
createSequenceValidator()
Creates a sequence validator which can validate a sequence of outcomes.
|
Span[] |
decode(List<T> c)
Decodes a sequence T objects into Span objects.
|
T[] |
encode(Span[] sequences,
int length)
Encodes Span objects into a sequence of T objects.
|
Span[] decode(List<T> c)
c - the sequence of objectsT[] encode(Span[] sequences, int length)
sequences - the sequenceslength - the lengthopennlp.tools.util.SequenceValidator<T> createSequenceValidator()
boolean areOutcomesCompatible(String[] outcomes)
outcomes - all possible model outcomesCopyright © 2016 IXA pipes. All rights reserved.