Base word stemming instead of root word stemming in R

前端 未结 4 447
离开以前
离开以前 2021-02-05 18:10

Is there any way to get base word instead of root word in stemming using NLP in R?

Code:

> #Loading libraries
> library(tm)
> library(slam)
>         


        
4条回答
  •  孤街浪徒
    2021-02-05 18:40

    You're probably looking for a stemmer. Here are some stemmers from CRAN Task View: Natural Language Processing:

    • RWeka is a interface to Weka which is a collection of machine learning algorithms for data mining tasks written in Java. Especially useful in the context of natural language processing is its functionality for tokenization and stemming.

    • Snowball provides the Snowball stemmers which contain the Porter stemmer and several other stemmers for different languages. See the Snowball webpage for details.

    • Rstem is an alternative interface to a C version of Porter's word stemming algorithm.

提交回复
热议问题