Interface IAlignableTranslationMemory
Represents a translation memory.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public interface IAlignableTranslationMemory : ITranslationMemory2015, ITranslationMemory, ITranslationProvider, ISupportPlaceables
Properties
AlignedPredatedTranslationUnitCount
Gets the number of TUs that are postdated (added after creation of the model they were aligned with) and are now predated (a model exists created after they were added)
Declaration
int AlignedPredatedTranslationUnitCount { get; }
Property Value
Type | Description |
---|---|
int |
AlignerDefinition
Gets the AlignerDefinition that has been set for this TM, or null if there is none
Declaration
AlignerDefinition AlignerDefinition { get; }
Property Value
Type | Description |
---|---|
AlignerDefinition |
FGASupport
Returns the status of fine-grained-alignment support for the TM
Declaration
FGASupport FGASupport { get; }
Property Value
Type | Description |
---|---|
FGASupport |
ShouldAlign
Indicates whether 'quick' alignment (i.e. alignment of any unaligned TUs, plus postdated TUs for which a newer model is now available) is recommended
Declaration
bool ShouldAlign { get; }
Property Value
Type | Description |
---|---|
bool |
TranslationUnitNewerThanModelCount
Gets the number of TUs that have been added subsequent to the translation model being built
Declaration
int TranslationUnitNewerThanModelCount { get; }
Property Value
Type | Description |
---|---|
int |
UnalignedTranslationUnitCount
Gets the number of TUs that do not have fine-grained alignment information.
Declaration
int UnalignedTranslationUnitCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
AlignTranslationUnits(bool, bool, CancellationToken, IProgress<int>)
Performs bulk fine-grained alignment on translation units in a TM
Declaration
void AlignTranslationUnits(bool unalignedOnly, bool unalignedOrPostdatedOnly, CancellationToken token, IProgress<int> progress)
Parameters
Type | Name | Description |
---|---|---|
bool | unalignedOnly | |
bool | unalignedOrPostdatedOnly | |
CancellationToken | token | |
IProgressint | progress |
ClearAlignmentData()
Deletes any fine-grained alignment data from the TM
Declaration
void ClearAlignmentData()
MeasureModelFitness(ref RegularIterator, bool)
Measures how well the model 'fits' the TM content, by counting out-of-vocabulary words
Declaration
TranslationModelFitness MeasureModelFitness(ref RegularIterator iterator, bool postdatedOrUnalignedOnly)
Parameters
Type | Name | Description |
---|---|---|
RegularIterator | iterator | |
bool | postdatedOrUnalignedOnly |
Returns
Type | Description |
---|---|
TranslationModelFitness |