Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following corpus : and the pretty kitten purred, rubbing against her legs and then ... the pretty furry pussy purred and miaoued...

 

Consider the following corpus : and the pretty kitten purred, rubbing against her legs and then ... the pretty furry pussy purred and miaoued... that the tiny kitten miaoued and she... then the big furry dog barks a while... Let C= {while, pretty, purred, rubbing, big, furry, miaoued, barks, tiny}, be a basis vocabulary of context words. (a) Consider the target words, kitten, pussy and dog. Using only the basis vocabulary C, for each target word write down the set of all context words corresponding to a window size equal to 2. Solution: kitten context words = { , ...}, pussy context words = { { }, .}. dog context words - (b) For each target word, write an 9-dimensional vector representation by counting the base vocabulary words appearing two words to the left or right of each instance of the target word. The ordering of words in C should be respected starting with the word "while" and ending with the word tiny. Solution: kitten = (.,,.,,.), pussy (.,.,.,.,.), dog (., ., ., ...). (c) Compute the count-based similarity between individual target words using both Euclidean distance and cosine similarity, respectively. Euclidean Cosine kitten and pussy kitten and dog pussy and dig

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

Step: 3

blur-text-image

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

Taxation Of Individuals And Business Entities 2015

Authors: Brian Spilker, Benjamin Ayers, John Robinson, Edmund Outslay, Ronald Worsham, John Barrick, Connie Weaver

6th Edition

978-1259206955, 1259206955, 77862368, 978-0077862367

More Books

Students also viewed these Programming questions