Apache OpenNLP Parsing API

The Parsing API from Apache OpenNLP — 1 operation(s) for parsing.

OpenAPI Specification

apache-opennlp-parsing-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Apache OpenNLP Tools Chunking Parsing API
  description: Apache OpenNLP is a machine learning based toolkit for processing natural language text, supporting tokenization, sentence segmentation, POS tagging, named entity extraction, chunking, parsing, and coreference resolution. This API represents the REST-accessible surface of the OpenNLP toolkit.
  version: 2.5.8
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  contact:
    url: https://opennlp.apache.org/
servers:
- url: https://{host}/opennlp
  description: Apache OpenNLP REST service
  variables:
    host:
      default: localhost:8080
tags:
- name: Parsing
paths:
  /parse:
    post:
      operationId: parseText
      summary: Apache OpenNLP Parse Text
      description: Perform full syntactic parsing to build a parse tree for a sentence.
      tags:
      - Parsing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TextRequest'
      responses:
        '200':
          description: Parse tree result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParseResult'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    TextRequest:
      type: object
      required:
      - text
      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
    ParseResult:
      type: object
      properties:
        parseTree:
          type: string
          description: Penn Treebank-style parse tree
          example: (S (NP Pierre Vinken) (VP will join (NP the board)))
        probability:
          type: number
          description: Parse probability
          example: 0.87
x-generated-from: documentation