Search Results for

    Show / Hide Table of Contents

    Class ChiSquaredTranslationModelStoreReadOnly

    Inheritance
    object
    ChiSquaredTranslationModelStoreReadOnly
    Implements
    IChiSquaredTranslationModelStoreReadOnly
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public class ChiSquaredTranslationModelStoreReadOnly : IChiSquaredTranslationModelStoreReadOnly

    Constructors

    ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, TranslationModelDetails, TranslationModelId)

    Declaration
    public ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService service, TranslationModelDetails modelDetails, TranslationModelId modelId)
    Parameters
    Type Name Description
    ITranslationModelDataService service
    TranslationModelDetails modelDetails
    TranslationModelId modelId

    Methods

    GetSampleCountAsync()

    Declaration
    public Task<int> GetSampleCountAsync()
    Returns
    Type Description
    Task<int>

    GetTranslationModelDateAsync()

    Declaration
    public Task<DateTime?> GetTranslationModelDateAsync()
    Returns
    Type Description
    Task<DateTime?>

    LoadMatrixData2Async(IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)

    Declaration
    public Task<List<TranslationModelMatrixEntry>> LoadMatrixData2Async(IReadOnlyCollection<TranslationModelTuMatrixRequest> matrixRequestCollection, bool isReversedMatrix)
    Parameters
    Type Name Description
    IReadOnlyCollection<TranslationModelTuMatrixRequest> matrixRequestCollection
    bool isReversedMatrix
    Returns
    Type Description
    Task<List<TranslationModelMatrixEntry>>

    LoadMatrixDataAsync(HashSet<int>, HashSet<int>, bool)

    Declaration
    public Task<List<TranslationModelMatrixEntry>> LoadMatrixDataAsync(HashSet<int> sourceKeys, HashSet<int> targetKeys, bool isReversedMatrix)
    Parameters
    Type Name Description
    HashSet<int> sourceKeys
    HashSet<int> targetKeys
    bool isReversedMatrix
    Returns
    Type Description
    Task<List<TranslationModelMatrixEntry>>

    LoadMatrixDataAsync(int, int, bool)

    Declaration
    public Task<(List<TranslationModelMatrixEntry> Entries, int LastId)> LoadMatrixDataAsync(int startAfter, int count, bool isReversedMatrix)
    Parameters
    Type Name Description
    int startAfter
    int count
    bool isReversedMatrix
    Returns
    Type Description
    Task<(List<TranslationModelMatrixEntry> Entries, int LastId)>

    LoadVocabAsync(bool, IEnumerable<string>)

    Declaration
    public Task<List<TranslationModelVocabEntry>> LoadVocabAsync(bool target, IEnumerable<string> tokensToLoad)
    Parameters
    Type Name Description
    bool target
    IEnumerable<string> tokensToLoad
    Returns
    Type Description
    Task<List<TranslationModelVocabEntry>>

    TotalVocabSizeAsync(bool)

    Declaration
    public Task<int> TotalVocabSizeAsync(bool target)
    Parameters
    Type Name Description
    bool target
    Returns
    Type Description
    Task<int>

    Implements

    IChiSquaredTranslationModelStoreReadOnly
    In this article
    • Constructors
      • ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, TranslationModelDetails, TranslationModelId)
    • Methods
      • GetSampleCountAsync()
      • GetTranslationModelDateAsync()
      • LoadMatrixData2Async(IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)
      • LoadMatrixDataAsync(HashSet<int>, HashSet<int>, bool)
      • LoadMatrixDataAsync(int, int, bool)
      • LoadVocabAsync(bool, IEnumerable<string>)
      • TotalVocabSizeAsync(bool)
    • Implements
    Back to top Generated by DocFX