Skip to main content

Task type: NER

NER: Named Entity Recognition. The task of named entity recognition in text. For example, in the text “What is the weather in London”, the entity “London” can be detected.

System name: ner

List of services.

Services of the ner type accept text as input and return JSON in a specific format.

Data types

Predict request

  • Specification
  • Python type: mlp_sdk.types.Text (the mlp-python-sdk module)
  • Java type: com.mlp.api.datatypes.nlp.Text (the mlp-datatypes module)

Request example:

{
"text": "What is the weather in London"
}

Predict response

  • Specification
  • Python type: mlp_sdk.types.NamedEntities (the mlp-python-sdk module)
  • Java type: com.mlp.api.datatypes.nlp.NamedEntities (the mlp-datatypes module)

Response example:

{
"entities": [
{
"value": "london",
"entity_type": "TOPONYM",
"span": {
"start_index": 15,
"end_index": 21
},
"entity": "london",
"source_type": "DEEPPAVLOV"
}
]
}