Lecture 26 Semantics September 30, 2005 12/31/2018.

Slides:



Advertisements
Similar presentations
Natural Language Processing Lecture 2: Semantics.
Advertisements

Semantics (Representing Meaning)
Syntactic analysis using Context Free Grammars. Analysis of language Morphological analysis – Chairs, Part Of Speech (POS) tagging – The/DT man/NN left/VBD.
Statistical NLP: Lecture 3
Word sense disambiguation and information retrieval Chapter 17 Jurafsky, D. & Martin J. H. SPEECH and LANGUAGE PROCESSING Jarmo Ritola -
Chapter 17. Lexical Semantics From: Chapter 17 of An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition, by.
Introduction to Semantics To be able to reason about the meanings of utterances, we need to have ways of representing the meanings of utterances. A formal.
CS Word Sense Disambiguation. 2 Overview A problem for semantic attachment approaches: what happens when a given lexeme has multiple ‘meanings’?
CS 4705 Lecture 19 Word Sense Disambiguation. Overview Selectional restriction based approaches Robust techniques –Machine Learning Supervised Unsupervised.
CS 4705 Semantics: Representations and Analyses. What kinds of meaning do we want to capture? Categories/entities –IBM, Jane, a black cat, Pres. Bush.
CS 4705 Lecture 17 Semantic Analysis: Syntax-Driven Semantics.
November 20, 2003 Chapter 16 Lexical Semantics. Words have structured meanings Lexeme – a pairing of a form with a sense Orthographic form – the way the.
Categories – relations or individuals? What are the differences in representing collie as a relation vs. an individual? As a relation: collie(lassie) –
CS 4705 Word Sense Disambiguation. Overview Selectional restriction based approaches Robust techniques –Machine Learning Supervised Unsupervised –Dictionary-based.
Categories – relations or individuals? What are the differences in representing collie as a relation vs. an individual? As a relation: collie(lassie) –
Meaning and Language Part 1.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
Context Free Grammars Reading: Chap 12-13, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
Natural Language Processing Lecture 22—11/14/2013 Jim Martin.
BİL711 Natural Language Processing
9/8/20151 Natural Language Processing Lecture Notes 1.
Probabilistic Parsing Reading: Chap 14, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
1 Natural Language Processing Lecture Notes 11 Chapter 15 (part 1)
Lexical Semantics Chapter 16
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
CS 4705 Lecture 19 Word Sense Disambiguation. Overview Selectional restriction based approaches Robust techniques –Machine Learning Supervised Unsupervised.
Context Free Grammars Reading: Chap 9, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Rada Mihalcea.
Computing Science, University of Aberdeen1 CS4025: Logic-Based Semantics l Compositionality in practice l Producing logic-based meaning representations.
Linguistic Essentials
Disambiguation Read J & M Chapter 17.1 – The Problem Washington Loses Appeal on Steel Duties Sue caught the bass with the new rod. Sue played the.
Rules, Movement, Ambiguity
Word Relations Slides adapted from Dan Jurafsky, Jim Martin and Chris Manning.
Word Meaning and Similarity
NLP. Introduction to NLP Pros –Compositional –Declarative Cons –Limited expressive power –Represents facts.
Natural Language Processing Vasile Rus
Natural Language Processing Vasile Rus
CSC 594 Topics in AI – Natural Language Processing
Lecture – VIII Monojit Choudhury RS, CSE, IIT Kharagpur
Syntax Lecture 9: Verb Types 1.
Statistical NLP: Lecture 3
Semantics (Representing Meaning)
Ontology Engineering: from Cognitive Science to the Semantic Web
Part I: Basics and Constituency
Word Relations Slides adapted from Dan Jurafsky, Jim Martin and Chris Manning.
Semantics September 8, /17/2018.
Lecture 24 Semantics September 28, /20/2018.
Lexical Semantics September 13, /20/2018.
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Lecture 16: Lexical Semantics, Wordnet, etc
CSC 594 Topics in AI – Applied Natural Language Processing
Semantics September 8, /16/2018.
بسم الله الرحمن الرحيم ICS 482 Natural Language Processing
Semantics September 23, /22/2018.
CSCI 5832 Natural Language Processing
Probabilistic and Lexicalized Parsing
Lecture 26 Lexical Semantics
Representing Meaning Lecture Sep 2007.
CSCI 5832 Natural Language Processing
Word Relations Slides adapted from Dan Jurafsky, Jim Martin and Chris Manning.
CSCI 5832 Natural Language Processing
Linguistic Essentials
Structure of a Lexicon Debasri Chakrabarti 13-May-19.
David Kauchak CS159 – Spring 2019
COMPILER CONSTRUCTION
CPSC 503 Computational Linguistics
Presentation transcript:

