Wednesday, 7 June 2017

how to perform stemming in java?

Hello, here i written a code for stemming a word in java.
For it you need a java library, you can download it from here, and load it to you lib folder.

Here is the code:

import org.tartarus.snowball.*;

public class EnglishStemmer_porterstemmer {

public static void main(String[] args) throws Exception{
//enter the word in the string.
 String a="phones";

Output: phone

See also:

1 comment:

All about journals and research paper | What is impact factor? | how the impact factor is calculated? | who calculate the impact factor? Scopous journals

Figure 1: One of my Research Papers When the Scholars are in their Master or PhD or in any research field. They are supposed to writ...