lib/name-spotter.rb in name-spotter-0.2.2 vs lib/name-spotter.rb in name-spotter-0.2.3
- old
+ new
@@ -23,10 +23,9 @@
end
res
end
eng, not_eng = tweets.shuffle[0...50].partition {|a| UnsupervisedLanguageDetection.is_english_tweet?(a.join(" "))}
percentage = eng.size.to_f/(not_eng.size + eng.size)
- puts percentage
percentage > 0.5
end
def initialize(client)
@client = client