Various scripts for playing around with natural language processing/generation

index.html 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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: 50px;
  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. </p>
  37. </div>
  38. </body>
  39. </html>