NER in DeepPavlov

Report a typo

To go further, manually open an IDE on your computer and copy the output to the website. We are sorry for the inconvenience; we will fix this as soon as possible.

Find all compound named entities (entities that contain two or more tokens as its part) in the given text. The output should be a list of strings (compound named entities): ['named entity', 'named entity', 'named entity']

Use IOB-format tags to find compound named entities.

This task assumes DeepPavlov 1.1.1. If you don't have it locally, install it with the following code:

pip install deeppavlov==1.1.1

Then install the multilingual DeepPavlov configuration:

python -m deeppavlov install ner_ontonotes_bert_mult

Alternatively, the model could be loaded as

from deeppavlov import build_model

model = build_model('ner_ontonotes_bert_mult', install=True, download=True)
Write code in your IDE to process the text file and display the results below
___

Create a free account to access the full topic