Compositional Semantics
CMSC 723 / LING 723 / INST 725 MARINE CARPUAT
marine@cs.umd.edu
Compositional Semantics CMSC 723 / LING 723 / INST 725 M ARINE C - - PowerPoint PPT Presentation
Compositional Semantics CMSC 723 / LING 723 / INST 725 M ARINE C ARPUAT marine@cs.umd.edu Words, bag of words Sequences Trees Meaning Representing Meaning An important goal of NLP/AI: convert natural language into a
CMSC 723 / LING 723 / INST 725 MARINE CARPUAT
marine@cs.umd.edu
language into a representation that supports semantic inferences
understanding
instructions to a robot,…
input to non-linguistic knowledge of the world
Challenges for mapping linguistic input to meaning
– She needed to make a quick decision in that situation. – The scenario required her to make a split-second judgment. – I saw the man. – The man was seen by me.
Challenges for mapping linguistic input to meaning
– Everyone on the island speaks two languages. – Two languages are spoken by everyone on the island.
capture the meanings of those inputs.
– of the meanings of utterances – and of some potential state of affairs in some world.
away from ambiguity/vagueness of natural language
– Verifiability – No ambiguity – Expressiveness – Inference
– Complete analysis – Create a First Order Logic representation that accounts for all the entities, roles and relations present in a sentence
– Superficial analysis – Pulls out only the entities, relations and roles that are of interest to the consuming application.
American Airlines, a unit of AMR, immediately matched the move, spokesman Tim Wagner said.
American Airlines, a unit of AMR, immediately matched the move, spokesman Tim Wagner said.
ARTIFACT GENERAL AFFILIATION ORG AFFILIATION PART- WHOLE PERSON- SOCIAL PHYSICAL Located Near Business Family Lasting Personal Citizen- Resident- Ethnicity- Religion Org-Location- Origin Founder Employment Membership Ownership Student-Alum Investor User-Owner-Inventor- Manufacturer Geographical Subsidiary Sports-Affiliation
17 relations from 2008 “Relation Extraction Task” from Automated Content Extraction (ACE)
134 entity types, 54 relations
Injury disrupts Physiological Function Bodily Location location-of Biologic Function Anatomical Structure part-of Organism Pharmacologic Substance causes Pathological Function Pharmacologic Substance treats Pathologic Function
– negation, conjunction, disjunction – Implication, equivalence
– Can be defined using Boolean connectives P => Q
model
functions from objects to truth values
functions from one object to another
locally specified
– Existential – Universal
From SLP2 Section 17.3
How can we represent the “Liking” predicate- argument template?
with representations that consist of predicates and arguments to those predicates.
– Primarily Verbs, VPs, Sentences – Sometimes Nouns and NPs
– Primarily Nouns, Nominals, NPs, PPs – But also everything else, depends on the context
– Gave conveys a three-argument predicate – The first argument is the subject – The second is the recipient, which is conveyed by the NP inside the PP – The third argument is the thing given, conveyed by the direct object
– We can think of the verb/VP providing a template like the following – The semantics of the NPs and the PPs in the sentence plug into the slots provided in the template
) , ( )^ , ( )^ , ( )^ ( , , , z e Givee y e Given x e Giver e zGiving y x e
From SLP2 Section 17.3
“Liking” predicate-argument template
– Take a FOL formula with variables in it that are to be bound. – Allow those variables to be bound by treating the lambda form as a function with formal arguments.
– Propositional Logic – Predicate Logic – Lambda Forms
– One approach: compositional semantics
– The constituents of the syntactic parse of the input
– This should be read as: “the semantics we attach to A can be computed from some function applied to the semantics of A’s parts.”
n 1 1
n
– NP -> PropNoun – PropNoun -> Frasca – PropNoun -> Franco
{PropNoun.sem} {Frasca} {Franco}
.sem(NP .sem)}
.sem)