Interface ITranslationModelDataService
Inherited Members
System.IDisposable.Dispose()
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public interface ITranslationModelDataService : IDisposable
Methods
GetAllModelDetails()
Declaration
TranslationModelDetails[] GetAllModelDetails()
Returns
GetModelDetails(TranslationModelId)
Declaration
TranslationModelDetails GetModelDetails(TranslationModelId modelId)
Parameters
Returns
LoadMatrixData(TranslationModelId, HashSet<Int32>, HashSet<Int32>, Boolean)
Declaration
List<TranslationModelMatrixEntry> LoadMatrixData(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
LoadMatrixData(TranslationModelId, ref Int32, Int32, Boolean)
Declaration
List<TranslationModelMatrixEntry> LoadMatrixData(TranslationModelId modelId, ref int startAfter, int count, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
TranslationModelId |
modelId |
|
System.Int32 |
startAfter |
|
System.Int32 |
count |
|
System.Boolean |
isReversedMatrix |
|
Returns
LoadVocab(TranslationModelId, Boolean, IEnumerable<String>)
Declaration
List<TranslationModelVocabEntry> LoadVocab(TranslationModelId modelId, bool target, IEnumerable<string> tokensToLoad)
Parameters
Type |
Name |
Description |
TranslationModelId |
modelId |
|
System.Boolean |
target |
|
System.Collections.Generic.IEnumerable<System.String> |
tokensToLoad |
|
Returns