Example usage for Java opennlp.tools.util Span fields, constructors, methods, implement or subclass
The text is from its open source code.
Span(int s, int e) Initializes a new Span Object. | |
Span(Span span, int offset) Initializes a new Span object with an existing Span which is shifted by an offset. | |
Span(Span span, double prob) Creates a new immutable span based on an existing span, where the existing span did not include the prob | |
Span(int s, int e, String type) Initializes a new Span Object. | |
Span(int s, int e, double prob) |
int | compareTo(Span s) Compares the specified span to the current span. |
boolean | contains(Span s) Returns true if the specified span is contained by this span. |
boolean | contains(int index) Returns true if the specified index is contained inside this span. |
boolean | crosses(Span s) Returns true is the specified span crosses this span. |
boolean | equals(Object o) Checks if the specified span is equal to the current span. |
CharSequence | getCoveredText(CharSequence text) Retrieves the string covered by the current span of the specified text. |
int | getEnd() Return the end of a span. |
int | getStart() Return the start of a span. |
String | getType() Retrieves the type of the span. |
boolean | intersects(Span s) Returns true if the specified span intersects with this span. |
String[] | spansToStrings(Span[] spans, CharSequence s) Converts an array of Span s to an array of String s. |
String[] | spansToStrings(Span[] spans, String[] tokens) |
boolean | startsWith(Span s) Returns true if the specified span is the begin of this span and the specified span is contained in this span. |