lib/twitter_ebooks/model.rb in twitter_ebooks-2.2.1 vs lib/twitter_ebooks/model.rb in twitter_ebooks-2.2.2
- old
+ new
@@ -57,16 +57,16 @@
@sentences = []
@mentions = []
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
log "Ranking keywords"
@keywords = NLP.keywords(@sentences)