Package: stylest2 0.1
stylest2: Estimating Speakers of Texts
Estimates the authors or speakers of texts. Methods developed in Huang, Perry, and Spirling (2020) <doi:10.1017/pan.2019.49>. The model is built on a Bayesian framework in which the distinctiveness of each speaker is defined by how different, on average, the speaker's terms are to everyone else in the corpus of texts. An optional cross-validation method is implemented to select the subset of terms that generate the most accurate speaker predictions. Once a set of terms is selected, the model can be estimated. Speaker distinctiveness and term influence can be recovered from parameters in the model using package functions. Once fitted, the model can be used to predict authorship of new texts.
Authors:
stylest2_0.1.tar.gz
stylest2_0.1.zip(r-4.5)stylest2_0.1.zip(r-4.4)stylest2_0.1.zip(r-4.3)
stylest2_0.1.tgz(r-4.4-any)stylest2_0.1.tgz(r-4.3-any)
stylest2_0.1.tar.gz(r-4.5-noble)stylest2_0.1.tar.gz(r-4.4-noble)
stylest2_0.1.tgz(r-4.4-emscripten)stylest2_0.1.tgz(r-4.3-emscripten)
stylest2.pdf |stylest2.html✨
stylest2/json (API)
# Install 'stylest2' in R: |
install.packages('stylest2', repos = c('https://cbaehr.r-universe.dev', 'https://cloud.r-project.org')) |
- novels - Excerpts from English novels
- novels_dfm - Novel excerpts in quanteda dfm object
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 8 months agofrom:63f4939842. Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 20 2024 |
R-4.5-win | OK | Nov 20 2024 |
R-4.5-linux | OK | Nov 20 2024 |
R-4.4-win | NOTE | Nov 20 2024 |
R-4.4-mac | NOTE | Nov 20 2024 |
R-4.3-win | NOTE | Nov 20 2024 |
R-4.3-mac | NOTE | Nov 20 2024 |
Exports:stylest2_fitstylest2_predictstylest2_select_vocabstylest2_terms
Dependencies:clifastmatchglueISOcodesjsonlitelatticelifecyclemagrittrMatrixquantedaRcpprlangSnowballCstopwordsstringixml2yaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Excerpts from English novels | novels |
Novel excerpts in quanteda dfm object | novels_dfm |
stylest2: A package for estimating authorship of texts. | stylest |
Fit speaker model to document-feature matrix | stylest2_fit |
Predict authorship of texts. | stylest2_predict |
Cross-validation based term selection | stylest2_select_vocab |
Select terms above frequency cutoff | stylest2_terms |