R/RcppExports.R

Defines functions UNK BOS EOS tknz_sent_cpp preprocess_cpp

Documented in BOS EOS UNK

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

preprocess_cpp <- function(input, erase = "[^.?!:;'[:alnum:][:space:]]", lower_case = TRUE) {
    .Call(`_kgrams_preprocess_cpp`, input, erase, lower_case)
}

tknz_sent_cpp <- function(input, EOS = "[.?!:;]+", keep_first = FALSE) {
    .Call(`_kgrams_tknz_sent_cpp`, input, EOS, keep_first)
}

#' @rdname special_tokens
#' @export
EOS <- function() {
    .Call(`_kgrams_EOS`)
}

#' @rdname special_tokens
#' @export
BOS <- function() {
    .Call(`_kgrams_BOS`)
}

#' @rdname special_tokens
#' @export
UNK <- function() {
    .Call(`_kgrams_UNK`)
}
vgherard/kgrams documentation built on Nov. 17, 2024, 8:56 p.m.