lib/mecab/noun_parser.rb in mecab-noun_parser-0.1.0 vs lib/mecab/noun_parser.rb in mecab-noun_parser-0.1.1
- old
+ new
@@ -6,10 +6,10 @@
@nouns.default = 0
@text = []
end
def <<(text)
- @text << text
+ @text << text unless text.nil?
end
def parse
@text.each do |text|
node = mecab.parseToNode(text)