SYMBOL INDEX (105 symbols across 15 files) FILE: lib/stuff-classifier.rb type StuffClassifier (line 2) | module StuffClassifier FILE: lib/stuff-classifier/base.rb class StuffClassifier::Base (line 3) | class StuffClassifier::Base method initialize (line 27) | def initialize(name, opts={}) method incr_word (line 56) | def incr_word(word, category) method incr_cat (line 74) | def incr_cat(category) method word_count (line 85) | def word_count(word, category) method total_word_count (line 91) | def total_word_count(word) method total_word_count_in_cat (line 97) | def total_word_count_in_cat(cat) method total_cat_count (line 103) | def total_cat_count method cat_count (line 108) | def cat_count(category) method categories_with_word_count (line 113) | def categories_with_word_count(word) method total_categories (line 119) | def total_categories method categories (line 124) | def categories method train (line 129) | def train(category, text) method classify (line 135) | def classify(text, default=nil) method save_state (line 168) | def save_state method storage (line 175) | def storage method open (line 180) | def open(name) FILE: lib/stuff-classifier/bayes.rb class StuffClassifier::Bayes (line 3) | class StuffClassifier::Bayes < StuffClassifier::Base method initialize (line 12) | def initialize(name, opts={}) method word_prob (line 18) | def word_prob(word, cat) method word_weighted_average (line 25) | def word_weighted_average(word, cat, opts={}) method doc_prob (line 39) | def doc_prob(text, category) method text_prob (line 45) | def text_prob(text, category) method cat_scores (line 51) | def cat_scores(text) method word_classification_detail (line 60) | def word_classification_detail(word) FILE: lib/stuff-classifier/storage.rb type StuffClassifier (line 2) | module StuffClassifier class Storage (line 4) | class Storage type ActAsStorable (line 5) | module ActAsStorable function storable (line 6) | def storable(*to_store) function to_store (line 9) | def to_store method initialize (line 16) | def initialize(*opts) method storage_to_classifier (line 20) | def storage_to_classifier(classifier) method classifier_to_storage (line 28) | def classifier_to_storage(classifier) method clear_storage (line 33) | def clear_storage(classifier) class InMemoryStorage (line 39) | class InMemoryStorage < Storage method initialize (line 40) | def initialize method load_state (line 44) | def load_state(classifier) method save_state (line 48) | def save_state(classifier) method purge_state (line 52) | def purge_state(classifier) class FileStorage (line 58) | class FileStorage < Storage method initialize (line 59) | def initialize(path) method load_state (line 64) | def load_state(classifier) method save_state (line 72) | def save_state(classifier) method purge_state (line 77) | def purge_state(classifier) method _write_to_file (line 82) | def _write_to_file class RedisStorage (line 91) | class RedisStorage < Storage method initialize (line 92) | def initialize(key, redis_options=nil) method load_state (line 98) | def load_state(classifier) method save_state (line 106) | def save_state(classifier) method purge_state (line 111) | def purge_state(classifier) method _write_to_redis (line 117) | def _write_to_redis FILE: lib/stuff-classifier/tf-idf.rb class StuffClassifier::TfIdf (line 2) | class StuffClassifier::TfIdf < StuffClassifier::Base method initialize (line 5) | def initialize(name, opts={}) method word_prob (line 10) | def word_prob(word, cat) method text_prob (line 20) | def text_prob(text, cat) method cat_scores (line 24) | def cat_scores(text) method word_classification_detail (line 33) | def word_classification_detail(word) FILE: lib/stuff-classifier/tokenizer.rb class StuffClassifier::Tokenizer (line 5) | class StuffClassifier::Tokenizer method initialize (line 8) | def initialize(opts={}) method language (line 18) | def language method preprocessing_regexps= (line 22) | def preprocessing_regexps=(value) method preprocessing_regexps (line 26) | def preprocessing_regexps method ignore_words= (line 30) | def ignore_words=(value) method ignore_words (line 34) | def ignore_words method stemming? (line 38) | def stemming? method each_word (line 42) | def each_word(string) method stemable? (line 75) | def stemable?(word) FILE: lib/stuff-classifier/version.rb type StuffClassifier (line 1) | module StuffClassifier FILE: test/helper.rb class TestBase (line 24) | class TestBase < MiniTest::Unit::TestCase method before (line 25) | def self.before(&block) method setup (line 30) | def setup method set_classifier (line 35) | def set_classifier(instance) method classifier (line 38) | def classifier method train (line 43) | def train(category, value) method should_be (line 47) | def should_be(category, value) FILE: test/test_001_tokenizer.rb class Test001Tokenizer (line 4) | class Test001Tokenizer < TestBase method test_simple_tokens (line 10) | def test_simple_tokens method test_with_stemming (line 17) | def test_with_stemming method test_complicated_tokens (line 25) | def test_complicated_tokens method test_unicode (line 39) | def test_unicode FILE: test/test_002_base.rb class Test002Base (line 4) | class Test002Base < TestBase method test_count (line 20) | def test_count FILE: test/test_003_naive_bayes.rb class Test003NaiveBayesClassification (line 4) | class Test003NaiveBayesClassification < TestBase method test_for_cats (line 19) | def test_for_cats method test_for_dogs (line 28) | def test_for_dogs method test_min_prob (line 38) | def test_min_prob FILE: test/test_004_tf_idf.rb class Test004TfIdfClassification (line 4) | class Test004TfIdfClassification < TestBase method test_for_cats (line 19) | def test_for_cats method test_for_dogs (line 28) | def test_for_dogs FILE: test/test_005_in_memory_storage.rb class Test005InMemoryStorage (line 4) | class Test005InMemoryStorage < TestBase method test_for_persistance (line 14) | def test_for_persistance method test_purge_state (line 24) | def test_purge_state FILE: test/test_006_file_storage.rb class Test006FileStorage (line 4) | class Test006FileStorage < TestBase method teardown (line 27) | def teardown method test_result (line 31) | def test_result method test_for_persistance (line 51) | def test_for_persistance method test_file_created (line 62) | def test_file_created method test_purge_state (line 69) | def test_purge_state FILE: test/test_007_redis_storage.rb class Test007RedisStorage (line 5) | class Test007RedisStorage < TestBase method teardown (line 31) | def teardown method test_result (line 35) | def test_result method test_for_persistance (line 55) | def test_for_persistance method test_key_created (line 66) | def test_key_created method test_purge_state (line 73) | def test_purge_state