Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Machine Learning and Sentiment Classification i...

Machine Learning and Sentiment Classification in Ruby

Avatar for Matt D.

Matt D.

May 30, 2011
Tweet

Other Decks in Programming

Transcript

  1. require "ankusa" require "ankusa/memory_storage" storage = Ankusa::MemoryStorage.new classifier = Ankusa::NaiveBayesClassifier.new(storage)

    training.each do |tweet| classifier.train tweet.sentiment, tweet.to_s end sentiment = classifier.classify tweet.to_s
  2. 4VQQPSU 7FDUPS .BDIJOFT Non-probabilistic binary linear classifier Only directly applicable

    to two-class problems “Works by constructing a set of hyperplanes in a high or infinite dimensional space”—what?