tokenize splits each row of a text column into tokens and returns a column of ARRAY<VARCHAR> token strings.
By default, tokenize uses the same tokenizer as infer’s default models. To use another model’s tokenizer, pass a Hugging Face repository or a local tokenizer.json as the second argument.
Signature
Example
Return type
ARRAY<VARCHAR>, or null for a null input.
Special tokens are not added. Use tokens when you need only the count.
See Count tokens in a dataset to count conversations, total tokens, and average input size across a hosted dataset.