txt_recode_ngram_cpp: Internal C++ n-gram recoding function

View source: R/RcppExports.R

txt_recode_ngram_cppR Documentation

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.

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

Value

Character vector where matched n-grams are combined


tall documentation built on Dec. 12, 2025, 5:07 p.m.