Package edu.stanford.nlp.sempre

Source Code of edu.stanford.nlp.sempre.Stemmer

package edu.stanford.nlp.sempre;

import org.tartarus.snowball.ext.PorterStemmer;

/**
* Wrapper for the default stemmer used by this project.
*/
public class Stemmer {
  public String stem(String input) {
    PorterStemmer state = new PorterStemmer();
    state.setCurrent(input);
    state.stem();
    return state.getCurrent();
  }
}
TOP

Related Classes of edu.stanford.nlp.sempre.Stemmer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.