mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
There may still be empty sentences in suffix model
This commit is contained in:
@@ -14,7 +14,7 @@ module Ebooks
|
||||
end
|
||||
|
||||
def initialize(sentences)
|
||||
@sentences = sentences
|
||||
@sentences = sentences.reject { |s| s.empty? }
|
||||
@unigrams = {}
|
||||
@bigrams = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user