Apache OpenNLP · Schema

TokensRequest

TokensRequest schema from Apache OpenNLP

Machine LearningNatural Language ProcessingNLPText ProcessingApacheOpen SourceJava

Properties

Name Type Description
tokens array Pre-tokenized array of text tokens
language string ISO-639-3 language code
View JSON Schema on GitHub

JSON Schema

apache-opennlp-tokens-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-tokens-request-schema.json",
  "title": "TokensRequest",
  "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"
  ]
}