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