Package: sweater 0.1.8

Chung-hong Chan

sweater: Speedy Word Embedding Association Test and Extras Using R

Conduct various tests for evaluating implicit biases in word embeddings: Word Embedding Association Test (Caliskan et al., 2017), <doi:10.1126/science.aal4230>, Relative Norm Distance (Garg et al., 2018), <doi:10.1073/pnas.1720347115>, Mean Average Cosine Similarity (Mazini et al., 2019) <arxiv:1904.04047>, SemAxis (An et al., 2018) <arxiv:1806.05521>, Relative Negative Sentiment Bias (Sweeney & Najafian, 2019) <doi:10.18653/v1/P19-1162>, and Embedding Coherence Test (Dev & Phillips, 2019) <arxiv:1901.07656>.

Authors:Chung-hong Chan [aut, cre]

sweater_0.1.8.tar.gz
sweater_0.1.8.zip(r-4.5)sweater_0.1.8.zip(r-4.4)sweater_0.1.8.zip(r-4.3)
sweater_0.1.8.tgz(r-4.4-x86_64)sweater_0.1.8.tgz(r-4.4-arm64)sweater_0.1.8.tgz(r-4.3-x86_64)sweater_0.1.8.tgz(r-4.3-arm64)
sweater_0.1.8.tar.gz(r-4.5-noble)sweater_0.1.8.tar.gz(r-4.4-noble)
sweater_0.1.8.tgz(r-4.4-emscripten)sweater_0.1.8.tgz(r-4.3-emscripten)
sweater.pdf |sweater.html
sweater/json (API)

# Install 'sweater' in R:
install.packages('sweater', repos = c('https://gesistsa.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/gesistsa/sweater/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • glove_math - A subset of the pretrained GLoVE word vectors
  • googlenews - A subset of the pretrained word2vec word vectors
  • small_reddit - A subset of the pretrained word2vec word vectors on Reddit

On CRAN:

bias-detectiontextanalysiswordembedding

19 exports 27 stars 2.48 score 23 dependencies 13 scripts 499 downloads

Last updated 3 months agofrom:219c9d5dcb. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-win-x86_64OKSep 17 2024
R-4.5-linux-x86_64OKSep 17 2024
R-4.4-win-x86_64OKSep 17 2024
R-4.4-mac-x86_64OKSep 17 2024
R-4.4-mac-aarch64OKSep 17 2024
R-4.3-win-x86_64OKSep 17 2024
R-4.3-mac-x86_64OKSep 17 2024
R-4.3-mac-aarch64OKSep 17 2024

Exports:calculate_esectect_esmacmac_esnasplot_biasplot_ectqueryread_word2vecrndrnd_esrnsbrnsb_essemaxisweatweat_esweat_exactweat_resampling

Dependencies:clicombinatdata.tablefastmatchglueISOcodesjsonlitelatticeLiblineaRlifecyclemagrittrMatrixproxypurrrquantedaRcpprlangSnowballCstopwordsstringivctrsxml2yaml