Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • 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