Interface IFineGrainedAligner
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public interface IFineGrainedAligner
Properties
BulkMode
Declaration
bool BulkMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Align(IEnumerable<IAlignableContentPair>)
Performs alignment on the pairs provided - any 'native' alignments should be provided by the corpus
Declaration
bool Align(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Boolean |
True if the pairs were aligned, false if alignment was not possible (e.g. model not yet built)
|
Align(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
bool Align(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.Boolean |
|
AlignEx(IEnumerable<IAlignableContentPair>)
Same functionality as Align but with detailed result codes for each pair processed.
Declaration
AlignResult[] AlignEx(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
AlignEx(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
AlignResult[] AlignEx(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
CanAlign(IEnumerable<IAlignableContentPair>)
Declaration
bool[] CanAlign(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Boolean[] |
|
SetErrorLogger(Action<Exception, String>)
Provides an implementation of an error logger for the aligner. In exception cases, the aligner may invoke
the implementation, providing either an Exception object, a string, or both.
Declaration
void SetErrorLogger(Action<Exception, string> logger)
Parameters
Type |
Name |
Description |
System.Action<System.Exception, System.String> |
logger |
The logger implementation
|