public class StringSpan extends Token implements Span
| Constructor and Description |
|---|
StringSpan(CharSequence doc,
int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDocument() |
int |
getEndIdx()
Returns an integer index identifying the end of this span.
|
int |
getStartIdx()
Returns an integer index identifying the start of this span.
|
Span |
intersection(Span r)
Returns a new span that is the intersection of this span and another.
|
boolean |
intersects(Span r) |
boolean |
isSubspan(Span r) |
String |
toString() |
getFeatures, getFeatureValue, getNumericProperty, getProperties, getProperty, getText, hasProperty, setFeatures, setFeatureValue, setNumericProperty, setProperties, setProperty, setText, toFeatureVectorpublic StringSpan(CharSequence doc, int start, int end)
public Span intersection(Span r)
Spanintersection in interface Spanpublic Object getDocument()
getDocument in interface Spanpublic boolean intersects(Span r)
intersects in interface Spanpublic int getStartIdx()
SpangetStartIdx in interface Spanpublic int getEndIdx()
SpanCopyright © 2019 JULIE Lab, Germany. All rights reserved.