Class ChiSquaredTranslationModelStoreReadOnly
Inheritance
System.Object
ChiSquaredTranslationModelStoreReadOnly
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 ChiSquaredTranslationModelStoreReadOnly : IChiSquaredTranslationModelStoreReadOnly
Constructors
ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, ChiSquaredTranslationModelId)
Declaration
public ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService service, ChiSquaredTranslationModelId modelId)
Parameters
Properties
SampleCount
Declaration
public int SampleCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
TranslationModelDate
Declaration
public DateTime? TranslationModelDate { get; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Methods
LoadMatrixData(HashSet<Int32>, HashSet<Int32>, Boolean)
Declaration
public List<TranslationModelMatrixEntry> LoadMatrixData(HashSet<int> sourceKeys, HashSet<int> targetKeys, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
System.Collections.Generic.HashSet<System.Int32> |
sourceKeys |
|
System.Collections.Generic.HashSet<System.Int32> |
targetKeys |
|
System.Boolean |
isReversedMatrix |
|
Returns
LoadMatrixData(ref Int32, Int32, Boolean)
Declaration
public List<TranslationModelMatrixEntry> LoadMatrixData(ref int startAfter, int count, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
System.Int32 |
startAfter |
|
System.Int32 |
count |
|
System.Boolean |
isReversedMatrix |
|
Returns
LoadVocab(Boolean, IEnumerable<String>)
Declaration
public List<TranslationModelVocabEntry> LoadVocab(bool target, IEnumerable<string> tokensToLoad)
Parameters
Type |
Name |
Description |
System.Boolean |
target |
|
System.Collections.Generic.IEnumerable<System.String> |
tokensToLoad |
|
Returns
TotalVocabSize(Boolean)
Declaration
public int TotalVocabSize(bool target)
Parameters
Type |
Name |
Description |
System.Boolean |
target |
|
Returns
Type |
Description |
System.Int32 |
|
Implements