Search Results for

    Show / Hide Table of Contents

    Class ChiSquaredTranslationModelStoreReadOnly

    Inheritance
    System.Object
    ChiSquaredTranslationModelStoreReadOnly
    Implements
    IChiSquaredTranslationModelStoreReadOnly
    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()
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public class ChiSquaredTranslationModelStoreReadOnly : IChiSquaredTranslationModelStoreReadOnly

    Constructors

    ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, ChiSquaredTranslationModelId)

    Declaration
    public ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService service, ChiSquaredTranslationModelId modelId)
    Parameters
    Type Name Description
    ITranslationModelDataService service
    ChiSquaredTranslationModelId modelId

    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
    Type Description
    System.Collections.Generic.List<TranslationModelMatrixEntry>

    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
    Type Description
    System.Collections.Generic.List<TranslationModelMatrixEntry>

    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
    Type Description
    System.Collections.Generic.List<TranslationModelVocabEntry>

    TotalVocabSize(Boolean)

    Declaration
    public int TotalVocabSize(bool target)
    Parameters
    Type Name Description
    System.Boolean target
    Returns
    Type Description
    System.Int32

    Implements

    IChiSquaredTranslationModelStoreReadOnly

    On this page

    • Constructors
      • ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, ChiSquaredTranslationModelId)
    • Properties
      • SampleCount
      • TranslationModelDate
    • Methods
      • LoadMatrixData(HashSet<Int32>, HashSet<Int32>, Boolean)
      • LoadMatrixData(ref Int32, Int32, Boolean)
      • LoadVocab(Boolean, IEnumerable<String>)
      • TotalVocabSize(Boolean)
    • Implements
    Back to top Generated by DocFX