Author Archive for jnhasty

Haiku News Final

We finished up HaikuNews with the creation of an interface with buttons that pull the content of an RSS feed, compare that content to a list of words arranged by syllable count in our database, and then puts the matching words into an ArrayList. To generate the Haiku, the matching words are randomly chosen and […]

Final Proposition, updated.

Tim and I are going to continue to work on the Haiku news project for out final. First, instead of using a machine readable dictionary or wordnet, we’ve decided to expand our database manually since we couldn’t find any source to accurately account for syllable count. The words we are adding were taken from a […]

Tip of the Tongue

Wordnet would be very useful for the Haiku News project. We had to “hand” categorize the parts of speech for all the words used in our project’s database, so a low level use of wordnet would be to utilize its ability to recognize parts of speech and have the program categorize the words for us. […]

Haiku News Progress

Haiku News Progress
We aren’t in a position to gather incoming RSS feeds yet, so in an attempt to keep the material for the haiku generator nature themed, we have chosen to look up environment related words in Wikipedia, grab all of the text from the introductory paragraph for each word, and dump them into a […]

Midterm

I’m going to work with Tim Stutts for the midterm project, and we’re going to try to create a Java app that generates a haiku out of incoming RSS feeds of environmental news. Our first step will be generating a hash map that stores the syllable count of each word in a given text file, […]

SciFi vs. Fi analysis

For this week’s assignment, I altered the Bayesian Analysis example so that it could differentiate between a work of fiction and a work of speculative/science fiction. My “learning” texts were both progenitors of their form respective forms, Jane Austen for fiction and Isaac Asimov for speculative fiction. I then used two other examples of each […]

Week 3

I’m working on creating an Output class using the Concordance example, but haven’t gotten it to integrate with the whole program. I also just started working in Eclipse, so that slowed me down a bit. I did get the program running, and I copied what the program spat out into the terminal (input text was […]

Beckett-i(z|g)er

I expanded my code from last week so that is uses regular expressions to render Blake’s “The Tiger” as if it was written by Samuel Beckett. I simply replaced recurring words from Blake’s poems with some lines I came up with inspired by Beckett’s style. Alas, I shall work no more, no less, but move […]

Assignment 1: William Blake and Whipped Cream, For a Change

For my first program, I took William Blake’s “The Tiger” and inserted the words “whipped cream” whenever the word “the” was used in the poem. The results are fairly amusing. Here’s my code.
Here’s the results.
Whew. Seemingly so simple, yet that was not easy for me being new to Java and all.
Special thanks goes to programming […]


About

Archive for jnhasty.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Categories