ngram {dhlabR} | R Documentation |
Function to get and convert NGRAM
Description
Function to get and convert NGRAM
Usage
ngram(
word = "havet",
corpus = "bok",
language = NULL,
smooth = 1,
years = c(1810, 2013),
mode = "relative"
)
Arguments
word |
The word to get NGRAM for. Default is "havet". |
corpus |
The corpus to use. Options are 'avis' and 'bok'. Default is "bok". |
language |
The language to use. Default is NULL. |
smooth |
Smoothing factor. Default is 1. |
years |
A vector that contains the start and end years. Default is c(1810,2013). |
mode |
The mode to use. Default is 'relative'. |
Value
A data frame that contains the NGRAM.
[Package dhlabR version 1.0.6 Index]