Package opennlp.tools.namefind
Klasse BioCodec
java.lang.Object
opennlp.tools.namefind.BioCodec
- Alle implementierten Schnittstellen:
SequenceCodec<String>
The default
SequenceCodec implementation according to the BIO scheme:
- B: 'beginning' of a NE
- I: 'inside', the word is inside a NE
- O: 'outside', the word is a regular word outside a NE
- Siehe auch:
-
Feldübersicht
FelderVon Schnittstelle geerbte Felder opennlp.tools.util.SequenceCodec
DEFAULT_PREFIX -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanareOutcomesCompatible(String[] outcomes) Checks if theoutcomesof a model are compatible with thisSequenceCodec.Span[]String[]
-
Felddetails
-
START
- Siehe auch:
-
CONTINUE
- Siehe auch:
-
OTHER
- Siehe auch:
-
-
Konstruktordetails
-
BioCodec
public BioCodec()
-
-
Methodendetails
-
decode
Beschreibung aus Schnittstelle kopiert:SequenceCodec- Angegeben von:
decodein SchnittstelleSequenceCodec<String>- Parameter:
c- A list ofSequenceCodecto decode.- Gibt zurück:
- A
Spanarray encapsulating the decoded elements inc.
-
encode
Beschreibung aus Schnittstelle kopiert:SequenceCodec- Angegeben von:
encodein SchnittstelleSequenceCodec<String>- Parameter:
names- A list ofelementsto encode.length- The length to respect.- Gibt zurück:
- An array of
SequenceCodecto encode.
-
createSequenceValidator
- Angegeben von:
createSequenceValidatorin SchnittstelleSequenceCodec<String>- Gibt zurück:
- A
SequenceValidatorwhich can validate a sequence ofoutcomes.
-
areOutcomesCompatible
Beschreibung aus Schnittstelle kopiert:SequenceCodecChecks if theoutcomesof a model are compatible with thisSequenceCodec.- Angegeben von:
areOutcomesCompatiblein SchnittstelleSequenceCodec<String>- Parameter:
outcomes- The possible model outcomes.- Gibt zurück:
trueifoutcomesare type compatible,falseotherwise.
-