langchain_community.utilities.anthropic.get_num_tokens_anthropic

langchain_community.utilities.anthropic.get_num_tokens_anthropic(text: str) int[source]

获取文本字符串中标记的数量。

Parameters

text (str) –

Return type

int