TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Simple Haskell webapp: Generate random tweets using Markov chains

55 点作者 jaspervdj超过 14 年前

16 条评论

mootothemax超过 14 年前
Using markov chains is fun until it all goes wrong. My Twitter bot sadly seems to have become infatuated with Justin Bieber <i>sigh</i><p><a href="http://twitter.com/markov_chains" rel="nofollow">http://twitter.com/markov_chains</a>
评论 #2088844 未加载
评论 #2084402 未加载
评论 #2084963 未加载
petercooper超过 14 年前
Running @FoxNews into it:<p><pre><code> #UN Security Council, General Assembly evacuated due to hold joint military exercises </code></pre> <i>"New Tax Bill: DADT"</i> was another good'un.
评论 #2084888 未加载
评论 #2084969 未加载
ma2rten超过 14 年前
Reminds me of Mark V Shaney.<p>"I spent an interesting evening recently with a grain of salt." <a href="http://en.wikipedia.org/wiki/Mark_V_Shaney" rel="nofollow">http://en.wikipedia.org/wiki/Mark_V_Shaney</a>
Mongoose超过 14 年前
This is a lot like an app I wrote a few years ago for a programming contest. It uses the same technique to generate random invention descriptions using patent application abstracts: <a href="http://eurekaapp.com/" rel="nofollow">http://eurekaapp.com/</a> (Yes, I realize how unreasonably slow it is)
评论 #2085342 未加载
oniTony超过 14 年前
&#62; Maple says nlognlogn, which could solve NP party?<p>And you are all invited.
jackowayed超过 14 年前
It seems that it needs to sample more tweets. I've done 5 tweets, and 2 of them were exact tweets that I sent (they were only a few words long, and I guess they had words that I rarely tweet, so it had few or no other ways to go once it started repeating the tweet)<p>Edit: Then again since there are only a few words in a tweet, you'd have to go a really long way back to really ensure that won't happen. Possibly farther back than Twitter will let you.
评论 #2084542 未加载
评论 #2085155 未加载
Natsu超过 14 年前
This reminds me of an old Perl script I made with Markov chains for a very similar sort of random nonsense text generation.<p>I think I fed it some text from a few usenet kooks/conspiracy theorists and something like Alice in Wonderland and got quite a few laughs a long time ago, though it was made to allow you to combine arbitrary texts into a single chain.
jallmann超过 14 年前
@jennyholzer:<p><i>OFTEN AS OFTEN AS OFTEN AS OFTEN AS POSSIBLE</i><p>Very apt, but what n-gram length is being used? n=1 is my guess, since "as often as" is a common English construct. Obvious feature request: tweakable lengths.<p>edit: I'd make the fix myself and send a pull request but I don't know haskell and am too lazy to figure it out.
评论 #2085137 未加载
adimitrov超过 14 年前
I'll leave this here, since it's loosely on-topic (of Markov chains:) <a href="http://www.joshmillard.com/garkov/" rel="nofollow">http://www.joshmillard.com/garkov/</a> — Garfield strips with MC-generated text instead of the original. I've had countless hours of fun with them.
ryan-allen超过 14 年前
This is hilarious! Thanks for putting it up, I'm laughing my arse off at what it's generating!
Sniffnoy超过 14 年前
Unfortunately, if you do as I did and tweet what it generated, you can't use it again, as it would be eating its own output; and generating nonsense from nonsense is not so entertaining.
pavel_lishin超过 14 年前
&#62; And a new every day, I'll bring The first bill, since that was a beer Me too!. I don't, but some PHP servers aren't set up 64 pixels.<p>Pretty accurate stuff.
chrismealy超过 14 年前
Cool! It's great to see real-world haskell in action.
klenwell超过 14 年前
<a href="http://twitter.com/chimpinson" rel="nofollow">http://twitter.com/chimpinson</a> (php)
sz超过 14 年前
How long until the link expires?
评论 #2085132 未加载
DrBaud超过 14 年前
@allah<p>So, you've a direct connect to the One?