3 ms·
Hi, sorry everyone for the delay in answering, but timezones weren't nice to me. I really like minimalist pages, but I would be lying if I said the complete op
by Findus23 8y ago
Hi, sorry everyone for the delay in answering, but timezones weren't nice to me.
I really like minimalist pages, but I would be lying if I said the complete oposite (like https://lw1.at https://lw1.at) wasn't also fun to program.
The whole text-generation is language-independent [1]. I just split the source up in words (well technically NLTK-tokens) and merge them together after generating the text.
Therefore it even kind of works for Japanese [2] or Arabic. It's just a bit ugly as a lot of questions on non-English sites are in English and the chains end up as a mix.
[1] https://github.com/Findus23/se-simulator/blob/master/markov.py https://github.com/Findus23/se-simulator/blob/master/markov.... and https://github.com/Findus23/se-simulator/blob/master/text_generator.py https://github.com/Findus23/se-simulator/blob/master/text_ge...
[2] https://se-simulator.lw1.at/s/japanese.stackexchange.com https://se-simulator.lw1.at/s/japanese.stackexchange.com