Presentation is loading. Please wait.

Presentation is loading. Please wait.

LING 388: Language and Computers Sandiway Fong Lecture 26.

Similar presentations


Presentation on theme: "LING 388: Language and Computers Sandiway Fong Lecture 26."— Presentation transcript:

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

7

8 NB. previously, a (regular) plural suffixation rule was used

9 g25.pl

10

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)


Download ppt "LING 388: Language and Computers Sandiway Fong Lecture 26."

Similar presentations


Ads by Google