given a dataframe with a column (list) with POS, returns a list with three elements: 1) a tibble with the frequency of graphs; 2) a tibble with the isolated nodes, i.e. nodes withot any connection. 3) a tibble with the individual frequency of each node. If list element has only one element, it is removed.
Examples
pos <- txt_wiki |>
filter_by_query("Police") |>
parsePOS()
entities_by_txt <- pos |>
dplyr::group_by(doc_id) |>
dplyr::summarise(entities = list(unique(entity)))
graph_from_coocurrence_list(entities_by_txt)
#> Error in graph_from_coocurrence_list(entities_by_txt): could not find function "graph_from_coocurrence_list"