ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.distance
Class EditOperation.Insert

java.lang.Object
  extended by org.schwiebert.abl4j.distance.EditOperation.Insert
All Implemented Interfaces:
EditOperation
Enclosing interface:
EditOperation

public static final class EditOperation.Insert
extends Object
implements EditOperation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.schwiebert.abl4j.distance.EditOperation
EditOperation.Biased, EditOperation.Default, EditOperation.Delete, EditOperation.Insert, EditOperation.SubDis, EditOperation.Substitute
 
Field Summary
protected  int begin1
           
protected  int begin2
           
protected  int end1
           
protected  int end2
           
 
Constructor Summary
EditOperation.Insert(int b1, int e1, int b2, int e2)
           
 
Method Summary
 Pair<Float,EditOperation> gamma(Pair<Integer,Integer> pair)
          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)
 Pair<Integer,Integer> nextCoordinates(Pair<Integer,Integer> p)
          return the next coordinates (when the operation is applied)
 Pair<Integer,Integer> previousCoordinates(Pair<Integer,Integer> p)
          return the previous coordinates (when the operation was applied)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

begin1

protected final int begin1

end1

protected final int end1

begin2

protected final int begin2

end2

protected final int end2
Constructor Detail

EditOperation.Insert

public EditOperation.Insert(int b1,
                            int e1,
                            int b2,
                            int e2)
Method Detail

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

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert