Hacker News new | ask | show | jobs
by tborenst 4584 days ago
Can someone roughy explain how this works? I've looked through the source code but failed to identify the part that magically makes the headlines sound sensible.
1 comments

Here's a link to headline generator: https://github.com/wilg/headlines/blob/master/lib/markov.py

I didn't make this, it's a slightly modified version of this: https://gist.github.com/grantslatton/7694811

I'm planning to rewrite this in Ruby to allow me to surface where each parts of the headline is sourced from.

I see, thank you!