analyze_ngrams: Analyze NGrams

View source: R/ngrams.R

analyze_ngramsR Documentation

Analyze NGrams

Description

Analyze text with ngram among 1, 2 or 3.

Usage

analyze_ngrams(in_text, ngram = 1, top_rows = 25)

Arguments

in_text

a character vector. Text to be analyzed as a character vector.

ngram

a numeric_vector of length 1. Ngram = 1, 2 or 3.

top_rows

a numeric vector of length 1. Number of top rows to be returned.

Details

analyze_ngrams

Value

A data.frame with two columns - word/bigram/trigram (character vector) and count (integer vector).

Author(s)

Ravindra Pushker

Examples

analyze_ngrams(in_text=c("The quick brown fox jumps over the lazy dog."))

textanalyzer documentation built on April 3, 2025, 11:55 p.m.