Apache OpenNLP · Schema

Span

Span schema from Apache OpenNLP

Machine LearningNatural Language ProcessingNLPText ProcessingApacheOpen SourceJava

Properties

Name Type Description
start integer Start character offset
end integer End character offset (exclusive)
type string Span type if applicable
View JSON Schema on GitHub

JSON Schema

apache-opennlp-span-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-span-schema.json",
  "title": "Span",
  "description": "Span schema from Apache OpenNLP",
  "type": "object",
  "properties": {
    "start": {
      "type": "integer",
      "description": "Start character offset",
      "example": 0
    },
    "end": {
      "type": "integer",
      "description": "End character offset (exclusive)",
      "example": 13
    },
    "type": {
      "type": "string",
      "description": "Span type if applicable",
      "example": "person"
    }
  }
}