Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

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