fst_cn_search {finnsurveytext} | R Documentation |
Concept Network - Search textrank for concepts
Description
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.
Usage
fst_cn_search(data, concepts, pos_filter = NULL)
Arguments
data |
A dataframe of text in CoNLL-U format. |
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. |
Value
Dataframe of n-grams containing searched terms.
Examples
con <- "kiusata, lyöminen, lyödä, potkia"
pf <- c("NOUN", "VERB", "ADJ", "ADV")
fst_cn_search(conllu_cb_bullying_iso, concepts = con, pos_filter = pf)
fst_cn_search(conllu_cb_bullying_iso, concepts = con)
[Package finnsurveytext version 1.0.0 Index]