Cleans and formats language transcripts guided by a series of transformation options (e.g., lemmatize words, omit stopwords, split strings across rows). 'SemanticDistance' computes two distinct metrics of cosine semantic distance (experiential and embedding). These values reflect pairwise cosine distance between different elements or chunks of a language sample. 'SemanticDistance' can process monologues (e.g., stories, ordered text), dialogues (e.g., conversation transcripts), word pairs arrayed in columns, and unordered word lists. Users specify options for how they wish to chunk distance calculations. These options include: rolling ngram-to-word distance (window of n-words to each new word), ngram-to-ngram distance (2-word chunk to the next 2-word chunk), pairwise distance between words arrayed in columns, matrix comparisons (i.e., all possible pairwise distances between words in an unordered list), turn-by-turn distance (talker to talker in a dialogue transcript). 'SemanticDistance' includes visualization options for analyzing distances as time series data and simple semantic network dynamics (e.g., clustering, undirected graph network).
Version: | 0.1.1 |
Depends: | R (≥ 3.5) |
Imports: | ape, cluster, dendextend, dplyr, graphics, httr, igraph, lsa, magrittr, purrr, rlang, stats, stringi, stringr, textstem, tidyselect, tm, tidyr, textclean, tools, utils, wesanderson |
Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
Published: | 2025-09-01 |
Author: | Jamie Reilly |
Maintainer: | Jamie Reilly <jamie_reilly at temple.edu> |
BugReports: | https://github.com/Reilly-ConceptsCognitionLab/SemanticDistance/issues |
License: | LGPL (≥ 3) |
URL: | https://github.com/Reilly-ConceptsCognitionLab/SemanticDistance, https://reilly-conceptscognitionlab.github.io/SemanticDistance/ |
NeedsCompilation: | no |
Materials: | README, NEWS |
CRAN checks: | SemanticDistance results |
Reference manual: | SemanticDistance.html , SemanticDistance.pdf |
Vignettes: |
SemanticDistance_Data_Viz (source, R code) SemanticDistance Dialogues (source, R code) SemanticDistance_Intro (source, R code) SemanticDistance_Monologues_Lists (source, R code) SemanticDistance_Word_Pairs (source, R code) |
Package source: | SemanticDistance_0.1.1.tar.gz |
Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=SemanticDistance to link to this page.