Class TranslationModel
Inheritance
TranslationModel
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public abstract class TranslationModel
Constructors
TranslationModel()
Declaration
protected TranslationModel()
Fields
_corpusIds
Declaration
protected List<AlignableCorpusId> _corpusIds
Field Value
_id
Declaration
protected TranslationModelId _id
Field Value
_modelDate
Declaration
protected DateTime? _modelDate
Field Value
_name
Declaration
Field Value
_srcCulture
Declaration
protected CultureCode _srcCulture
Field Value
_trgCulture
Declaration
protected CultureCode _trgCulture
Field Value
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
SourceCulture
Declaration
public CultureCode SourceCulture { get; }
Property Value
TargetCulture
Declaration
public CultureCode TargetCulture { get; }
Property Value
TranslationModelDate
Declaration
public DateTime? TranslationModelDate { get; }
Property Value
Methods
BuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public abstract Task BuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
CanBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public abstract Task<bool> CanBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
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, int)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber)
Parameters
OnProgress(TranslationModelProgressStage, int, int)
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
Events
Progress
Declaration
public event EventHandler<TranslationModelProgressEventArgs> Progress
Event Type