Learn R Programming

RcppJagger (version 0.0.2)

lemmatize: An R wrapper for Jagger's lemmatizer

Description

An R wrapper for Jagger's lemmatizer

Usage

lemmatize(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_lemmatize <- lemmatize(sentence_example$text)

Run the code above in your browser using DataLab