v1

latestOpenAPI 3.0.02026-07-1346146138.4 KB
evaluators

Execute word-count evaluator

Count the number of words in text

Request Body:

  • input.text (string, required): The text to count words in
post/v2/evaluators/word-count/execute

Request body

Example request

{
  "input": {
    "text": "This is a sample text with several words."
  }
}

Response

OK

word_countinteger

Example response

{
  "word_count": 10
}