ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.distance
Interface EditOperation

All Known Implementing Classes:
EditOperation.Delete, EditOperation.Insert, EditOperation.SubDis, EditOperation.Substitute

public interface EditOperation

This interface contains the definition of an EditOperation as well as some default implementations of EditOperation.

Author:
Menno van Zaanen (menno@ics.mq.edu.au) (original C++ Version), Jeroen Geertzen (j.geertzen@uvt.nl) (modifications in C++ Version), Stephan Schwiebert (sschwieb@spinfo.uni-koeln.de) (Java-Implementation)

Nested Class Summary
static class EditOperation.Biased
           
static class EditOperation.Default
           
static class EditOperation.Delete
           
static class EditOperation.Insert
           
static class EditOperation.SubDis
           
static class EditOperation.Substitute
           
 
Method Summary
 Pair<Float,EditOperation> gamma(Pair<Integer,Integer> p)
          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)
 

Method Detail

gamma

Pair<Float,EditOperation> gamma(Pair<Integer,Integer> p)
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)


previousCoordinates

Pair<Integer,Integer> previousCoordinates(Pair<Integer,Integer> p)
return the previous coordinates (when the operation was applied)


nextCoordinates

Pair<Integer,Integer> nextCoordinates(Pair<Integer,Integer> p)
return the next coordinates (when the operation is applied)


ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert