Search Results for

    Show / Hide Table of Contents

    Class TrainedModelAligner.CodedTokenIndexConverter

    Inheritance
    object
    TrainedModelAligner.CodedTokenIndexConverter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public class TrainedModelAligner.CodedTokenIndexConverter

    Constructors

    CodedTokenIndexConverter(List<short>)

    Declaration
    public CodedTokenIndexConverter(List<short> tokenInfo)
    Parameters
    Type Name Description
    List<short> tokenInfo

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    CodedTokenIndexToRawIndex(int)

    Declaration
    public int CodedTokenIndexToRawIndex(int ix)
    Parameters
    Type Name Description
    int ix
    Returns
    Type Description
    int

    CodedTokenIndexToTUSpan(int)

    Declaration
    public LiftSpan CodedTokenIndexToTUSpan(int ix)
    Parameters
    Type Name Description
    int ix
    Returns
    Type Description
    LiftSpan

    TUSpanToCodedTokenSpan(LiftSpan)

    Declaration
    public LiftSpan TUSpanToCodedTokenSpan(LiftSpan tuSpan)
    Parameters
    Type Name Description
    LiftSpan tuSpan
    Returns
    Type Description
    LiftSpan
    In this article
    • Constructors
      • CodedTokenIndexConverter(List<short>)
    • Properties
      • Count
    • Methods
      • CodedTokenIndexToRawIndex(int)
      • CodedTokenIndexToTUSpan(int)
      • TUSpanToCodedTokenSpan(LiftSpan)
    Back to top Generated by DocFX