ngrams2df | R Documentation |
Tranforms a vector of n-grams into a data frame.
ngrams2df(ngrams)
ngrams |
a |
a data.frame
with 2 (in case of n-grams without known position) or
three columns (n-grams with position information).
Decode n-grams: decode_ngrams
.
ngrams2df(c("2_1.1.2_0.0", "3_1.1.2_0.0", "3_2.2.2_0.0", "2_1.1_0"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.