Download presentation
Presentation is loading. Please wait.
Published byMariana Tuckey Modified over 9 years ago
1
LING 388: Language and Computers Sandiway Fong Lecture 26
2
Last Time 3 files: – j25.plJapanese grammar – g25.plEnglish grammar – translator25.plbilingual dictionary common interface: –predarg(Predicate,Subject,Object,decl/wh/yesno)
3
j25.pl use japanese:s(PA,JapaneseSentence,[])
4
j25.pl
5
g25.pl use english:s(PA,EnglishSentence,[])
6
g25.pl
8
NB. previously, a (regular) plural suffixation rule was used
9
g25.pl
11
translator25.pl Bilingual dictionary + translate/2
12
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
13
Wh-questions Stanford Parser output: predarg(buy+past,john,what,wh)
14
Wh-questions Stanford Parser output: predarg(buy+past,who,book,wh)
15
Yes/No-Questions Stanford parser output: predarg(buy+past,john,book,yesno)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.