Class TrainedTranslationModel
Inheritance
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, DateTime? modelDate, ICultureMetadataManager cultureMetadataManager)
Parameters
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
Overrides
CanBuildModelAsync(IAlignableCorpusManagerAsync)
Declaration
public override Task<bool> CanBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
Parameters
Returns
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
Overrides
TotalVocabSizeAsync(bool)
Declaration
public Task<int> TotalVocabSizeAsync(bool target)
Parameters
Type |
Name |
Description |
bool |
target |
|
Returns