fst_get_unique_ngrams: Get unique n-grams from a list of top n-grams tables

View source: R/04_comparison_functions.R

fst_get_unique_ngramsR Documentation

Get unique n-grams from a list of top n-grams tables

Description

Takes a list containing at least two tables of n-grams and frequencies (either output of 'fst_freq_table()' or 'fst_ngrams_table()') and finds n-grams unique to one table.

Usage

fst_get_unique_ngrams(list_of_top_ngrams)

Arguments

list_of_top_ngrams

A list of top ngrams

Value

Dataframe of words and whether word is unique or not.

Examples

top_child <- fst_freq_table(fst_child)
top_dev <- fst_freq_table(fst_dev_coop)
list_of_top_words <- list()
list_of_top_words <- append(list_of_top_words, list(top_child))
list_of_top_words <- append(list_of_top_words, list(top_dev))
fst_get_unique_ngrams(list_of_top_words)

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