NER in Italian

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 named entities in the given Italian text. Create a Python dictionary where named entity type is a key, while a list of all named entities is located in values.

Your dictionary should look like this: {'named entity type': ['named entity']}, e.g., you answer might look like this:

{'ORG': ['Austria', 'Repubblica Romana'], 'PER': ['Ferdinando II', 'Giuse']}

Note that the answer should be on a single line.

Use Stanza 1.5.0 for this task.

pip install stanza==1.5.0

You can download Stanza for Italian with the following code:

import stanza
stanza.download('it')
nlp = stanza.Pipeline(lang="it")
Write code in your IDE to process the text file and display the results below
___

Create a free account to access the full topic