get_anchors {text2map} | R Documentation |
Gets anchor terms from precompiled anchor lists
Description
Produces a data.frame of juxtaposed word pairs used to extract
a semantic direction from word embeddings. Can be used as input
to get_direction()
.
Usage
get_anchors(relation)
Arguments
relation |
String indicating a semantic relation, 26 relations are available in the dataset (see details). |
Details
Sets of juxtaposed "anchor" pairs are adapted from published work and associated with a particular semantic relation. These should be used as a starting point, not as a "ground truth."
Available relations include:
activity
affluence
age
attractiveness
borders
concreteness
cultivation
dominance
education
gender
government
purity
safety
sexuality
skills
status
valence
whiteness
Value
returns a tibble with two columns
Author(s)
Dustin Stoltz
Examples
gen <- get_anchors(relation = "gender")
[Package text2map version 0.2.0 Index]