Apache OpenNLP Lemmatization API

The Lemmatization API from Apache OpenNLP — 1 operation(s) for lemmatization.

OpenAPI Specification

apache-opennlp-lemmatization-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Apache OpenNLP Tools Chunking Lemmatization 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: Lemmatization
paths:
  /lemmatize:
    post:
      operationId: lemmatize
      summary: Apache OpenNLP Lemmatize Text
      description: Reduce tokens to their base/lemma forms using POS context.
      tags:
      - Lemmatization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/POSTokensRequest'
      responses:
        '200':
          description: Lemmatization result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LemmatizationResult'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    LemmatizationResult:
      type: object
      properties:
        tokens:
          type: array
          items:
            type: string
          example:
          - running
          - faster
        lemmas:
          type: array
          items:
            type: string
          example:
          - run
          - fast
    POSTokensRequest:
      type: object
      required:
      - tokens
      - posTags
      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
x-generated-from: documentation