get_anchors: Gets anchor terms from precompiled anchor lists

View source: R/utils-embedding.R

get_anchorsR Documentation

Gets anchor terms from precompiled anchor lists

Description

Produces a data.frame of juxtaposed word pairs used to extract a semantic direction in 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) but should be used as a starting point.

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 "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")

text2map documentation built on July 9, 2023, 6:35 p.m.