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>.

Getting started

Package details

AuthorOscar Stuhler [aut, cre] (<https://orcid.org/0000-0001-7391-1743>)
MaintainerOscar Stuhler <semgram.r@gmail.com>
LicenseGPL-3
Version0.1.0
URL https://github.com/omstuhler/semgram
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("semgram")

Try the semgram package in your browser

Any scripts or data that you put into this service are public.

semgram documentation built on May 31, 2022, 5:06 p.m.