Lecture 26 Semantics September 30, 2005 12/31/2018

Representations of Events -- A Solution We employ reification to elevate events to objects. I ate. x ISA(x,Eating)  Eater(x,Speaker) I ate a turkey sandwich. x ISA(x,Eating)  Eater(x,Speaker)  Eaten(x,TurkeySandwich) I ate at my desk. x ISA(x,Eating)  Eater(x,Speaker)  PlaceEaten(x,Desk) I ate lunch. x ISA(x,Eating)  Eater(x,Speaker)  MealEaten(x,Lunch) With the reified-event approach: There is no need to specify a fixed number of arguments Many roles can be glued when they appear in the input. We do not need to define relations between different versions of eating (postulate) 12/31/2018

Representations of Time Time flows forward, and the events are asocaiated with either points or intervals in time. An ordering among events can be gotten by putting them on the timeline. There can be different schemas for represesenting this kind of temoral information. (the study of temporal logic) The tense of a sentence will correspond to an ordering of events related with that sentence. (the study of tense logic) 12/31/2018

Representations of Time -- Example 1.I arrived in Ankara. 2.I am arriving in Ankara. 3.I will arrive in Ankara. All three sentences can be represented with the following formula without any temporal information. w ISA(w,Arriving)  Arriver(w,Speaker)  Destination(w,Ankara) We can add the following representations of temporal information to represent the tenses of these examples. 1. w,i,e ISA(w,Arriving)  Arriver(w,Speaker)  Destination(w,Ankara)  IntervalOf(w,i)  EndPoint(i,e)  Precedes(e,Now) 2. w,i,e ISA(w,Arriving)  Arriver(w,Speaker)  Destination(w,Ankara)  IntervalOf(w,i)  MemberOf(i,Now) 3. w,i,e ISA(w,Arriving)  Arriver(w,Speaker)  Destination(w,Ankara)  IntervalOf(w,i)  EndPoint(i,e)  Precedes(Now,e) 12/31/2018

Representations of Time (cont.) The relation between simple verb tenses and points in time is not straightforward. We fly from Ankara to Istanbul. -- present tense refers to a future event Flight 12 will be at gate an hour now. -- future tense refers to a past event In some formalisms, the tense of a sentence is expressed with the relation among times of events in that sentence, time of a reference point, and time of utterance. 12/31/2018

Reinhenbach’s Approach to Representing Tenses U Past Perfect I had eaten. Past I ate. R,E U U,R,E Present I eat. E R,U Present Perfect I have eaten. U,R E Future I will eat. U E R Future Perfect I will have eaten. 12/31/2018

Representation of Aspect The notion of Aspect concerns with: whether an event has ended or is ongoing whether it is conceptualized as happening at a point in time or over some interval. whether a particular state exists because of it. Event expressions can be divided into four aspectual classes: Stative -- an event participant having a property at a point of time. I know my departure gate. Activity -- an event associated with some interval (without a clear end point) I drove a Ferrari. Accomplishment -- an event with a natural end point and results in a particular state. He booked me a reservation. Achievement -- an event results in a particular state, but an instant event. He found the gate. 12/31/2018

