Package opennlp.tools.formats.masc
Klasse MascToken
java.lang.Object
opennlp.tools.util.Span
opennlp.tools.formats.masc.MascToken
- Alle implementierten Schnittstellen:
Serializable
,Comparable<Span>
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.Span
compareTo, contains, contains, crosses, equals, getCoveredText, getEnd, getProb, getStart, getType, hashCode, intersects, length, spansToStrings, spansToStrings, startsWith, toString, trim
-
Konstruktordetails
-
MascToken
Initializes aMascToken
which may combine multiple quarks.- Parameter:
s
- The start of the token in the corpus file. Must be equal to or greater than0
.e
- The end of the token in the corpus file. Must be equal to or greater than0
and be greater thans
.pennId
- The ID of the token as assigned by the Penn stand-off annotation.pos
- The POS-tag.base
- The base form.quarks
- Thearray of Quarks
contained in the token.- Löst aus:
IllegalArgumentException
- Thrown if one of the parameters are invalid.
-
-
Methodendetails
-
getTokenId
public int getTokenId()- Gibt zurück:
- Retrieves the ID of the token.
-
getBase
- Gibt zurück:
- Retrieves the base form.
-
getPos
- Gibt zurück:
- Retrieves the POS tag.
-
getQuarks
- Gibt zurück:
- Retrieves quarks of the token.
-