LING 364: Introduction to Formal Semantics Lecture 27 April 27th.

Slides:



Advertisements
Similar presentations
Genre Prompt Cards.
Advertisements

Welcome to English 2 When Actions Happen Names of Words
Introduction to Fractions
LING 388: Language and Computers Sandiway Fong Lecture 5: 9/5.
LING 364: Introduction to Formal Semantics Lecture 24 April 13th.
LING 388: Language and Computers Sandiway Fong Lecture 5: 9/8.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 13: 10/9.
LING 388: Language and Computers Sandiway Fong Lecture 2: 8/24.
LING 388: Language and Computers Sandiway Fong Lecture 2: 8/25.
Discoverers’ Pride Time Agenda : MONDAY PBIS – Positive Behavior Integration System PBIS – Positive Behavior Integration System.
LING 364: Introduction to Formal Semantics Lecture 8 February 7th.
LING 581: Advanced Computational Linguistics Lecture Notes April 23rd.
LING 364: Introduction to Formal Semantics Lecture 26 April 20th.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 3: 8/29.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 7: 9/12.
LING 364: Introduction to Formal Semantics Lecture 10 February 14th.
LING 364: Introduction to Formal Semantics Lecture 9 February 9th.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 9: 9/21.
LING 364: Introduction to Formal Semantics Lecture 28 May 2nd.
LING 388: Language and Computers Sandiway Fong Lecture 28: 12/6.
LING 364: Introduction to Formal Semantics Lecture 4 January 24th.
LING 364: Introduction to Formal Semantics Lecture 11 February 16th.
LING 388: Language and Computers Sandiway Fong Lecture 6: 9/7.
LING 388: Language and Computers Sandiway Fong Lecture 11: 10/3.
LING 364: Introduction to Formal Semantics Lecture 1 January 12th.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 6: 9/7.
LING 388 Language and Computers Take-Home Final Examination 12/9/03 Sandiway FONG.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 12: 10/5.
LING 364: Introduction to Formal Semantics Lecture 3 January 19th.
LING 364: Introduction to Formal Semantics Lecture 13 February 23rd.
LING 388: Language and Computers Sandiway Fong Lecture 4: 9/1.
LING 388: Language and Computers Sandiway Fong Lecture 1: 8/23.
Sequences and Series Day 2&3 Happy Monday
LING 364: Introduction to Formal Semantics Lecture 5 January 26th.
LING 388: Language and Computers Sandiway Fong Lecture 13: 10/10.
LING 388 Language and Computers Lecture 12 10/9/03 Sandiway FONG.
LING 364: Introduction to Formal Semantics Lecture 25 April 18th.
LING 388: Language and Computers Sandiway Fong 10/4 Lecture 12.
Verb Tenses It is not what you thought!. Verbs. What is a verb? A verb is a word which describes the action in a sentence (the doing word) Examples I.
1 Introduction to Present Perfect How long have you lived in the United States? How long have you been here?
Present Continuous tense V.S Past Tense
Warm-up Discuss the free response problems from the practice or come up with any last minute questions.
LING 388: Language and Computers Sandiway Fong Lecture 4.
LING 388: Language and Computers Sandiway Fong Lecture 7.
LING 388: Language and Computers Sandiway Fong Lecture 3.
Verb Tenses Lesson #11 Workbook page: 103. Student will be able to write sentences using present, past, and future verb tense. Students will use irregular.
LING 388: Language and Computers Sandiway Fong Lecture 10.
We add –ed to most verbs to show that an action happened before now, but some verbs have a special form for the past tense. There verbs are irregular past.
Trustworthy Semantic Web Dr. Bhavani Thuraisingham The University of Texas at Dallas Review for the Final Exam December 8, 2008.
CSCE 496/896 Self-Managing Computer Systems Ying Lu 106 Schorr Center
English II Argument and Research.  What are the fours types of evidence we learned about in last class. You may use your notes.  1.  2.  3.  4. Flashback.
Dhofar University, Salalah
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 3, Lecture 1.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
"I pledge allegiance to the flag of the United States of America, and to the Republic for which it stands: one Nation under God, indivisible, with Liberty.
Routine Phrases Sign in ASL order: Time, Object, Subject, Verb.
Our objectives for today are:
Presentations Week 2. Weeks 1 and 2 Week 1 Getting to Know each other. How to Open a Presentation Test your Presentation Skills Your Needs and Wants for.
Divisibility Tests How can you tell quickly whether a number can be divided exactly by another?
+ Daily Grammar Warm-Up 10/1/09-10/13/09. + Thursday 10/1/09: Adjectives A little adjective practice.... Please turn to page 43 of you Holt Handbook.
Thursday, August 25 Bellwork: p45 Is the number given a solution of the equation? 22. 5x + 2 = 17; 3 5(3) + 2 = 17 yes 24. 3x – 4 = 12 – 5x; 2 3(2) – 4.
CSCE 990 Advanced Distributed Systems Seminar Ying Lu 104 Schorr Center
Future Perfect Tense Lesson #16 Workbook page: 110.
HOMEROOM03/19/15 Write these important dates in your agenda: Thursday 03/19 - Second Writing Test Friday 03/20 - Progress Reports Monday 03/23 - Chattanooga.
Get out Lesson 3, Dust Bowl organizer & notebooks Monday, Sept 28th *Test will be Thursday on Chapter 9-Great Depression.
Wednesday, April 13, 2016 ESL Level 3 Week 8. Announcements We will start working on our EL Civics this week Units this week.
Monday, 1/4/10 SWBAT… present their cell phone plans Agenda 1. WU (5 min) 2. Remaining cell phone presentations (10 min) 3. Take-home tests (5 min) 4.
English Conversation Skills
LING 581: Advanced Computational Linguistics
Writing for Social Studies
Presentation transcript:

