stuff I had to change to get the bot working

This commit is contained in:
Joshua Charles Campbell 2015-06-04 10:46:01 -06:00
parent 854f4351ee
commit a885d5fe22
3 changed files with 16 additions and 4 deletions

View file

@ -19,6 +19,9 @@ module Ebooks
@bigrams = {}
@sentences.each_with_index do |tikis, i|
if (i % 10000 == 0) then
log ("Building: sentence #{i} of #{sentences.length}")
end
last_tiki = INTERIM
tikis.each_with_index do |tiki, j|
@unigrams[last_tiki] ||= []