R/api.R
bebel_tokenize.Rd
Tokenize text with a BebeLM model tokenizer
bebel_tokenize(model, text, add_bos = TRUE)
A BebelModel object.
BebelModel
Text to encode.
Whether to prepend the BOS token.
Integer token ids.