|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Span (int start, int end) | |
| int | size () |
| List< Span > | getSubSpans () |
| List< Span > | getSubSpans (int max) |
| boolean | strictlyContainedIn (Span o) |
| boolean | disjointFrom (Span o) |
| String | toString () |
| Iterator< Integer > | iterator () |
| int | compareTo (Span o) |
| boolean | equals (Object o) |
| int | hashCode () |
Public Attributes | |
| int | start |
| int | end |
Represents a span with an inclusive starting index and an exclusive ending index.
| joshua.corpus.Span.Span | ( | int | start, |
| int | end | ||
| ) |
Constructs a new span with the given inclusive starting and exclusive ending indices.
| start | Inclusive starting index of this span. |
| end | Exclusive ending index of this span. |
| int joshua.corpus.Span.compareTo | ( | Span | o | ) |
| boolean joshua.corpus.Span.disjointFrom | ( | Span | o | ) |
| boolean joshua.corpus.Span.equals | ( | Object | o | ) |
| List<Span> joshua.corpus.Span.getSubSpans | ( | ) |
Returns all subspans of the given Span.
| List<Span> joshua.corpus.Span.getSubSpans | ( | int | max | ) |
| int joshua.corpus.Span.hashCode | ( | ) |
| Iterator<Integer> joshua.corpus.Span.iterator | ( | ) |
| int joshua.corpus.Span.size | ( | ) |
Returns the length of the span.
span.end - span.start. | boolean joshua.corpus.Span.strictlyContainedIn | ( | Span | o | ) |
| String joshua.corpus.Span.toString | ( | ) |
Exclusive ending index of this span.
Inclusive starting index of this span.