Eigenwords. a quick intro. Lyle Ungar University of Pennsylvania. Lyle Ungar, University of Pennsylvania

Similar documents
Featurizing Text. Bob Stine Dept of Statistics, Wharton School University of Pennsylvania

Text Mining Using Linear Models of Latent States

WORKSHEET. Área: ingles Periodo: 1 Fecha: 26 feb al 2 Mar. Competencia: writing and grammar comprehension. Uses of the past tenses Part I

Beliefs Mini-Story Text

SUMMER MATH. for students completing. Grade 3. and entering. Grade 4. Rolling Terrace E.S. First name: Last name: Math Teacher:

1. (+5) x ( 6) = 2. ( 6) x ( 7) = 3. ( 9) x ( 10) = 4. ( 10) x (+12) = 5. ( 5) x ( 8) = 6. ( 16) x ( 11) = 7. (+4) x ( 15) = 8.

APPENDIX 1. A. Personal Pronouns as Subject (Personal Pronouns sebagai Subjek).

Binding Theory Different types of NPs, constraints on their distribution

More on HMMs and other sequence models. Intro to NLP - ETHZ - 18/03/2013

Nombre: RED GREEN BLUE YELLOW PINK ORANGE. Color according to the instructions. Count and write the number. Celia Rodríguez Ruiz

PreAP Test 4 Review Sheet

Correlation Coefficient: the quantity, measures the strength and direction of a linear relationship between 2 variables.

BC VECTOR PROBLEMS. 13. Find the area of the parallelogram having AB and AC as adjacent sides: A(2,1,3), B(1,4,2), C( 3,2,7) 14.

Hidden Markov Models in Language Processing

Hidden Markov Models

CSE 446 Dimensionality Reduction, Sequences

fish birds stars cattle mountains creeping things

Test 1 on Unit 5. A) Listening 1 - Listen and circle: eat good. fried try. a ) are b ) is c ) am d ) was. a ) too b ) any c ) two d ) some

Her birthday is May 4 th. He is not from Korea. You are not in Level 4.

Lesson 1: Writing Equations Using Symbols

Bible Story 2 GOD MAKES ADAM & EVE GENESIS 1:26-4:1

JACKIE AND THE HORRIBLE FAMILY TRAVAUX PEDAGOGIQUES AVANT-SPECTACLE. -Copyright by Koalako-

THE BOY JESUS VISITS THE TEMPLE (LUKE 2:39-52) MEMORY VERSE: "And Jesus increased in wisdom and stature, and in favor with God and men.

vocabulary BLOCK 1 1. Height of a two-story home: 20 feet or 20 yards 2. Weight of a fully loaded semi-truck: 2 pounds or 2 tons

Algebra I End of Course Review

Isaac Newton. What is the acceleration of the car? "If I have seen further it is by standing on the shoulders of giants" Isaac Newton to Robert Hooke

Understanding Functions. Elizabeth Lancellotti

Wednesday, February 7, 2018 Warm Up

Lesson 9.1 Skills Practice

HOW TO USE A CHART Y N N N N N N Y Y N N N Y N N N Y Y N N. iv 2005 The Critical Thinking Co.

Equations of Proportional Relationships

10/17/04. Today s Main Points

Aim #92: How do we interpret and calculate deviations from the mean? How do we calculate the standard deviation of a data set?

Lesson 9.1 Skills Practice

Third Grade First Nine Week Math Study Guide A. 167 B. 267 C. 1,501 D. 1,000

Proportional Relationships

AP Environmental Science Math Prep

Grade 7 & 8 Math Circles November 23, 2011 Jeopardy

Tier 2 Mathematics Intervention. Form C Assessment

Math Book 20. Multiplication Level 2. Multiplying numbers 7-12

Curious George goes up to space. By:Kendall Zaverl

Intermediate Mathematics League of Eastern Massachusetts

Contents Decimals Averages Percentages Metric Units Scientific Notation Dimensional Analysis

Nicholas Nickleby A classic story by Charles Dickens Adapted by Gill Munton Series Editor: Louis Fidge

