public class AlignerUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TRANSLATION_STRATEGY_MOST_FREQUENT |
static int |
TRANSLATION_STRATEGY_MOST_SPECIFIC |
static int |
TRANSLATION_STRATEGY_PRORATA |
Constructor and Description |
---|
AlignerUtils() |
Modifier and Type | Method and Description |
---|---|
static ContextVector |
translateVector(ContextVector sourceVector,
BilingualDictionary dictionary,
int translationStrategy,
TermIndex targetTermino)
Translates all
ContextVector components (i.e. its coTerms) into
the target language of this aligner by the mean of one of the available
strategy :
- TRANSLATION_STRATEGY_MOST_FREQUENT
- TRANSLATION_STRATEGY_PRORATA
- TRANSLATION_STRATEGY_EQUI_REPARTITION
- TRANSLATION_STRATEGY_MOST_SPECIFIC |
public static final int TRANSLATION_STRATEGY_PRORATA
public static final int TRANSLATION_STRATEGY_MOST_FREQUENT
public static final int TRANSLATION_STRATEGY_MOST_SPECIFIC
public static ContextVector translateVector(ContextVector sourceVector, BilingualDictionary dictionary, int translationStrategy, TermIndex targetTermino)
ContextVector
components (i.e. its coTerms) into
the target language of this aligner by the mean of one of the available
strategy :
- TRANSLATION_STRATEGY_MOST_FREQUENT
- TRANSLATION_STRATEGY_PRORATA
- TRANSLATION_STRATEGY_EQUI_REPARTITION
- TRANSLATION_STRATEGY_MOST_SPECIFIC
sourceVector
- The source context vector object to be translated into target languagedictionary
- The dico used in the translation processtranslationStrategy
- The translation strategy of the sourceVector
.
Two possible values: TRANSLATION_STRATEGY_MOST_FREQUENT
TRANSLATION_STRATEGY_PRORATA
TRANSLATION_STRATEGY_EQUI_REPARTITION
TRANSLATION_STRATEGY_MOST_SPECIFIC
BilingualDictionary