Interface ITranslationModelDataService
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public interface ITranslationModelDataService : IDisposable
Methods
GetAllModelDetailsAsync()
Declaration
Task<TranslationModelDetails[]> GetAllModelDetailsAsync()
Returns
GetModelDetailsAsync(TranslationModelId)
Declaration
Task<TranslationModelDetails> GetModelDetailsAsync(TranslationModelId modelId)
Parameters
Returns
LoadMatrixData2Async(TranslationModelId, IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)
Declaration
Task<List<TranslationModelMatrixEntry>> LoadMatrixData2Async(TranslationModelId modelId, IReadOnlyCollection<TranslationModelTuMatrixRequest> matrixRequestCollection, bool isReversedMatrix)
Parameters
Returns
LoadMatrixDataAsync(TranslationModelId, HashSet<int>, HashSet<int>, bool)
Declaration
Task<List<TranslationModelMatrixEntry>> LoadMatrixDataAsync(TranslationModelId modelId, HashSet<int> sourceKeys, HashSet<int> targetKeys, bool isReversedMatrix)
Parameters
Returns
LoadMatrixDataAsync(TranslationModelId, int, int, bool)
Declaration
Task<(List<TranslationModelMatrixEntry> Entries, int LastId)> LoadMatrixDataAsync(TranslationModelId modelId, int startAfter, int count, bool isReversedMatrix)
Parameters
Returns
Type |
Description |
TaskListTranslationModelMatrixEntrySystem.ValueTuple{System.Collections.Generic.List{Sdl.Core.FineGrainedAlignment.Model.TranslationModelMatrixEntry},System.Int32}.EntriesintSystem.ValueTuple{System.Collections.Generic.List{Sdl.Core.FineGrainedAlignment.Model.TranslationModelMatrixEntry},System.Int32}.LastId |
|
LoadVocabAsync(TranslationModelId, bool, IEnumerable<string>)
Declaration
Task<List<TranslationModelVocabEntry>> LoadVocabAsync(TranslationModelId modelId, bool target, IEnumerable<string> tokensToLoad)
Parameters
Returns
TotalVocabSizeAsync(TranslationModelId, bool)
Declaration
Task<int> TotalVocabSizeAsync(TranslationModelId modelId, bool target)
Parameters
Returns