Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 b - More understanding of Semantic Matching ( 1 5 points ) . Which terms does LSI find similar? To understand why the

Task 2b - More understanding of Semantic Matching (15 points).
Which terms does LSI find similar?
To understand why the LSI-expanded vectors get the results they do, we're going to look at what the operator
does to text. In particular, the term-term matrix
tells us the term expansion behavior of this LSI model. Think of the term-term matrix like an operator that first maps a term to the latent space
(using
), then back again from
to term space (using
transpose). The (,)
entry of
is a kind of association weight between term
and term
.
Write a function to get the most related terms (according to LSI) for the word "economy". To do this:
Compute the term-term matrix from the matrix U (the reduced_term_matrix variable).
Use the term-term matrix to get the association weights of all words related to the term "economy"
Sort by descending weight value.
Your function should return the top 5 words and their weights as a list of (string, float) tuples.
Do the related terms match your subjective similarity judgment?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

5. A review of the key behaviors is included.

Answered: 1 week ago