Learn R Programming

RcppJagger (version 0.0.2)

tokenize: An R wrapper for Jagger's tokenizer

Description

An R wrapper for Jagger's tokenizer

Usage

tokenize(input, model_path = NULL, keep = NULL, concat = TRUE)

Value

a vector (if concat = TRUE) or a list (if concat = FALSE).

Arguments

input

an input.

model_path

a path to the model.

keep

a vector of POS(s) to keep. Default is NULL.

concat

logical. If TRUE, the function returns a concatenated string. Default is TRUE.

Examples

Run this code
 data(sentence_example)
 res_tokenize <- tokenize(sentence_example$text)

Run the code above in your browser using DataLab