word vectors and figurative languagenachumd/humanities/talks/giora.pdf · an example “cook...

36
Intersecting word vectors to take figurative language into new heights A paper by Andrea Gagliano & Emily Paul & Kyle Booten & Marti A. Hearst

Upload: others

Post on 18-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

IntersectingwordvectorstotakefigurativelanguageintonewheightsApaperbyAndreaGagliano&EmilyPaul&KyleBooten&MartiA.Hearst

Page 2: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Sowhat'stheplan?●Motivationandpurpose

● Previouswork

● Somebackground

● Thenewapproach

● Conclusionsandfuturework

Page 3: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Whatarewetryingtodo?

Page 4: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Previouswork● Ametaphorisa“mapping”betweentwodistinctsemanticspaces(LakoffandTurner,1989)

● Usingadjectivesasanindicatorformetaphoricalrelationshipbetweentwoterms(VealeandHao2007,2008)

Page 5: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Word2vec“Youshallknowawordbythecompanyitkeeps”–JohnR.Firth

● Howdoesitworkwithwords?

● Howdoesitworkwithphrases?

● Syntacticandsemanticrelationships

Page 6: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Word2vec

● Syntacticandsemanticrelationships

Page 7: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Word2vec

● Howdowemeasurethesimilarityoftwowords?Weareusingthecosinesimilarityformula (ontheboard)

Page 8: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Howwillwemeasureourresults?● Quantitative

● Qualitative

Page 9: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Let’sgetstarted

Page 10: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Inthebeginning…

Page 11: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Selectinganchorwords

Page 12: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Selectinganchorwords

Page 13: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Selectinganchorwords● Settingathreshold:similarity<0.4

Page 14: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Additionmodel

Page 15: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Additionmodel●Wecreateanewvector,a:vec(a)=vec(c)+vec(t)

Page 16: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Additionmodel●Wecreateanewvector,a:vec(a)=vec(c)+vec(t)

● FindasetAcontainingnwordsclosesttovec(a)

Page 17: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Additionmodel

Page 18: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Additionmodel

Notgoodenough…

Page 19: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Intersectionmodel● Findtwosets:-Ccontainingnwordsclosesttovec(c)-Tcontainingnwordsclosesttovec(t)

● LookattheintersectionsetI=C∩T

Page 20: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Intersectionmodel● Findtwosets:-Ccontainingnwordsclosesttovec(c)-Tcontainingnwordsclosesttovec(t)

● LookattheintersectionsetI=C∩T

*choosingn=1000

Page 21: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Let’sseparatethewheatfromthechaff● Observation:A\I≠∅≠I\A

● Createtwonewsetsasfollows:-Uniquetointersection:UI=I\A -Uniquetoaddition:UA=A\I

Page 22: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking
Page 23: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Quantitativeobservations

Page 24: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Quantitativeobservations

Page 25: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Quantitativeobservations

Page 26: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Quantitativeobservations

Page 27: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Qualitativeobservations● Constructingadatasetofsentencesusingcrowd-sourcedworkers(MechanicalTurk)

● Thetask:completeatemplatesentenceoftheform:“[connectorword]connects[concretenoun]and[poetictheme]because...”

● “Barrageconnectsstormandsurrenderingbecause...”

Page 28: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Anexample

Page 29: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Anexample● “Cookconnectscaringandflamebecauseitisrelatedtoflameasflamesareusedincookingandcookingcanbeasymbolofcaringforsomeonewithgoodfood.”

● “Torchconnectscaringandflamebecausewhensomeonecaresaboutsomeoneelseit’softensaidtheyarecarryingatorchforthem,whilethevisualofatorchitselftendstohaveaflameatopit.”

Page 30: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Qualitativeobservations● Ourgoal:blendthedistinctsemanticspacesofthetwoanchorwordstocreatefigurativerelationships.

● Synonym-basedrelationships

● Relationshipsblendingdistinctsemanticspaces

Page 31: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Qualitativeobservations● Synonym-basedrelationships

● “Torchconnectscaringandflamebecausewhensomeonecaresaboutsomeoneelseit’softensaidtheyarecarryingatorchforthem,whilethevisualofatorchitselftendstohaveaflameatopit.”

● Similarityscoretorch-caring:0.06Similarityscoretorch-flame:0.67

Page 32: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Qualitativeobservations● Relationshipsblendingdistinctsemanticspaces

● “Cookconnectscaringandflamebecauseitisrelatedtoflameasflamesareusedincookingandcookingcanbeasymbolofcaringforsomeonewithgoodfood.”

● Similarityscorecook-caring:0.26Similarityscorecook-flame:0.22

Page 33: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Discussingtheresults● Unbalancedcosinesimilarity-leadstoasynonymousrelationships.

● Balancedcosinesimilarity-blendsthetwodistinctsemanticspacesoftheanchorwordandcreatesanewsharedsemanticspace.

Page 34: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Discussingtheresults● Unbalancedcosinesimilarity-leadstoasynonymousrelationships.*mostlythewordsfromthesetUA

● Balancedcosinesimilarity-blendsthetwodistinctsemanticspacesoftheanchorwordandcreatesanewsharedsemanticspace.*mostlythewordsfromthesetUI

Page 35: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Futurework● Testthishypothesisdirectly

● Checkingotherbandsofsimilarityoutside0.25-0.30

● Poetrygeneration

● Toolstoassistcreativewriting

Page 36: word vectors and figurative languagenachumd/Humanities/Talks/Giora.pdf · An example “Cook connects caring and flame because it is related to flame as flames are used in cooking

Thankyou!