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: Trump to Text (Natural Language Generation)

9 pointsby BlackJackalmost 6 years ago

4 comments

taf2almost 6 years ago
“ Dude where is my car. What do you need it for? Where are the employees? This is a man who's got a wife and a beautiful home. And he's going to be president. OK. He's going to be president ”
BlackJackalmost 6 years ago
Hey HN!<p>As a side project, I used the GPT-2 OpenAI NLG model and trained it on Donald Trump speeches. You can type a sentence and it will generate a few paragraphs that sound like Trump completing the thought.<p>I used <a href="https:&#x2F;&#x2F;github.com&#x2F;minimaxir&#x2F;gpt-2-simple" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;minimaxir&#x2F;gpt-2-simple</a> and some other stuff to re-train, with Starlette being the python web server. I&#x27;ll write up a blog post later on what I learned and issues I faced.<p>The text generation is pretty slow right now (~20 secs), but I didn&#x27;t optimize anything since this was just a fun side project. Would love thoughts&#x2F;feedbacks&#x2F;funny texts :-)
评论 #20414917 未加载
评论 #20415438 未加载
craftinatoralmost 6 years ago
&quot;I am a crossbreed of an Oompa Loompa and a potato.&quot;
craftinatoralmost 6 years ago
&quot;When will our song and dance of life reach a beautiful crescendo?&quot;