LING 388: Language and Computers Sandiway Fong Lecture 26
Last Time 3 files: – j25.plJapanese grammar – g25.plEnglish grammar – translator25.plbilingual dictionary common interface: –predarg(Predicate,Subject,Object,decl/wh/yesno)
j25.pl use japanese:s(PA,JapaneseSentence,[])
j25.pl
g25.pl use english:s(PA,EnglishSentence,[])
g25.pl
NB. previously, a (regular) plural suffixation rule was used
g25.pl
translator25.pl Bilingual dictionary + translate/2
Tasks today 1.Comment out dual entries for Japanese lexicon – prevent duplicate generation of kana/kanji and romaji 2.Fix infinite loop for generation with the English grammar 3.Update the English grammar to generate wh- questions and yes/no-questions using predarg structure
Wh-questions Stanford Parser output: predarg(buy+past,john,what,wh)
Wh-questions Stanford Parser output: predarg(buy+past,who,book,wh)
Yes/No-Questions Stanford parser output: predarg(buy+past,john,book,yesno)