6 references to EncodeToIds
Microsoft.ML.Tokenizers (6)
Model\WordPieceTokenizer.cs (6)
475EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), ids, out int length, maxTokenCount - ids.Count); 487EncodeToIds(textSpanToEncode, ids, out charsConsumed); 625count += EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), accumulatedIds: null, out int length, maxTokenCount - count); 635count = EncodeToIds(textSpanToEncode, accumulatedIds: null, out charsConsumed, maxTokenCount); 686tokenCount = EncodeToIds(textSpanToEncode, accumulatedIds: null, out charsConsumed, settings.MaxTokenCount); 704int count = EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), accumulatedIds: null, out charsConsumed, settings.MaxTokenCount - tokenCount);