Research Breakthrough Possible @S-Logix pro@slogix.in

Office Address

Social List

How to stem words for text processing in R using tm package?

Description

To stem words for text processing in R using tm package

Functions used :

stemDocument(text, language) – To stem the words

Libraries Required :

Library(“tm”)

Process

  Load the necessary libraries

  Load the data

  Use the built in function stemDocument to stem the words

Sapmle Code

library(“tm”)
text stemDocument(text, language = “english”)

Screenshots
stem words for text processing in R using tm package