Class TranslationModel
Inheritance
System.Object
TranslationModel
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public abstract class TranslationModel : Object
Constructors
TranslationModel()
Declaration
protected TranslationModel()
Fields
_corpusIds
Declaration
protected List<AlignableCorpusId> _corpusIds
Field Value
_id
Declaration
protected TranslationModelId _id
Field Value
_modelDate
Declaration
protected Nullable<DateTime> _modelDate
Field Value
Type |
Description |
System.Nullable<System.DateTime> |
|
_name
Declaration
Field Value
Type |
Description |
System.String |
|
_srcCulture
Declaration
protected CultureCode _srcCulture
Field Value
Type |
Description |
Sdl.Core.Globalization.CultureCode |
|
_trgCulture
Declaration
protected CultureCode _trgCulture
Field Value
Type |
Description |
Sdl.Core.Globalization.CultureCode |
|
Properties
CorpusIds
Declaration
public IEnumerable<AlignableCorpusId> CorpusIds { get; }
Property Value
Id
Declaration
public TranslationModelId Id { get; }
Property Value
ModelType
Declaration
public abstract TranslationModelTypes ModelType { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
SourceCulture
Declaration
public CultureCode SourceCulture { get; }
Property Value
Type |
Description |
Sdl.Core.Globalization.CultureCode |
|
TargetCulture
Declaration
public CultureCode TargetCulture { get; }
Property Value
Type |
Description |
Sdl.Core.Globalization.CultureCode |
|
TranslationModelDate
Declaration
public Nullable<DateTime> TranslationModelDate { get; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Methods
BuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public abstract Task BuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
CanBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public abstract Task<bool> CanBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
MeasureModelFitnessAsync(List<IAlignableContentPair>)
Declaration
public abstract Task<TranslationModelFitness> MeasureModelFitnessAsync(List<IAlignableContentPair> pairs)
Parameters
Returns
OnProgress(TranslationModelProgressEventArgs)
Declaration
protected void OnProgress(TranslationModelProgressEventArgs progressEventArgs)
Parameters
OnProgress(TranslationModelProgressStage)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage)
Parameters
OnProgress(TranslationModelProgressStage, Int32)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber)
Parameters
OnProgress(TranslationModelProgressStage, Int32, Int32)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber, int limit)
Parameters
OnProgress(Object, TranslationModelProgressEventArgs)
Declaration
protected void OnProgress(object sender, TranslationModelProgressEventArgs progressEventArgs)
Parameters
ShouldBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public abstract Task<bool> ShouldBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Events
Progress
Declaration
public event EventHandler<TranslationModelProgressEventArgs> Progress
Event Type