API
Core
Experimental
Python Docs
Toggle Menu
Prev
Up
Next
LangChain 0.0.339rc1
langchain.utilities.anthropic
.get_num_tokens_anthropic
langchain.utilities.anthropic
.get_num_tokens_anthropic
¶
langchain.utilities.anthropic.
get_num_tokens_anthropic
(
text
:
str
)
→
int
[source]
¶
Get the number of tokens in a string of text.