Interface IAlignableTranslationMemory
Represents a translation memory.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public interface IAlignableTranslationMemory : ITranslationMemory2015, ITranslationMemory, ITranslationProvider
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 |
---|---|
System.Int32 |
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 |
---|---|
System.Boolean |
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 |
---|---|
System.Int32 |
UnalignedTranslationUnitCount
Gets the number of TUs that do not have fine-grained alignment information.
Declaration
int UnalignedTranslationUnitCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
AlignTranslationUnits(Boolean, Boolean, ref RegularIterator)
Performs fine-grained alignment on translation units
Declaration
bool AlignTranslationUnits(bool unalignedOnly, bool unalignedOrPostdatedOnly, ref RegularIterator iter)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | unalignedOnly | If true, will only operate on translation units that do not already have any alignment information |
System.Boolean | unalignedOrPostdatedOnly | If true, will only operate on translation units that do not already have any alignment information or are postdated (see remarks). In this case, |
RegularIterator | iter |
Returns
Type | Description |
---|---|
System.Boolean | True if there are more translation units to process, false otherwise |
Remarks
An aligned, postdated TU is one that has been aligned, but was added to the TM after the translation model used for alignment was built.
AlignTranslationUnits(Boolean, Boolean, CancellationToken, IProgress<Int32>)
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 |
---|---|---|
System.Boolean | unalignedOnly | |
System.Boolean | unalignedOrPostdatedOnly | |
System.Threading.CancellationToken | token | |
System.IProgress<System.Int32> | progress |
ClearAlignmentData()
Deletes any fine-grained alignment data from the TM
Declaration
void ClearAlignmentData()
MeasureModelFitness(ref RegularIterator, Boolean)
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 | |
System.Boolean | postdatedOrUnalignedOnly |
Returns
Type | Description |
---|---|
TranslationModelFitness |