An R wrapper for Jagger's tokenizer
tokenize(input, model_path = NULL, keep = NULL, concat = TRUE)
an input.
a path to the model.
a vector of POS(s) to keep. Default is NULL
.
logical. If TRUE, the function returns a concatenated string. Default is TRUE
.
a vector (if concat = TRUE
) or a list (if concat = FALSE
).
data(sentence_example)
res_tokenize <- tokenize(sentence_example$text)