Package net.sf.okapi.steps.gcaligner
Class AlignmentFunction<T>
- java.lang.Object
-
- net.sf.okapi.steps.gcaligner.AlignmentFunction<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
DpFunction<T>
public class AlignmentFunction<T> extends Object implements DpFunction<T>
SegmentAlignmentFunction implements DpFunction. The class is used to align source and target segments. The type of the alignment element is PageTmTuv.
-
-
Constructor Summary
Constructors Constructor Description AlignmentFunction(LocaleId p_sourceLocale, LocaleId p_targetLocale, List<AlignmentScorer<T>> scorerList, Penalties penalties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetCellScore(int p_xPos, int p_yPos, DpMatrix<T> p_matrix)Set the score to DpMatrixCell at the specified location of the matrix.
-
-
-
Method Detail
-
setCellScore
public void setCellScore(int p_xPos, int p_yPos, DpMatrix<T> p_matrix)Set the score to DpMatrixCell at the specified location of the matrix.- Specified by:
setCellScorein interfaceDpFunction<T>- Parameters:
p_xPos- X index of the matrix.p_yPos- Y index of the matrix.p_matrix- matrix
-
-