Apache OpenNLP · JSON Structure

Apache Opennlp Tokens Request Structure

TokensRequest schema from Apache OpenNLP

Type: object Properties: 2 Required: 1
Machine LearningNatural Language ProcessingNLPText ProcessingApacheOpen SourceJava

TokensRequest is a JSON Structure definition published by Apache OpenNLP, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

tokens language

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-opennlp/refs/heads/main/json-structure/apache-opennlp-tokens-request-structure.json",
  "description": "TokensRequest schema from Apache OpenNLP",
  "type": "object",
  "properties": {
    "tokens": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Pre-tokenized array of text tokens",
      "example": [
        "Pierre",
        "Vinken",
        "will",
        "join",
        "the",
        "board"
      ]
    },
    "language": {
      "type": "string",
      "description": "ISO-639-3 language code",
      "example": "eng"
    }
  },
  "required": [
    "tokens"
  ],
  "name": "TokensRequest"
}