Learn R Programming

biogram (version 1.6.3)

code_ngrams: Code n-grams

Description

Code human-friendly representation of n-grams into a biogram format.

Usage

code_ngrams(decoded_ngrams)

Arguments

decoded_ngrams

a character vector of decoded n-grams.

Value

a character vector of n-grams.

See Also

Inverse function: decode_ngrams.

Examples

Run this code
# NOT RUN {
code_ngrams(c("11_2", "1__12", "222"))
code_ngrams(c("aaa_b", "d__aa", "abd"))
# }

Run the code above in your browser using DataLab