Package opennlp.tools.formats.masc
Class MascWord
java.lang.Object
opennlp.tools.util.Span
opennlp.tools.formats.masc.MascWord
- All Implemented Interfaces:
- Serializable,- Comparable<Span>
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMascWord(int s, int e, int id) Holds one of MASC's quarks, that is: basic-level units (may be sub-word).
- 
Method SummaryMethods inherited from class opennlp.tools.util.SpancompareTo, contains, contains, crosses, equals, getCoveredText, getEnd, getProb, getStart, getType, hashCode, intersects, length, spansToStrings, spansToStrings, startsWith, toString, trim
- 
Constructor Details- 
MascWordpublic MascWord(int s, int e, int id) Holds one of MASC's quarks, that is: basic-level units (may be sub-word).- Parameters:
- s- The beginning of the word in the corpus file. Must be equal to or greater than- 0.
- e- The end of the word in the corpus file. Must be equal to or greater than- 0and be greater than- s.
- id- The id as assigned by the stand-off annotation.
- Throws:
- IllegalArgumentException- Thrown if one of the parameters are invalid.
 
 
- 
- 
Method Details- 
getIdpublic int getId()
 
-