Representations of Beliefs We can represent a belief as follows: I believe that Mary ate Thai food. u,v ISA(u,Believing)  ISA(v,Eating)  Believer(u,Speaker)  Believed(u,v)  Eater(v,Mary)  Eaten(v,ThaiFood) But from this, we can get the following (which may not be correct). v ISA(v,Eating)  Eater(v,Mary)  Eaten(v,ThaiFood) We may think that we can represent this as follows, but it will not be a FOPC formula. Believing(Speaker,Eating(Mary,ThaiFood)) A solution is to augment FOPC with operators. (modal logic with modal operators). Believing(Speaker, v ISA(v,Eating)  Eater(v,Mary)  Eaten(v,ThaiFood)) Inference will be complicated with modal logic. 12/31/2018

Frames We may use other representation languages instead of FOPC. But they will be equivalent to their representations in FOPC. For example, we may use frames to represent our believing example. BELIEVING BELIEVER Speaker EATING BELIEVED EATER Mary EATEN ThaiFood 12/31/2018

Semantic Analysis Semantic Analysis -- Meaning representations are assigned to linguistic inputs. We need static knowledge from grammar and lexicon. How much semantic analysis do we need? Deep Analysis -- Through syntactic and semantic analysis of the text to capture all pertinent information in the text. Information Extraction -- does not require complete syntactic and semantic analysis. With a cascade of FSAs to produce a robust semantic analyzer. 12/31/2018

Syntax-Driven Semantic Analysis Principle of Compositionality -- the meaning of a sentence can be composed of meanings of its parts. Ordering and groupings will be important. Anarkali serves meat. e ISA(e,Serving)  Server(e,Anarkali)  Served(e,Meat) S NP VP NP ProperNoun Verb MassNoun Anarkali serves meat 12/31/2018

Semantic Augmentation to CFG Rules CFG Rules are attached with semantic attachments. These semantic attachments specify how to compute the meaning representation of a construction from the meanings of its constituent parts. A CFG rule with semantic attachment will be as follows: A  1,…,n { f(j.sem,…,k.sem) } The meaning representation of A, A.sem, will be calculated by applying the function f to the semantic representations of some constituents. 12/31/2018

Naïve Approach ProperNoun  Anarkali {Anarkali } MassNoun  meat { Meat } NP  ProperNoun {ProperNoun.sem } NP  MassNoun { MassNoun.sem } Verb  serves {e,x,y ISA(e,Serving)  Server(e,x)  Served(e,y) } But we cannot propagate this representation to upper levels. 12/31/2018

Using Lambda Notations ProperNoun  Anarkali { Anarkali } MassNoun  meat { Meat } NP  ProperNoun {ProperNoun.sem } NP  MassNoun { MassNoun.sem } Verb  serves {xy e ISA(e,Serving)  Server(e,y)  Served(e,x) } VP  Verb NP { Verb.sem(NP.sem) } S  NP VP { VP.sem(NP.sem) } application of lambda expression lambda expression 12/31/2018

Quasi-Logical Form During semantic analysis, we may use quantified expressions as terms. In this case, our formula will not be a FOPC formula. We call this form of formulas as quasi-logical form. A quasi-logical form should be converted into a normal FOPC formula by applying simple syntactic translations. Server(e,<x ISA(x,Restaurant)>) a quasi-logical formula  x ISA(x,Restaurant )  Server(e,x) a normal FOPC formula 12/31/2018

Parse Tree with Logical Forms write(bertrand,principia) NP bertand VP y.write(y,principia) V x.y.write(y,x) principia bertrand writes 12/31/2018

Lecture 24 Lexical Semantics September 28, 2005 12/31/2018

Meaning The meaning of a text or discourse Traditionally, meaning in language has been studied from three perspectives The meaning of a text or discourse The meanings of individual sentences or utterances The meanings of individual words We started in the middle, now we’ll look at the meanings of individual words. 12/31/2018

Word Meaning We didn’t assume much about the meaning of words when we talked about sentence meanings Verbs provided a template-like predicate argument structure Nouns were practically meaningless constants There has be more to it than that The internal structure of words that determines where they can go and what they can do (syntagmatic) 12/31/2018

