Using a Markov chain to generate readable nonsense with 20 lines of Python
1–10 of 77 posts
Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#2Next word prediction; vector databases:
Vector database: https://en.wikipedia.org/wiki/Vector_database
Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#3Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#4This was posted 50 days ago - how does it reach first page again? https://news.ycombinator.com/from?site=benhoyt.com
Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#5Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#6Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#7Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#8This is exactly the approach I used back in the late 80s; I published a Markov chain text generator on comp.sources.games that digested Usenet posts, built tables and used the previous two words to generate the next word. It was mildly amusing at the time. Someone resurrected it and put on GitHub, which I'm fine with.
Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#9Taking a step back, this is a perennial problem, even with AI old and new. I've heard that the early (good) chess bots, after Deep Blue, had a problem of only being locally context sensitive and being easily fooled by longer range attack planning. We even see it, to a certain extent, in LLMs where they forget or contradict themselves with what was just said. I have no doubt that LLMs will just keep getting better but, as a snapshot of right now, you can see shades of this "word salad" problem, just a few steps removed to become a "logic salad" problem.
[0] https://en.wikipedia.org/wiki/Word_salad
[1] https://galaxykate0.tumblr.com/post/139774965871/so-you-want...
Re: Using a Markov chain to generate readable nonsense with 20 lines of Python
#10Also, Is training a Markov cheaper that training neural nets? It would be a great way to cut AI costs if they could be made as effective as neural nets.
There is also an interesting post by Orange duck. [0]