R/token-count.R
estimate_tokens.Rd
Alias for count_tokens() with the default "words" method.
count_tokens()
"words"
estimate_tokens(text)
Character string (or vector) to count tokens for.
Numeric token count estimate.
estimate_tokens("Hello world, this is a test.") #> [1] 8