quanteda.textmodels0.9.10 package

Scaling Models and Classifiers for Textual Data

predict.textmodel_wordfish

Prediction from a textmodel_wordfish method

textplot_influence

Influence plot for text scaling models

as.coefficients_textmodel

Coerce various objects to coefficients_textmodel

as.statistics_textmodel

Coerce various objects to statistics_textmodel

as.summary.textmodel

Assign the summary.textmodel class to a list

force_conformance

Internal function to match a dfm features to a target set

textmodel_wordscores

Wordscores text model

textmodels

quanteda.textmodels: Scaling Models and Classifiers for Textual Data

coef.textmodel_ca

Extract model coefficients from a fitted textmodel_ca object

affinity

Internal function to fit the likelihood scaling mixture model.

influence.predict.textmodel_affinity

Compute feature influence from a predicted textmodel_affinity object

predict.textmodel_affinity

Prediction for a fitted affinity textmodel

predict.textmodel_lr

Prediction from a fitted textmodel_lr object

predict.textmodel_nb

Prediction from a fitted textmodel_nb object

predict.textmodel_svmlin

Prediction from a fitted textmodel_svmlin object

predict.textmodel_wordscores

Predict textmodel_wordscores

print.coefficients_textmodel

Print methods for textmodel features estimates

print.statistics_textmodel

Implements print methods for textmodel_statistics

print.summary.textmodel

print method for summary.textmodel

print.textmodel_wordfish

print method for a wordfish model

summary.textmodel_lr

summary method for textmodel_lr objects

summary.textmodel_nb

summary method for textmodel_nb objects

summary.textmodel_svmlin

summary method for textmodel_svmlin objects

summary.textmodel_wordfish

summary method for textmodel_wordfish

textmodel_affinity-internal

Internal methods for textmodel_affinity

textmodel_affinity

Class affinity maximum likelihood text scaling model

textmodel_ca

Correspondence analysis of a document-feature matrix

textmodel_lr

Logistic regression classifier for texts

textmodel_lsa-postestimation

Post-estimations methods for textmodel_lsa

textmodel_lsa

Latent Semantic Analysis

textmodel_nb

Naive Bayes classifier for texts

textmodel_svmlin

[experimental] Linear SVM classifier for texts

textmodel_wordfish

Wordfish text model

Scaling models and classifiers for sparse matrix objects representing textual data in the form of a document-feature matrix. Includes original implementations of 'Laver', 'Benoit', and Garry's (2003) <doi:10.1017/S0003055403000698>, 'Wordscores' model, the Perry and 'Benoit' (2017) <doi:10.48550/arXiv.1710.08963> class affinity scaling model, and the 'Slapin' and 'Proksch' (2008) <doi:10.1111/j.1540-5907.2008.00338.x> 'wordfish' model, as well as methods for correspondence analysis, latent semantic analysis, and fast Naive Bayes and linear 'SVMs' specially designed for sparse textual data.