public interface AlignmentScorer<T>
| Modifier and Type | Method and Description |
|---|---|
int |
contractionScore(T p_sourceTuv1,
T p_sourceTuv2,
T p_targetTuv)
Calculate the cost of contracting two source segments to one target segment.
|
int |
deletionScore(T p_sourceTuv)
Calculate the cost of deletion of source segment.
|
int |
expansionScore(T p_sourceTuv,
T p_targetTuv1,
T p_targetTuv2)
Calculate the cost of expanding one source segment to two target segments.
|
int |
insertionScore(T p_targetTuv)
Calculate the cost of insertion of target segment.
|
int |
meldingScore(T p_sourceTuv1,
T p_sourceTuv2,
T p_targetTuv1,
T p_targetTuv2)
Calculate the cost of melding of two source segments to two target segments.
|
void |
setLocales(LocaleId p_sourceLocale,
LocaleId p_targetLocale)
Set source and target locales.
|
int |
substitutionScore(T p_sourceTuv,
T p_targetTuv)
Calculate the cost of substitution of source segment by target segment.
|
void setLocales(LocaleId p_sourceLocale, LocaleId p_targetLocale)
p_sourceLocale - Source localep_targetLocale - Target localeint substitutionScore(T p_sourceTuv, T p_targetTuv)
p_sourceTuv - Source TUV. Source is in X sequence in the DP map.p_targetTuv - Target TUV. Target is in Y sequence in the DP map.int deletionScore(T p_sourceTuv)
p_sourceTuv - Source TUV. Source is in X sequence in the DP map.int insertionScore(T p_targetTuv)
p_targetTuv - Target TUV. Target is in Y sequence in the DP map.int contractionScore(T p_sourceTuv1, T p_sourceTuv2, T p_targetTuv)
p_sourceTuv1 - Source TUV1. Source is in X sequence in the DP map.p_sourceTuv2 - Source TUV2. Source is in X sequence in the DP map.p_targetTuv - Target TUV. Target is in Y sequence in the DP map.int expansionScore(T p_sourceTuv, T p_targetTuv1, T p_targetTuv2)
p_sourceTuv - Source TUV. Source is in X sequence in the DP map.p_targetTuv1 - Target TUV1. Target is in Y sequence in the DP map.p_targetTuv2 - Target TUV2. Target is in Y sequence in the DP map.int meldingScore(T p_sourceTuv1, T p_sourceTuv2, T p_targetTuv1, T p_targetTuv2)
p_sourceTuv1 - Source TUV1. Source is in X sequence in the DP map.p_sourceTuv2 - Source TUV2. Source is in X sequence in the DP map.p_targetTuv1 - Target TUV1. Target is in Y sequence in the DP map.p_targetTuv2 - Target TUV2. Target is in Y sequence in the DP map.Copyright © 2021. All rights reserved.