Class TrainedTranslationModel
Inheritance
System.Object
TrainedTranslationModel
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class TrainedTranslationModel : TranslationModel
Constructors
Declaration
public TrainedTranslationModel(IChiSquaredTranslationModelStoreReadOnly store, string name, TranslationModelId id, List<AlignableCorpusId> corpusIds, CultureCode sourceCulture, CultureCode targetCulture, Nullable<DateTime> modelDate, ICultureMetadataManager cultureMetadataManager)
Parameters
Type |
Name |
Description |
IChiSquaredTranslationModelStoreReadOnly |
store |
|
System.String |
name |
|
TranslationModelId |
id |
|
System.Collections.Generic.List<AlignableCorpusId> |
corpusIds |
|
Sdl.Core.Globalization.CultureCode |
sourceCulture |
|
Sdl.Core.Globalization.CultureCode |
targetCulture |
|
System.Nullable<System.DateTime> |
modelDate |
|
Sdl.Core.Globalization.CultureMetadataManager.ICultureMetadataManager |
cultureMetadataManager |
|
Properties
ModelType
Declaration
public override TranslationModelTypes ModelType { get; }
Property Value
Overrides
Store
Declaration
public IChiSquaredTranslationModelStoreReadOnly Store { get; }
Property Value
Methods
BuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public override Task BuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
CanBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public override Task<bool> CanBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Overrides
MeasureModelFitnessAsync(List<IAlignableContentPair>)
Declaration
public override Task<TranslationModelFitness> MeasureModelFitnessAsync(List<IAlignableContentPair> pairs)
Parameters
Returns
Overrides
ShouldBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public override Task<bool> ShouldBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Overrides
TotalVocabSizeAsync(Boolean)
Declaration
public Task<int> TotalVocabSizeAsync(bool target)
Parameters
Type |
Name |
Description |
System.Boolean |
target |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|