preprocess.stem: Stem word vectors

View source: R/preprocess_pipeline.R

preprocess.stemR Documentation

Stem word vectors

Description

This function is a wrapper for huhunspell::huhunspell_stem() that filters emptpy tokens.

Usage

preprocess.stem(words, dict)

Arguments

words

A character vector to be stemmed.

dict

The hunspell dictonary to be used.

Value

A character vector of stemmed words.

Examples

## Not run: 
preprocess.stem(words, "de_DE")

## End(Not run)


Kudusch/ktools documentation built on Oct. 30, 2022, 10:13 p.m.