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