What’s a word? Words?: Types, tokens, stems, roots, inflected forms? Lexeme – An entry in a lexicon consisting of a pairing of a form with a single meaning representation Lexicon - A collection of lexemes 12/31/2018

Lexical Semantics The linguistic study of systematic meaning related structure of lexemes is called Lexical Semantics. A lexeme is an individual entry in the lexicon. A lexicon is meaning structure holding meaning relations of lexemes. A lexeme may have different meanings. A lexeme’s meaning component is known as one of its senses. Different senses of the lexeme duck. an animal, to lower the head, ... Different senses of the lexeme yüz face, to swim, to skin, the front of something, hundred, ... 12/31/2018

Relations Among Lexemes and Their Senses Homonymy Polysemy Snonymy Hyponymy Hypernym 12/31/2018

Homonymy Homonymy is a relation holds between words have same form with unrelated meanings. Bank -- financial institution, river bank For this, we should create two senses of the lexeme bank. Bat -- (wooden stick-like thing) vs (flying scary mammal thing) The problematic part of understanding homonymy isn’t with the forms, it’s the meanings. Causes ambiguity. Nothing particularly important would happen to anything else in English if we used a different word for the little flying mammal things 12/31/2018

Polysemy Polysemy is the phenomenon of multiple related meanings in a same lexeme. Bank -- financial institution, blood bank these senses are related. Are we going to create a single sense or two different senses? While some banks furnish sperm only to married women, others are less restrictive Serve Which flights serve breakfast? Does America West serve Philadelphia? Does United serve breakfast and San Jose? Most non-rare words have multiple meanings The number of meanings is related to its frequency Verbs tend more to polysemy Distinguishing polysemy from homonymy isn’t always easy (or necessary) 12/31/2018

Synonymy Synonymy is the phenomenon of two different lexemes having the same meaning. Big and large In fact, one of the senses of two lexemes are same. There aren’t any true synonyms. Two lexemes are synonyms if they can be successfully substituted for each other in all situations What does successfully mean? Preserves the meaning But may not preserve the acceptability based on notions of politeness, slang, ... Example - Big and large? That’s my big sister a big plane That’s my large sister a large plane 12/31/2018

Hyponymy and Hypernym Hyponymy: one lexeme denotes a subclass of the other lexeme. The more specific lexeme is a hyponymy of the more general lexeme. The more general lexeme is a hypernym of the more specific lexeme. A hyponymy relation can be asserted between two lexemes when the meanings of the lexemes entail a subset relation Since dogs are canids Dog is a hyponym of canid and Canid is a hypernym of dog Car is a hyponymy of vehicle, vehicle is a hypernym of car. 12/31/2018

Ontology The term ontology refers to a set of distinct objects resulting from analysis of a domain. A taxonomy is a particular arrangements of the elements of an ontology into a tree-like class inclusion structure. A lexicon holds different senses of lexemes together with other relations among lexemes. 12/31/2018

Lexical Resourses There are lots of lexical resources available Word lists On-line dictionaries Corpora The most ambitious one is WordNet A database of lexical relations for English Versions for other languages are under development 12/31/2018

WordNet WordNet is widely used lexical database for English. WebPage: http://www.cogsci.princeton.edu/~wn/ It holds: The senses of the lexemes holds relations among nouns such as hypernym, hyponym, MemberOf, .. Holds relations among verbs such as hypernym, … Relations are held for each different senses of a lexeme. 12/31/2018

WordNet Relations Some of WordNet Relations (for nouns) 12/31/2018

WordNet Hierarchies Hyponymy chains for the senses of the lexeme bass 12/31/2018

WordNet - bass The noun "bass" has 8 senses in WordNet. 1. bass -- (the lowest part of the musical range) 2. bass, bass part -- (the lowest part in polyphonic music) 3. bass, basso -- (an adult male singer with the lowest voice) 4. sea bass, bass -- (the lean flesh of a saltwater fish of the family Serranidae) 5. freshwater bass, bass -- (any of various North American freshwater fish with lean flesh (especially of the genus Micropterus)) 6. bass, bass voice, basso -- (the lowest adult male singing voice) 7. bass -- (the member with the lowest range of a family of musical instruments) 8. bass -- (nontechnical name for any of numerous edible marine and freshwater spiny-finned fishes) The adjective "bass" has 1 sense in WordNet. 1. bass, deep -- (having or denoting a low vocal or instrumental range; "a deep voice"; "a bass voice is lower than a baritone voice"; "a bass clarinet") 12/31/2018

