Package opennlp.tools.util
Schnittstelle SequenceCodec<T>
- Typparameter:
T
- The generic type for the elements to handle.
- Alle bekannten Implementierungsklassen:
BilouCodec
,BioCodec
public interface SequenceCodec<T>
A codec for sequences of type
SequenceCodec
.
Defines methods to en- or decode, and validate.-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
areOutcomesCompatible
(String[] outcomes) Checks if theoutcomes
of a model are compatible with thisSequenceCodec
.Span[]
T[]
-
Felddetails
-
DEFAULT_PREFIX
- Siehe auch:
-
-
Methodendetails
-
decode
- Parameter:
c
- A list ofSequenceCodec
to decode.- Gibt zurück:
- A
Span
array encapsulating the decoded elements inc
.
-
encode
- Parameter:
names
- A list ofelements
to encode.length
- The length to respect.- Gibt zurück:
- An array of
SequenceCodec
to encode.
-
createSequenceValidator
SequenceValidator<T> createSequenceValidator()- Gibt zurück:
- A
SequenceValidator
which can validate a sequence ofoutcomes
.
-
areOutcomesCompatible
Checks if theoutcomes
of a model are compatible with thisSequenceCodec
.- Parameter:
outcomes
- The possible model outcomes.- Gibt zurück:
true
ifoutcomes
are type compatible,false
otherwise.
-