Learn R Programming

tall (version 0.5.1)

txt_recode_ngram_cpp: Internal C++ n-gram recoding function

Description

Internal C++ implementation of n-gram recoding for multiword detection. Users should call txt_recode_ngram_fast instead.

Value

Character vector where matched n-grams are combined

Arguments

x

Character vector of tokens

compound

Character vector of multiword expressions to match

ngram

Integer vector indicating the length of each compound

sep

String separator to use when joining tokens