Java opennlp.tools.util Span fields, constructors, methods, implement or subclass

Example usage for Java opennlp.tools.util Span fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for opennlp.tools.util Span.

The text is from its open source code.

Constructor

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)

Method

intcompareTo(Span s)
Compares the specified span to the current span.
booleancontains(Span s)
Returns true if the specified span is contained by this span.
booleancontains(int index)
Returns true if the specified index is contained inside this span.
booleancrosses(Span s)
Returns true is the specified span crosses this span.
booleanequals(Object o)
Checks if the specified span is equal to the current span.
CharSequencegetCoveredText(CharSequence text)
Retrieves the string covered by the current span of the specified text.
intgetEnd()
Return the end of a span.
intgetStart()
Return the start of a span.
StringgetType()
Retrieves the type of the span.
booleanintersects(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)
booleanstartsWith(Span s)
Returns true if the specified span is the begin of this span and the specified span is contained in this span.