CHAPTER 7 NEWTON'S THIRD LAW OF MOTION MOMENTUM & CONSERVATION OF MOMENTUM ACTIVITY LESSON DESCRIPTION POINTS

Grade 8 Full Year 8th Grade Review

Unit 12 Practice Problems. US Customary Unit. Practical reason for wanting to know. Aspect of bottle. Metric unit. 1- dimensional.

Nombre: Friday Tuesday - Sunday- My face. Write the missing days of the week in the correct place. Thursday. Monday. Saturday. Celia Rodríguez Ruiz

Lesson 1 Writing Equations Using Symbols

LEARNING ABOUT ELAPSED TIME

Descendants of William Anning

Hidden Markov Models (HMMs)

1871 Census Extracts - Rosewarne

Latent Variable Models in NLP

Nombre: Ojo : eye. Nariz: nose. Orejas: Ears. Cara: Face. Boca: Mouth. Friday Tuesday - Sunday- Wednesday. Math each word with the suitable picture

1 Write the subject pronoun for each picture. Use the words in the box.

Letters from Atoms This activity will let you follow the journeys of a few common atoms as they move from molecule to molecule through time.

Part of Speech Tagging: Viterbi, Forward, Backward, Forward- Backward, Baum-Welch. COMP-599 Oct 1, 2015

Essentials. Week by. Week. Fraction Action. Probability Pizzazz

Unit 5 Practice Problems. 1. Tom had. of a carrot cake today. How much of one whole carrot. of a carrot cake last night and

First Name: Last Name:

AN INTRODUCTION TO TOPIC MODELS

Lecture 12: Algorithms for HMMs

Contents. About this workbook...iv

1) Find two consecutive integers whose sum is 91. 2) Find two consecutive integers whose sum is -17.

Writing: Looking Out the Window

Number Bases: Dr Olga Maleva

Test Booklet. Subject: MA, Grade: HS CAHSEE Math Practice Test. Student name:

Section 2.5 Ratios and Proportions

HAVE GOT WAS WERE CAN. Koalatext.com TO BE GRAMMAR TO BE + JOBS

Grade 6 Math Circles October 5, 2011 Simplifying Equations

Explorers 4 Teacher s notes for the Comprehension Test: The Snow Queen

Similar Triangles, Pythagorean Theorem, and Congruent Triangles.

3.6 Equations and Fractions

Semantics and Generative Grammar. Pronouns and Variable Assignments 1. We ve seen that implicatures are crucially related to context.

Lesson 1: Writing Equations Using Symbols

HAVE GOT WAS WERE CAN. Koalatext.com TO BE GRAMMAR PAST SIMPLE IREGULAR VERBS

Honors Summer Research

Corso di Laurea in Biologia: Abilità Linguistiche 1 anno (A.A ) 17 luglio 2017 Tempo della prova: 2 ore

SOLVING EQUATIONS. Judo Math Inc.

Lecture 12: Algorithms for HMMs

Correlation and Regression (Excel 2007)

Deep Learning Basics Lecture 10: Neural Language Models. Princeton University COS 495 Instructor: Yingyu Liang

Semantics 2 Part 1: Relative Clauses and Variables

Loiederman Middle School. Summer Math Packet C2.0 Algebra

o Read o Draw o Write

AP Environmental Science Math Prep

Honors Physics. Summer Assignments Teacher Information. Summer Assignment Goals

p(d θ ) l(θ ) 1.2 x x x

Vivian Ina Lu. Class of Untethered. Genre: Fiction

Math. Released Test Questions. 4 The weekly milk order for the Tranquility Inn 0 A 1 B 2 C 3 D 4. Which point shows the location of 3 on the

AP Statistics - Chapter 2A Extra Practice

Lesson 3 Acceleration

1. A force is a or a. 2. Forces are described by how they are and in what they are going. 3. forces on an object will change the objects motion.

Luke 1:26-38 & Matthew 1:18-25

Linear Functions. Unit 3

Volume 6. Jack and the Beanstalk, The Stubborn Witch, Rapunzel, Betsy, The Magic Bus

Copyright Notice. Copyright 2014 Have Fun Teaching, LLC

PRACTICE SAT QUESTIONS

