Apache OpenNLP · Schema

TextRequest

TextRequest schema from Apache OpenNLP

Machine LearningNatural Language ProcessingNLPText ProcessingApacheOpen SourceJava

Properties

Name Type Description
text string Input text to process
language string ISO-639-3 language code hint
modelId string Specific model to use (optional)
View JSON Schema on GitHub

JSON Schema

apache-opennlp-text-request-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-text-request-schema.json",
  "title": "TextRequest",
  "description": "TextRequest schema from Apache OpenNLP",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Input text to process",
      "example": "Pierre Vinken, 61 years old, will join the board as a nonexecutive director Nov. 29."
    },
    "language": {
      "type": "string",
      "description": "ISO-639-3 language code hint",
      "example": "eng"
    },
    "modelId": {
      "type": "string",
      "description": "Specific model to use (optional)",
      "example": "en-sent.bin"
    }
  },
  "required": [
    "text"
  ]
}