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 TypMethodeBeschreibungbooleanareOutcomesCompatible(String[] outcomes) Checks if theoutcomesof a model are compatible with thisSequenceCodec.Span[]T[]
-
Felddetails
-
DEFAULT_PREFIX
- Siehe auch:
-
-
Methodendetails
-
decode
- Parameter:
c- A list ofSequenceCodecto decode.- Gibt zurück:
- A
Spanarray encapsulating the decoded elements inc.
-
encode
- Parameter:
names- A list ofelementsto encode.length- The length to respect.- Gibt zurück:
- An array of
SequenceCodecto encode.
-
createSequenceValidator
SequenceValidator<T> createSequenceValidator()- Gibt zurück:
- A
SequenceValidatorwhich can validate a sequence ofoutcomes.
-
areOutcomesCompatible
Checks if theoutcomesof a model are compatible with thisSequenceCodec.- Parameter:
outcomes- The possible model outcomes.- Gibt zurück:
trueifoutcomesare type compatible,falseotherwise.
-