Skip to content

fsiddiqi/haiku-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haiku Generator

The main haiku generation code is in experiment.py Content generation using Word Association Networks (WAN) is in wan.py Content generation using WordNet is in word_net_util.py Scraping/haiku collection code is in crawl.py

Other files contain utility functions used in the main modules or some experiments we did (like using bigrams for everything) before we found the optimal method to generate haiku.

Dependencies

To resolve dependencies, please run: sudo pip install -r requirements.txt

If you get an issue with a python import related to nltk, please run sudo python -m nltk.downloader -d /usr/share/nltk_data all

About

A haiku generator (built in Python, using NLTK)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.5%
  • HTML 3.9%
  • CSS 2.9%
  • JavaScript 0.7%