public interface Alignment
0
and cannot take negative values.Modifier and Type | Method and Description |
---|---|
boolean |
areAligned(int src,
int trg)
Checks if the specified indexes are aligned.
|
boolean |
isAlignedSrc(int src)
Checks if the specified index in the source sentence is aligned.
|
boolean |
isAlignedTrg(int trg)
Checks if the specified index in the target sentence is aligned.
|
int |
maxAlignmentSrc(int src)
Returns the maximum index in the target sentence that is aligned with the specified index in the source sentence.
|
int |
maxAlignmentTrg(int trg)
Returns the maximum index in the source sentence that is aligned with the specified index in the target sentence.
|
int |
minAlignmentSrc(int src)
Returns the minimum index in the target sentence that is aligned with the specified index in the source sentence.
|
int |
minAlignmentTrg(int trg)
Returns the minimum index in the source sentence that is aligned with the specified index in the target sentence.
|
boolean areAligned(int src, int trg)
src
- the index in the source sentence.trg
- the index in the target sentence.true
if the specified indexes are aligned, false
otherwise.boolean isAlignedSrc(int src)
src
- the index in the source sentence.true
if the specified index in the source sentence is aligned with some index in the target sentence; false
otherwise.boolean isAlignedTrg(int trg)
trg
- the index in the target sentence.true
if the specified index in the target sentence is aligned with some index in the source sentence; false
otherwise.int minAlignmentSrc(int src)
src
- the index in the source sentence.-1
if it is not aligned.int maxAlignmentSrc(int src)
src
- the index in the source sentence.-1
if it is not aligned.int minAlignmentTrg(int trg)
trg
- the index in the target sentence.-1
if it is not aligned.int maxAlignmentTrg(int trg)
trg
- the index in the target sentence.-1
if it is not aligned.