Package opennlp.tools.formats.conllu
Klasse ConlluWordLine
java.lang.Object
opennlp.tools.formats.conllu.ConlluWordLine
-
Methodenübersicht
-
Methodendetails
-
getId
- Gibt zurück:
- Retrieves the word index. An Integer starting at
1
for each new sentence; may be a range for multiword tokens; may be a decimal number for empty nodes.
-
getForm
- Gibt zurück:
- Retrieves the word form or punctuation symbol.
-
getLemma
- Gibt zurück:
- Retrieves the lemma or stem of the word form.
-
getPosTag
- Parameter:
tagset
- Thetype of tag
to retrieve, either universal (ConlluTagset.U
) or language specific (ConlluTagset.X
).- Gibt zurück:
- Retrieves the Universal part-of-speech tag or the language-specific part-of-speech tag; underscore if not available.
- Löst aus:
IllegalStateException
- Thrown if a non-supportedConlluTagset
was specified.
-
getFeats
- Gibt zurück:
- Retrieves morphological features from the universal feature inventory or from a defined language-specific extension; underscore if not available.
-
getHead
- Gibt zurück:
- Retrieves the head of the current word, which is either a value of ID or zero (0).
-
getDeprel
- Gibt zurück:
- Retrieves the Universal dependency relation to the HEAD (root if HEAD = 0) or a defined language-specific subtype of one.
-
getDeps
- Gibt zurück:
- Retrieves the enhanced dependency graph in the form of a list of head-deprel pairs.
-
getMisc
- Gibt zurück:
- Retrieves any other annotation.
-