1 / 20

Grammar Writing Lecture 8

Grammar Writing Lecture 8. 11-721 Grammars and Lexicons. Teruko Mitamura teruko@cs.cmu.edu www.cs.cmu.edu/~teruko. Schedule: December 3. Return mlb.gra Q/A on Grammar Writing Project Q/A sessions by TA Bad Equations Finish Japanese Grammar exercise (jpn-test2.lisp)

latika
Download Presentation

Grammar Writing Lecture 8

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. Grammar WritingLecture 8 11-721 Grammars and Lexicons Teruko Mitamura teruko@cs.cmu.edu www.cs.cmu.edu/~teruko LTI Grammars and Lexicons

  2. Schedule: December 3 • Return mlb.gra • Q/A on Grammar Writing Project • Q/A sessions by TA • Bad Equations • Finish Japanese Grammar exercise (jpn-test2.lisp) • Work on the Grammar Project LTI Grammars and Lexicons

  3. Bad Equations • ((x1 case) =nom) • ((x1 number)= sg) • (<S> <==> <NP> <VP>) ( ((x1 agr) = (x2 agr)) (x0 = x1) )) LTI Grammars and Lexicons

  4. Bad Equations (2) • (<S> <==> <NP> <VP>) ( ((x1 agr) = (x2 agr)) ((xo subj) = x2) (x0 = x1) )) LTI Grammars and Lexicons

  5. Bad Equations (3) (<S> <==> (<S> <PP>) ( (x0 pp-adjunct) > x2) (x0 = x1) )) LTI Grammars and Lexicons

  6. Bad Equations (4) (<S> <==> (<S> <PP>) ( (x0 = x1) (x0 pp-adjunct) < x2) )) LTI Grammars and Lexicons

  7. Assigning Multiple Values • Multiple values can be assigned to a feature. • Use the grater-than sign (>) in place of the equal sign. • If the following rule applies recursively, the pp-adjunct function will have several different values at the same time: (<S> <==> (<S> <PP>) ((x0 = x1) ((x0 pp-adjunct) > x2))) ; This rule should come last. • Multiple rule is sensitive to rule ordering LTI Grammars and Lexicons

  8. Japanese Lexicon nichiyoubi (Sunday) nyuuyooku (New York) hoomuran (home run) itta (went) utta (hit-past) taberu (eat), tabeta (eat-past) Hideki, Ichiro (person’s name) ga (NOM case) wo (ACC case) ni (Time-on) ni (Loc-to) e (Loc-to) de (Loc-at) LTI Grammars and Lexicons

  9. Japanese Grammar 1 Nichiyoubi ni Hideki ga Nyuuyook e itta. Sunday on Hideki NOM New York to go PAST “Hideki went to New York on Sunday.” Nichiyoubi niNyuuyooku eHideki ga itta. Hideki ganichiyoubi niNyuuyooku e itta. Hideki gaNyuuyooku enichiyoubi ni itta. Nyuuyooku eHideki ganichiyoubi ni itta. Nyuuyooku enichiyoubi niHideki ga itta. LTI Grammars and Lexicons

  10. Japanese Grammar 1 (cont.) Hideki gaNyuuyooku e itta Nyuuyooku eHideki ga itta Nichiyoubi niNyuuyooku e itta Nyuuyooku enichiyoubi ni itta Hideki ganichiyoubi ni itta Nichiyoubi niHideki ga itta Hideki ga itta Nyuuyooku e itta Nichiyoubi ni itta LTI Grammars and Lexicons

  11. Japanese Grammar 1 (cont.) Nichiyoubi ni Ichiro ga hoomuran wo utta. Sunday on Ichiro NOM home run ACC hit-PAST “Ichiro hit a home run on Sunday.” LTI Grammars and Lexicons

  12. Ungrammatical Sentences • You can’t have two nominatives or accusatives in a sentence. (jpn-test1.lisp) *Hideki ga nichiyoubi ga itta *Hideki ga Hideki ga itta *Hideki ga hoomuran ga utta *Hideki wo hoomuran wo utta LTI Grammars and Lexicons

  13. Japanese Grammar • Use of recursive rules (<S> < == > (<NP> <S>) (<S> < == > (<V>) LTI Grammars and Lexicons

  14. Recursive Rules S NP S NP S N P N P V Hideki gaNyuuyooku e itta LTI Grammars and Lexicons

  15. Japanese Grammar • “ni” is ambiguous in Japanese Time-on, Loc-to Nichiyoubi ni itta (went on Sunday) Nyuuyooku ni itta (went to New York) • “ni” and “e” can be used for Loc-to Nyuuyooku ni/e itta (went to New York) LTI Grammars and Lexicons

  16. Japanese Grammar 2 • “de” is Loc-in/Loc-at with action verbs Nyuuyooku de tabeta (ate in New York) CMU de tabeta (ate at CMU) Nyuuyooku de hoomuran wo utta (hit hoomuran in New York) LTI Grammars and Lexicons

  17. Ungrammatical Sentences “itta (went)” doesn’t take Loc-at/in “de” *Nyuuyooku de itta (*went in/at New York) “tabeta (ate)” doesn’t take Loc-to “ni/e” *Nyuuyooku ni/e tabeta (*ate to New York) Time expression doesn’t take Loc-at, Loc-to *Nichiyoubi de/e itta (*went at/to Sunday) *Nichiyoubi de/e utta (*hit at/to Sunday) *Nichiyoubi de/e tabeta (*ate at/to Sunday) LTI Grammars and Lexicons

  18. Ungrammatical Sentences (cont.) • Wrong case marker (jpn-test2.lisp) Nyuuyooku ni/e itta (Loc-to) *Nyuuyooku de itta (Loc-at) Nyuuyooku de tabeta (Loc-at) *Nyuuyooku ni/e tabeta (Loc-to) Nichiyoubi ni itta/tabeta (Time-on) *Nichiyoubi de itta/tabeta (Loc-at) *Nichiyoubi e itta/tabeta (Loc-to) LTI Grammars and Lexicons

  19. Japanese grammar exercise • Grammar file: /afs/cs/project/cmt-55/lti/Lab/Modules/GNL721/2007/jpn.gra • Test file: jpn-test2.lisp • Work on test2 and test-fail2 • Run test1 to see if it is still working LTI Grammars and Lexicons

  20. Questions? LTI Grammars and Lexicons

More Related