62
Introduction to Semantics

Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Embed Size (px)

Citation preview

Page 1: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

IntroductiontoSemantics

Page 2: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Announcements•  PartofnextTuesday’sclasswillfocusonques6onsaboutthemidterm.Pleasesendtopicsthatyouwouldliketohavere-explained.Onlythosetopicsthatstudentsrequestwillbecovered.

•  Reading:C14J&M,V2:probabilis6cparsingotherthandependencyparsing.

•  ReadC.3ofcourseworkspostfordependencyparsing.•  C.14J&M,V3:anotherreadingondependencyparsing

•  HstudentswhohaveaconflictwithanotherclassforthemidtermreplytoPiazzapostoremailElsbethatect2150@columbia.edu•  Op6onswillbelaterThursdayorMondayevening

Page 3: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty
Page 4: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

SIRI: One shot Question and answer What’s required?

Page 5: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WatsonandjeopardyBangBang"his"Silverhammercamedownuponherhead"

Page 6: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Question-Answering/Dialog• “Match”

Page 7: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Wheredoestheinformationfortheanswerscomefrom?

• Databases• hWp://newyork.citysearch.com

• Theweb

• Dic6onaries

• Inference

Page 8: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

OneViewofNLArchitecture

Syntax Semantics Morphology

Knowledge Representation/

Meaning Representation

Application output

Page 9: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

OneViewofNLArchitecture

Syntax

Semantics

Morphology

Knowledge Representation/

Meaning Representation

Application output

Page 10: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

AnotherView:UnderstandinginWatson• Massiveparallelism

•  Exploitmassiveparallelismintheconsidera6onofmul6pleinterpreta6onsandhypotheses.

• Manyexperts•  Facilitatetheintegra6on,applica6on,andcontextualevalua6onofawiderangeoflooselycoupledprobabilis6cques6onandcontentanaly6cs.

•  Pervasiveconfidenceintegra6on•  Nocomponentcommitstoananswer;allcomponentsproducefeaturesandassociatedconfidences,scoringdifferentques6onandcontentinterpreta6ons.

•  Integrateshallowanddeepknowledge•  Balancetheuseofstrictseman6csandshallowseman6cs,leveragingmanylooselyformedontologies.

Page 11: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WhatisSemantics?• MeaningRepresenta6on

• Seman6cParsingorSeman6cInterpreta6on

• Wordmeaningdisambigua6on

• Entailmentandinference

• Informa6onextrac6on

Page 12: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

MeaningRepresentation• Torepresentques6ons

• Torepresentknowledgedrawnfromtext

Page 13: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WhatCanServeasaMeaningRepresentation?

• Anythingthatallowsusto• Answerques6ons(WhatisthebestFrenchrestaurantintheEastVillage?)

• Determinetruth(IsColumbiaUnivinNYC?)• Drawinferences(IfOneDineRestaurantisonthetopflooroftheFreedomTowerandtheFreedomToweristhetallestbuildinginNewYorkCity,thenOneDineisthetopmostrestaurantinNewYorkCity.)

Page 14: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Whatkindsofmeaningdowewanttocapture?

•  Categories/en66es•  Tau,Jane,Asiancuisine,vegetarian

•  Events•  takingataxi,destruc6onofpowergridinPuertoRico

•  Time•  Oct30,nextweek,in2months

•  Aspect•  Kathyknowshowtorun.Kathyisrunning.Kathyrantotherestaurantin5min.

•  Beliefs,DesiresandInten6ons(BDI)

Page 15: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

MeaningRepresentations

• Allrepresent‘linguis6cmeaning’of Ihaveacar

