asreview.models.feature_extraction.Tfidf
- class asreview.models.feature_extraction.Tfidf(*args, ngram_max=1, stop_words='english', **kwargs)[source]
TF-IDF feature extraction technique (
tfidf
).Use the standard TF-IDF (Term Frequency-Inverse Document Frequency) feature extraction technique from SKLearn. Gives a sparse matrix as output. Works well in combination with
asreview.models.classifiers.NaiveBayesClassifier
and other fast training models (given that the features vectors are relatively wide).- Parameters
Attributes
Get the default parameters of the model.
Get the (assigned) parameters of the model.
Methods
fit
(texts)Fit the model to the texts.
fit_transform
(texts[, titles, abstracts, ...])Fit and transform a list of texts.
transform
(texts)Transform a list of texts.