---
title: "Train an NER model"
method: GET
path: "/api/nlp/train/{id}"
tags: ["nlp"]
---

# Train an NER model

`GET /api/nlp/train/{id}`

Train an NER model based on training data, which will be generated from a given document or collection

## Path parameters

- `id` string, required

## Query parameters

- `name` string, required
- `base` string
- `lang` string
- `copy_vectors` string

## Response `200`

Process ID of the running training

- integer

## Changes

- **2021-12-31** `2e94c0742e6e` — 1 breaking
  - the response's body type changed from `object` to `integer` for status `200`
- **2021-12-19** `268630565a74` — 2 breaking, 4 info
  - added the new required `query` request parameter `name`
  - removed the media type `text/html` for the response with the status `200`
  - added the new optional `query` request parameter `base`
  - added the new optional `query` request parameter `copy_vectors`
  - …2 more
- **2021-12-05** `64f261d8ef86` — 1 breaking, 1 info
  - removed the media type `text/text` for the response with the status `200`
  - added the media type `text/html` for the response with the status `200`
- **2021-11-13** `b33c7563be7c` — 1 breaking, 1 info
  - removed the media type `application/json` for the response with the status `200`
  - added the media type `text/text` for the response with the status `200`
- **2021-11-08** `08c08cced8d2` — 1 info
  - api operation id `nlp:train` removed and replaced with `nlp:train-model`

[Full history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/api/nlp/train/:id/get.md)

---

[API](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/revisions/07216792837f?raw)
