jst_get_ngram: Read ngram data

View source: R/ngram.R

jst_get_ngramR Documentation

Read ngram data

Description

Read in data on ngrams via readr::read_tsv().

Usage

jst_get_ngram(file)

Arguments

file

A path to a file or a zip location from jst_subset_ngrams().

Details

This function is mainly useful when it is used in together with jst_import_zip, where you can use it to specify reading in ngram data.

Value

A tibble::tibble() with two columns:

  • ngram: the ngram term (unigram, bigram, trigram)

  • n: an integer for the number of times the term occurred in the original file


jstor documentation built on Aug. 16, 2023, 5:09 p.m.