---
title: "Lemmatize text"
method: POST
path: "/v1/apple/nlp/lemmatize"
tags: ["Apple"]
---

# Lemmatize text

`POST /v1/apple/nlp/lemmatize`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/apple/nlp/lemmatize`
- Auth: HTTP bearer

Returns root forms of words (e.g. "running" → "run").

## Request body

- TextRequest
  - `text` string, required: Input text to analyze

## Response `200`

Lemmatized tokens

- object
  - `tokens` object[]
    - `text` string
    - `lemma` string

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
