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