95 points · by ingve · 7y ago · 22 comments
Another cool use for ML is for categorical and textual data. A fitted Markov Chain can give the probability of a string occuring. Strings that are more random (such as spammy text) get a low probability. Strings that are similar (such as certain user agents) get a similar probability, without having to directly compare these.
As an example try to build a character level Markov chain for text generation and see how that goes.
It does appear that you would benefit from such an excercise yourself. No really, just try it.
A well trained higher order hidden Markov model would function no less impressively than an RNN and with good reason.
https://pub.uni-bielefeld.de/download/2903474/2907910/MOD201...
The unreasonable effectiveness of Character-level Language Models (and why RNNs are still cool)
https://nbviewer.jupyter.org/gist/yoavg/d76121dfde2618422139
In general, it’s a bit all over the place and convoluted, but sometimes it generates true gems. People find it via hashtags, and some folks even interact before realizing it’s a silly bot.