Class ChiSquaredTranslationModel
Inheritance
System.Object
ChiSquaredTranslationModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class ChiSquaredTranslationModel : TranslationModel
Constructors
ChiSquaredTranslationModel(IChiSquaredTranslationModelStoreReadOnly, String, TranslationModelId, List<AlignableCorpusId>, CultureInfo, CultureInfo, Nullable<DateTime>, Int32, Int32)
Declaration
public ChiSquaredTranslationModel(IChiSquaredTranslationModelStoreReadOnly store, string name, TranslationModelId id, List<AlignableCorpusId> corpusIds, CultureInfo sourceCulture, CultureInfo targetCulture, DateTime? modelDate, int sampleCount, int version)
Parameters
Fields
LatestModelVersion
Declaration
public const int LatestModelVersion = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
ModelType
Declaration
public override TranslationModelTypes ModelType { get; }
Property Value
Overrides
SampleCount
Declaration
public int SampleCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Store
Declaration
public IChiSquaredTranslationModelStoreReadOnly Store { get; }
Property Value
Version
Declaration
public int Version { get; }
Property Value
Type |
Description |
System.Int32 |
|
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
Declaration
public void MeasureModelFitness(List<Token> tokens, bool target, TranslationModelFitness results)
Parameters
SetLatestVersion()
Declaration
public void SetLatestVersion()
ShouldBuildModel(IAlignableCorpusManager)
Declaration
public override bool ShouldBuildModel(IAlignableCorpusManager corpusManager)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides