decode_ngrams: Decode n-grams

Description Usage Arguments Value Note See Also Examples

View source: R/ngram_coding.R

Description

Transforms a vector of n-grams into a human-friendly form.

Usage

1
decode_ngrams(ngrams)

Arguments

ngrams

a character vector of n-grams.

Value

a character vector of length equal to the number of n-grams.

Note

Decoded n-grams lose the position information.

See Also

Validate n-gram structure: is_ngram.

Inverse function: code_ngrams.

Examples

1
decode_ngrams(c("2_1.1.2_0.1", "3_1.1.2_2.0", "3_2.2.2_0.0"))

biogram documentation built on March 31, 2020, 5:14 p.m.