fst_cn_get_unique: Concept Network- Get unique nodes from a list of top n-grams...

View source: R/05_comparison_concept_network.R

fst_cn_get_uniqueR Documentation

Concept Network- Get unique nodes from a list of top n-grams tables

Description

Takes at least two tables of nodes and pagerank (output of 'fst_cn_nodes()') and finds nodes unique to one table.

Usage

fst_cn_get_unique(list)

Arguments

list

A list of top nodes

Value

Dataframe of words and whether word is unique or not.

Examples

pos_filter <- 'NOUN, VERB, ADJ, ADV'
e1 <- fst_cn_edges(fst_child, "lyödä", pos_filter = pos_filter)
e2 <- fst_cn_edges(fst_child, "lyöminen", pos_filter = pos_filter)
n1 <- fst_cn_nodes(fst_child, e1)
n2 <- fst_cn_nodes(fst_child, e2)
list_of_nodes <- list()
list_of_nodes <- append(list_of_nodes, list(n1))
list_of_nodes <- append(list_of_nodes, list(n2))
fst_cn_get_unique(list_of_nodes)

finnsurveytext documentation built on April 4, 2025, 5:07 a.m.