Be more paranoid about identifying mentions

This commit is contained in:
Mispy 2014-04-24 20:55:53 -07:00
parent d676eaa77f
commit 5d55d90f85

View file

@ -59,13 +59,13 @@ module Ebooks
statements.each do |s|
@sentences << NLP.tokenize(s).reject do |t|
t.start_with?('@') || t.start_with?('http')
t.include?('@') || t.include?('http')
end
end
mentions.each do |s|
@mentions << NLP.tokenize(s).reject do |t|
t.start_with?('@') || t.start_with?('http')
t.include?('@') || t.include?('http')
end
end