Exercise: Linguistic Features

Let's test the concepts we've learned with a coding exercise.

We'll cover the following

Problem

Write a program using spaCy to perform part-of-speech (POS) tagging, named entity recognition (NER), and dependency parsing on a given text.

Input

A string text representing the text to be processed.

Output

  • For each token in the text, print its text, its POS tag, and its dependency label, separated by a space.

  • For each entity in the text, print its text and its NER label, separated by a space.

Attempt the problem in the following code widget:

Get hands-on with 1400+ tech skills courses.