Search Results for

    Show / Hide Table of Contents

    Class ChiSquaredTranslationModelStoreReadOnly

    Inheritance
    System.Object
    ChiSquaredTranslationModelStoreReadOnly
    Implements
    IChiSquaredTranslationModelStoreReadOnly
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public class ChiSquaredTranslationModelStoreReadOnly : Object, 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
    System.Threading.Tasks.Task<System.Int32>

    GetTranslationModelDateAsync()

    Declaration
    public Task<Nullable<DateTime>> GetTranslationModelDateAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Nullable<System.DateTime>>

    LoadMatrixDataAsync(HashSet<Int32>, HashSet<Int32>, Boolean)

    Declaration
    public Task<List<TranslationModelMatrixEntry>> LoadMatrixDataAsync(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.Threading.Tasks.Task<System.Collections.Generic.List<TranslationModelMatrixEntry>>

    LoadMatrixDataAsync(Int32, Int32, Boolean)

    Declaration
    public Task<(List<TranslationModelMatrixEntry>, int)> LoadMatrixDataAsync(int startAfter, int count, bool isReversedMatrix)
    Parameters
    Type Name Description
    System.Int32 startAfter
    System.Int32 count
    System.Boolean isReversedMatrix
    Returns
    Type Description
    System.Threading.Tasks.Task<System.ValueTuple<System.Collections.Generic.List<TranslationModelMatrixEntry>, System.Int32>>

    LoadVocabAsync(Boolean, IEnumerable<String>)

    Declaration
    public Task<List<TranslationModelVocabEntry>> LoadVocabAsync(bool target, IEnumerable<string> tokensToLoad)
    Parameters
    Type Name Description
    System.Boolean target
    System.Collections.Generic.IEnumerable<System.String> tokensToLoad
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.List<TranslationModelVocabEntry>>

    TotalVocabSizeAsync(Boolean)

    Declaration
    public Task<int> TotalVocabSizeAsync(bool target)
    Parameters
    Type Name Description
    System.Boolean target
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Implements

    IChiSquaredTranslationModelStoreReadOnly

    On this page

    Back to top Generated by DocFX