1 / 21

LING 388: Language and Computers

LING 388: Language and Computers. Sandiway Fong Lecture 23. Last Time. We started building a Prolog Japanese grammar … . Japanese Grammar. Example: taroo-ga hon -o kaimashita (john)-nom book- acc buy+past (formal/polite). Japanese Grammar. Example:

davina
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 23

  2. Last Time • We started building a Prolog Japanese grammar …

  3. Japanese Grammar • Example: • taroo-gahon-o kaimashita • (john)-nom book-accbuy+past (formal/polite)

  4. Japanese Grammar • Example: • taroo-gahon-o kaimashita • (john)-nom book-accbuy+past (formal/polite) kaimashita

  5. Japanese Grammar • Example (scrambled): • hon-o taroo-gat kaimashita • book-acc (john)-nom trace buy+past (formal/polite)

  6. Japanese Grammar • Example (scrambled): • hon-o taroo-gat kaimashita • book-acc (john)-nom trace buy+past (formal/polite) or..

  7. Japanese Grammar • Example (wh-question): • dare-gahon-o kaimashitaka • who-nom book-accbuy+past Q • Define 2nd argument for NPs with value notwh/wh Q = question particle who what WHNP/WP tags following the Stanford parser:

  8. Japanese Grammar • Example (wh-question): • dare-gahon-o kaimashitaka • who-nom book-accbuy+past Q • Define 2nd argument for NPs with value notwh/wh • Add a new nonterminal sf(sentence final) that generates ka when either the subject or object has value wh

  9. Japanese Grammar • Example (wh-question): • dare-gahon-o kaimashitaka • who-nom book-accbuy+past Q • Define 2nd argument for NPs with value notwh/wh • Add a new nonterminal sf(sentence final) that generates ka when either the subject or object has value wh We assume that the question particle ka is obligatory

  10. Japanese Grammar • Example (wh-question): • dare-gahon-o kaimashitaka • who-nom book-accbuy+past Q • Define 2nd argument for NPs with value notwh/wh • Add a new nonterminal sf(sentence final) that generates ka when either the subject or object has value wh

  11. Japanese Grammar • Example (wh-question): • dare-gahon-o kaimashitaka • who-nom book-accbuy+past Q • hon-o dare-gatkaimashitaka • book-acc who-nom trace buy+past Q Scrambled wh-question

  12. Japanese Grammar • Example (wh-question): • taroo-ganani-o kaimashitaka • (John)-nom what-accbuy+past Q is not represented in the parse

  13. Japanese Grammar • Let’s modify j23.pl • to use SQ instead S for wh-questions • Verb morphology: • kau + masu + ta = kaimashita • (masu = polite, ta = past) • kau + ta = katta (informal) • Yes/No questions: • Sentence-final ka without wh-word as subject or object • taroo-gahon-o kaimashitaka • Did Taroo buy a/the book?

  14. Japanese Grammar • Let’s modify j23.pl • to use SQ instead S for wh-questions

  15. Japanese Grammar • Let’s modify j23.pl • to use SQ instead S for wh-questions

  16. Japanese Grammar • Let’s modify j23.pl • Verb morphology: • kau + masu + ta = kaimashita • (masu = polite, ta = past) • kau + ta = katta (informal)

  17. Japanese Grammar • Let’s modify j23.pl • Verb morphology:

  18. Japanese Grammar • Let’s modify j23.pl • Yes/No questions: • Sentence-final ka without wh-word as subject or object • taroo-gahon-o kaimashitaka • Did Taroo buy a/the book?

  19. Japanese Grammar • Let’s modify j23.pl • Yes/No questions: • Sentence-final ka without wh-word as subject or object • taroo-gahon-o kaimashitaka • Did Taroo buy a/the book?

  20. Japanese Grammar • Let’s modify j23.pl • Yes/No questions: • Sentence-final ka without wh-word as subject or object • taroo-gahon-o kaimashitaka • Did Taroo buy a/the book?

  21. Japanese passives • Patterns: • Object-ga V-passive • Object-ga Subject-ni V-passive From wikipedia

More Related