phrases_collocations: Determines Collocated Terms

Description Usage Arguments Value

View source: R/phrases_collocations.R

Description

Searches a quanteda::tokens to locate ngrams. The function cleans the token and returns a dataframe with results.

Usage

1
phrases_collocations(x, ngram = 2, min_count = 5)

Arguments

x

A quanteda::token

ngram

Ngram size to locate

min_count

The minimum number of instances for each ngram to be included

Value

A dataframe containing located phrases and number of appearances.


clawilso15/Text.Replace documentation built on Feb. 6, 2021, 5:45 a.m.