Package: semgram 0.1.1

Oscar Stuhler

semgram: Extracting Semantic Motifs from Textual Data

A framework for extracting semantic motifs around entities in textual data. It implements an entity-centered semantic grammar that distinguishes six classes of motifs: actions of an entity, treatments of an entity, agents acting upon an entity, patients acted upon by an entity, characterizations of an entity, and possessions of an entity. Motifs are identified by applying a set of extraction rules to a parsed text object that includes part-of-speech tags and dependency annotations - such as those generated by 'spacyr'. For further reference, see: Stuhler (2022) <doi:10.1177/00491241221099551>.

Authors:Oscar Stuhler [aut, cre]

semgram_0.1.1.tar.gz
semgram_0.1.1.zip(r-4.5)semgram_0.1.1.zip(r-4.4)semgram_0.1.1.zip(r-4.3)
semgram_0.1.1.tgz(r-4.5-any)semgram_0.1.1.tgz(r-4.4-any)semgram_0.1.1.tgz(r-4.3-any)
semgram_0.1.1.tar.gz(r-4.5-noble)semgram_0.1.1.tar.gz(r-4.4-noble)
semgram_0.1.1.tgz(r-4.4-emscripten)semgram_0.1.1.tgz(r-4.3-emscripten)
semgram.pdf |semgram.html
semgram/json (API)
NEWS

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

Bug tracker:https://github.com/omstuhler/semgram/issues

On CRAN:

Conda:

4.08 score 24 stars 4 scripts 259 downloads 1 exports 22 dependencies

Last updated 3 years agofrom:c572fcc8e3. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 16 2025
R-4.5-winOKMar 16 2025
R-4.5-macOKMar 16 2025
R-4.5-linuxOKMar 16 2025
R-4.4-winOKMar 16 2025
R-4.4-macOKMar 16 2025
R-4.4-linuxOKMar 16 2025
R-4.3-winOKMar 16 2025
R-4.3-macOKMar 16 2025

Exports:extract_motifs

Dependencies:base64encclicpp11data.tabledigestglueigraphlatticelifecyclemagrittrMatrixpkgconfigpngRcpprlangrsyntaxstringistringrtidyselecttokenbrowservctrswithr