6 references to EncodeToIds
Microsoft.ML.Tokenizers (6)
Model\WordPieceTokenizer.cs (6)
420EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), ids, out int length, maxTokenCount - ids.Count); 432EncodeToIds(textSpanToEncode, ids, out charsConsumed); 570count += EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), accumulatedIds: null, out int length, maxTokenCount - count); 580count = EncodeToIds(textSpanToEncode, accumulatedIds: null, out charsConsumed, maxTokenCount); 631tokenCount = EncodeToIds(textSpanToEncode, accumulatedIds: null, out charsConsumed, settings.MaxTokenCount); 649int count = EncodeToIds(textSpanToEncode.Slice(split.Offset, split.Length), accumulatedIds: null, out charsConsumed, settings.MaxTokenCount - tokenCount);