Skip to contents

Alias for count_tokens() with the default "words" method.

Usage

estimate_tokens(text)

Arguments

text

Character string (or vector) to count tokens for.

Value

Numeric token count estimate.

Examples

estimate_tokens("Hello world, this is a test.")
#> [1] 8