Archive for March, 2007

Parrot Talk

Saturday, March 17th, 2007

My wife tells the story of her piano teacher from her childhood.  She lived in a small town in Montana.  The piano teacher lived in a nice house within walking distance.  (Everything was in walking distance in this small own).  The teacher owned a parrot that was fond of greeting everyone that came to lessons and was a favorite with younger piano students.

Once, during a piano recital in the home, someone was playing a delicate piece.  It may have been Chopin or Liszt or some other composer.  The performance went very well and when it ended there was a thoughtful silence as everyone basked in the mood of the music.  The parrot thought it was too quiet, so he interrupted with “Sid, where’s my girdle?”.  Everyone laughed.

Beignet The Parrot

Now, we own an African Grey Parrot (pictured).  Her name is Beignet (ben-YAY) which is a french pastry.  She is somewhat talkative, although we haven’t yet been able to get her to talk in response to our voices.  Mostly she talks when we are in the other room.

When the “where’s my girdle” story comes to mind, I try to think of funny things to teach our parrot.  Today I was repeating “Clean the house, company’s coming!”

Comps Versus Mods

Friday, March 16th, 2007

As I have been developing my feature structure tool and a grammar to use in the tool, I have gradually refined the grammar.  Recently I added a small tweak to the head complement rule and doing so reduced some over generation of parses for sentences.

This document gives a summary of how the feature structure rules work.  It also talks briefly about the tweak that I made and the kind of over generation that the tweak fixed.

Comps Versus Mods

 Chase Modifier

Good And Bad Sentences

Friday, March 16th, 2007

Developing a grammer using feature structures is an iterative process.  After writing some rules and word defition entries for the lexicon, you try parsing sentences.  This means parsing sentences that are correct in english and also some incorrect sentences.  If the tool allows incorrect sentences it is called over-generation.  For example ‘the dog ran’ is correct, but ‘the dog run’ is incorrect.

Here is a list of sentences that I have tested on my current grammar implementation.

the dog chased the cat
* the dogs chases the cat
* the dog chase the cat
the dogs chase the cat
the dogs chase the cats
* the dogs sleeps
the dog sleeps
the dogs sleep

*These dog sleep
*these dog sleeps
these dogs sleep
*these dogs sleeps

*This dog sleep
this dog sleeps
*this dogs sleep
*this dogs sleeps

these dogs chase these cats
*these dogs chase this cats
*these dogs chase these cat
these dogs chase this cat

the dog chased the cat in the yard
*the dog chased the cat in the
*the dog chased the cat in yard
*the dog sleeps the cat

Sentences with ‘*’ are incorrect, and the grammer rejects them.