Base word stemming instead of root word stemming in R

前端 未结 4 452
离开以前
离开以前 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:35

    When I needed to do something similar, I wrote out my list of words in a text file, and fed it to the English Lexicon Project's web query tool, then parsed the result back into R. A little clunky, but lots of good data is available from ELP. For your use, Check out ELP's MorphSP. For happiness, it gives {happy}>ness>

    http://elexicon.wustl.edu/query14/query14.asp

提交回复
热议问题