# CoreNLP NER

{% hint style="info" %}
**Supported labeling types**: Span labeling.
{% endhint %}

CoreNLP Named Entity Recognition (NER) is a feature of the Stanford CoreNLP toolkit that identifies and classifies named entities in text, such as people, organizations, locations, dates, and more. It uses statistical models and linguistic rules to extract structured information from unstructured text.

In our labeling platform, CoreNLP NER can be used to automatically suggest entity labels, accelerating the annotation process and improving consistency across datasets. It supports multiple languages and is particularly useful for high-quality NER in formal or well-structured text.

<figure><img src="/files/U3DbTpKiVDyGec4EUGF3" alt="Image of ML Assisted with CoreNLP NER"><figcaption></figcaption></figure>

### Model details

* CoreNLP NER-tagging is conducted using **CoreNLP server**, leveraging the official pre-trained models.
* Utilizes `nltk.parse.corenlp.CoreNLPParser` as the interface to the CoreNLP server, providing a standardized access method to Stanford's advanced NLP models.
* Operates as a service within the Datasaur Intelligence container, maintaining isolation while providing consistent access.

### Usage

* CoreNLP NER is best-suited for high-quality entity recognition in tasks such as information extraction, document annotation, and search engines.
* Tagset: `PERSON`, `LOCATION`, `ORGANIZATION`, `MISC`, `MONEY`, `NUMBER`, `ORDINAL`, `PERCENT`, `DATE`, `TIME`, `DURATION`, `SET`, `EMAIL`, `URL`, `CITY`, `STATE_OR_PROVINCE`, `COUNTRY`, `NATIONALITY`, `RELIGION`, `TITLE`, `IDEOLOGY`, `CRIMINAL_CHARGE`, `CAUSE_OF_DEATH`, `HANDLE`

### References

* <https://stanfordnlp.github.io/CoreNLP/ner.html>
* <https://stanfordnlp.github.io/CoreNLP/corenlp-server.html>
* <https://www.nltk.org/api/nltk.parse.html#module-nltk.parse.corenlp>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datasaur.ai/assisted-labeling/ml-assisted-labeling/corenlp-ner.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
