Class ChiSquaredTranslationModelStoreReadOnly
Inheritance
ChiSquaredTranslationModelStoreReadOnly
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class ChiSquaredTranslationModelStoreReadOnly : IChiSquaredTranslationModelStoreReadOnly
Constructors
ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService, TranslationModelDetails, TranslationModelId)
Declaration
public ChiSquaredTranslationModelStoreReadOnly(ITranslationModelDataService service, TranslationModelDetails modelDetails, TranslationModelId modelId)
Parameters
Methods
GetSampleCountAsync()
Declaration
public Task<int> GetSampleCountAsync()
Returns
GetTranslationModelDateAsync()
Declaration
public Task<DateTime?> GetTranslationModelDateAsync()
Returns
LoadMatrixData2Async(IReadOnlyCollection<TranslationModelTuMatrixRequest>, bool)
Declaration
public Task<List<TranslationModelMatrixEntry>> LoadMatrixData2Async(IReadOnlyCollection<TranslationModelTuMatrixRequest> matrixRequestCollection, bool isReversedMatrix)
Parameters
Returns
LoadMatrixDataAsync(HashSet<int>, HashSet<int>, bool)
Declaration
public Task<List<TranslationModelMatrixEntry>> LoadMatrixDataAsync(HashSet<int> sourceKeys, HashSet<int> targetKeys, bool isReversedMatrix)
Parameters
Returns
LoadMatrixDataAsync(int, int, bool)
Declaration
public Task<(List<TranslationModelMatrixEntry> Entries, int LastId)> LoadMatrixDataAsync(int startAfter, int count, bool isReversedMatrix)
Parameters
Type |
Name |
Description |
int |
startAfter |
|
int |
count |
|
bool |
isReversedMatrix |
|
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(bool, IEnumerable<string>)
Declaration
public Task<List<TranslationModelVocabEntry>> LoadVocabAsync(bool target, IEnumerable<string> tokensToLoad)
Parameters
Returns
TotalVocabSizeAsync(bool)
Declaration
public Task<int> TotalVocabSizeAsync(bool target)
Parameters
Type |
Name |
Description |
bool |
target |
|
Returns
Implements