s***@gmail.com
2006-09-21 22:43:39 UTC
What ho!
For my applied natural language processing class, we had an assignment
to write a program which compiles a concordance. Not to steal Col.
Murphy's thunder, but I cobbled together a couple tools. Reading in a
Project Gutenberg text ("Right Ho, Jeeves", in this case), one extracts
the top 100 key words:
sir Jeeves Gussie Tuppy must Angela Aunt Fink-Nottle Bertie Dahlia sort
Oh Bassett moment course put tell mind once always saw rather doubt
things matter night nothing quite suppose chap Wooster fact remember
Tom Glossop Uncle away told Bertram eyes words place young Anatole hand
head Quite heard saying whole Brinkley Cannes done door pretty round
heart school trying anything case feeling talking stuff Sir dinner face
gone Miss bed felt Court stood far voice years Market able does room
side simply start started suddenly aunt dashed evening hear mine
Snodsbury order soul Indeed ass fellow happened idea met occasion
Not surprisingly, Jeeves' feudal spirit is well represented. The
other, given a word, returns the context in which it appears. The
following is for "aunt." (Best read with a fixed-width font.)
Context ... Word ... Context
g bronzed and fit, I accompanied aunt and child back to London.
was only a few hours since this aunt and I had parted, after being in
Come at once or expect an aunt 's curse first post tomorrow.
the mere aimless vapouring of an aunt who has been sitting out in the
Aunt Dahlia isn't his aunt .
ers woman turning out to be your aunt ."
t you mean, turning out to be my aunt .
She has been my aunt all along."
aordinary that it should be your aunt that Madeline's going to stay wi
to see me--a statement no other aunt on the list would have committed
She looked like an aunt who has just bitten into a bad o
nephew's natural interest in an aunt 's refined weekly paper, I had a
This aunt , I perceived, must fall into li
You can't expect an empty aunt to beam like a full aunt.
Harsh words, of course, as from aunt to nephew, but I bore her no res
And your aunt .
nd behind me, and there was your aunt at the door.
"She came in with my aunt ?"
He said to your aunt , 'God bless my soul, Dahlia, wh
'What sort of noises?' said your aunt .
Your aunt seemed interested, and said it r
"Presently your aunt and Angela settled their discuss
She asked your aunt if she remembered the late spani
o suppose that a woman like your aunt --staunch, true-blue, British--w
"Bottle," insisted the aunt firmly.
Butler looked at aunt .
ard but the sloshing sound of an aunt restoring her tissues.
Pongo Twistleton once scorned an aunt of his, flatly refusing to meet
Your aunt ," said Tuppy, "is a bit above h
If anyone would like a copy of my code, you're welcome to it; it's
written in Python and rather amateurish since I can only spend a day on
it. But it's amusing to play with.
Pip pip,
~An Egg
For my applied natural language processing class, we had an assignment
to write a program which compiles a concordance. Not to steal Col.
Murphy's thunder, but I cobbled together a couple tools. Reading in a
Project Gutenberg text ("Right Ho, Jeeves", in this case), one extracts
the top 100 key words:
sir Jeeves Gussie Tuppy must Angela Aunt Fink-Nottle Bertie Dahlia sort
Oh Bassett moment course put tell mind once always saw rather doubt
things matter night nothing quite suppose chap Wooster fact remember
Tom Glossop Uncle away told Bertram eyes words place young Anatole hand
head Quite heard saying whole Brinkley Cannes done door pretty round
heart school trying anything case feeling talking stuff Sir dinner face
gone Miss bed felt Court stood far voice years Market able does room
side simply start started suddenly aunt dashed evening hear mine
Snodsbury order soul Indeed ass fellow happened idea met occasion
Not surprisingly, Jeeves' feudal spirit is well represented. The
other, given a word, returns the context in which it appears. The
following is for "aunt." (Best read with a fixed-width font.)
Context ... Word ... Context
g bronzed and fit, I accompanied aunt and child back to London.
was only a few hours since this aunt and I had parted, after being in
Come at once or expect an aunt 's curse first post tomorrow.
the mere aimless vapouring of an aunt who has been sitting out in the
Aunt Dahlia isn't his aunt .
ers woman turning out to be your aunt ."
t you mean, turning out to be my aunt .
She has been my aunt all along."
aordinary that it should be your aunt that Madeline's going to stay wi
to see me--a statement no other aunt on the list would have committed
She looked like an aunt who has just bitten into a bad o
nephew's natural interest in an aunt 's refined weekly paper, I had a
This aunt , I perceived, must fall into li
You can't expect an empty aunt to beam like a full aunt.
Harsh words, of course, as from aunt to nephew, but I bore her no res
And your aunt .
nd behind me, and there was your aunt at the door.
"She came in with my aunt ?"
He said to your aunt , 'God bless my soul, Dahlia, wh
'What sort of noises?' said your aunt .
Your aunt seemed interested, and said it r
"Presently your aunt and Angela settled their discuss
She asked your aunt if she remembered the late spani
o suppose that a woman like your aunt --staunch, true-blue, British--w
"Bottle," insisted the aunt firmly.
Butler looked at aunt .
ard but the sloshing sound of an aunt restoring her tissues.
Pongo Twistleton once scorned an aunt of his, flatly refusing to meet
Your aunt ," said Tuppy, "is a bit above h
If anyone would like a copy of my code, you're welcome to it; it's
written in Python and rather amateurish since I can only spend a day on
it. But it's amusing to play with.
Pip pip,
~An Egg