class Machine::Bayes::BayesClasifier

Defined in:

machine/bayes/bayes_classifier.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(categories_names : Array(String)) #

[View source]

Instance Method Detail

def categories : Hash(String, Machine::Bayes::Category) #

[View source]
def category_counts : Hash(String, Int32) #

[View source]
def classifications(text) #

[View source]
def classify(text : String) #

[View source]
def classify_with_score(text : String) #

[View source]
def count_words_occurence(text) #

[View source]
def train(category : String, text : String) #

[View source]