Apache OpenNLP · Schema

CategorizationResult

CategorizationResult schema from Apache OpenNLP

Machine LearningNatural Language ProcessingNLPText ProcessingApacheOpen SourceJava

Properties

Name Type Description
bestCategory string Most likely category label
probabilities object Probability for each category
View JSON Schema on GitHub

JSON Schema

apache-opennlp-categorization-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-opennlp/refs/heads/main/json-schema/apache-opennlp-categorization-result-schema.json",
  "title": "CategorizationResult",
  "description": "CategorizationResult schema from Apache OpenNLP",
  "type": "object",
  "properties": {
    "bestCategory": {
      "type": "string",
      "description": "Most likely category label",
      "example": "Sports"
    },
    "probabilities": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Probability for each category"
    }
  }
}