Class TrainedModelAligner.CodedTokenIndexConverter
Inheritance
System.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 |
System.Collections.Generic.List<System.Int16> |
tokenInfo |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CodedTokenIndexToRawIndex(Int32)
Declaration
public int CodedTokenIndexToRawIndex(int ix)
Parameters
Type |
Name |
Description |
System.Int32 |
ix |
|
Returns
Type |
Description |
System.Int32 |
|
CodedTokenIndexToTUSpan(Int32)
Declaration
public LiftSpan CodedTokenIndexToTUSpan(int ix)
Parameters
Type |
Name |
Description |
System.Int32 |
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 |
|