class Naive::Classifier

Defined in:

naive.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(trainedData : TrainedData, tokeniser : Tokeniser) #

[View source]

Instance Method Detail

def classify(text : String) #

[View source]
def getPrior(className : String) #

[View source]
def getTokenProb(token : String, className : String) : Float64 #

[View source]