Kansas City Area Teachers of Mathematics 2014 KCATM Math Competition NUMBERS AND OPERATIONS GRADE 4 NO CALCULATOR

Transcription:

Eigenwords a quick intro Lyle Ungar University of Pennsylvania Lyle Ungar, University of Pennsylvania

Represent each word by its context I ate ham You ate cheese You ate context word Word Before Word After ate cheese ham I You ate cheese ham I You ate 0 0 0 1 2 0 1 1 0 0 cheese 1 0 0 0 0 0 0 0 0 0 ham 1 0 0 0 0 0 0 0 0 0 I 0 0 0 0 0 1 0 0 0 0 You 0 0 0 0 0 2 0 0 0 0 Hypothesis: words with similar contexts have similar meanings 2

Eigenwords u Project high dimensional context to low dimensional space (SVD/PCA) u Similar words are close in this low dimensional space I ate ham You ate cheese You ate Word Before Word After ate cheese ham I You ate cheese ham I You ate 0 0 0 1 2 0 1 1 0 0 cheese 1 0 0 0 0 0 0 0 0 0 ham 1 0 0 0 0 0 0 0 0 0 I 0 0 0 0 0 1 0 0 0 0 You 0 0 0 0 0 2 0 0 0 0 3

Eigenwords as SVD u Left singular vectors are eigenwords l a vector representing each word word embeddings u Right singular vectors are eigentokens l vectors representing the contexts I ate ham You ate cheese You ate Word Before Word After ate cheese ham I You ate cheese ham I You ate 0 0 0 1 2 0 1 1 0 0 cheese 1 0 0 0 0 0 0 0 0 0 ham 1 0 0 0 0 0 0 0 0 0 I 0 0 0 0 0 1 0 0 0 0 You 0 0 0 0 0 2 0 0 0 0 4

Similar words are close PC 2-0.3-0.2-0.1 0.0 0.1 0.2 wife miles inches sister brother daughter uncle son pounds acres ather husband bytes mother girlboss tons boy degrees meters barrels woman doctor guy man lawyer farmer teacher citizen stress pressure gravity tension temperature permeability density viscosity -0.2-0.1 0.0 0.1 0.2 0.3 0.4 PC 1 5

Nouns and verbs PC 2-0.2-0.1 0.0 0.1 0.2 0.3 river house word boattruck cat car home dog talk push sleep drink disagree carryeat listen -0.2 0.0 0.2 0.4 PC 1 6

Pronouns us PC 2-0.1 0.0 0.1 0.2 0.3 we i they he she you our them him his her -0.3-0.2-0.1 0.0 0.1 0.2 0.3 PC 1 7

Numbers PC 2-0.3-0.2-0.1 0.0 0.1 0.2 eight three two four five six seven nine one ten 2008 2009 10 2007 2006 2005 2004 2002 2003 2001 1998 1999 1996 1997 2000 1995 79 5 6 8 2 3 4 1-0.4-0.2 0.0 0.2 PC 1 8

Names tom bobjoe mike -0.10-0.05 0.00 0.05 0.10 tricia jennifer lisa liz betsy karenlinda patricia betty nancy susan dorothy dan michael david daniel mary richard maria helenchristopher barbara robert margaret john donald elizabeth william paul charles george joseph thomas -0.2-0.1 0.0 0.1 PC 2 9

Cool math! Useful! u We use these reduced dimensional representations to estimate Hidden Markov Models (HMMs) and other dynamic Bayesian Models (e.g. parsing models) l Current solution methods (EM, Gibbs) are iterative, making it hard to prove properties about their solutions u Spectral (eigenword methods) have clean optimality and sample complexity results 10

Use eigenwords/eigentokens in supervised learning u Predict labels for tokens based on their estimated state vector l Part of speech l Named entity type (person, place, thing ) l Word sense ( meaning ) disambiguation u Use in parsing 11

Word2vec u Word embeddings, often found by deep learning, are very popular now l Often have same performance as the simpler eigenwords 12

Word Sense Disambiguation u Estimate state vector for a word u Similar meanings will be close. l The ships dock in the port. l The port is loaded onto ships and sent to America l The meat is tender. l I have tender feelings for her. l The company will tender an offer. 13