andstateofaffairsinsomeworld• Allconsistofstructures,composedofsymbolsrepresen6ngobjectsandrela6onsamongthem•  FOPC:

)}(),(),()({, yCarxyHadThingxSHaverxHavingyx ∧∧∧∃

Page 16: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

AStandardRepresentation:Predicate-ArgumentStructure

•  Representsconceptsandrela6onshipsamongthem•  Nounsasconceptsorarguments(red(ball))•  Adjec6ves,adverbs,verbsaspredicates(red(ball))

•  Subcategoriza6on(or,argument)framesspecifynumber,posi6on,andsyntac6ccategoryofarguments•  NPlikesNP•  NPlikesInf-VP•  NPlikesNPInf-VP

Page 17: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Semantic(Thematic)Roles• Subcatframeslinkargumentsinsurfacestructurewiththeirseman6croles• Agent:GeorgehitBill.BillwashitbyGeorge.• Pa6ent:GeorgehitBill.BillwashitbyGeorge.

• Theclaimofatheoryofseman6crolesisthattheseargumentsofpredicatescanbeusefullyclassifiedintoasmallsetofseman6callycontenlulclasses• Andthattheseclassesareusefulforexplaininglotsofthings

Page 18: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Commonsemanticroles•  Agent:ini6atorordoerintheevent•  Pa(ent:affecteden6tyintheevent;undergoestheac6on•  Suekilledtherat.

•  Theme:objectintheeventundergoingachangeofstateorloca6on,orofwhichloca6onispredicated•  Theicemelted

•  Experiencer:feelsorperceivetheevent• Billlikespizza.

•  S(mulus:thethingthatisfeltorperceived

Page 19: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Commonsemanticroles•  Goal:

•  BillrantoCopleySquare.•  Recipient(mayormaynotbedis6nguishedfromGoal):

•  BillgavethebooktoMary.

•  Benefac(ve(maybegroupedwithRecipient):•  BillcookeddinnerforMary.

•  Source:•  Billtookapencilfromthepile.

•  Instrument:•  Billatetheburritowithaplas6cspork.

•  Loca(on:•  BillsitsunderthetreeonWednesdays

Page 20: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

CommonsemanticrolesTryforyourself!1.  Thesubmarinesankatroopship.2.  Dorishidthemoneyintheflowerpot.3.  Emmano6cedthestain.4.  Wecrossedthestreet.5.  Theboysclimbedthewall.6.  Thechefcookedagreatmeal.7.  Thecomputerpinpointedtheerror.8.  AmadbulldamagedthefenceonJack’sfarm.9.  ThecompanywrotemealeWer.10. Jackopenedthelockwithapaperclip.

Page 21: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty
Page 22: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty
Page 23: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty
Page 24: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Linkingofthematicrolestosyntacticpositions• Johnopenedthedoor• AGENTTHEME• ThedoorwasopenedbyJohn• THEMEAGENT• Thedooropened• THEME• Johnopenedthedoorwiththekey• AGENTTHEMEINSTRUMENT

Page 25: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

DeeperSemantics• FromtheWSJ…

• Hemeltedherreservewithahusky-voicedpaeantohereyes.

•  Ifwelabelthecons6tuentsHeandherreserveastheMelterandMelted,thenthoselabelsloseanymeaningtheymighthavehad.

•  IfwemakethemAgentandThemethenwecandomoreinference.

Page 26: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

SelectionalRestrictions• Selec6onalRestric6ons:constraintsonthetypesofargumentsverbstakeGeorgeassassinatedthesenator.*Thespiderassassinatedthefly.assassinate:inten5onal(poli5cal?)killing

• Theastronautmarriedthestar.

Page 27: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Problems• Whatexactlyisarole?• What’stherightsetofroles?• Aresuchrolesuniversals?• Aretheserolesatomic?

•  I.e.Agents•  Animate,Voli6onal,Directcausers,etc

• Canweautoma6callylabelsyntac6ccons6tuentswiththema6croles?

Page 28: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

FirstOrderPredicateCalculus• Notidealasameaningrepresenta6onanddoesn'tdoeverythingwewant--butbeWerthanmany…•  Supportsthedetermina6onoftruth•  Supportscomposi6onalityofmeaning•  Supportsques6on-answering(viavariables)•  Supportsinference

Page 29: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

AbstractMeaningRepresentation(AMR)• Aimingtocaptureadeeplevelofseman6cs

• Originalgoal:asinterlinguaformachinetransla6on

• Alsonowsee:AMRparsers,genera6onfromAMR,summariza6onusingAMR

Knight, AMR Release 1.0, 2014

Page 30: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

TemporalRepresentations• Howdowerepresent6meandtemporalrela6onshipsbetweenevents?ItseemsonlyyesterdaythatMarthaStewartwasinprisonbutnowshehasapopularTVshow.Thereisnojus6ce.

• Wheredowegettemporalinforma6on?• Verbtense•  Temporalexpressions•  Sequenceofpresenta6on

• Linearrepresenta6ons:Reichenbach‘47

Page 31: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

RepresentingTime

Example from Russell and Norvig

Page 32: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

RepresentingTime

Example from Jurafsky and Martin

Utterance time (U): when the utterance occurs Reference time (R): the temporal point-of-view of the utterance Event time (E): when events described in the utterance occur

Page 33: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

VerbsandEventTypes:Aspect•  Sta6ves:statesorproper6esofobjectsatapar6cularpointin6me

Iamhungry.• Ac6vi6es:eventswithnoclearendpoint

Iamea-ng.• Accomplishments:eventswithdura6onsandendpointsthatresultinsomechangeofstate

Iatedinner.• Achievements:eventsthatchangestatebuthavenopar6culardura6on–theyoccurinaninstant

Igotthebill.

Page 34: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Beliefs,DesiresandIntentions• Veryhardtorepresentinternalspeakerstateslikebelieving,knowing,wan6ng,assuming,imagining•  NotwellmodeledbyasimpleDBlookupapproachso..

•  Truthintheworldvs.truthinsomepossibleworldGeorgeimaginedthathecoulddance.Georgebelievedthathecoulddance.

• AugmentFOPCwithspecialmodaloperatorsthattakelogicalformulaeasarguments,e.g.believe,know

Page 35: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Believes(George,dance(George))Knows(Bill,Believes(George,dance(George)))

• Mutualbelief:IbelieveyoubelieveIbelieve….• Prac6calimportance:modelingbeliefindialogue

• Clark’sgrounding

Page 36: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

TakeAway• Seman6csmeansmanythings

• Meaningrepresenta6ons•  Seman6cparsingorseman6crolelabeling•  Determiningwordmeaning•  Useofseman6cinforma6onforanendapplca6on•  Inference•  Temporalrela6ons:tense,aspect•  Informa6onextrac6on•  Belief,desireandintent

• Workinseman6cscanfallintoanyoftheseareas

Page 37: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

LexicalSemantics• Groundingforrepresenta6onofwordmeaning• Usedforworddisambigua6on•  Seman6cinterpreta6on

• Pre-cursortorepresenta6onsusedindistribu6onalseman6cs,vectorrepresenta6onsandneuralnets

• Topics• Homonymy,Polysemy,Synonymy• Onlineresources:WordNet

Page 38: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Preliminaries• What’saword?

• Defini6onswe’veusedovertheclass:Types,tokens,stems,roots,inflectedforms,etc...

•  Lexeme:Anentryinalexiconconsis6ngofapairingofaformwithasinglemeaningrepresenta6on

•  Lexicon:Acollec6onoflexemes

Page 39: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Relationshipsbetweenwordmeanings• Homonymy• Polysemy• Synonymy• Antonymy• Hypernomy• Hyponomy• Meronomy

Page 40: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Homonymy• Homonymy:

•  Lexemesthatshareaform•  Phonological,orthographicorboth

• Buthaveunrelated,dis6nctmeanings• Clearexamples:

•  Bat(woodens6ck-likething)vs•  Bat(flyingscarymammalthing)•  Orbank(financialins6tu6on)versusbank(riverside)

• Canbehomophones,homographs,orboth:•  Homophones:

•  Writeandright•  Pieceandpeace

Page 41: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

HomonymycausesproblemsforNLPapplications• Text-to-Speech

•  Sameorthographicformbutdifferentphonologicalform•  bassvsbass

• Informa6onretrieval• Differentmeaningssameorthographicform

•  QUERY:batcare• MachineTransla6on• Speechrecogni6on

• Why?

Page 42: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Polysemy• ThebankisconstructedfromredbrickIwithdrewthemoneyfromthebank

• Arethosethesamesense?• OrconsiderthefollowingWSJexample

• Whilesomebanksfurnishspermonlytomarriedwomen,othersarelessrestric6ve

• Whichsenseofbankisthis?•  Isitdis6nctfrom(homonymouswith)theriverbanksense?

•  Howaboutthesavingsbanksense?

Page 43: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty
Page 44: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Polysemy• Asinglelexemewithmul6plerelatedmeanings(bankthebuilding,bankthefinancialins6tu6on)

• Mostnon-rarewordshavemul6plemeanings•  Thenumberofmeaningsisrelatedtoitsfrequency

• Verbstendmoretopolysemy• Dis6nguishingpolysemyfromhomonymyisn’talwayseasy(ornecessary)

Page 45: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

MetaphorandMetonymy• Specifictypesofpolysemy• Metaphor:

• GermanywillpullSloveniaoutofitseconomicslump.

•  Ispent2hoursonthathomework.• Metonymy

•  TheWhiteHouseannouncedyesterday.•  Thischaptertalksaboutpart-of-speechtagging

• Bank(building)andbank(financialins6tu6on)

Page 46: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Howdoweknowwhenawordhasmorethanonesense?• ATISexamples

• Whichflightsservebreakfast?• DoesAmericaWestservePhiladelphia?

• The“zeugma”test:

•  ?DoesUnitedservebreakfastandSanJose?

Page 47: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Synonyms• Wordthathavethesamemeaninginsomeorallcontexts.•  filbert/hazelnut•  couch/sofa•  big/large•  automobile/car•  vomit/throwup•  Water/H20

• Twolexemesaresynonymsiftheycanbesuccessfullysubs6tutedforeachotherinallsitua6ons•  Ifsotheyhavethesameproposi(onalmeaning

Page 48: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Synonyms• Buttherearefew(orno)examplesofperfectsynonymy.• Whyshouldthatbe?•  Evenifmanyaspectsofmeaningareiden6cal•  S6llmaynotpreservetheacceptabilitybasedonno6onsofpoliteness,slang,register,genre,etc.

• Example:• WaterandH20

Page 49: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Somemoreterminology•  Lemmasandwordforms

•  Alexemeisanabstractpairingofmeaningandform•  Alemmaorcita(onformisthegramma6calformthatisusedtorepresentalexeme.

•  Carpetisthelemmaforcarpets•  Dormiristhelemmaforduermes.

•  Specificsurfaceformscarpets,sung,duermesarecalledwordforms

•  Thelemmabankhastwosenses:•  Instead,abankcanholdtheinvestmentsinacustodialaccountintheclient’sname

•  Butasagricultureburgeonsontheeastbank,theriverwillshrinkevenmore.

• Asenseisadiscreterepresenta6onofoneaspectofthemeaningofaword

Page 50: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Synonymyisarelationbetweensensesratherthanwords

• Considerthewordsbigandlarge• Aretheysynonyms?

•  Howbigisthatplane?• WouldIbeflyingonalargeorsmallplane?

• Howabouthere:•  MissNelson,forinstance,becameakindofbigsistertoBenjamin.

•  ?MissNelson,forinstance,becameakindoflargesistertoBenjamin.

• Why?•  bighasasensethatmeansbeingolder,orgrownup•  largelacksthissense

Page 51: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Antonyms• Sensesthatareoppositeswithrespecttoonefeatureoftheirmeaning

• Otherwise,theyareverysimilar!•  dark/light•  short/long•  hot/cold•  up/down•  in/out

• Moreformally:antonymscan•  defineabinaryopposi6onoratoppositeendsofascale(long/short,fast/slow)

•  Bereversives:rise/fall,up/down

Page 52: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Hyponymy• Onesenseisahyponymofanotherifthefirstsenseismorespecific,deno6ngasubclassoftheother•  carisahyponymofvehicle•  dogisahyponymofanimal•  mangoisahyponymoffruit

•  Conversely•  vehicleisahypernym/superordinateofcar•  animalisahypernymofdog•  fruitisahypernymofmango

superordinate vehicle fruit furniture mammal

hyponym car mango chair dog

Page 53: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Hypernymymoreformally• Extensional:

•  Theclassdenotedbythesuperordinate•  extensionallyincludestheclassdenotedbythehyponym

• Entailment:• AsenseAisahyponymofsenseBifbeinganAentailsbeingaB

• Hyponymyisusuallytransi6ve•  (AhypoBandBhypoCentailsAhypoC)

Page 54: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

• Whywouldhypernyms/hyponymsbeimportanttoconstruc6ngameaningrepresenta6on?

Page 55: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

II.WordNet• Ahierarchicallyorganizedlexicaldatabase• On-linethesaurus+aspectsofadic6onary

•  Versionsforotherlanguagesareunderdevelopment

Category Unique Forms

Noun 117,097

Verb 11,488

Adjective 22,141

Adverb 4,601

Page 56: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WordNet

•  Whereitis:•  hWps://wordnet.princeton.edu/

Page 57: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

FormatofWordnetEntries

Page 58: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WordNetNounRelations

Page 59: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WordNetVerbRelations

Page 60: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

WordNetHierarchies

Page 61: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

Howis“sense”deYinedinWordNet?• Thesetofnear-synonymsforaWordNetsenseiscalledasynset(synonymset);it’stheirversionofasenseoraconcept

• Example:chumpasanountomean•  ‘apersonwhoisgullibleandeasytotakeadvantageof’

•  Eachofthesesensessharethissamegloss•  ThusforWordNet,themeaningofthissenseofchumpisthislist.

Page 62: Introduction to Semantics - Columbia · PDF fileMorphology Syntax Semantics ... • Tau, Jane, Asian cuisine, vegetarian • Events • taking a taxi ... • Paent: affected en6ty

NextThursday:Wordsensedisambigua6onTuesday:Seman6cparsingandmidterm