BowEmbedder¶
-
class
squirro.lib.nlp.steps.embedders.
BowEmbedder
(config)¶ Bases:
squirro.lib.nlp.steps.embedders.Embedder
Bag of words
Embedder
. See https://radimrehurek.com/gensim/corpora/dictionary.html#gensim.corpora.dictionary.Dictionary.doc2bow.- Parameters
type (str) – bow
Methods Summary
load
()Load a step
process_batch
(batch)Process a batch of documents.
save
()Save a step
train
(docs)Train on a step of a set of documents
Methods Documentation
-
load
()¶ Load a step
-
process_batch
(batch)¶ Process a batch of documents. If not defined will default to using self.process_doc for each document in the batch.
-
save
()¶ Save a step