There may still be empty sentences in suffix model
This commit is contained in:
parent
2cbd794969
commit
7df08f9531
1 changed files with 1 additions and 1 deletions
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue