knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Removedor de Sufixos da Língua Portuguesa
This package uses the algorithm Stemming Algorithm for the Portuguese Language described in this article by Viviane Moreira Orengo and Christian Huyck.
The idea of the stemmer is very well explained by the following schema.
To install the package you can use the following:
devtools::install_github("dfalbel/rslp")
The only important function of the package is the rslp
function.
You can call it on a vector of characters like this:
library(rslp) words <- c("balões", "aviões", "avião", "gostou", "gosto", "gostaram") rslp(words)
It works with vector of texts too, using the rslp_doc
function.
docs <- c( "coma frutas pois elas fazem bem para a saúde.", "não coma doces, eles fazem mal para os dentes." ) rslp_doc(docs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.