WordNet –bass Hyponyms Results for "Hyponyms (...is a kind of this), full" search of noun "bass" 6 of 8 senses of bass                                                    Sense 2 bass, bass part -- (the lowest part in polyphonic music)        => ground bass -- (a short melody in the bass that is constantly repeated)        => thorough bass, basso continuo -- (a bass part written out in full and accompanied by figures for successive chords)        => figured bass -- (a bass part in which the notes have numbers under them to indicate the chords to be played) Sense 4 sea bass, bass -- (the lean flesh of a saltwater fish of the family Serranidae)        => striped bass, striper -- (caught along the Atlantic coast of the United States) Sense 5 freshwater bass, bass -- (any of various North American freshwater fish with lean flesh (especially of the genus Micropterus))        => largemouth bass -- (flesh of largemouth bass)        => smallmouth bass -- (flesh of smallmouth bass) Sense 6 bass, bass voice, basso -- (the lowest adult male singing voice)        => basso profundo -- (a very deep bass voice) Sense 7 bass -- (the member with the lowest range of a family of musical instruments)        => bass fiddle, bass viol, bull fiddle, double bass, contrabass, string bass -- (largest and lowest member of the violin family)        => bass guitar -- (the lowest six-stringed guitar)        => bass horn, sousaphone, tuba -- (the lowest brass wind instrument)            => euphonium -- (a bass horn (brass wind instrument) that is the tenor of the tuba family)            => helicon, bombardon -- (a tuba that coils over the shoulder of the musician)        => bombardon, bombard -- (a large shawm; the bass member of the shawm family) Sense 8 bass -- (nontechnical name for any of numerous edible marine and freshwater spiny-finned fishes)        => freshwater bass -- (North American food and game fish) 12/31/2018

WordNet – bass Synonyms Results for "Synonyms, ordered by estimated frequency" search of noun "bass" 8 senses of bass                                                         Sense 1 bass -- (the lowest part of the musical range)        => low pitch, low frequency -- (a pitch that is perceived as below other pitches) Sense 2 bass, bass part -- (the lowest part in polyphonic music)        => part, voice -- (the melody carried by a particular voice or instrument in polyphonic music; "he tried to sing the tenor part") Sense 3 bass, basso -- (an adult male singer with the lowest voice)        => singer, vocalist, vocalizer, vocaliser -- (a person who sings) Sense 4 sea bass, bass -- (the lean flesh of a saltwater fish of the family Serranidae)        => saltwater fish -- (flesh of fish from the sea used as food) Sense 5 freshwater bass, bass -- (any of various North American freshwater fish with lean flesh (especially of the genus Micropterus))        => freshwater fish -- (flesh of fish from fresh water used as food) Sense 6 bass, bass voice, basso -- (the lowest adult male singing voice)        => singing voice -- (the musical quality of the voice while singing) Sense 7 bass -- (the member with the lowest range of a family of musical instruments)        => musical instrument, instrument -- (any of various devices or contrivances that can be used to produce musical tones or sounds) Sense 8 bass -- (nontechnical name for any of numerous edible marine and freshwater spiny-finned fishes)        => percoid fish, percoid, percoidean -- (any of numerous spiny-finned fishes of the order Perciformes) 12/31/2018

Internal Structure of Words Paradigmatic relations connect lexemes together in particular ways but don’t say anything about what the meaning representation of a particular lexeme should consist of. Various approaches have been followed to describe the semantics of lexemes. Thematic roles in predicate-bearing lexemes Selection restrictions on thematic roles Decompositional semantics of predicates Feature-structures for nouns 12/31/2018

