Class 22 — Wednesday October 14

It's a fact, look it up

Really need to know — What lies farther down the road — Need a future map


Look both ways


Agenda


Updated 10/14/2020


Examples


To do


Huh?


Babelfish — a translation dictionary in CSV format

a, a

aab, water

aamadam, came

aamadand, came

aamad, came

aamadi, came

aamadid, came

aamadim, came

aanhaa, they

aan, it

aashpaz-khaaneh, kitchen

abajo, down

...

zauberformel, spell

zauberhaft, enchanting

zehn, ten

zeichen, characters

zeigt, show

ziba, beautiful

zur, to

zu, to

zwei, two



Problem que_dijiste.py

Program run

{'aab': 'water', 'aamadam': 'came', 'aamadand': 'came', 'aamad': 'came', 'aamadi': 'came',

...

'wollen': 'want', 'wort': 'word', 'wo': 'where', 'y': 'and', 'yo': 'I', 'Yo': 'I', 'yun': 'wool', 'yün': 'wool', 'zahl': 'number', 'zauberformel': 'spell', 'zauberhaft': 'enchanting', 'zehn': 'ten', 'zeichen': 'characters', 'zeigt': 'show', 'ziba': 'beautiful', 'zur': 'to', 'zu': 'to', 'zwei': 'two', '是': 'is', '该': 'the'}



Problem text translation using babelfish dictionary

Goal

Some possible interactions

Enter phrase to be translated: dónde está mi lápiz

where is my pencil

Enter phrase to be translated: est la baguette fraîche aujourd'hui

is the baguatte fresh today

Enter phrase to be translated: je %#@#&# ból svayam !!

I ?%#@#&#? hurt myself ?!!?

Enter phrase to be translated: hvor er den skriget maleri af Munch

where is the scream painting by Münch

Enter phrase to be translated: hacer 뭔가 frais oggi

do something cool today

Brainstorming

Discussion and requirements


Spell correction — program spell_rite.py

Web resources

Goal

Some possible program interactions

Enter text: I am as happy as I can be

I am as happy as I can be

Enter text: I am a Newyorker who is livin in virginia

I am a *New Yorker* who is ?livin? in *Virginia*

Enter text:

 

Brain storming


Babelfish — Hitchhiker's Guide to the Galaxy

Everaldo Coelho (YellowIcon); / LGPL (http://www.gnu.org/licenses/lgpl.html)

Ziggurat of Ur

Hardnfast / CC BY (https://creativecommons.org/licenses/by/3.0)

 


  © 2020 Jim Cohoon   Resources from previous semesters are available.