Various scripts for playing around with natural language processing/generation

buzzfeed-haiku-generator.html 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>BuzzFeed Haiku Generator</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style>
  7. body {
  8. text-align: center;
  9. }
  10. div.haiku pre {
  11. font-size: large;
  12. }
  13. div.footer {
  14. font-size: small;
  15. margin-top: 4rem;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <h2>BuzzFeed Haiku Generator</h2>
  21. <div class="haiku">
  22. <pre>{{haiku}}</pre>
  23. <form action="">
  24. <input type="submit" value="Generate">
  25. </form>
  26. </div>
  27. <div class="footer">
  28. <p>
  29. Made by Tyler Hallada using
  30. <a href="https://www.python.org/">Python</a>,
  31. <a href="http://www.nltk.org/">NLTK</a>,
  32. <a href="http://flask.pocoo.org/">Flask</a>,
  33. <a href="https://pypi.python.org/pypi/inflect">inflect</a>,
  34. <a href="http://eayd.in/?p=232">sylco</a>, and
  35. <a href="https://www.reddit.com/r/datasets/comments/3es1s4/33k_nytimes_and_18k_buzzfeed_facebook_posts_and_a/">BuzzFeed Facebook Posts</a>
  36. <br>
  37. Code at <a href="https://github.com/thallada/nlp">Github</a> and <a href="http://git.hallada.net/nlp/">cgit</a>
  38. </p>
  39. </div>
  40. </body>
  41. </html>