class Cadmium::TfIdf

Included Modules

Defined in:

cadmium/tfidf.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(documents : Array(Document) | Nil = nil) #

[View source]

Class Method Detail

def self.tf(term : String, document : Document) #

[View source]

Instance Method Detail

def add_document(text : String | Array(String), key = nil, restore_cache = false) #

[View source]
def idf(term : String, force = false) #

[View source]
def list_terms(d) #

[View source]
def stop_words=(value : Array(String)) #

[View source]
def tfidf(terms, d) #

[View source]
def tfidfs(terms) #

[View source]
def tfidfs(terms, &) #

[View source]