Adding a terminator on the end of some tweets in case it confused Markov chainer

This commit is contained in:
Jacob Harris
2013-07-30 13:47:58 -04:00
parent fe9caf4a43
commit fb7d794f71

View File

@@ -59,6 +59,11 @@ else
source_tweets.each do |twt| source_tweets.each do |twt|
text = twt text = twt
if text !~ /[\.\"\'\?\!]/
text += "."
end
markov.add_text(text) markov.add_text(text)
end end