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) #

[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) #

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

[View source]
def tfidfs(terms) #

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

[View source]