Package opennlp.tools.namefind
Klasse BilouCodec
java.lang.Object
opennlp.tools.namefind.BilouCodec
- Alle implementierten Schnittstellen:
SequenceCodec<String>
The default
SequenceCodec
implementation according to the BILOU
scheme.
- B: 'beginning' of a NE
- I: 'inside', the word is inside a NE
- L: 'last', the last (I) word inside a NE
- O: 'outside', the word is a regular word outside a NE
- U: 'unit', any standalone token following words outside of NE
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
static final String
static final String
static final String
static final String
Von Schnittstelle geerbte Felder opennlp.tools.util.SequenceCodec
DEFAULT_PREFIX
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
areOutcomesCompatible
(String[] outcomes) B requires CL or L, C requires BL, L requires B, O requires any valid combo/unit, U requires none.
Span[]
String[]
-
Felddetails
-
START
- Siehe auch:
-
CONTINUE
- Siehe auch:
-
LAST
- Siehe auch:
-
UNIT
- Siehe auch:
-
OTHER
- Siehe auch:
-
-
Konstruktordetails
-
BilouCodec
public BilouCodec()
-
-
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
B requires CL or L, C requires BL, L requires B, O requires any valid combo/unit, U requires none.
- Angegeben von:
areOutcomesCompatible
in SchnittstelleSequenceCodec<String>
- Parameter:
outcomes
- All potential model outcomes check.- Gibt zurück:
true
, if model outcomes are compatible,false
otherwise.
-