org.schwiebert.abl4j.distance
Class EditOperation.Substitute
java.lang.Object
org.schwiebert.abl4j.distance.EditOperation.Substitute
- All Implemented Interfaces:
- EditOperation
- Direct Known Subclasses:
- EditOperation.SubDis
- Enclosing interface:
- EditOperation
public static class EditOperation.Substitute
- extends Object
- implements EditOperation
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
begin1
protected final int begin1
end1
protected final int end1
begin2
protected final int begin2
end2
protected final int end2
sentence1
protected final ISentence sentence1
sentence2
protected final ISentence sentence2
EditOperation.Substitute
public EditOperation.Substitute(ISentence s1,
int b1,
int e1,
ISentence s2,
int b2,
int e2)
gamma
public Pair<Float,EditOperation> gamma(Pair<Integer,Integer> pair)
- Description copied from interface:
EditOperation
- return the gamma value of the operation (the pair of ints are indices in
the sentences and 1 is the first word in the sentence)
- Specified by:
gamma in interface EditOperation
previousCoordinates
public Pair<Integer,Integer> previousCoordinates(Pair<Integer,Integer> p)
- Description copied from interface:
EditOperation
- return the previous coordinates (when the operation was applied)
- Specified by:
previousCoordinates in interface EditOperation
nextCoordinates
public Pair<Integer,Integer> nextCoordinates(Pair<Integer,Integer> p)
- Description copied from interface:
EditOperation
- return the next coordinates (when the operation is applied)
- Specified by:
nextCoordinates in interface EditOperation
match
boolean match(Pair<Integer,Integer> p)
© 2007 Stephan Schwiebert