Exercise: Word Vectors and Semantic Similarity

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

We'll cover the following

Problem

You have been given a set of news articles related to technology. Your task is to extract the key noun phrases and compare the named entities mentioned in the articles.

You will need to do the following:

  • Load the spaCy English language model and preprocess the text by removing stop words and punctuation marks.

  • Extract the key noun phrases from the preprocessed text.

  • Identify the named entities mentioned in the text and compare them across the different articles.

Write a program to accomplish the above tasks. You can assume that the following news articles are provided as a list of strings in a variable called articles.

Get hands-on with 1200+ tech skills courses.