mirror of
https://github.com/thewesker/iron_ebooks.git
synced 2025-12-20 04:11:12 -05:00
Allow the user to specify a different
This commit is contained in:
3
ebook.rb
3
ebook.rb
@@ -8,6 +8,7 @@ require 'markov'
|
|||||||
source_tweets = []
|
source_tweets = []
|
||||||
|
|
||||||
$rand_limit ||= 10
|
$rand_limit ||= 10
|
||||||
|
$markov_index ||= 2
|
||||||
|
|
||||||
puts "PARAMS: #{params}" if params.any?
|
puts "PARAMS: #{params}" if params.any?
|
||||||
|
|
||||||
@@ -39,7 +40,7 @@ else
|
|||||||
|
|
||||||
puts "#{source_tweets.length} tweets found"
|
puts "#{source_tweets.length} tweets found"
|
||||||
|
|
||||||
markov = MarkovChainer.new(2)
|
markov = MarkovChainer.new($markov_index)
|
||||||
|
|
||||||
source_tweets.each do |twt|
|
source_tweets.each do |twt|
|
||||||
text = twt
|
text = twt
|
||||||
|
|||||||
Reference in New Issue
Block a user