Class TrainedModelAligner
Inheritance
System.Object
TrainedModelAligner
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class TrainedModelAligner : Object, IFineGrainedAligner
Constructors
Declaration
public TrainedModelAligner(TrainedTranslationModel model, ICultureMetadataManager cultureMetadataManager)
Parameters
Type |
Name |
Description |
TrainedTranslationModel |
model |
|
Sdl.Core.Globalization.CultureMetadataManager.ICultureMetadataManager |
cultureMetadataManager |
|
Methods
AlignAsync(IEnumerable<IAlignableContentPair>)
Declaration
public Task<bool> AlignAsync(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
AlignAsync(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
public Task<bool> AlignAsync(IEnumerable<IAlignableContentPair> pairs, CancellationToken token, IProgress<int> progress)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IAlignableContentPair> |
pairs |
|
System.Threading.CancellationToken |
token |
|
System.IProgress<System.Int32> |
progress |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
AlignExAsync(IEnumerable<IAlignableContentPair>)
Declaration
public Task<AlignResult[]> AlignExAsync(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<AlignResult[]> |
|
AlignExAsync(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
public Task<AlignResult[]> AlignExAsync(IEnumerable<IAlignableContentPair> pairs, CancellationToken token, IProgress<int> progress)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IAlignableContentPair> |
pairs |
|
System.Threading.CancellationToken |
token |
|
System.IProgress<System.Int32> |
progress |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<AlignResult[]> |
|
CanAlign(IEnumerable<IAlignableContentPair>)
Declaration
public bool[] CanAlign(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Boolean[] |
|
GetBulkMode()
Declaration
public bool GetBulkMode()
Returns
Type |
Description |
System.Boolean |
|
SetBulkModeAsync(Boolean)
Declaration
public Task SetBulkModeAsync(bool bulkMode)
Parameters
Type |
Name |
Description |
System.Boolean |
bulkMode |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
SetErrorLogger(Action<Exception, String>)
Declaration
public void SetErrorLogger(Action<Exception, string> logger)
Parameters
Type |
Name |
Description |
System.Action<System.Exception, System.String> |
logger |
|
Implements