Skip to content

Instantly share code, notes, and snippets.

@ssghost
Created March 29, 2019 17:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssghost/1b9ca24cf91437678fc95160ee783ff0 to your computer and use it in GitHub Desktop.
Save ssghost/1b9ca24cf91437678fc95160ee783ff0 to your computer and use it in GitHub Desktop.
My answers for Stanford on-line course CS224N Winter 2019 Assignment-1.
Display the source blob
Display the rendered blob
Raw
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"exploring_word_vectors.ipynb","version":"0.3.2","provenance":[],"collapsed_sections":[]},"kernelspec":{"name":"python3","display_name":"Python 3"},"accelerator":"GPU"},"cells":[{"metadata":{"id":"5b1hESEH8gra","colab_type":"text"},"cell_type":"markdown","source":["# CS224N Assignment 1: Exploring Word Vectors (25 Points)\n","\n","Welcome to CS224n! \n","\n","Before you start, make sure you read the README.txt in the same directory as this notebook. "]},{"metadata":{"id":"ctX6BQ0b8grc","colab_type":"code","outputId":"9d118187-7515-4fac-b56f-c4dbf3c86543","executionInfo":{"status":"ok","timestamp":1553808586888,"user_tz":-420,"elapsed":2947,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":51}},"cell_type":"code","source":["# All Import Statements Defined Here\n","# Note: Do not add to this list.\n","# All the dependencies you need, can be installed by running .\n","# ----------------\n","\n","import sys\n","assert sys.version_info[0]==3\n","assert sys.version_info[1] >= 5\n","\n","from gensim.models import KeyedVectors\n","from gensim.test.utils import datapath\n","import pprint\n","import matplotlib.pyplot as plt\n","plt.rcParams['figure.figsize'] = [10, 5]\n","import nltk\n","nltk.download('reuters')\n","from nltk.corpus import reuters\n","import numpy as np\n","import random\n","import scipy as sp\n","from sklearn.decomposition import TruncatedSVD\n","from sklearn.decomposition import PCA\n","\n","START_TOKEN = '<START>'\n","END_TOKEN = '<END>'\n","\n","np.random.seed(0)\n","random.seed(0)\n","# ----------------"],"execution_count":2,"outputs":[{"output_type":"stream","text":["[nltk_data] Downloading package reuters to /root/nltk_data...\n","[nltk_data] Package reuters is already up-to-date!\n"],"name":"stdout"}]},{"metadata":{"id":"M4cU4L_g8grh","colab_type":"text"},"cell_type":"markdown","source":["## Please Write Your SUNet ID Here: "]},{"metadata":{"id":"04e62t5a8gri","colab_type":"text"},"cell_type":"markdown","source":["## Word Vectors\n","\n","Word Vectors are often used as a fundamental component for downstream NLP tasks, e.g. question answering, text generation, translation, etc., so it is important to build some intuitions as to their strengths and weaknesses. Here, you will explore two types of word vectors: those derived from *co-occurrence matrices*, and those derived via *word2vec*. \n","\n","**Assignment Notes:** Please make sure to save the notebook as you go along. Submission Instructions are located at the bottom of the notebook.\n","\n","**Note on Terminology:** The terms \"word vectors\" and \"word embeddings\" are often used interchangeably. The term \"embedding\" refers to the fact that we are encoding aspects of a word's meaning in a lower dimensional space. As [Wikipedia](https://en.wikipedia.org/wiki/Word_embedding) states, \"*conceptually it involves a mathematical embedding from a space with one dimension per word to a continuous vector space with a much lower dimension*\"."]},{"metadata":{"id":"ei7Gjd2e8grj","colab_type":"text"},"cell_type":"markdown","source":["## Part 1: Count-Based Word Vectors (10 points)\n","\n","Most word vector models start from the following idea:\n","\n","*You shall know a word by the company it keeps ([Firth, J. R. 1957:11](https://en.wikipedia.org/wiki/John_Rupert_Firth))*\n","\n","Many word vector implementations are driven by the idea that similar words, i.e., (near) synonyms, will be used in similar contexts. As a result, similar words will often be spoken or written along with a shared subset of words, i.e., contexts. By examining these contexts, we can try to develop embeddings for our words. With this intuition in mind, many \"old school\" approaches to constructing word vectors relied on word counts. Here we elaborate upon one of those strategies, *co-occurrence matrices* (for more information, see [here](http://web.stanford.edu/class/cs124/lec/vectorsemantics.video.pdf) or [here](https://medium.com/data-science-group-iitr/word-embedding-2d05d270b285))."]},{"metadata":{"id":"tCismfpe8grk","colab_type":"text"},"cell_type":"markdown","source":["### Co-Occurrence\n","\n","A co-occurrence matrix counts how often things co-occur in some environment. Given some word $w_i$ occurring in the document, we consider the *context window* surrounding $w_i$. Supposing our fixed window size is $n$, then this is the $n$ preceding and $n$ subsequent words in that document, i.e. words $w_{i-n} \\dots w_{i-1}$ and $w_{i+1} \\dots w_{i+n}$. We build a *co-occurrence matrix* $M$, which is a symmetric word-by-word matrix in which $M_{ij}$ is the number of times $w_j$ appears inside $w_i$'s window.\n","\n","**Example: Co-Occurrence with Fixed Window of n=1**:\n","\n","Document 1: \"all that glitters is not gold\"\n","\n","Document 2: \"all is well that ends well\"\n","\n","\n","| * | START | all | that | glitters | is | not | gold | well | ends | END |\n","|----------|-------|-----|------|----------|------|------|-------|------|------|-----|\n","| START | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |\n","| all | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |\n","| that | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 |\n","| glitters | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |\n","| is | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 |\n","| not | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 |\n","| gold | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |\n","| well | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |\n","| ends | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |\n","| END | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |\n","\n","**Note:** In NLP, we often add START and END tokens to represent the beginning and end of sentences, paragraphs or documents. In thise case we imagine START and END tokens encapsulating each document, e.g., \"START All that glitters is not gold END\", and include these tokens in our co-occurrence counts.\n","\n","The rows (or columns) of this matrix provide one type of word vectors (those based on word-word co-occurrence), but the vectors will be large in general (linear in the number of distinct words in a corpus). Thus, our next step is to run *dimensionality reduction*. In particular, we will run *SVD (Singular Value Decomposition)*, which is a kind of generalized *PCA (Principal Components Analysis)* to select the top $k$ principal components. Here's a visualization of dimensionality reduction with SVD. In this picture our co-occurrence matrix is $A$ with $n$ rows corresponding to $n$ words. We obtain a full matrix decomposition, with the singular values ordered in the diagonal $S$ matrix, and our new, shorter length-$k$ word vectors in $U_k$.\n","\n","![Picture of an SVD](imgs/svd.png \"SVD\")\n","\n","This reduced-dimensionality co-occurrence representation preserves semantic relationships between words, e.g. *doctor* and *hospital* will be closer than *doctor* and *dog*. \n","\n","**Notes:** If you can barely remember what an eigenvalue is, here's [a slow, friendly introduction to SVD](https://davetang.org/file/Singular_Value_Decomposition_Tutorial.pdf). If you want to learn more thoroughly about PCA or SVD, feel free to check out lectures [7](https://web.stanford.edu/class/cs168/l/l7.pdf), [8](http://theory.stanford.edu/~tim/s15/l/l8.pdf), and [9](https://web.stanford.edu/class/cs168/l/l9.pdf) of CS168. These course notes provide a great high-level treatment of these general purpose algorithms. Though, for the purpose of this class, you only need to know how to extract the k-dimensional embeddings by utilizing pre-programmed implementations of these algorithms from the numpy, scipy, or sklearn python packages. In practice, it is challenging to apply full SVD to large corpora because of the memory needed to perform PCA or SVD. However, if you only want the top $k$ vector components for relatively small $k$ — known as *[Truncated SVD](https://en.wikipedia.org/wiki/Singular_value_decomposition#Truncated_SVD)* — then there are reasonably scalable techniques to compute those iteratively."]},{"metadata":{"id":"p7h6eFNk8grk","colab_type":"text"},"cell_type":"markdown","source":["### Plotting Co-Occurrence Word Embeddings\n","\n","Here, we will be using the Reuters (business and financial news) corpus. If you haven't run the import cell at the top of this page, please run it now (click it and press SHIFT-RETURN). The corpus consists of 10,788 news documents totaling 1.3 million words. These documents span 90 categories and are split into train and test. For more details, please see https://www.nltk.org/book/ch02.html. We provide a `read_corpus` function below that pulls out only articles from the \"crude\" (i.e. news articles about oil, gas, etc.) category. The function also adds START and END tokens to each of the documents, and lowercases words. You do **not** have perform any other kind of pre-processing."]},{"metadata":{"id":"XCB-XioC8grl","colab_type":"code","colab":{}},"cell_type":"code","source":["def read_corpus(category=\"crude\"):\n"," \"\"\" Read files from the specified Reuter's category.\n"," Params:\n"," category (string): category name\n"," Return:\n"," list of lists, with words from each of the processed files\n"," \"\"\"\n"," files = reuters.fileids(category)\n"," return [[START_TOKEN] + [w.lower() for w in list(reuters.words(f))] + [END_TOKEN] for f in files]\n"],"execution_count":0,"outputs":[]},{"metadata":{"id":"XnYzKeuY8gro","colab_type":"text"},"cell_type":"markdown","source":["Let's have a look what these documents are like…."]},{"metadata":{"scrolled":false,"id":"OVceu62e8grp","colab_type":"code","outputId":"6aab1ead-1c9f-4491-b880-6fb208bc9f30","executionInfo":{"status":"ok","timestamp":1553808598805,"user_tz":-420,"elapsed":3247,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":2227}},"cell_type":"code","source":["reuters_corpus = read_corpus()\n","pprint.pprint(reuters_corpus[:3], compact=True, width=100)"],"execution_count":4,"outputs":[{"output_type":"stream","text":["[['<START>', 'japan', 'to', 'revise', 'long', '-', 'term', 'energy', 'demand', 'downwards', 'the',\n"," 'ministry', 'of', 'international', 'trade', 'and', 'industry', '(', 'miti', ')', 'will', 'revise',\n"," 'its', 'long', '-', 'term', 'energy', 'supply', '/', 'demand', 'outlook', 'by', 'august', 'to',\n"," 'meet', 'a', 'forecast', 'downtrend', 'in', 'japanese', 'energy', 'demand', ',', 'ministry',\n"," 'officials', 'said', '.', 'miti', 'is', 'expected', 'to', 'lower', 'the', 'projection', 'for',\n"," 'primary', 'energy', 'supplies', 'in', 'the', 'year', '2000', 'to', '550', 'mln', 'kilolitres',\n"," '(', 'kl', ')', 'from', '600', 'mln', ',', 'they', 'said', '.', 'the', 'decision', 'follows',\n"," 'the', 'emergence', 'of', 'structural', 'changes', 'in', 'japanese', 'industry', 'following',\n"," 'the', 'rise', 'in', 'the', 'value', 'of', 'the', 'yen', 'and', 'a', 'decline', 'in', 'domestic',\n"," 'electric', 'power', 'demand', '.', 'miti', 'is', 'planning', 'to', 'work', 'out', 'a', 'revised',\n"," 'energy', 'supply', '/', 'demand', 'outlook', 'through', 'deliberations', 'of', 'committee',\n"," 'meetings', 'of', 'the', 'agency', 'of', 'natural', 'resources', 'and', 'energy', ',', 'the',\n"," 'officials', 'said', '.', 'they', 'said', 'miti', 'will', 'also', 'review', 'the', 'breakdown',\n"," 'of', 'energy', 'supply', 'sources', ',', 'including', 'oil', ',', 'nuclear', ',', 'coal', 'and',\n"," 'natural', 'gas', '.', 'nuclear', 'energy', 'provided', 'the', 'bulk', 'of', 'japan', \"'\", 's',\n"," 'electric', 'power', 'in', 'the', 'fiscal', 'year', 'ended', 'march', '31', ',', 'supplying',\n"," 'an', 'estimated', '27', 'pct', 'on', 'a', 'kilowatt', '/', 'hour', 'basis', ',', 'followed',\n"," 'by', 'oil', '(', '23', 'pct', ')', 'and', 'liquefied', 'natural', 'gas', '(', '21', 'pct', '),',\n"," 'they', 'noted', '.', '<END>'],\n"," ['<START>', 'energy', '/', 'u', '.', 's', '.', 'petrochemical', 'industry', 'cheap', 'oil',\n"," 'feedstocks', ',', 'the', 'weakened', 'u', '.', 's', '.', 'dollar', 'and', 'a', 'plant',\n"," 'utilization', 'rate', 'approaching', '90', 'pct', 'will', 'propel', 'the', 'streamlined', 'u',\n"," '.', 's', '.', 'petrochemical', 'industry', 'to', 'record', 'profits', 'this', 'year', ',',\n"," 'with', 'growth', 'expected', 'through', 'at', 'least', '1990', ',', 'major', 'company',\n"," 'executives', 'predicted', '.', 'this', 'bullish', 'outlook', 'for', 'chemical', 'manufacturing',\n"," 'and', 'an', 'industrywide', 'move', 'to', 'shed', 'unrelated', 'businesses', 'has', 'prompted',\n"," 'gaf', 'corp', '&', 'lt', ';', 'gaf', '>,', 'privately', '-', 'held', 'cain', 'chemical', 'inc',\n"," ',', 'and', 'other', 'firms', 'to', 'aggressively', 'seek', 'acquisitions', 'of', 'petrochemical',\n"," 'plants', '.', 'oil', 'companies', 'such', 'as', 'ashland', 'oil', 'inc', '&', 'lt', ';', 'ash',\n"," '>,', 'the', 'kentucky', '-', 'based', 'oil', 'refiner', 'and', 'marketer', ',', 'are', 'also',\n"," 'shopping', 'for', 'money', '-', 'making', 'petrochemical', 'businesses', 'to', 'buy', '.', '\"',\n"," 'i', 'see', 'us', 'poised', 'at', 'the', 'threshold', 'of', 'a', 'golden', 'period', ',\"', 'said',\n"," 'paul', 'oreffice', ',', 'chairman', 'of', 'giant', 'dow', 'chemical', 'co', '&', 'lt', ';',\n"," 'dow', '>,', 'adding', ',', '\"', 'there', \"'\", 's', 'no', 'major', 'plant', 'capacity', 'being',\n"," 'added', 'around', 'the', 'world', 'now', '.', 'the', 'whole', 'game', 'is', 'bringing', 'out',\n"," 'new', 'products', 'and', 'improving', 'the', 'old', 'ones', '.\"', 'analysts', 'say', 'the',\n"," 'chemical', 'industry', \"'\", 's', 'biggest', 'customers', ',', 'automobile', 'manufacturers',\n"," 'and', 'home', 'builders', 'that', 'use', 'a', 'lot', 'of', 'paints', 'and', 'plastics', ',',\n"," 'are', 'expected', 'to', 'buy', 'quantities', 'this', 'year', '.', 'u', '.', 's', '.',\n"," 'petrochemical', 'plants', 'are', 'currently', 'operating', 'at', 'about', '90', 'pct',\n"," 'capacity', ',', 'reflecting', 'tighter', 'supply', 'that', 'could', 'hike', 'product', 'prices',\n"," 'by', '30', 'to', '40', 'pct', 'this', 'year', ',', 'said', 'john', 'dosher', ',', 'managing',\n"," 'director', 'of', 'pace', 'consultants', 'inc', 'of', 'houston', '.', 'demand', 'for', 'some',\n"," 'products', 'such', 'as', 'styrene', 'could', 'push', 'profit', 'margins', 'up', 'by', 'as',\n"," 'much', 'as', '300', 'pct', ',', 'he', 'said', '.', 'oreffice', ',', 'speaking', 'at', 'a',\n"," 'meeting', 'of', 'chemical', 'engineers', 'in', 'houston', ',', 'said', 'dow', 'would', 'easily',\n"," 'top', 'the', '741', 'mln', 'dlrs', 'it', 'earned', 'last', 'year', 'and', 'predicted', 'it',\n"," 'would', 'have', 'the', 'best', 'year', 'in', 'its', 'history', '.', 'in', '1985', ',', 'when',\n"," 'oil', 'prices', 'were', 'still', 'above', '25', 'dlrs', 'a', 'barrel', 'and', 'chemical',\n"," 'exports', 'were', 'adversely', 'affected', 'by', 'the', 'strong', 'u', '.', 's', '.', 'dollar',\n"," ',', 'dow', 'had', 'profits', 'of', '58', 'mln', 'dlrs', '.', '\"', 'i', 'believe', 'the',\n"," 'entire', 'chemical', 'industry', 'is', 'headed', 'for', 'a', 'record', 'year', 'or', 'close',\n"," 'to', 'it', ',\"', 'oreffice', 'said', '.', 'gaf', 'chairman', 'samuel', 'heyman', 'estimated',\n"," 'that', 'the', 'u', '.', 's', '.', 'chemical', 'industry', 'would', 'report', 'a', '20', 'pct',\n"," 'gain', 'in', 'profits', 'during', '1987', '.', 'last', 'year', ',', 'the', 'domestic',\n"," 'industry', 'earned', 'a', 'total', 'of', '13', 'billion', 'dlrs', ',', 'a', '54', 'pct', 'leap',\n"," 'from', '1985', '.', 'the', 'turn', 'in', 'the', 'fortunes', 'of', 'the', 'once', '-', 'sickly',\n"," 'chemical', 'industry', 'has', 'been', 'brought', 'about', 'by', 'a', 'combination', 'of', 'luck',\n"," 'and', 'planning', ',', 'said', 'pace', \"'\", 's', 'john', 'dosher', '.', 'dosher', 'said', 'last',\n"," 'year', \"'\", 's', 'fall', 'in', 'oil', 'prices', 'made', 'feedstocks', 'dramatically', 'cheaper',\n"," 'and', 'at', 'the', 'same', 'time', 'the', 'american', 'dollar', 'was', 'weakening', 'against',\n"," 'foreign', 'currencies', '.', 'that', 'helped', 'boost', 'u', '.', 's', '.', 'chemical',\n"," 'exports', '.', 'also', 'helping', 'to', 'bring', 'supply', 'and', 'demand', 'into', 'balance',\n"," 'has', 'been', 'the', 'gradual', 'market', 'absorption', 'of', 'the', 'extra', 'chemical',\n"," 'manufacturing', 'capacity', 'created', 'by', 'middle', 'eastern', 'oil', 'producers', 'in',\n"," 'the', 'early', '1980s', '.', 'finally', ',', 'virtually', 'all', 'major', 'u', '.', 's', '.',\n"," 'chemical', 'manufacturers', 'have', 'embarked', 'on', 'an', 'extensive', 'corporate',\n"," 'restructuring', 'program', 'to', 'mothball', 'inefficient', 'plants', ',', 'trim', 'the',\n"," 'payroll', 'and', 'eliminate', 'unrelated', 'businesses', '.', 'the', 'restructuring', 'touched',\n"," 'off', 'a', 'flurry', 'of', 'friendly', 'and', 'hostile', 'takeover', 'attempts', '.', 'gaf', ',',\n"," 'which', 'made', 'an', 'unsuccessful', 'attempt', 'in', '1985', 'to', 'acquire', 'union',\n"," 'carbide', 'corp', '&', 'lt', ';', 'uk', '>,', 'recently', 'offered', 'three', 'billion', 'dlrs',\n"," 'for', 'borg', 'warner', 'corp', '&', 'lt', ';', 'bor', '>,', 'a', 'chicago', 'manufacturer',\n"," 'of', 'plastics', 'and', 'chemicals', '.', 'another', 'industry', 'powerhouse', ',', 'w', '.',\n"," 'r', '.', 'grace', '&', 'lt', ';', 'gra', '>', 'has', 'divested', 'its', 'retailing', ',',\n"," 'restaurant', 'and', 'fertilizer', 'businesses', 'to', 'raise', 'cash', 'for', 'chemical',\n"," 'acquisitions', '.', 'but', 'some', 'experts', 'worry', 'that', 'the', 'chemical', 'industry',\n"," 'may', 'be', 'headed', 'for', 'trouble', 'if', 'companies', 'continue', 'turning', 'their',\n"," 'back', 'on', 'the', 'manufacturing', 'of', 'staple', 'petrochemical', 'commodities', ',', 'such',\n"," 'as', 'ethylene', ',', 'in', 'favor', 'of', 'more', 'profitable', 'specialty', 'chemicals',\n"," 'that', 'are', 'custom', '-', 'designed', 'for', 'a', 'small', 'group', 'of', 'buyers', '.', '\"',\n"," 'companies', 'like', 'dupont', '&', 'lt', ';', 'dd', '>', 'and', 'monsanto', 'co', '&', 'lt', ';',\n"," 'mtc', '>', 'spent', 'the', 'past', 'two', 'or', 'three', 'years', 'trying', 'to', 'get', 'out',\n"," 'of', 'the', 'commodity', 'chemical', 'business', 'in', 'reaction', 'to', 'how', 'badly', 'the',\n"," 'market', 'had', 'deteriorated', ',\"', 'dosher', 'said', '.', '\"', 'but', 'i', 'think', 'they',\n"," 'will', 'eventually', 'kill', 'the', 'margins', 'on', 'the', 'profitable', 'chemicals', 'in',\n"," 'the', 'niche', 'market', '.\"', 'some', 'top', 'chemical', 'executives', 'share', 'the',\n"," 'concern', '.', '\"', 'the', 'challenge', 'for', 'our', 'industry', 'is', 'to', 'keep', 'from',\n"," 'getting', 'carried', 'away', 'and', 'repeating', 'past', 'mistakes', ',\"', 'gaf', \"'\", 's',\n"," 'heyman', 'cautioned', '.', '\"', 'the', 'shift', 'from', 'commodity', 'chemicals', 'may', 'be',\n"," 'ill', '-', 'advised', '.', 'specialty', 'businesses', 'do', 'not', 'stay', 'special', 'long',\n"," '.\"', 'houston', '-', 'based', 'cain', 'chemical', ',', 'created', 'this', 'month', 'by', 'the',\n"," 'sterling', 'investment', 'banking', 'group', ',', 'believes', 'it', 'can', 'generate', '700',\n"," 'mln', 'dlrs', 'in', 'annual', 'sales', 'by', 'bucking', 'the', 'industry', 'trend', '.',\n"," 'chairman', 'gordon', 'cain', ',', 'who', 'previously', 'led', 'a', 'leveraged', 'buyout', 'of',\n"," 'dupont', \"'\", 's', 'conoco', 'inc', \"'\", 's', 'chemical', 'business', ',', 'has', 'spent', '1',\n"," '.', '1', 'billion', 'dlrs', 'since', 'january', 'to', 'buy', 'seven', 'petrochemical', 'plants',\n"," 'along', 'the', 'texas', 'gulf', 'coast', '.', 'the', 'plants', 'produce', 'only', 'basic',\n"," 'commodity', 'petrochemicals', 'that', 'are', 'the', 'building', 'blocks', 'of', 'specialty',\n"," 'products', '.', '\"', 'this', 'kind', 'of', 'commodity', 'chemical', 'business', 'will', 'never',\n"," 'be', 'a', 'glamorous', ',', 'high', '-', 'margin', 'business', ',\"', 'cain', 'said', ',',\n"," 'adding', 'that', 'demand', 'is', 'expected', 'to', 'grow', 'by', 'about', 'three', 'pct',\n"," 'annually', '.', 'garo', 'armen', ',', 'an', 'analyst', 'with', 'dean', 'witter', 'reynolds', ',',\n"," 'said', 'chemical', 'makers', 'have', 'also', 'benefitted', 'by', 'increasing', 'demand', 'for',\n"," 'plastics', 'as', 'prices', 'become', 'more', 'competitive', 'with', 'aluminum', ',', 'wood',\n"," 'and', 'steel', 'products', '.', 'armen', 'estimated', 'the', 'upturn', 'in', 'the', 'chemical',\n"," 'business', 'could', 'last', 'as', 'long', 'as', 'four', 'or', 'five', 'years', ',', 'provided',\n"," 'the', 'u', '.', 's', '.', 'economy', 'continues', 'its', 'modest', 'rate', 'of', 'growth', '.',\n"," '<END>'],\n"," ['<START>', 'turkey', 'calls', 'for', 'dialogue', 'to', 'solve', 'dispute', 'turkey', 'said',\n"," 'today', 'its', 'disputes', 'with', 'greece', ',', 'including', 'rights', 'on', 'the',\n"," 'continental', 'shelf', 'in', 'the', 'aegean', 'sea', ',', 'should', 'be', 'solved', 'through',\n"," 'negotiations', '.', 'a', 'foreign', 'ministry', 'statement', 'said', 'the', 'latest', 'crisis',\n"," 'between', 'the', 'two', 'nato', 'members', 'stemmed', 'from', 'the', 'continental', 'shelf',\n"," 'dispute', 'and', 'an', 'agreement', 'on', 'this', 'issue', 'would', 'effect', 'the', 'security',\n"," ',', 'economy', 'and', 'other', 'rights', 'of', 'both', 'countries', '.', '\"', 'as', 'the',\n"," 'issue', 'is', 'basicly', 'political', ',', 'a', 'solution', 'can', 'only', 'be', 'found', 'by',\n"," 'bilateral', 'negotiations', ',\"', 'the', 'statement', 'said', '.', 'greece', 'has', 'repeatedly',\n"," 'said', 'the', 'issue', 'was', 'legal', 'and', 'could', 'be', 'solved', 'at', 'the',\n"," 'international', 'court', 'of', 'justice', '.', 'the', 'two', 'countries', 'approached', 'armed',\n"," 'confrontation', 'last', 'month', 'after', 'greece', 'announced', 'it', 'planned', 'oil',\n"," 'exploration', 'work', 'in', 'the', 'aegean', 'and', 'turkey', 'said', 'it', 'would', 'also',\n"," 'search', 'for', 'oil', '.', 'a', 'face', '-', 'off', 'was', 'averted', 'when', 'turkey',\n"," 'confined', 'its', 'research', 'to', 'territorrial', 'waters', '.', '\"', 'the', 'latest',\n"," 'crises', 'created', 'an', 'historic', 'opportunity', 'to', 'solve', 'the', 'disputes', 'between',\n"," 'the', 'two', 'countries', ',\"', 'the', 'foreign', 'ministry', 'statement', 'said', '.', 'turkey',\n"," \"'\", 's', 'ambassador', 'in', 'athens', ',', 'nazmi', 'akiman', ',', 'was', 'due', 'to', 'meet',\n"," 'prime', 'minister', 'andreas', 'papandreou', 'today', 'for', 'the', 'greek', 'reply', 'to', 'a',\n"," 'message', 'sent', 'last', 'week', 'by', 'turkish', 'prime', 'minister', 'turgut', 'ozal', '.',\n"," 'the', 'contents', 'of', 'the', 'message', 'were', 'not', 'disclosed', '.', '<END>']]\n"],"name":"stdout"}]},{"metadata":{"id":"FUjK9aPN8grs","colab_type":"text"},"cell_type":"markdown","source":["### Question 1.1: Implement `distinct_words` [code] (2 points)\n","\n","Write a method to work out the distinct words (word types) that occur in the corpus. You can do this with `for` loops, but it's more efficient to do it with Python list comprehensions. In particular, [this](https://coderwall.com/p/rcmaea/flatten-a-list-of-lists-in-one-line-in-python) may be useful to flatten a list of lists. If you're not familiar with Python list comprehensions in general, here's [more information](https://python-3-patterns-idioms-test.readthedocs.io/en/latest/Comprehensions.html).\n","\n","You may find it useful to use [Python sets](https://www.w3schools.com/python/python_sets.asp) to remove duplicate words."]},{"metadata":{"id":"HobvfyyK8grs","colab_type":"code","colab":{}},"cell_type":"code","source":["def distinct_words(corpus):\n"," \"\"\" Determine a list of distinct words for the corpus.\n"," Params:\n"," corpus (list of list of strings): corpus of documents\n"," Return:\n"," corpus_words (list of strings): list of distinct words across the corpus, sorted (using python 'sorted' function)\n"," num_corpus_words (integer): number of distinct words across the corpus\n"," \"\"\"\n"," corpus_words = []\n"," num_corpus_words = -1\n"," \n"," # ------------------\n"," # Write your implementation here.\n"," corpus = set([y for x in corpus for y in x])\n"," corpus_words.extend(sorted([w for w in corpus if type(w)== str]))\n"," num_corpus_words = len(corpus_words)\n"," # ------------------\n","\n"," return corpus_words, num_corpus_words"],"execution_count":0,"outputs":[]},{"metadata":{"id":"pSC1XB5u8grw","colab_type":"code","outputId":"72998f6f-0f24-46b8-bc67-3177c4602af7","executionInfo":{"status":"ok","timestamp":1553808606595,"user_tz":-420,"elapsed":1734,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":68}},"cell_type":"code","source":["# ---------------------\n","# Run this sanity check\n","# Note that this not an exhaustive check for correctness.\n","# ---------------------\n","\n","# Define toy corpus\n","test_corpus = [\"START All that glitters isn't gold END\".split(\" \"), \"START All's well that ends well END\".split(\" \")]\n","test_corpus_words, num_corpus_words = distinct_words(test_corpus)\n","\n","# Correct answers\n","ans_test_corpus_words = sorted(list(set([\"START\", \"All\", \"ends\", \"that\", \"gold\", \"All's\", \"glitters\", \"isn't\", \"well\", \"END\"])))\n","ans_num_corpus_words = len(ans_test_corpus_words)\n","\n","# Test correct number of words\n","assert(num_corpus_words == ans_num_corpus_words), \"Incorrect number of distinct words. Correct: {}. Yours: {}\".format(ans_num_corpus_words, num_corpus_words)\n","\n","# Test correct words\n","assert (test_corpus_words == ans_test_corpus_words), \"Incorrect corpus_words.\\nCorrect: {}\\nYours: {}\".format(str(ans_test_corpus_words), str(test_corpus_words))\n","\n","# Print Success\n","print (\"-\" * 80)\n","print(\"Passed All Tests!\")\n","print (\"-\" * 80)"],"execution_count":6,"outputs":[{"output_type":"stream","text":["--------------------------------------------------------------------------------\n","Passed All Tests!\n","--------------------------------------------------------------------------------\n"],"name":"stdout"}]},{"metadata":{"id":"CzhBEc9w8grz","colab_type":"text"},"cell_type":"markdown","source":["### Question 1.2: Implement `compute_co_occurrence_matrix` [code] (3 points)\n","\n","Write a method that constructs a co-occurrence matrix for a certain window-size $n$ (with a default of 4), considering words $n$ before and $n$ after the word in the center of the window. Here, we start to use `numpy (np)` to represent vectors, matrices, and tensors. If you're not familiar with NumPy, there's a NumPy tutorial in the second half of this cs231n [Python NumPy tutorial](http://cs231n.github.io/python-numpy-tutorial/).\n"]},{"metadata":{"id":"ktim46qG8gr1","colab_type":"code","colab":{}},"cell_type":"code","source":["def compute_co_occurrence_matrix(corpus, window_size=4):\n"," \"\"\" Compute co-occurrence matrix for the given corpus and window_size (default of 4).\n"," \n"," Note: Each word in a document should be at the center of a window. Words near edges will have a smaller\n"," number of co-occurring words.\n"," \n"," For example, if we take the document \"START All that glitters is not gold END\" with window size of 4,\n"," \"All\" will co-occur with \"START\", \"that\", \"glitters\", \"is\", and \"not\".\n"," \n"," Params:\n"," corpus (list of list of strings): corpus of documents\n"," window_size (int): size of context window\n"," Return:\n"," M (numpy matrix of shape (number of corpus words, number of corpus words)): \n"," Co-occurence matrix of word counts. \n"," The ordering of the words in the rows/columns should be the same as the ordering of the words given by the distinct_words function.\n"," word2Ind (dict): dictionary that maps word to index (i.e. row/column number) for matrix M.\n"," \"\"\"\n"," words, num_words = distinct_words(corpus)\n"," M = None\n"," word2Ind = {}\n"," \n"," # ------------------\n"," # Write your implementation here.\n"," mlist = []\n"," for i in range(num_words):\n"," words_i = words[i]\n"," word2Ind[words[i]] = i\n"," arr_i = np.zeros(num_words)\n"," windowed = []\n"," for j in range(len(corpus)):\n"," corpus_j = corpus[j]\n"," if words_i in corpus_j:\n"," for m in range(1,corpus_j.count(words_i)+1):\n"," if corpus_j.count(words_i) == 1:\n"," k = corpus_j.index(words_i)\n"," else:\n"," k = corpus_j.index(words_i,m+1)\n"," if k == 0:\n"," windowed.extend(corpus_j[k+1:k+1+window_size])\n"," elif k+1 == len(corpus_j):\n"," windowed.extend(corpus_j[k-window_size:k])\n"," elif k-window_size < 0:\n"," windowed.extend(corpus_j[0:k])\n"," windowed.extend(corpus_j[k+1:k+1+window_size])\n"," elif k+window_size >=len(corpus_j):\n"," windowed.extend(corpus_j[k-window_size:k])\n"," windowed.extend(corpus_j[k+1:])\n"," else:\n"," windowed.extend(corpus_j[k-window_size:k])\n"," windowed.extend(corpus_j[k+1:k+1+window_size])\n"," for w in words:\n"," if w != words_i and w in windowed:\n"," arr_i[words.index(w)] = windowed.count(w)\n"," mlist.append(arr_i)\n"," M = np.array(mlist)\n"," \n"," \n"," # ------------------\n","\n"," return M, word2Ind"],"execution_count":0,"outputs":[]},{"metadata":{"id":"6gPwLqTo8gr6","colab_type":"code","outputId":"57e02e58-b220-4158-fc85-8c566cfc0b28","executionInfo":{"status":"ok","timestamp":1553808610606,"user_tz":-420,"elapsed":1316,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":68}},"cell_type":"code","source":["# ---------------------\n","# Run this sanity check\n","# Note that this is not an exhaustive check for correctness.\n","# ---------------------\n","\n","# Define toy corpus and get student's co-occurrence matrix\n","test_corpus = [\"START All that glitters isn't gold END\".split(\" \"), \"START All's well that ends well END\".split(\" \")]\n","M_test, word2Ind_test = compute_co_occurrence_matrix(test_corpus, window_size=1)\n","\n","# Correct M and word2Ind\n","M_test_ans = np.array( \n"," [[0., 0., 0., 1., 0., 0., 0., 0., 1., 0.,],\n"," [0., 0., 0., 1., 0., 0., 0., 0., 0., 1.,],\n"," [0., 0., 0., 0., 0., 0., 1., 0., 0., 1.,],\n"," [1., 1., 0., 0., 0., 0., 0., 0., 0., 0.,],\n"," [0., 0., 0., 0., 0., 0., 0., 0., 1., 1.,],\n"," [0., 0., 0., 0., 0., 0., 0., 1., 1., 0.,],\n"," [0., 0., 1., 0., 0., 0., 0., 1., 0., 0.,],\n"," [0., 0., 0., 0., 0., 1., 1., 0., 0., 0.,],\n"," [1., 0., 0., 0., 1., 1., 0., 0., 0., 1.,],\n"," [0., 1., 1., 0., 1., 0., 0., 0., 1., 0.,]]\n",")\n","word2Ind_ans = {'All': 0, \"All's\": 1, 'END': 2, 'START': 3, 'ends': 4, 'glitters': 5, 'gold': 6, \"isn't\": 7, 'that': 8, 'well': 9}\n","\n","# Test correct word2Ind\n","assert (word2Ind_ans == word2Ind_test), \"Your word2Ind is incorrect:\\nCorrect: {}\\nYours: {}\".format(word2Ind_ans, word2Ind_test)\n","\n","# Test correct M shape\n","assert (M_test.shape == M_test_ans.shape), \"M matrix has incorrect shape.\\nCorrect: {}\\nYours: {}\".format(M_test.shape, M_test_ans.shape)\n","\n","# Test correct M values\n","for w1 in word2Ind_ans.keys():\n"," idx1 = word2Ind_ans[w1]\n"," for w2 in word2Ind_ans.keys():\n"," idx2 = word2Ind_ans[w2]\n"," student = M_test[idx1, idx2]\n"," correct = M_test_ans[idx1, idx2]\n"," if student != correct:\n"," print(\"Correct M:\")\n"," print(M_test_ans)\n"," print(\"Your M: \")\n"," print(M_test)\n"," raise AssertionError(\"Incorrect count at index ({}, {})=({}, {}) in matrix M. Yours has {} but should have {}.\".format(idx1, idx2, w1, w2, student, correct))\n","\n","# Print Success\n","print (\"-\" * 80)\n","print(\"Passed All Tests!\")\n","print (\"-\" * 80)"],"execution_count":8,"outputs":[{"output_type":"stream","text":["--------------------------------------------------------------------------------\n","Passed All Tests!\n","--------------------------------------------------------------------------------\n"],"name":"stdout"}]},{"metadata":{"id":"VspEBPuk8gsB","colab_type":"text"},"cell_type":"markdown","source":["### Question 1.3: Implement `reduce_to_k_dim` [code] (1 point)\n","\n","Construct a method that performs dimensionality reduction on the matrix to produce k-dimensional embeddings. Use SVD to take the top k components and produce a new matrix of k-dimensional embeddings. \n","\n","**Note:** All of numpy, scipy, and scikit-learn (`sklearn`) provide *some* implementation of SVD, but only scipy and sklearn provide an implementation of Truncated SVD, and only sklearn provides an efficient randomized algorithm for calculating large-scale Truncated SVD. So please use [sklearn.decomposition.TruncatedSVD](https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.TruncatedSVD.html)."]},{"metadata":{"id":"k9OQi6Xl8gsC","colab_type":"code","colab":{}},"cell_type":"code","source":["def reduce_to_k_dim(M, k=2):\n"," \"\"\" Reduce a co-occurence count matrix of dimensionality (num_corpus_words, num_corpus_words)\n"," to a matrix of dimensionality (num_corpus_words, k) using the following SVD function from Scikit-Learn:\n"," - http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.TruncatedSVD.html\n"," \n"," Params:\n"," M (numpy matrix of shape (number of corpus words, number of corpus words)): co-occurence matrix of word counts\n"," k (int): embedding size of each word after dimension reduction\n"," Return:\n"," M_reduced (numpy matrix of shape (number of corpus words, k)): matrix of k-dimensioal word embeddings.\n"," In terms of the SVD from math class, this actually returns U * S\n"," \"\"\" \n"," n_iters = 10 # Use this parameter in your call to `TruncatedSVD`\n"," M_reduced = None\n"," print(\"Running Truncated SVD over %i words...\" % (M.shape[0]))\n"," \n"," # ------------------\n"," # Write your implementation here.\n"," from sklearn.decomposition import TruncatedSVD\n"," svd = TruncatedSVD(n_components = k, n_iter = n_iters)\n"," M_reduced = svd.fit_transform(M)\n"," \n"," # ------------------\n","\n"," print(\"Done.\")\n"," return M_reduced"],"execution_count":0,"outputs":[]},{"metadata":{"id":"c7XjKZgN8gsG","colab_type":"code","outputId":"74e5bd47-2722-4c6c-8a3c-1c995570d190","executionInfo":{"status":"ok","timestamp":1553808614792,"user_tz":-420,"elapsed":1451,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":102}},"cell_type":"code","source":["# ---------------------\n","# Run this sanity check\n","# Note that this not an exhaustive check for correctness \n","# In fact we only check that your M_reduced has the right dimensions.\n","# ---------------------\n","\n","# Define toy corpus and run student code\n","test_corpus = [\"START All that glitters isn't gold END\".split(\" \"), \"START All's well that ends well END\".split(\" \")]\n","M_test, word2Ind_test = compute_co_occurrence_matrix(test_corpus, window_size=1)\n","M_test_reduced = reduce_to_k_dim(M_test, k=2)\n","\n","# Test proper dimensions\n","assert (M_test_reduced.shape[0] == 10), \"M_reduced has {} rows; should have {}\".format(M_test_reduced.shape[0], 10)\n","assert (M_test_reduced.shape[1] == 2), \"M_reduced has {} columns; should have {}\".format(M_test_reduced.shape[1], 2)\n","\n","# Print Success\n","print (\"-\" * 80)\n","print(\"Passed All Tests!\")\n","print (\"-\" * 80)"],"execution_count":10,"outputs":[{"output_type":"stream","text":["Running Truncated SVD over 10 words...\n","Done.\n","--------------------------------------------------------------------------------\n","Passed All Tests!\n","--------------------------------------------------------------------------------\n"],"name":"stdout"}]},{"metadata":{"id":"pz7-TOLG8gsJ","colab_type":"text"},"cell_type":"markdown","source":["### Question 1.4: Implement `plot_embeddings` [code] (1 point)\n","\n","Here you will write a function to plot a set of 2D vectors in 2D space. For graphs, we will use Matplotlib (`plt`).\n","\n","For this example, you may find it useful to adapt [this code](https://www.pythonmembers.club/2018/05/08/matplotlib-scatter-plot-annotate-set-text-at-label-each-point/). In the future, a good way to make a plot is to look at [the Matplotlib gallery](https://matplotlib.org/gallery/index.html), find a plot that looks somewhat like what you want, and adapt the code they give."]},{"metadata":{"id":"uDO2iDSX8gsK","colab_type":"code","colab":{}},"cell_type":"code","source":["def plot_embeddings(M_reduced, word2Ind, words):\n"," \"\"\" Plot in a scatterplot the embeddings of the words specified in the list \"words\".\n"," NOTE: do not plot all the words listed in M_reduced / word2Ind.\n"," Include a label next to each point.\n"," \n"," Params:\n"," M_reduced (numpy matrix of shape (number of unique words in the corpus , k)): matrix of k-dimensioal word embeddings\n"," word2Ind (dict): dictionary that maps word to indices for matrix M\n"," words (list of strings): words whose embeddings we want to visualize\n"," \"\"\"\n","\n"," # ------------------\n"," # Write your implementation here.\n"," import matplotlib.pyplot as plt\n"," x_coords = M_reduced[:,0]\n"," y_coords = M_reduced[:,1]\n"," for w in words:\n"," i = word2Ind[w]\n"," x = x_coords[i]\n"," y = y_coords[i]\n"," plt.scatter(x, y, marker='x', color= 'red')\n"," plt.text(x+0.001, y+0.001, w, fontsize=12)\n"," plt.show()\n"," # ------------------"],"execution_count":0,"outputs":[]},{"metadata":{"id":"lQEubNyS8gsM","colab_type":"code","outputId":"2cfe421d-e05c-4b33-b261-e20aa305bbe4","executionInfo":{"status":"ok","timestamp":1553808619101,"user_tz":-420,"elapsed":1520,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}},"colab":{"base_uri":"https://localhost:8080/","height":371}},"cell_type":"code","source":["# ---------------------\n","# Run this sanity check\n","# Note that this not an exhaustive check for correctness.\n","# The plot produced should look like the \"test solution plot\" depicted below. \n","# ---------------------\n","\n","print (\"-\" * 80)\n","print (\"Outputted Plot:\")\n","\n","M_reduced_plot_test = np.array([[1, 1], [-1, -1], [1, -1], [-1, 1], [0, 0]])\n","word2Ind_plot_test = {'test1': 0, 'test2': 1, 'test3': 2, 'test4': 3, 'test5': 4}\n","words = ['test1', 'test2', 'test3', 'test4', 'test5']\n","plot_embeddings(M_reduced_plot_test, word2Ind_plot_test, words)\n","\n","print (\"-\" * 80)"],"execution_count":12,"outputs":[{"output_type":"stream","text":["--------------------------------------------------------------------------------\n","Outputted Plot:\n"],"name":"stdout"},{"output_type":"display_data","data":{"image/png":"iVBORw0KGgoAAAANSUhEUgAAAlcAAAEvCAYAAABoouS1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpY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zQZYHHnhAK1as0LXXXivp9JXqlnxun3Hmq4MO\nHTokb29vhYSEaMiQIQoNDW2253mrD1cAAACNyfa3BQEAAEwiXAEAABhEuAIAADCIcAUAAGAQ4QoA\nAMAgwhUAAIBBhCsAAACDCFcAAAAG/T8chmqQAxAJDgAAAABJRU5ErkJggg==\n","text/plain":["<Figure size 720x360 with 1 Axes>"]},"metadata":{"tags":[]}},{"output_type":"stream","text":["--------------------------------------------------------------------------------\n"],"name":"stdout"}]},{"metadata":{"id":"mRDplyV48gsN","colab_type":"text"},"cell_type":"markdown","source":["<font color=red>**Test Plot Solution**</font>\n","<br>\n","<img src=\"imgs/test_plot.png\" width=40% style=\"float: left;\"> </img>\n"]},{"metadata":{"id":"TQapfwOG8gsO","colab_type":"text"},"cell_type":"markdown","source":["### Question 1.5: Co-Occurrence Plot Analysis [written] (3 points)\n","\n","Now we will put together all the parts you have written! We will compute the co-occurrence matrix with fixed window of 4, over the Reuters \"crude\" corpus. Then we will use TruncatedSVD to compute 2-dimensional embeddings of each word. TruncatedSVD returns U\\*S, so we normalize the returned vectors, so that all the vectors will appear around the unit circle (therefore closeness is directional closeness). **Note**: The line of code below that does the normalizing uses the NumPy concept of *broadcasting*. If you don't know about broadcasting, check out\n","[Computation on Arrays: Broadcasting by Jake VanderPlas](https://jakevdp.github.io/PythonDataScienceHandbook/02.05-computation-on-arrays-broadcasting.html).\n","\n","Run the below cell to produce the plot. It'll probably take a few seconds to run. What clusters together in 2-dimensional embedding space? What doesn't cluster together that you might think should have? **Note:** \"bpd\" stands for \"barrels per day\" and is a commonly used abbreviation in crude oil topic articles."]},{"metadata":{"id":"Q2LYE3Lw8gsP","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":357},"outputId":"e13319fb-7a2b-43a9-cfaa-398b39b20bb4","executionInfo":{"status":"ok","timestamp":1553808805940,"user_tz":-420,"elapsed":184060,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}}},"cell_type":"code","source":["# -----------------------------\n","# Run This Cell to Produce Your Plot\n","# ------------------------------\n","reuters_corpus = read_corpus()\n","M_co_occurrence, word2Ind_co_occurrence = compute_co_occurrence_matrix(reuters_corpus)\n","M_reduced_co_occurrence = reduce_to_k_dim(M_co_occurrence, k=2)\n","\n","# Rescale (normalize) the rows to make them each of unit-length\n","M_lengths = np.linalg.norm(M_reduced_co_occurrence, axis=1)\n","M_normalized = M_reduced_co_occurrence / M_lengths[:, np.newaxis] # broadcasting\n","\n","words = ['barrels', 'bpd', 'ecuador', 'energy', 'industry', 'kuwait', 'oil', 'output', 'petroleum', 'venezuela']\n","plot_embeddings(M_normalized, word2Ind_co_occurrence, words)"],"execution_count":13,"outputs":[{"output_type":"stream","text":["Running Truncated SVD over 8185 words...\n","Done.\n"],"name":"stdout"},{"output_type":"display_data","data":{"image/png":"iVBORw0KGgoAAAANSUhEUgAAAn0AAAEyCAYAAACPlWbpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzs3XlcVGX///HXAAIKjEKALWp3uWtq\nmmaKJbeiJFmaiiuoYXoTWd3dVpKZ0i+3/KqVt22aZrlFKKlhmWm4k97eGKbd5VIWLiCILC4gDPP7\nA52axG0cFpn38/Ho8Zg551znXOcD5ttznXMdg9lsNiMiIiIiVZpTRXdARERERMqeQp+IiIiIA1Do\nExEREXEACn0iIiIiDkChT0RERMQBKPSJiIiIOAAXWxtOmTKFlJQUDAYD48aNo2XLlpZ127dvZ9as\nWTg7O/PQQw/x9NNPs2PHDp577jkaNmwIQKNGjXj11Vdv/AxERERE5KpsCn07d+7kt99+IzY2lkOH\nDjFu3DhiY2Mt6ydNmsT8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ontv6O\nBgcH079/fwDGjx+v/2XQgqAAAADCSURBVPn/ia01/et9P/IHW2o6YMCA/9+eHZtICEVhGP0XBkwt\nwMRWBBNjQ7swMzIVbMg+bMEuBKeAzTaZYd85Hdx3k4/7sixLpmnKfd9Z1/XTY3yNv7xnXdd5nifj\nOKaqquz7/ukxvsp5ntm2Ldd15fV65TiOdF2XpmnS933Wdc08z0mSYRjStm3atv21h//u5ynhExsA\noHDOAwAABRB9AAAFEH0AAAUQfQAABRB9AAAFEH0AAAUQfQAABRB9AAAFeANFEmulO3QicQAAAABJ\nRU5ErkJggg==\n","text/plain":["<Figure size 720x360 with 1 Axes>"]},"metadata":{"tags":[]}}]},{"metadata":{"id":"SB4y2_Hp8gsQ","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>\n"," From the plot, I can simply assume that \"oil\" and \"industry\" cluster together; \"energy\" has a weak connection from this cluster; \"ecuador\" and \"venezuela\" cluster together; all other words from the list don't cluster together."]},{"metadata":{"id":"PxDAXlLr8gsS","colab_type":"text"},"cell_type":"markdown","source":["## Part 2: Prediction-Based Word Vectors (15 points)\n","\n","As discussed in class, more recently prediction-based word vectors have come into fashion, e.g. word2vec. Here, we shall explore the embeddings produced by word2vec. Please revisit the class notes and lecture slides for more details on the word2vec algorithm. If you're feeling adventurous, challenge yourself and try reading the [original paper](https://papers.nips.cc/paper/5021-distributed-representations-of-words-and-phrases-and-their-compositionality.pdf).\n","\n","Then run the following cells to load the word2vec vectors into memory. **Note**: This might take several minutes."]},{"metadata":{"id":"2sjG4fVl8gsS","colab_type":"code","colab":{}},"cell_type":"code","source":["def load_word2vec():\n"," \"\"\" Load Word2Vec Vectors\n"," Return:\n"," wv_from_bin: All 3 million embeddings, each lengh 300\n"," \"\"\"\n"," import gensim.downloader as api\n"," wv_from_bin = api.load(\"word2vec-google-news-300\")\n"," vocab = list(wv_from_bin.vocab.keys())\n"," print(\"Loaded vocab size %i\" % len(vocab))\n"," return wv_from_bin"],"execution_count":0,"outputs":[]},{"metadata":{"id":"ZxycN-uc8gsU","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":34},"outputId":"27b008ef-507a-44e1-fc93-a9d205b91995","executionInfo":{"status":"ok","timestamp":1553808956491,"user_tz":-420,"elapsed":136136,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}}},"cell_type":"code","source":["# -----------------------------------\n","# Run Cell to Load Word Vectors\n","# Note: This may take several minutes\n","# -----------------------------------\n","wv_from_bin = load_word2vec()"],"execution_count":15,"outputs":[{"output_type":"stream","text":["Loaded vocab size 3000000\n"],"name":"stdout"}]},{"metadata":{"id":"8aZUgJaT8gsZ","colab_type":"text"},"cell_type":"markdown","source":["**Note: If you are receiving out of memory issues on your local machine, try closing other applications to free more memory on your device. You may want to try restarting your machine so that you can free up extra memory. Then immediately run the jupyter notebook and see if you can load the word vectors properly. If you still have problems with loading the embeddings onto your local machine after this, please follow the Piazza instructions, as how to run remotely on Stanford Farmshare machines.**"]},{"metadata":{"id":"plHQbTki8gsa","colab_type":"text"},"cell_type":"markdown","source":["### Reducing dimensionality of Word2Vec Word Embeddings\n","Let's directly compare the word2vec embeddings to those of the co-occurrence matrix. Run the following cells to:\n","\n","1. Put the 3 million word2vec vectors into a matrix M\n","2. Run reduce_to_k_dim (your Truncated SVD function) to reduce the vectors from 300-dimensional to 2-dimensional."]},{"metadata":{"id":"sXjsudfz8gsb","colab_type":"code","colab":{}},"cell_type":"code","source":["def get_matrix_of_vectors(wv_from_bin, required_words=['barrels', 'bpd', 'ecuador', 'energy', 'industry', 'kuwait', 'oil', 'output', 'petroleum', 'venezuela']):\n"," \"\"\" Put the word2vec vectors into a matrix M.\n"," Param:\n"," wv_from_bin: KeyedVectors object; the 3 million word2vec vectors loaded from file\n"," Return:\n"," M: numpy matrix shape (num words, 300) containing the vectors\n"," word2Ind: dictionary mapping each word to its row number in M\n"," \"\"\"\n"," import random\n"," words = list(wv_from_bin.vocab.keys())\n"," print(\"Shuffling words ...\")\n"," random.shuffle(words)\n"," words = words[:10000]\n"," print(\"Putting %i words into word2Ind and matrix M...\" % len(words))\n"," word2Ind = {}\n"," M = []\n"," curInd = 0\n"," for w in words:\n"," try:\n"," M.append(wv_from_bin.word_vec(w))\n"," word2Ind[w] = curInd\n"," curInd += 1\n"," except KeyError:\n"," continue\n"," for w in required_words:\n"," try:\n"," M.append(wv_from_bin.word_vec(w))\n"," word2Ind[w] = curInd\n"," curInd += 1\n"," except KeyError:\n"," continue\n"," M = np.stack(M)\n"," print(\"Done.\")\n"," return M, word2Ind"],"execution_count":0,"outputs":[]},{"metadata":{"id":"hjs1W5pT8gsd","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":102},"outputId":"f771b7b6-eb6a-43f5-e5d5-a19717b95f5d","executionInfo":{"status":"ok","timestamp":1553808979144,"user_tz":-420,"elapsed":5034,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}}},"cell_type":"code","source":["# -----------------------------------------------------------------\n","# Run Cell to Reduce 300-Dimensinal Word Embeddings to k Dimensions\n","# Note: This may take several minutes\n","# -----------------------------------------------------------------\n","M, word2Ind = get_matrix_of_vectors(wv_from_bin)\n","M_reduced = reduce_to_k_dim(M, k=2)"],"execution_count":17,"outputs":[{"output_type":"stream","text":["Shuffling words ...\n","Putting 10000 words into word2Ind and matrix M...\n","Done.\n","Running Truncated SVD over 10010 words...\n","Done.\n"],"name":"stdout"}]},{"metadata":{"id":"N8PXqo4W8gsf","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.1: Word2Vec Plot Analysis [written] (4 points)\n","\n","Run the cell below to plot the 2D word2vec embeddings for `['barrels', 'bpd', 'ecuador', 'energy', 'industry', 'kuwait', 'oil', 'output', 'petroleum', 'venezuela']`.\n","\n","What clusters together in 2-dimensional embedding space? What doesn't cluster together that you might think should have? How is the plot different from the one generated earlier from the co-occurrence matrix?"]},{"metadata":{"id":"O-0qInQI8gsg","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":320},"outputId":"1293578a-6b89-4842-a10c-d932637c5aa1","executionInfo":{"status":"ok","timestamp":1553808984808,"user_tz":-420,"elapsed":1275,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}}},"cell_type":"code","source":["words = ['barrels', 'bpd', 'ecuador', 'energy', 'industry', 'kuwait', 'oil', 'output', 'petroleum', 'venezuela']\n","plot_embeddings(M_reduced, word2Ind, words)"],"execution_count":18,"outputs":[{"output_type":"display_data","data":{"image/png":"iVBORw0KGgoAAAANSUhEUgAAAlcAAAEvCAYAAABoouS1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzt3WlclPX+//HXDASIzKAIaImdzDVp\nOeJShrkgLsdMS01wN80OWdlmZfo7YkdB85inTEszl3JFidTjfjxpaqJmGqb9T6mVuwIqmwIKzP8G\nOcXJ0MZrGAbfzztxrfOZz4O83lzf71xjstlsNkRERETEEGZXFyAiIiJSkShciYiIiBhI4UpERETE\nQApXIiIiIgZSuBIRERExkMKViIiIiIE8XV3AFQUFhZw/f9HVZVQ4Vav6qq9OoL46j3rrHOqrc6iv\nzuEOfQ0KsvzutnJz58rT08PVJVRI6qtzqK/Oo946h/rqHOqrc7h7X8tNuBIRERGpCBSuRERERAyk\ncCUiIiJiIIcntMfHx5OSkoLJZGLUqFHce++99m0RERHUqFEDD4/iMdPJk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8MSM6TEKkvMEMjLc1FBIiIi\nN0bhSlwnL88+JJgf2YH0Q8fIj+xgn4OlgCUiIu5I4UpcxnvVCnuwypqzAJvVn6w5C+wBy3vVCleX\nKCIi8odpQru4TH7PKLKgxHOurkxy9161gvyeUS6tT0RExBEKV+JSVw1QPj4KViIi4rY0LCgiIiJi\nIIUrEREREQMpXImIiIgYSOFKRERExEAKVyIiIiIGUrgSERERMZDClYiIiIiBFK5EREREDKRwJSIi\nImIghSsRERERAylciYiIiBhI4UpERETEQApXIiIiIgZSuBIRERExkMKViIiIiIEUrkREREQMpHAl\nIiIiYiCFKxEREREDKVyJiIiIGEjhSkRERMRAClciIiIiBlK4EhERETGQw+EqPj6eqKgooqOj2bdv\n31X3eeutt+jfv7/DxYmIiIi4G4fC1a5duzhy5AgJCQnExcURFxf3m30OHTrEl19+ecMFioiIiLgT\nh8JVcnIykZGRANSpU4fMzExycnJK7DNx4kRefPHFG69QRERExI04FK7S09OpWrWqfTkgIIC0tDT7\nclJSEs2bN6dmzZo3XqGIiIiIG/E04iQ2m83+c0ZGBklJScydO5czZ878ofMEBVmMKEf+h/rqHOqr\n86i3zqG+Oof66hzu3FeHwlVwcDDp6en25dTUVIKCggDYsWMH586do2/fvly6dImjR48SHx/PqFGj\nrnnetLRsR8qRUgQFWdRXJ1BfnUe9dQ711TnUV+dwh76WFv4cGhYMDw9n/fr1ABw4cIDg4GD8/PwA\n6NSpE2vWrGHp0qVMmzaN0NDQ6wpWIiIiIhWBQ3euwsLCCA0NJTo6GpPJRGxsLElJSVgsFtq3b290\njSIiIiJuw2T79YQpFyvvtwDdkTvcWnVH6qvzqLfOob46h/rqHO7QV8OHBUVERETk6hSuRERERAyk\ncCUiIiJiIIUrEREREQMpXImIiIgYSOFKRERExEAKVyIiIiIGUrgSERERMZDClYiIiIiBFK5ERERE\nDKRwJSIiImIghSsRERERAylciYiIiBhI4UpERETEQApXIiIiIgZSuBIRERExkMKViIiIiIEUrkRE\nREQMpHAlIiIiYiCFK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pBzyXrXCHqyy5iywz8G6Eri8V60gv2fUdZ9v9OixzitWRERKULgSKYfye0aR\nRfGnBvHxKV75c8D6o8FKRETKlsKVSDl11QDl46NgJSJSzmnOlYiIiIiBFK5EREREDKRwJSIiImIg\nhSsRERERAylciYiIiBhI4UpERETEQApXIiIiIgZy+DlX8fHxpKSkYDKZGDVqFPfee699244dO5gy\nZQpms5natWsTFxeH2awcJyIiIhWfQ4ln165dHDlyhISEBOLi4oiLiyuxfcyYMUydOpUlS5Zw4cIF\ntm7dakixIiIiIuWdQ+EqOTmZyMhIAOrUqUNmZiY5OTn27UlJSdSoUQOAgIAAzp8/b0CpIiIiIuWf\nQ8OC6enphIaG2pcDAgJIS0vDz88PwP7f1NRUvvjiC55//vnrOm9QkMWRcuQa1FfnUF+dR711DvXV\nOdRX53Dnvhry3YI2m+03686ePUtMTAyxsbFUrVr1us6TlpZtRDnyK0FBFvXVCdRX51FvnUN9dQ71\n1Tncoa+lhT+HhgWDg4NJT0+3L6emphIUFGRfzsnJYejQobzwwgu0bNnSkZcQERERcUsOhavw8HDW\nr18PwIEDBwgODrYPBQJMnDiRgQMH0qpVK2OqFBEREXETDg0LhoWFERoaSnR0NCaTidjYWJKSkrBY\nLLRs2ZLly5dz5MgREhMTAejSpQtRUVGGFi4iIiJSHjk852rEiBEllhs2bGj/ef/+/Y5XJCIiIuLG\n9GRPEREREQMpXImIiIgYSOFKRERExEAKVyIiIiIGUrgSERERMZDClYiIiIiBFK5EREREDKRwJSIi\nImIghSsRERERAylciYiIiBhI4UpERETEQApXIiIiIgZSuBIRERExkMKViIiIiIEUrkREREQMpHAl\nIiIiYiCFKxEREREDKVyJiIiIGEjhSkRERMRAClciIiIiBlK4EhERETGQwpWIiIiIgRSuRERERAyk\ncCUiIiJiIIUrEREREQMpXImIiIgYSOFKRERExEAKVyIiIiIGUrgSERERMZDD4So+Pp6oqCiio6PZ\nt29fiW35+fm89tprdO/e/YYLFBEREXEnDoWrXbt2ceTIERISEoiLiyMuL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Mxo0b2/ft0qULUVFR\nZVmeW/u93rZv396+z/Hjx3n99deZP3++Cyt1L6X19ciRI4wcORKbzUb9+vUZO3YsZrMeH3c9Suvr\nkiVLSEpKwsPDg8aNG/Pqq6+6uly3sH//ft58801OnDiBp6cn1atXJyIigpCQENq3b8+XX37J5MmT\nAejQoQNDhgxxccXuo7Te6vrluGv9zl7hbteuMg9XIiIiIhWZ/sQWERERMZDClYiIiIiBFK5ERERE\nDKRwJSIiImIghSsRERERAylciYiIiBhI4UpERETEQApXIiIiIgb6/5CN7cEogEDNAAAAAElFTkSu\nQmCC\n","text/plain":["<Figure size 720x360 with 1 Axes>"]},"metadata":{"tags":[]}}]},{"metadata":{"id":"4aOXU_5b8gsh","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>\n","From this plot, I can simply assume that \"energy\" and \"industry\" cluster together; all other words don't cluster together. All the scattered points formed two descending curve, but the scattered points on the plot generated earlier formed one ascending curve."]},{"metadata":{"id":"tUdXHpAW8gsi","colab_type":"text"},"cell_type":"markdown","source":["### Cosine Similarity\n","Now that we have word vectors, we need a way to quantify the similarity between individual words, according to these vectors. One such metric is cosine-similarity. We will be using this to find words that are \"close\" and \"far\" from one another.\n","\n","We can think of n-dimensional vectors as points in n-dimensional space. If we take this perspective L1 and L2 Distances help quantify the amount of space \"we must travel\" to get between these two points. Another approach is to examine the angle between two vectors. From trigonometry we know that:\n","\n","<img src=\"imgs/inner_product.png\" width=20% style=\"float: center;\"></img>\n","\n","Instead of computing the actual angle, we can leave the similarity in terms of $similarity = cos(\\Theta)$. Formally the [Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) $s$ between two vectors $p$ and $q$ is defined as:\n","\n","$$s = \\frac{p \\cdot q}{||p|| ||q||}, \\textrm{ where } s \\in [-1, 1] $$ "]},{"metadata":{"id":"iaM5Bx1Q8gsi","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.2: Polysemous Words (2 points) [code + written] \n","Find a [polysemous](https://en.wikipedia.org/wiki/Polysemy) word (for example, \"leaves\" or \"scoop\") such that the top-10 most similar words (according to cosine similarity) contains related words from *both* meanings. For example, \"leaves\" has both \"vanishes\" and \"stalks\" in the top 10, and \"scoop\" has both \"handed_waffle_cone\" and \"lowdown\". You will probably need to try several polysemous words before you find one. Please state the polysemous word you discover and the multiple meanings that occur in the top 10. Why do you think many of the polysemous words you tried didn't work?\n","\n","**Note**: You should use the `wv_from_bin.most_similar(word)` function to get the top 10 similar words. This function ranks all other words in the vocabulary with respect to their cosine similarity to the given word. For further assistance please check the __[GenSim documentation](https://radimrehurek.com/gensim/models/keyedvectors.html#gensim.models.keyedvectors.FastTextKeyedVectors.most_similar)__."]},{"metadata":{"id":"1yuBWz4e8gsj","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":219},"outputId":"bbb8ba2f-907f-4ad0-b8ae-c9ac4eb9fe77","executionInfo":{"status":"error","timestamp":1553809306684,"user_tz":-420,"elapsed":1255,"user":{"displayName":"Shuang Song","photoUrl":"https://lh4.googleusercontent.com/-vudZ3IKxZEY/AAAAAAAAAAI/AAAAAAAAADc/5GeCbP25wp8/s64/photo.jpg","userId":"01721172213165263150"}}},"cell_type":"code","source":["# ------------------\n","# Write your polysemous word exploration code here.\n","\n","wv_from_bin.most_similar(\"leaves\")\n","\n","# ------------------"],"execution_count":1,"outputs":[{"output_type":"error","ename":"NameError","evalue":"ignored","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)","\u001b[0;32m<ipython-input-1-0403d43dce21>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mwv_from_bin\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmost_similar\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"leaves\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;31m# ------------------\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mNameError\u001b[0m: name 'wv_from_bin' is not defined"]}]},{"metadata":{"id":"JFRoYxwZ8gsl","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"_Df8AlAo8gsl","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.3: Synonyms & Antonyms (2 points) [code + written] \n","\n","When considering Cosine Similarity, it's often more convenient to think of Cosine Distance, which is simply 1 - Cosine Similarity.\n","\n","Find three words (w1,w2,w3) where w1 and w2 are synonyms and w1 and w3 are antonyms, but Cosine Distance(w1,w3) < Cosine Distance(w1,w2). For example, w1=\"happy\" is closer to w3=\"sad\" than to w2=\"cheerful\". \n","\n","Once you have found your example, please give a possible explanation for why this counter-intuitive result may have happened.\n","\n","You should use the the `wv_from_bin.distance(w1, w2)` function here in order to compute the cosine distance between two words. Please see the __[GenSim documentation](https://radimrehurek.com/gensim/models/keyedvectors.html#gensim.models.keyedvectors.FastTextKeyedVectors.distance)__ for further assistance."]},{"metadata":{"id":"xxGXGWvi8gsm","colab_type":"code","colab":{}},"cell_type":"code","source":["# ------------------\n","# Write your synonym & antonym exploration code here.\n","\n","w1 = \"\"\n","w2 = \"\"\n","w3 = \"\"\n","w1_w2_dist = wv_from_bin.distance(w1, w2)\n","w1_w3_dist = wv_from_bin.distance(w1, w3)\n","\n","print(\"Synonyms {}, {} have cosine distance: {}\".format(w1, w2, w1_w2_dist))\n","print(\"Antonyms {}, {} have cosine distance: {}\".format(w1, w3, w1_w3_dist))\n","\n","# ------------------"],"execution_count":0,"outputs":[]},{"metadata":{"id":"rBg4BohR8gsp","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"-m94U_Uj8gsp","colab_type":"text"},"cell_type":"markdown","source":["### Solving Analogies with Word Vectors\n","Word2Vec vectors have been shown to *sometimes* exhibit the ability to solve analogies. \n","\n","As an example, for the analogy \"man : king :: woman : x\", what is x?\n","\n","In the cell below, we show you how to use word vectors to find x. The `most_similar` function finds words that are most similar to the words in the `positive` list and most dissimilar from the words in the `negative` list. The answer to the analogy will be the word ranked most similar (largest numerical value).\n","\n","**Note:** Further Documentation on the `most_similar` function can be found within the __[GenSim documentation](https://radimrehurek.com/gensim/models/keyedvectors.html#gensim.models.keyedvectors.FastTextKeyedVectors.most_similar)__."]},{"metadata":{"id":"QjJtUEsN8gsq","colab_type":"code","colab":{}},"cell_type":"code","source":["# Run this cell to answer the analogy -- man : king :: woman : x\n","pprint.pprint(wv_from_bin.most_similar(positive=['woman', 'king'], negative=['man']))"],"execution_count":0,"outputs":[]},{"metadata":{"id":"psoC3-4m8gst","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.4: Finding Analogies [code + written] (2 Points)\n","Find an example of analogy that holds according to these vectors (i.e. the intended word is ranked top). In your solution please state the full analogy in the form x:y :: a:b. If you believe the analogy is complicated, explain why the analogy holds in one or two sentences.\n","\n","**Note**: You may have to try many analogies to find one that works!"]},{"metadata":{"id":"anntBQBY8gst","colab_type":"code","colab":{}},"cell_type":"code","source":["# ------------------\n","# Write your analogy exploration code here.\n","\n","pprint.pprint(wv_from_bin.most_similar(positive=[], negative=[]))\n","\n","# ------------------"],"execution_count":0,"outputs":[]},{"metadata":{"id":"1PZrsUaT8gsv","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"sgUtC5uj8gsv","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.5: Incorrect Analogy [code + written] (1 point)\n","Find an example of analogy that does *not* hold according to these vectors. In your solution, state the intended analogy in the form x:y :: a:b, and state the (incorrect) value of b according to the word vectors."]},{"metadata":{"id":"VkRbnLfm8gsw","colab_type":"code","colab":{}},"cell_type":"code","source":["# ------------------\n","# Write your incorrect analogy exploration code here.\n","\n","pprint.pprint(wv_from_bin.most_similar(positive=[], negative=[]))\n","\n","# ------------------"],"execution_count":0,"outputs":[]},{"metadata":{"id":"fslyCv-e8gsy","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"-O8XnlK88gsz","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.6: Guided Analysis of Bias in Word Vectors [written] (1 point)\n","\n","It's important to be cognizant of the biases (gender, race, sexual orientation etc.) implicit to our word embeddings.\n","\n","Run the cell below, to examine (a) which terms are most similar to \"woman\" and \"boss\" and most dissimilar to \"man\", and (b) which terms are most similar to \"man\" and \"boss\" and most dissimilar to \"woman\". What do you find in the top 10?"]},{"metadata":{"id":"J4ikALmh8gs0","colab_type":"code","colab":{}},"cell_type":"code","source":["# Run this cell\n","# Here `positive` indicates the list of words to be similar to and `negative` indicates the list of words to be\n","# most dissimilar from.\n","pprint.pprint(wv_from_bin.most_similar(positive=['woman', 'boss'], negative=['man']))\n","print()\n","pprint.pprint(wv_from_bin.most_similar(positive=['man', 'boss'], negative=['woman']))"],"execution_count":0,"outputs":[]},{"metadata":{"id":"3AuQjrzV8gs3","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"ncCNM38m8gs3","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.7: Independent Analysis of Bias in Word Vectors [code + written] (2 points)\n","\n","Use the `most_similar` function to find another case where some bias is exhibited by the vectors. Please briefly explain the example of bias that you discover."]},{"metadata":{"id":"G1on7-Gh8gs4","colab_type":"code","colab":{}},"cell_type":"code","source":["# ------------------\n","# Write your bias exploration code here.\n","\n","pprint.pprint(wv_from_bin.most_similar(positive=[], negative=[]))\n","print()\n","pprint.pprint(wv_from_bin.most_similar(positive=[,], negative=[]))\n","\n","# ------------------"],"execution_count":0,"outputs":[]},{"metadata":{"id":"bCjEHtHF8gs6","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"KTFQruWU8gs6","colab_type":"text"},"cell_type":"markdown","source":["### Question 2.8: Thinking About Bias [written] (1 point)\n","\n","What might be the cause of these biases in the word vectors?"]},{"metadata":{"id":"6YLRlr558gtA","colab_type":"text"},"cell_type":"markdown","source":["#### <font color=\"red\">Write your answer here.</font>"]},{"metadata":{"id":"RAAb-ZSi8gtA","colab_type":"text"},"cell_type":"markdown","source":["# <font color=\"blue\"> Submission Instructions</font>\n","\n","1. Click the Save button at the top of the Jupyter Notebook.\n","2. Please make sure to have entered your SUNET ID above.\n","3. Select Cell -> All Output -> Clear. This will clear all the outputs from all cells (but will keep the content of ll cells). \n","4. Select Cell -> Run All. This will run all the cells in order, and will take several minutes.\n","5. Once you've rerun everything, select File -> Download as -> PDF via LaTeX\n","6. Look at the PDF file and make sure all your solutions are there, displayed correctly. The PDF is the only thing your graders will see!\n","7. Submit your PDF on Gradescope."]},{"metadata":{"id":"B355ctOCCaBH","colab_type":"code","colab":{}},"cell_type":"code","source":[""],"execution_count":0,"outputs":[]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment