Class TrainedTranslationModel
Inheritance
System.Object
TrainedTranslationModel
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class TrainedTranslationModel : TranslationModel
Constructors
TrainedTranslationModel(IChiSquaredTranslationModelStore, String, TranslationModelId, List<AlignableCorpusId>, CultureInfo, CultureInfo, Nullable<DateTime>)
Declaration
public TrainedTranslationModel(IChiSquaredTranslationModelStore store, string name, TranslationModelId id, List<AlignableCorpusId> corpusIds, CultureInfo sourceCulture, CultureInfo targetCulture, Nullable<DateTime> modelDate)
Parameters
Properties
ModelType
Declaration
public override TranslationModelTypes ModelType { get; }
Property Value
Overrides
Store
Declaration
public IChiSquaredTranslationModelStore Store { get; }
Property Value
Methods
BuildModel(IAlignableCorpusManager)
Declaration
public override void BuildModel(IAlignableCorpusManager corpusManager)
Parameters
Overrides
CanBuildModel(IAlignableCorpusManager)
Declaration
public override bool CanBuildModel(IAlignableCorpusManager corpusManager)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
MeasureModelFitness(List<IAlignableContentPair>)
Declaration
public override TranslationModelFitness MeasureModelFitness(List<IAlignableContentPair> pairs)
Parameters
Returns
Overrides
ShouldBuildModel(IAlignableCorpusManager)
Declaration
public override bool ShouldBuildModel(IAlignableCorpusManager corpusManager)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
TotalVocabSize(Boolean)
Declaration
public int TotalVocabSize(bool target)
Parameters
Type |
Name |
Description |
System.Boolean |
target |
|
Returns
Type |
Description |
System.Int32 |
|