create_syntnet: Create a Syntactic Network

Description Usage Arguments Value Author(s) See Also

View source: R/create_syntnet.R

Description

Make an tidygraph from a list of syntactic relationships as returned by create_syntrel.

Usage

1
2
3
4
5
6
7
create_syntnet(
  syntrel,
  basis = "lemma",
  keep_pos = c("NOUN", "PROPN", "ADJ", "VERB", "ADV"),
  multiplex = FALSE,
  min_count = 1
)

Arguments

syntrel

Tibble. Output of the function create_syntrel.

basis

Character string. Whether the network should be based on "word" or "lemma".

keep_pos

Character vector. Parts of speech which should be kept to build the network.

multiplex

Logical. Whether the kind of relationship should be kept.

min_count

Numeric. Minimum number of occurrences for a relationship to be kept.

Value

A tidygraph of syntactic relationships between words of lemmas

Author(s)

Nicolas Mangin

See Also

create_syntrel


NicolasJBM/lexR documentation built on Feb. 4, 2021, 6:43 p.m.