org.nlp2rdf.implementation.snowball
Class SnowballStemmer
java.lang.Object
org.tartarus.snowball.SnowballProgram
org.nlp2rdf.implementation.snowball.SnowballStemmer
public class SnowballStemmer
- extends org.tartarus.snowball.SnowballProgram
A Wrapper for Tartarus' Snowball Stemmer.
The name of a class from org.tartarus.snowball.ext. can be given to initialize the stemmer
see: http://lucene.apache.org/java/2_4_0/api/contrib-snowball/index.html
This decorator attaches the stem to each :Word it finds.
User: Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann
|
Field Summary |
org.tartarus.snowball.SnowballProgram |
decoratee
|
| Methods inherited from class org.tartarus.snowball.SnowballProgram |
getCurrent, setCurrent |
decoratee
public org.tartarus.snowball.SnowballProgram decoratee
SnowballStemmer
public SnowballStemmer()
- For the English PorterStemmer
SnowballStemmer
public SnowballStemmer(String stemmerClass)
- Parameters:
stemmerClass - a class from the following list http://lucene.apache.org/java/2_4_0/api/contrib-snowball/index.html
processText
public void processText(String prefix,
URIGenerator urigenerator,
String text,
com.hp.hpl.jena.ontology.OntModel model)
processNIFModel
public void processNIFModel(com.hp.hpl.jena.ontology.OntModel model)
stem
public String stem(String token)
stem
public boolean stem()
- Specified by:
stem in class org.tartarus.snowball.SnowballProgram
Copyright © 2011. All Rights Reserved.