Package opennlp.tools.formats.masc
Klasse MascWord
java.lang.Object
opennlp.tools.util.Span
opennlp.tools.formats.masc.MascWord
- Alle implementierten Schnittstellen:
Serializable
,Comparable<Span>
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMascWord
(int s, int e, int id) Holds one of MASC's quarks, that is: basic-level units (may be sub-word). -
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
-
MascWord
public MascWord(int s, int e, int id) Holds one of MASC's quarks, that is: basic-level units (may be sub-word).- Parameter:
s
- The beginning of the word in the corpus file. Must be equal to or greater than0
.e
- The end of the word in the corpus file. Must be equal to or greater than0
and be greater thans
.id
- The id as assigned by the stand-off annotation.- Löst aus:
IllegalArgumentException
- Thrown if one of the parameters are invalid.
-
-
Methodendetails
-
getId
public int getId()
-