curl --request POST \
--url https://api.traceloop.com/v2/evaluators/execute/word-count \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"text": "This is a sample text with several words."
}
}
'{
"word_count": 10
}Count the number of words in text
Request Body:
input.text (string, required): The text to count words incurl --request POST \
--url https://api.traceloop.com/v2/evaluators/execute/word-count \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"text": "This is a sample text with several words."
}
}
'{
"word_count": 10
}Was this page helpful?