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 TypMethodeBeschreibungboolean
areOutcomesCompatible
(String[] outcomes) Checks if theoutcomes
of 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:
decode
in SchnittstelleSequenceCodec<String>
- Parameter:
c
- A list ofSequenceCodec
to decode.- Gibt zurück:
- A
Span
array encapsulating the decoded elements inc
.
-
encode
Beschreibung aus Schnittstelle kopiert:SequenceCodec
- Angegeben von:
encode
in SchnittstelleSequenceCodec<String>
- Parameter:
names
- A list ofelements
to encode.length
- The length to respect.- Gibt zurück:
- An array of
SequenceCodec
to encode.
-
createSequenceValidator
- Angegeben von:
createSequenceValidator
in SchnittstelleSequenceCodec<String>
- Gibt zurück:
- A
SequenceValidator
which can validate a sequence ofoutcomes
.
-
areOutcomesCompatible
Beschreibung aus Schnittstelle kopiert:SequenceCodec
Checks if theoutcomes
of a model are compatible with thisSequenceCodec
.- Angegeben von:
areOutcomesCompatible
in SchnittstelleSequenceCodec<String>
- Parameter:
outcomes
- The possible model outcomes.- Gibt zurück:
true
ifoutcomes
are type compatible,false
otherwise.
-