Spacy visualization

Report a typo

Here is a code to visualize named entities in SpaCy. Find the errors and enter the corrected version of the entire code as an answer.

import SpaCy
from SpaCy import displacy


nlp = SpaCy.download("en_core_web_sm")
doc = nlp(text)
displacy.render(doc, key="entities", jupyter=False)

Mind that this code is used in Google Colab. Assume that the text constant is already known.

There are two blank spaces between the imports and the other code. Please, leave them as they are.

Enter a short text
___

Create a free account to access the full topic