Learn R Programming

LSX (version 1.5.1)

Semi-Supervised Algorithm for Document Scaling

Description

A word embeddings-based semi-supervised model for document scaling Watanabe (2020) . LSS allows users to analyze large and complex corpora on arbitrary dimensions with seed words exploiting efficiency of word embeddings (SVD, Glove). It can generate word vectors on a users-provided corpus or incorporate a pre-trained word vectors.

Copy Link

Version

Install

install.packages('LSX')

Monthly Downloads

308

Version

1.5.1

License

GPL-3

Maintainer

Kohei Watanabe

Last Published

December 9th, 2025

Functions in LSX (1.5.1)

as.summary.textmodel

Assign the summary.textmodel class to a list
optimize_lss

[experimental] Compute variance ratios with different hyper-parameters
data_dictionary_sentiment

Seed words for analysis of positive-negative sentiment
diagnosys

Identify noisy documents in a corpus
textplot_terms

Plot polarity scores of words
predict.textmodel_lss

Prediction method for textmodel_lss
textstat_context

Identify context words
coef.textmodel_lss

Extract model coefficients from a fitted textmodel_lss object
seedwords

Seed words for Latent Semantic Analysis
data_textmodel_lss_russianprotests

A fitted LSS model on street protest in Russia
cohesion

Computes cohesion of components of latent semantic analysis
weight_seeds

Internal function to generate equally-weighted seed set
print.summary.textmodel

print method for summary.textmodel
textplot_simil

Plot similarity between seed words
textplot_components

[experimental] Plot clusters of word vectors
print.statistics_textmodel

Implements print methods for textmodel_statistics
print.coefficients_textmodel

Print methods for textmodel features estimates This is a helper function used in print.summary.textmodel.
textmodel_lss

Fit a Latent Semantic Scaling model
smooth_lss

Smooth predicted polarity scores
as.textmodel_lss

Create a Latent Semantic Scaling model from various objects
as.seedwords

Convert a list or a dictionary to seed words
bootstrap_lss

[experimental] Compute polarity scores with different hyper-parameters
data_dictionary_ideology

Seed words for analysis of left-right political ideology
as.statistics_textmodel

Coerce various objects to statistics_textmodel
as.coefficients_textmodel

Coerce various objects to coefficients_textmodel This is a helper function used in summary.textmodel_*.