class Cadmium::Glove::Workers::CooccurrenceWorker

Defined in:

glove/workers/coocurrence_worker.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(calling_class : Model) #

Creates a new CooccurrenceWorker instance


[View source]

Instance Method Detail

def build_cooc_matrix_col(slice) #

Creates a vector column for the cooc_matrix based on given token. Calculates sum for how many times the word exists in the constext of the entire vocabulary


[View source]
def run #

Perform the building of the Matrix.


[View source]
def threads(*args, **options) #

[View source]
def threads(*args, **options, &) #

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

[View source]
def token_pairs : Array(TokenPair) #

[View source]