Apache OpenNLP · JSON Structure

Apache Opennlp Pos Tokens Request Structure

POSTokensRequest schema from Apache OpenNLP

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

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

Properties

tokens posTags

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-pos-tokens-request-structure.json",
  "description": "POSTokensRequest 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"
      ]
    },
    "posTags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "POS tags for each token",
      "example": [
        "NNP",
        "NNP",
        "MD",
        "VB"
      ]
    }
  },
  "required": [
    "tokens",
    "posTags"
  ],
  "name": "POSTokensRequest"
}