class Cadmium::Glove::Workers::CooccurrenceWorker
- Cadmium::Glove::Workers::CooccurrenceWorker
- Reference
- Object
Defined in:
glove/workers/coocurrence_worker.crConstructors
-
.new(calling_class : Model)
Creates a new
CooccurrenceWorker
instance
Instance Method Summary
-
#build_cooc_matrix_col(slice)
Creates a vector column for the cooc_matrix based on given token.
-
#run
Perform the building of the
Matrix
. - #threads(*args, **options)
- #threads(*args, **options, &)
- #token_index : Hash(String, Int32)
- #token_pairs : Array(TokenPair)
Constructor Detail
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