Search Results for

    Show / Hide Table of Contents

    Interface ITranslationModelDataService

    Inherited Members
    IDisposable.Dispose()
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public interface ITranslationModelDataService : IDisposable

    Methods

    GetAllModelDetailsAsync()

    Declaration
    Task<TranslationModelDetails[]> GetAllModelDetailsAsync()
    Returns
    Type Description
    Task<TranslationModelDetails[]>

    GetModelDetailsAsync(TranslationModelId)

    Declaration
    Task<TranslationModelDetails> GetModelDetailsAsync(TranslationModelId modelId)
    Parameters
    Type Name Description
    TranslationModelId modelId
    Returns
    Type Description
    Task<TranslationModelDetails>

    LoadMatrixData2Async(TranslationModelId, IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)

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

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

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

    LoadMatrixDataAsync(TranslationModelId, int, int, bool)

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

    LoadVocabAsync(TranslationModelId, bool, IEnumerable<string>)

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

    TotalVocabSizeAsync(TranslationModelId, bool)

    Declaration
    Task<int> TotalVocabSizeAsync(TranslationModelId modelId, bool target)
    Parameters
    Type Name Description
    TranslationModelId modelId
    bool target
    Returns
    Type Description
    Task<int>
    In this article
    • Methods
      • GetAllModelDetailsAsync()
      • GetModelDetailsAsync(TranslationModelId)
      • LoadMatrixData2Async(TranslationModelId, IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)
      • LoadMatrixDataAsync(TranslationModelId, HashSet<int>, HashSet<int>, bool)
      • LoadMatrixDataAsync(TranslationModelId, int, int, bool)
      • LoadVocabAsync(TranslationModelId, bool, IEnumerable<string>)
      • TotalVocabSizeAsync(TranslationModelId, bool)
    Back to top Generated by DocFX