View source: R/03_concept_network.R
fst_cn_search | R Documentation |
This function takes a string of terms (separated by commas) or a single term and, using 'textrank_keywords()' from 'textrank' package, filters data based on 'pos_filter' and finds words connected to search terms.
fst_cn_search(data, concepts, pos_filter = NULL)
data |
A dataframe of text in CoNLL-U format, with optional additional columns. |
concepts |
String of terms to search for, separated by commas. |
pos_filter |
List of UPOS tags for inclusion, default is 'NULL' to include all UPOS tags. |
Dataframe of n-grams containing searched terms.
con <- "kiusata, lyöminen, lyödä, potkia"
pf <- c("NOUN", "VERB", "ADJ", "ADV")
pf2 <- "NOUN, VERB, ADJ, ADV"
fst_cn_search(fst_child, concepts = con, pos_filter = pf)
fst_cn_search(fst_child, concepts = con, pos_filter = pf2)
fst_cn_search(fst_child, concepts = con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.