{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-opennlp/refs/heads/main/json-structure/apache-opennlp-categorization-result-structure.json",
  "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"
    }
  },
  "name": "CategorizationResult"
}