Lab 2 - Poetry (Design)
- My group for this project is myself, Scott Whitehill, and Jay Moskos.
- While working on a CS241 lab, I came upon a code segment in Core Java 2 which runs through a text file and lists all of the unique words contained within. This gave my idea that for the initial phase of our dictionary creation. Using the provided Neruda poems, we will write code to determine all of the unique words. After collecting all the words, we will scour the world wide web dictionaries for all of the definitions we can manage to insert into one file. THIS IDEA HAS BEEN SCRAPPED.
- Although I do not like making excuses, we were slightly unclear on the second half of the lab. Due to time conflicts, we were also only able to meet in pairs. I first met with Scott and we discussed the lab in general and basic approaches to the task at hand. I then met separately with Jay, updated him on the meeting with Scott, and we examined the lab assignment in detail. During our examination, we found that a great deal of the nonliteral meanings of words occur in similes or metaphors (fairly obvious) but also in conjunction with posessives (e.g. "of", "whose"). We might write a parsing program which searches for both simile and metaphor patterns as well as possessives and could therefore have more accuracy determining words being used with nonliteral meanings.
Lab 2 - Addendum (Design)
- After talking with Phil, the TA, we have decided that it would be most beneficial to the second half of the assignment to use wordnet as the dictionary for our purposes. It has everything we need and allows us to focus more on accurate interpretation.
Lab 2 - Poetry (Progress)
- We have determined the tools that we will use: wordnet, the provided tagger, and the all-powerful GAWK (which actually does sound like a primitive deity, in my humble opinion). For the interpretation, we have dtermined several rules which we will use in order to determine non-literalness.
1) NOUN "like/as" NOUN --> look for synonym pair
2) SUBJECT... VERB --> look for subject/verb agreement (i.e. reasonability of pairing)
3) NOUN <prepositional phrase> NOUN --> look for relationship between nouns