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.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 |