210 likes | 391 Views
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:
E N D
LING 388: Language and Computers Sandiway Fong Lecture 23
Last Time • We started building a Prolog Japanese grammar …
Japanese Grammar • Example: • taroo-gahon-o kaimashita • (john)-nom book-accbuy+past (formal/polite)
Japanese Grammar • Example: • taroo-gahon-o kaimashita • (john)-nom book-accbuy+past (formal/polite) kaimashita
Japanese Grammar • Example (scrambled): • hon-o taroo-gat kaimashita • book-acc (john)-nom trace buy+past (formal/polite)
Japanese Grammar • Example (scrambled): • hon-o taroo-gat kaimashita • book-acc (john)-nom trace buy+past (formal/polite) or..
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:
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
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
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
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
Japanese Grammar • Example (wh-question): • taroo-ganani-o kaimashitaka • (John)-nom what-accbuy+past Q is not represented in the parse
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?
Japanese Grammar • Let’s modify j23.pl • to use SQ instead S for wh-questions
Japanese Grammar • Let’s modify j23.pl • to use SQ instead S for wh-questions
Japanese Grammar • Let’s modify j23.pl • Verb morphology: • kau + masu + ta = kaimashita • (masu = polite, ta = past) • kau + ta = katta (informal)
Japanese Grammar • Let’s modify j23.pl • Verb morphology:
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?
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?
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?
Japanese passives • Patterns: • Object-ga V-passive • Object-ga Subject-ni V-passive From wikipedia