The text-package: An R-package for analyzing and visualizing human language using natural language processing and transformers.
Supporting Files
-
-
-
-
Available in CDC Stacks on
File Language:
English
Details
-
Alternative Title:Psychological methods, 2023, v. 28, no. 6: The text-package: An R-package for analyzing and visualizing human language using natural language processing and transformers.
-
Journal Article:Psychological methods
-
Description:The language that individuals use for expressing themselves contains rich psychological information. Recent significant advances in Natural Language Processing (NLP) and Deep Learning (DL), namely transformers, have resulted in large performance gains in tasks related to understanding natural language. However, these state-of-the-art methods have not yet been made easily accessible for psychology researchers, nor designed to be optimal for human-level analyses. This tutorial introduces text (https://r-text.org/), a new R-package for analyzing and visualizing human language using transformers, the latest techniques from NLP and DL. The text-package is both a modular solution for accessing state-of-the-art language models and an end-to-end solution catered for human-level analyses. Hence, text provides user-friendly functions tailored to test hypotheses in social sciences for both relatively small and large data sets. The tutorial describes methods for analyzing text, providing functions with reliable defaults that can be used off-the-shelf as well as providing a framework for the advanced users to build on for novel pipelines. The reader learns about three core methods: (1) textEmbed(): to transform text to modern transformer-based word embeddings; (2) textTrain() and textPredict(): to train predictive models with embeddings as input, and use the models to predict from; (3) textSimilarity() and textDistance(): to compute semantic similarity/distance scores between texts. The reader also learns about two extended methods: (1) textProjection()/textProjectionPlot() and (2) textCentrality()/textCentralityPlot(): to examine and visualize text within the embedding space. (PsycInfo Database Record (c) 2024 APA, all rights reserved).
-
Subjects:
-
Keywords:
-
DOI:
-
ISSN:1082-989X ; 1939-1463
-
Pubmed ID:37126041
-
Pubmed Central ID:PMC12803442
-
Document Type:
-
Funding:
-
Genre:
-
Pages in Document:1478-1498
-
Volume:28
-
Issue:6
-
Download URL:
-
File Type:
-
Collection(s):
-
Main Document Checksum:urn:sha-512:93d14d90bea3a136aa1a5bfced27713533c5ee401a6c051055966e6c58ade8e0be48e14d4b35549d8c4495bada7371d3b1f48bec663f5d1bc3e56ec9989a53dc
File Language:
English
CDC STACKS serves as an archival repository of CDC-published products including
scientific findings, journal articles, guidelines, recommendations, or other public health information authored or
co-authored by CDC or funded partners.
As a repository, CDC STACKS retains documents in their original published format to ensure public access to scientific information.
As a repository, CDC STACKS retains documents in their original published format to ensure public access to scientific information.
You May Also Like
COLLECTION
CDC Public Access