cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Craige_Hales
Super User
WordNet

Playing with WordNet and CMUDict (again).  Starting to look interesting.  The rhyme information is from the pronunciation dictionary.  The drop-down in the picture contains more relationships than just synonyms (other WordNet files).  The numbers to the left of the lines in the poem are syllable counts, more-or-less.  Some words are not in the tables.  And I'm making a guess that every syllable has exactly one vowel-like sound.

RobertFrost.png

attached is some starter code for WordNet.  Not the whole project yet...but it will take the word "disk" and find synonyms...If you don't recognize "harrow" you are not in the field.

round = lookupIdFromWord["disk"] = {103208556, 103706653, 103924069, 113875185, 201742415};

{"disc", "disk", "harrow", "magnetic disc", "magnetic disk", "phonograph record", "phonograph recording", "platter", "record", "saucer"};

I found this paper (Accessing WordNet from Prolog) quite useful too.