Class TrainedModelAligner.CodedTokenIndexConverter
Inheritance
TrainedModelAligner.CodedTokenIndexConverter
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public class TrainedModelAligner.CodedTokenIndexConverter
Constructors
CodedTokenIndexConverter(List<short>)
Declaration
public CodedTokenIndexConverter(List<short> tokenInfo)
Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
Methods
CodedTokenIndexToRawIndex(int)
Declaration
public int CodedTokenIndexToRawIndex(int ix)
Parameters
Type |
Name |
Description |
int |
ix |
|
Returns
CodedTokenIndexToTUSpan(int)
Declaration
public LiftSpan CodedTokenIndexToTUSpan(int ix)
Parameters
Type |
Name |
Description |
int |
ix |
|
Returns
Type |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftSpan |
|
TUSpanToCodedTokenSpan(LiftSpan)
Declaration
public LiftSpan TUSpanToCodedTokenSpan(LiftSpan tuSpan)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftSpan |
tuSpan |
|
Returns
Type |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftSpan |
|