Home > twss-classifier

twss-classifier

Twss-classifier is a project mainly written in Ruby, it's free.

A That's What She Said classifier, built off a simple unigram Naive Bayes model.

What?!

A Naive Bayes model built for That's What She Said classification.

require 'rubygems'
require 'twss-classifier'       

if TWSSClassifier.is_twss?("that was longer than i expected")
    puts "That's what she said!"
end

if TWSSClassifier.is_twss?("oh, this is good", 0.9) # Use a lower threshold of 0.9.
    puts "That's what she said!"
end 

Read more about the algorithm here, and see a demo here.

Previous:testWiMAX