Description Usage Arguments Value See Also Examples
Tranforms a vector of n-grams into a data frame.
1 | 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
.
1 |
Loading required package: slam
position ngram distance
1 2 1.1.2 0.0
2 3 1.1.2 0.0
3 3 2.2.2 0.0
4 2 1.1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.