Interface ITranslationModelDataService
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public interface ITranslationModelDataService
Methods
GetAllModelDetailsAsync()
Declaration
Task<TranslationModelDetails[]> GetAllModelDetailsAsync()
Returns
GetModelDetailsAsync(TranslationModelId)
Declaration
Task<TranslationModelDetails> GetModelDetailsAsync(TranslationModelId modelId)
Parameters
Returns
LoadMatrixDataAsync(TranslationModelId, HashSet<Int32>, HashSet<Int32>, Boolean)
Declaration
Task<List<TranslationModelMatrixEntry>> LoadMatrixDataAsync(TranslationModelId modelId, HashSet<int> sourceKeys, HashSet<int> targetKeys, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
TranslationModelId |
modelId |
|
System.Collections.Generic.HashSet<System.Int32> |
sourceKeys |
|
System.Collections.Generic.HashSet<System.Int32> |
targetKeys |
|
System.Boolean |
isReversedMatrix |
|
Returns
LoadMatrixDataAsync(TranslationModelId, Int32, Int32, Boolean)
Declaration
Task<(List<TranslationModelMatrixEntry>, int)> LoadMatrixDataAsync(TranslationModelId modelId, int startAfter, int count, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
TranslationModelId |
modelId |
|
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(TranslationModelId, Boolean, IEnumerable<String>)
Declaration
Task<List<TranslationModelVocabEntry>> LoadVocabAsync(TranslationModelId modelId, bool target, IEnumerable<string> tokensToLoad)
Parameters
Type |
Name |
Description |
TranslationModelId |
modelId |
|
System.Boolean |
target |
|
System.Collections.Generic.IEnumerable<System.String> |
tokensToLoad |
|
Returns
TotalVocabSizeAsync(TranslationModelId, Boolean)
Declaration
Task<int> TotalVocabSizeAsync(TranslationModelId modelId, bool target)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|