Class TrainedModelAligner
Inheritance
System.Object
TrainedModelAligner
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class TrainedModelAligner : IFineGrainedAligner
Constructors
TrainedModelAligner(TrainedTranslationModel)
Declaration
public TrainedModelAligner(TrainedTranslationModel model)
Parameters
Properties
BulkMode
Declaration
public bool BulkMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Align(IEnumerable<IAlignableContentPair>)
Declaration
public bool Align(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Align(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
public 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>)
Declaration
public AlignResult[] AlignEx(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
AlignEx(IEnumerable<IAlignableContentPair>, CancellationToken, IProgress<Int32>)
Declaration
public 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
public bool[] CanAlign(IEnumerable<IAlignableContentPair> pairs)
Parameters
Returns
Type |
Description |
System.Boolean[] |
|
SetErrorLogger(Action<Exception, String>)
Declaration
public void SetErrorLogger(Action<Exception, string> logger)
Parameters
Type |
Name |
Description |
System.Action<System.Exception, System.String> |
logger |
|
Implements