---
title: "Part-of-speech tagging"
method: POST
path: "/v1/apple/nlp/pos"
tags: ["Apple"]
---

# Part-of-speech tagging

`POST /v1/apple/nlp/pos`

## Request

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

Tags each word with its grammatical role (Noun, Verb, Adjective, etc.).

## Request body

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

## Response `200`

POS-tagged tokens

- object
  - `tokens` object[]
    - `text` string
    - `tag` 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)
