lemmatize_words {textstem} | R Documentation |
Lemmatize a Vector of Words
Description
Lemmatize a vector of words.
Usage
lemmatize_words(x, dictionary = lexicon::hash_lemmas, ...)
Arguments
x |
A vector of words. |
dictionary |
A dictionary of base terms and lemmas to use for
replacement. The first column should be the full word form in lower case
while the second column is the corresponding replacement lemma. The default
uses |
... |
ignored. |
Value
Returns a vector of lemmatized words.
See Also
Examples
x <- c("the", NA, 'doggies', ',', 'well', 'they', "aren\'t", 'Joyfully', 'running', '.')
lemmatize_words(x)
[Package textstem version 0.1.4 Index]