Thematic Roles Thematic roles provide a shallow semantic language for characterizing certain arguments of verbs. For example: Ali broke the glass. Veli opened the door. Ali is Breaker and the glass is BrokenThing of Breaking event; Veli is Opener and the door is OpenedThing of Opening event. These are deep roles of arguments of events. Both of these events have actors which are doer of a volitional event, and things affected by this action. A thematic role is a way of expressing this kind of commonality. AGENT and THEME are thematic roles. 12/31/2018

Some Thematic Roles AGENT --The volitional causer of an event -- She broke the door EXPERIENCER -- The experiencer of an event -- Ali has a headache. FORCE -- The non-volitional causer of an event -- The wind blows it. THEME -- The participant most directly effected by an event -- She broke the door. INSTRUMENT -- An instrument used in an event -- He opened it with a knife. BENEFICIARY -- A beneficiary of an event -- I bought it for her. SOURCE -- The origin of the object of a transfer event -- I flew from Rome. GOAL -- The destination of the object of a transfer event -- I flew to Ankara. 12/31/2018

Thematic Roles (cont.) Takes some of the work away from the verbs. It’s not the case that every verb is unique and has to completely specify how all of its arguments uniquely behave. Provides a mechanism to organize semantic processing It permits us to distinguish near surface-level semantics from deeper semantics 12/31/2018

Linking AGENTS are often subjects Thematic roles, syntactic categories and their positions in larger syntactic structures are all intertwined in complicated ways. For example… AGENTS are often subjects In a VP->V NP NP rule, the first NP is often a GOAL and the second a THEME 12/31/2018

Deeper Semantics He melted her reserve with a husky-voiced paean to her eyes. If we label the constituents He and her reserve as the Melter and Melted, then those labels lose any meaning they might have had. If we make them Agent and Theme then we don’t have the same problems 12/31/2018

Selectional Restrictions A selectional restriction augments thematic roles by allowing lexemes to place certain semantic restrictions on the lexemes and phrases can accompany them in a sentence. I want to eat someplace near Bilkent. Now we can say that eat is a predicate that has an AGENT and a THEME And that the AGENT must be capable of eating and the THEME must be capable of being eaten Each sense of a verb can be associated with selectional restrictions. THY serves NewYork. -- direct object (theme) is a place THY serves breakfast. -- direct object (theme) is a meal. We may use these selectional restrictions to disambiguate a sentence. 12/31/2018

As Logical Statements For eat… Eating(e) ^Agent(e,x)^ Theme(e,y)^Isa(y, Food) (adding in all the right quantifiers and lambdas) 12/31/2018

WordNet Use WordNet hyponyms (type) to encode the selection restrictions 12/31/2018

Specificity of Restrictions What can you say about THEME in each with respect to the verb? Some will be high up in the WordNet hierarchy, others not so high… PROBLEMS Unfortunately, verbs are polysemous and language is creative… … ate glass on an empty stomach accompanied only by water and tea you can’t eat gold for lunch if you’re hungry … get it to try to eat Afghanistan 12/31/2018

Discovering the Restrictions Instead of hand-coding the restrictions for each verb, can we discover a verb’s restrictions by using a corpus and WordNet? Parse sentences and find heads Label the thematic roles Collect statistics on the co-occurrence of particular headwords with particular thematic roles Use the WordNet hypernym structure to find the most meaningful level to use as a restriction 12/31/2018

Motivation Find the lowest (most specific) common ancestor that covers a significant number of the examples 12/31/2018

Word-Sense Disambiguation Word sense disambiguation refers to the process of selecting the right sense for a word from among the senses that the word is known to have Semantic selection restrictions can be used to disambiguate Ambiguous arguments to unambiguous predicates Ambiguous predicates with unambiguous arguments Ambiguity all around 12/31/2018

Word-Sense Disambiguation We can use selectional restrictions for disambiguation. He cooked simple dishes. He broke the dishes. But sometimes, selectional restrictions will not be enough to disambiguate. What kind of dishes do you recommend? -- we cannot know what sense is used. There can be two lexemes (or more) with multiple senses. They serve vegetarian dishes. Selectional restrictions may block the finding of meaning. If you want to kill Turkey, eat its banks. Kafayı yedim. These situations leave the system with no possible meanings, and they can indicate a metaphor. 12/31/2018

