TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Guten Haiku – mine haiku from text with 80s CLI

47 pointsby supernihilabout 5 years ago

3 comments

supernihilabout 5 years ago
Author here:<p>Guten Haiku was created as I had a severe need to extract as many legit Haiku poems from the whole corpus for Gutenberg.<p>It didn’t mean a lot to me if it was the “fastest kid in town” but it sure needed to be pretty ;-)<p>The journey:<p>0. I write in python3<p>1. I went for space as nlp lib of choice (they are so niiiiiice peoples)<p>2. I needed to be able to extract syllables but space didn’t know how to do that<p>3. I therefore created another lib called <a href="https:&#x2F;&#x2F;github.com&#x2F;sloev&#x2F;spacy-syllables" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sloev&#x2F;spacy-syllables</a> to annotate tokens with their syllable counts<p>4. I now had a syllable counting pipeline built with space<p>5. Now I needed to make an 80&#x27;s aesthetics inspired cli app for my pipeline<p>6. I started with creating the whole colourful look with colorama and click<p>7. I created the default command for extracting haiku from text<p>8. I created another command for downloading fancy AI models ... uuuuh fancy!<p>9. Boring test implementation... yawn... zzz zz z<p>10. Even more boring packaging with poetry<p>11. Even even more boring time with travis, I don&#x27;t love you right now travis<p>12. Release to the internets on GitHub and pypi<p>13. Battle with asciinema and asciicast2gif to get a pretty README up and going<p>14. Write hacker news about by personal triumph :-)<p>I wanna shout out to everybody and say that you all should make something silly and pretty today. I value those things highly and if you haven&#x27;t visited <a href="https:&#x2F;&#x2F;theuselessweb.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;theuselessweb.com&#x2F;</a> yet, please do so cause TIM HOLMAN is a really nice guy with a great imagination.<p>Peace out and take care during the virus thingy!
评论 #22595046 未加载
gitgudabout 5 years ago
Great little project! I enjoyed looking through it.<p>Just wondering why this needs AI or &quot;fancy AI&quot; (as described in the program)<p>Isn&#x27;t this just searching for a string of haiku sentences (5-7-5) in the text file, or am I missing something?
评论 #22590831 未加载
holbueabout 5 years ago
Nice project! Very pretty CLI and cool project name :)<p>1. How much time did you spend on it?<p>2. Do you like working with &quot;poetry&quot;, or did you choose it because of its name? :)<p>3. Which book produced the best results?<p>(PS: The lib is written &quot;spacy&quot;, not &quot;space&quot;, I think)
评论 #22590822 未加载