TokenizerResult.Offsets 属性

定义

获取偏移量的列表。 这些偏移量可对输入字符串进行切片,从而检索导致生成相应令牌的原始部分。

[System.Runtime.CompilerServices.TupleElementNames(new System.String[] { "Index", "End" })]
public System.Collections.Generic.IReadOnlyList<(int Index, int End)> Offsets { get; }
[<System.Runtime.CompilerServices.TupleElementNames(new System.String[] { "Index", "End" })>]
member this.Offsets : System.Collections.Generic.IReadOnlyList<ValueTuple<int, int>>
Public ReadOnly Property Offsets As IReadOnlyList(Of ValueTuple(Of Integer, Integer))

属性值

属性

适用于