1 / 17

LING 388: Language and Computers

LING 388: Language and Computers. Sandiway Fong Lecture 20 11/1. Administrivia. Due tonight Homework 6. Last Time. Introduced predicate-argument structure computation On website Grammar: g19.pl Let’s review g19 …. g 19.pl. g19.pl. g19.pl. g19.pl. Example:

Download Presentation

LING 388: Language and Computers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LING 388: Language and Computers Sandiway Fong Lecture 20 11/1

  2. Administrivia • Due tonight • Homework 6

  3. Last Time • Introduced predicate-argument structure computation • On website • Grammar: g19.pl • Let’s review g19 …

  4. g19.pl

  5. g19.pl

  6. g19.pl

  7. g19.pl • Example: • ?-s(P, [i,hit,the,ball], []). • P = hit(i,ball) • hit = predicate = head of VP • i = agent = head of subject NP • ball = theme = head of object NP • Prolog term hit(i,ball) produced using the (univ) =.. built-in Prolog predicate from the list • [hit,i,ball]

  8. Predicate-Argument Structure • Example: ?- s(X,[i,ran],[]). no • doesn’t work. Why? • Let’s see… • fails because predarg/3 only works for the transitive verb case

  9. Predicate-Argument Structure • Modify definition of predarg/3 to handle unergative verb case • First attempt: But, program now overgenerates since the two cases overlap

  10. Predicate-Argument Structure • Modify definition of predarg/3 to handle unergative verb case • First attempt: • Second attempt • (make the unergative case block • the transitive pattern)

  11. Predicate-Argument Structure • Example: produces a strange result. Why? • Let’s see…

  12. Predicate-Argument Structure • Trace of predarg/3 reveals that the transitive verb case inadvertently matches the passive construction i.e. objectNP matches vp(v(eat_en),np(trace)

  13. Predicate-Argument Structure • Solution: check to make sure objectNP is an NP not a VP functor/3 is a built-in Prolog predicate functor(Term,Functor,Arity) e.g.functor(Term,np,Arity) checks whether Term = np(_,…) we leave Arity unspecified since we have a range of NPs such as: np(det(the),n(man)) np(i) is correctly blocked

  14. Predicate-Argument Structure • To handle the passive example, we need to add a specific rule for predarg/3: Subject is not specified SubjectNP VP

  15. Predicate-Argument Structure • There is overlap between the unergative and passive cases pattern matches against vp(aux(was), vp(v(eat_en), np(trace))) but blocks vp(v(run_ed))

  16. Predicate-Argument Structure • Example (passive with subject in by-phrase): we also want this to produce essentially the same predicate-argument structure as: PA SubjectNP VP

  17. Predicate-Argument Structure • Summary:

More Related