WSD and Selection Restrictions Ambiguous arguments Prepare a dish Wash a dish Ambiguous predicates Serve Denver Serve breakfast Both Serves vegetarian dishes 12/31/2018

WSD and Selection Restrictions This approach is complementary to the compositional analysis approach. You need a parse tree and some form of predicate-argument analysis derived from The tree and its attachments All the word senses coming up from the lexemes at the leaves of the tree Ill-formed analyses are eliminated by noting any selection restriction violations 12/31/2018

Problems As we saw last time, selection restrictions are violated all the time. This doesn’t mean that the sentences are ill-formed or preferred less than others. This approach needs some way of categorizing and dealing with the various ways that restrictions can be violated 12/31/2018

WSD Tags A dictionary sense? What’s a tag? For example, for WordNet an instance of “bass” in a text has 8 possible tags or labels (bass1 through bass8). 12/31/2018

WordNet Bass The noun ``bass'' has 8 senses in WordNet bass - (the lowest part of the musical range) bass, bass part - (the lowest part in polyphonic music) bass, basso - (an adult male singer with the lowest voice) sea bass, bass - (flesh of lean-fleshed saltwater fish of the family Serranidae) freshwater bass, bass - (any of various North American lean-fleshed freshwater fishes especially of the genus Micropterus) bass, bass voice, basso - (the lowest adult male singing voice) bass - (the member with the lowest range of a family of musical instruments) bass -(nontechnical name for any of numerous edible marine and freshwater spiny-finned fishes) 12/31/2018

Representations Vectors of sets of feature/value pairs Most supervised ML approaches require a very simple representation for the input training data. Vectors of sets of feature/value pairs I.e. files of comma-separated values So our first task is to extract training data from a corpus with respect to a particular instance of a target word This typically consists of a characterization of the window of text surrounding the target 12/31/2018

Representations This is where ML and NLP intersect If you stick to trivial surface features that are easy to extract from a text, then most of the work is in the ML system If you decide to use features that require more analysis (say parse trees) then the ML part may be doing less work (relatively) if these features are truly informative 12/31/2018

Surface Representations Collocational and co-occurrence information Collocational Encode features about the words that appear in specific positions to the right and left of the target word Often limited to the words themselves as well as they’re part of speech Co-occurrence Features characterizing the words that occur anywhere in the window regardless of position Typically limited to frequency counts 12/31/2018

Collocational [guitar, NN, and, CJC, player, NN, stand, VVB] Position-specific information about the words in the window guitar and bass player stand [guitar, NN, and, CJC, player, NN, stand, VVB] In other words, a vector consisting of [position n word, position n part-of-speech…] 12/31/2018

Co-occurrence Information about the words that occur within the window. First derive a set of terms to place in the vector. Then note how often each of those terms occurs in a given window. 12/31/2018

Classifiers Naïve Bayes (the right thing to try first) Decision lists Once we cast the WSD problem as a classification problem, then all sorts of techniques are possible Naïve Bayes (the right thing to try first) Decision lists Decision trees Neural nets Support vector machines Nearest neighbor methods… 12/31/2018

Classifiers The choice of technique, in part, depends on the set of features that have been used Some techniques work better/worse with features with numerical values Some techniques work better/worse with features that have large numbers of possible values For example, the feature the word to the left has a fairly large number of possible values 12/31/2018

Statistical Word-Sense Disambiguation Where s is a vector of senses, V is the vector representation of the input By Bayesian rule By making independence assumption of meanings. This means that the result is the product of the probabilities of its individual features given that its sense 12/31/2018

Problems One for each ambiguous word in the language Given these general ML approaches, how many classifiers do I need to perform WSD robustly One for each ambiguous word in the language How do you decide what set of tags/labels/senses to use for a given word? Depends on the application 12/31/2018