public interface SequenceCodec<T>
Modifier and Type | Method and Description |
---|---|
boolean |
areOutcomesCompatible(String[] outcomes)
Checks if the outcomes of the model are compatible with the codec.
|
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[] names,
int length)
Encodes Span objects into a sequence of T objects.
|
Span[] decode(List<T> c)
c
- T[] encode(Span[] names, int length)
names
- length
- SequenceValidator<T> createSequenceValidator()
boolean areOutcomesCompatible(String[] outcomes)
outcomes
- all possible model outcomesCopyright © 2021 The Apache Software Foundation. All rights reserved.