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