LING 364: Introduction to Formal Semantics Lecture 27 April 27th

Administrivia Homework 5 –all returned if you didn’t get an from me, I didn’t get your homework

Administrivia Homework 6 –short homework on time and tense –out today –due to proximity to the end of the semester and the final –due next Tuesday Homework 6 help: come to my office Availability tomorrow (Friday) (whole afternoon) Monday(whole afternoon) Tuesday (last lecture)

Administrivia Final –a take-home –out next Tuesday –you have one day+ –due that Wednesday I will be available all day Wednesday for questions (Douglass 308)

Time and Tense Recap of formal concepts: (S) utterance or speech time (E) event time (T) reference (R) or topic time –time intervals the notion that E,S and T are intervals –interval relations: precedence (<) inclusion ( ⊆ )

A Grammar for Tense and Time sbar(R) --> adjunct(R1), s(R2), {append(R1,R2,R)}. sbar(R) --> s(R). s(R) --> np, vp(R). np --> [i]. np --> [noah]. vp(R) --> v(R1,go), [for,a,hike], {append([(subset(e,t))],R1,R)}. vp(R) --> v(R1,have), [a,rash], {append([intersect(e,t)],R1,R)}. v([(t [went]. v([(t=s)],go) --> [go]. v([(s [will,go]. v([(t [had]. v([(t=s)],have) --> [have]. v([(s [will,have]. adjunct([(t [last,month]. adjunct([(t [yesterday]. adjunct([(s=t),t=today(s)]) --> [today]. adjunct([(s [tomorrow]. simple grammar we will use for the homework a more elaborate grammar would integrate, i.e. include, the meaning grammars that we’ve been developing in other homework

Exercise 1 Let’s see what this grammar computes Run –(16) Last month, I went for a hike as follows –?- sbar(R,[last,month,i,went,for,a,hike],[]). –R = [t<s,t=last_month(s),subset(e,t),t<s] S last month 3/13/314/20 T E

Exercise 1 Explaining the output –?- sbar(R,[last,month,i,went,for,a,hike],[]). –R = [t<s,t=last_month(s),subset(e,t),t<s] –Each part of the sentence that has something to say about time/tense contributes some part of the result –each part, e.g. R, R1, R2, is stored as a Prolog list Relevant Grammar Rules sbar(R) --> adjunct(R1), s(R2), {append(R1,R2,R)}. remember: append/3 concatenates lists R1 and R2 to make R –let’s look at R1 which comes from the rule for adjunct adjunct([(t [last,month]. R1 = [(t<s),t=last_month(s)] list containing two facts t < s (reference time T precedes utterance time S) t = last_month(s)

Exercise 1 Explaining the output –?- sbar(R,[last,month,i,went,for,a,hike],[]). –R = [t<s,t=last_month(s),subset(e,t),t<s] Relevant Grammar Rules sbar(R) --> adjunct(R1), s(R2), {append(R1,R2,R)}. –let’s look at the 2nd half of the result –R2 comes from the rule for S s(R) --> np, vp(R). np --> [i]. vp(R) --> v(R1,go), [for,a,hike], {append([subset(e,t)],R1,R)}. –subset(e,t) encodes E ⊆ T –aspectual information: “go for a hike” is an accomplishment, and –happens in the reference time interval v([(t [went]. v([(s [will,go]. –R1 = [(t<s)] –t<s encodes past tense, i.e. T < S

Exercise 1 In diagram form: sbar adjuncts npvp vfor a hikei went last month v([(t [went]. vp(R) --> v(R1,go), [for,a,hike], {append([subset(e,t)],R1,R)}}. [t<s] [subset(e,t),t<s] s(R) --> np, vp(R). adjunct([(t [last,month]. [(t<s),t=last_month(s)] sbar(R) --> adjunct(R1), s(R2), {append(R1,R2,R)}. [t<s,t=last_month(s),subset(e,t),t<s]

Exercise 1 An inference rule –infer(R,[(Z<Y)]) :- –select((X<Y),R,R1), –select(subset(Z,X),R1,_). –% select(X,L,L’) –% selects X a member of list L, –% L’ is the list L with X removed –select(X,[X|L],L). –select(X,[Y|L],[Y|Lp]) :- select(X,L,Lp). Encodes: –If –X < Y –and –Z ⊆ X –we can infer: –Z < Y over the list of relations given in R

Exercise 1 Running –?- sbar(R,[last,month,i,went,for,a,hike],[]). –R = [t<s,t=last_month(s),subset(e,t),t<s] What should I be able to infer? –Answer: E < S Let’s use our inference rule! –?- sbar(R,[last,month,i,went,for,a,hike],[]), infer(R,R1). –R = [t<s,t=last_month(s),subset(e,t),t<s], –R1 = [e<s]

Exercise 1 Homework Question A (2pts) –Run Tomorrow, I will go for a hike –Give the result Homework Question B (2pts) –What should I be able to infer? Homework Question C (4pts) –Add an inference rule to do this

Exercise 2 Consider now –Yesterday, Noah had a rash Let –T = yesterday(S) –E = interval in which Noah is in a state of having a rash –T < S –E ⋂ T ≠ ∅ S yesterday 0:0023:5915:50 T E E E ?- sbar(R,[yesterday,noah,had,a,rash],[]). R = [t<s,t=yesterday(s),intersect(e,t),t<s] notation: define intersect(e,t) to mean E intersects T is non-empty ET

Exercise 2 Homework Question (8pts) –Give a diagram explanation (see slide 10) of how –R = [t<s,t=yesterday(s),intersect(e,t),t<s] –is computed piece-by-piece –for the query –?- sbar(R,[yesterday,noah,had,a,rash],[]).

Exercise 3 Theme: Inconsistency Homework Question (8pts) Explain formally what is wrong with the following sentences: –(i) # Yesterday, I will go for a hike –(ii) # Tomorrow, Noah had a rash –# = semantically odd hint: Run the sentences...

Exercise 3 Extra Credit (10pts) Write a Prolog rule –inconsistent(R) –that succeeds when it detects a logical inconsistency in the list of relations R –your rule should detect the inconsistency in sentences (i) and (ii) –hint: it’s only one rule ?- sbar(R,[yesterday, i,will,go,for,a,hike],[]), inconsistent(R). R = [t<s,t=yesterday(s),subset(e,t),s<t] yes | ?- sbar(R,[yesterday, i,will,go,for,a,hike],[]), \+ inconsistent(R). no