Język

EnglishRobertaTokenizer.Decode Metoda

Definicja

Przeciążenia

Nazwa Opis
Decode(IEnumerable<Int32>, Span<Char>, Int32, Int32)

Zdekoduj podane identyfikatory z powrotem do tekstu i zapisz wynik w destination zakresie.

Decode(IEnumerable<Int32>)

Zdekoduj podane identyfikatory z powrotem do ciągu.

Decode(IEnumerable<Int32>, Span<Char>, Int32, Int32)

Źródło:
EnglishRobertaTokenizer.cs
Źródło:
EnglishRobertaTokenizer.cs
Źródło:
EnglishRobertaTokenizer.cs

Zdekoduj podane identyfikatory z powrotem do tekstu i zapisz wynik w destination zakresie.

public override System.Buffers.OperationStatus Decode(System.Collections.Generic.IEnumerable<int> ids, Span<char> destination, out int idsConsumed, out int charsWritten);
override this.Decode : seq<int> * Span<char> * int * int -> System.Buffers.OperationStatus
Public Overrides Function Decode (ids As IEnumerable(Of Integer), destination As Span(Of Char), ByRef idsConsumed As Integer, ByRef charsWritten As Integer) As OperationStatus

Parametry

ids
IEnumerable<Int32>

Lista identyfikatorów, które chcemy dekodować.

destination
Span<Char>

Zakres przechowywania zdekodowanego tekstu.

idsConsumed
Int32

Liczba identyfikatorów użytych podczas dekodowania.

charsWritten
Int32

Liczba znaków zapisanych w zakresie docelowym.

Zwraca

Stan operacji wskazuje, czy wszystkie identyfikatory zostały pomyślnie zdekodowane, czy też destination jest za mały, aby zawierać cały dekodowany wynik.

Dotyczy

Decode(IEnumerable<Int32>)

Źródło:
EnglishRobertaTokenizer.cs
Źródło:
EnglishRobertaTokenizer.cs
Źródło:
EnglishRobertaTokenizer.cs

Zdekoduj podane identyfikatory z powrotem do ciągu.

public override string Decode(System.Collections.Generic.IEnumerable<int> ids);
override this.Decode : seq<int> -> string
Public Overrides Function Decode (ids As IEnumerable(Of Integer)) As String

Parametry

ids
IEnumerable<Int32>

Lista identyfikatorów, które chcemy dekodować.

Zwraca

Zdekodowany ciąg.

Dotyczy