Whiskey in the Rocks

Absolut Icebar

Me and my Blog

My name is Ralf, I was a German ERASMUS-student in Umeå/Sweden. I used this blog to record my thoughts and experiences as an international student. The range of topics covers my travels, campus life, international atmosphere, the blogosphere and other Umeå-related stuff.

Archives

Caldendar

April 2005
S M T W T F S
« Mar   May »
 12
3456789
10111213141516
17181920212223
24252627282930

Weather in Umeå

Blogroll

Contact

Meta

2005-4-15

Conversations with calcELIZAr

Published in  @ 6:59 pm, 8.0°C

YOU: Hey Eliza, what’s 45 and 5?
ELIZA: The sum of 45 and 5 is 50.
YOU: And what is the product of 3 and 4?
ELIZA: The product of 3 and 4 is 12.
YOU: Now: What is 2344355 divided by 0???
ELIZA: Well, 2344355 divided by 0 is not defined.

For my current course Speech and Language Processing we are supposed to submit 7 questions over time. For the second task, I decided to implement an ELIZA-like program.

ELIZA is a famous 1966 computer program by Joseph Weizenbaum, which parodied a Rogerian therapist, largely by rephrasing many of the patient’s statements as questions and posing them to the patient. Thus, for example, the response to “My head hurts” might be “Why do you say your head hurts?” The response to “My mother hates me” might be “Who else in your family hates you?”
[…]
Eliza worked by simple pattern recognition and substitution of key words into canned phrases. It was so convincing, however, that there are many anecdotes about people becoming very emotionally caught up in dealing with ELIZA. All this was due to people’s tendency to attach to words meanings which the computer never put there.
(Wikipedia)

As the program’s domain I chose simple calculations with 2 operands. You can ask questions written in normal English (well, phases that I call English :)). The text at the very beginning shows an example output of the program. calcELIZAr heavily uses Regular Expressions to recognize and transform inputs. It’s written in simple JavaScript and is therefore directly available on the web:

calcELIZAr 0.1

You can test calcELIZAr at http://www.2meter3.de/calcelizar/. It’s far away from being bug-free and speaking proper English, but it’s a nice toy, though. calcELIZAr is just a little project for school, but feel free to report flaws and errors.

Speech and Language Processing

Published in  @ 2:26 pm, 12.4°C

Exactly 10 days ago started my new course called Speech and Language Processing. It’s offered by the Department of Philosophy and Linguistics at the Faculty of Arts (wow, I like this official translation of Humanistisk fakultet). I was really curious about the course. I have never dealt with linguistics in detail, but I’m actually really interested in this stuff. Some people know that I’m a big fan of projects like Zwiebelfisch or Deppenapostroph or Deppenleerzeichen (which fight against absurdities in the German language).

Whatever, the course is held by Kirk Sullivan (UK), and he makes a good job. It is definitely one of the most interesting courses I’ve ever had in my university life. You learn a lot about the system of languages (syntax, semantics, pragmatics …) and Kirk enriches the theory with a bunch of examples in English, Swedish and German (I’m even allowed to hand in my assignments in German, but I think I won’t). Sometimes it feels a little bit unstructured and confusing, but hey – I do not need to have perfect notes since there is no final exam!

As expected, the topic is closely connected to computer science. Some students are linguists; some others come from the more technical domain. It’s nice to see that also humanists are allowed to deal with regular expressions, finite state automata and other concepts of information technology. The combination of language and computers is really of interest to me. I’m looking forward to learning more about that stuff.

BTW: I passed both Analysis of Financial Data and Svenska Steg 3. :)

Supplement: The burst Bottle [BBB08]

Published in  @ 12:39 am, 0.2°C

Just 2 pictures from the bottle which decided to commit suicide yesterday… Please submit your letters of condolence via comment form.

Close-up burst bottle 1Close-up burst bottle 2

So ‘ne Flasche aber auch!