Class ChiSquaredAligner
Inheritance
System.Object
ChiSquaredAligner
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class ChiSquaredAligner : Object, IFineGrainedAligner
Constructors
ChiSquaredAligner(ChiSquaredTranslationModel, AlignerSettings)
Declaration
public ChiSquaredAligner(ChiSquaredTranslationModel model, AlignerSettings alignerSettings)
Parameters
Declaration
public ChiSquaredAligner(ChiSquaredTranslationModel model, ICultureMetadataManager cultureMetadataManager, AlignerSettings alignerSettings)
Parameters
Fields
Declaration
protected readonly ICultureMetadataManager _cultureMetadataManager
Field Value
Type |
Description |
Sdl.Core.Globalization.CultureMetadataManager.ICultureMetadataManager |
|
_model
Declaration
protected ChiSquaredTranslationModel _model
Field Value
Properties
SupportsSynchronousAlign
Declaration
public bool SupportsSynchronousAlign { get; }
Property Value
Type |
Description |
System.Boolean |
|
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[]> |
|
AlignInternalAsync(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
protected virtual Task<AlignResult[]> AlignInternalAsync(IEnumerable<IAlignableContentPair> pairs, CancellationToken cancellationToken, IProgress<int> progress)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IAlignableContentPair> |
pairs |
|
System.Threading.CancellationToken |
cancellationToken |
|
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