There may still be empty sentences in suffix model

This commit is contained in:
Jaiden Mispy 2016-02-04 18:11:50 +11:00
parent 2cbd794969
commit 7df08f9531

View file

@ -14,7 +14,7 @@ module Ebooks
end end
def initialize(sentences) def initialize(sentences)
@sentences = sentences @sentences = sentences.reject { |s| s.empty? }
@unigrams = {} @unigrams = {}
@bigrams = {} @bigrams = {}