org.nlp2rdf.implementation.snowball
Class SnowballStemmer

java.lang.Object
  extended by org.tartarus.snowball.SnowballProgram
      extended by 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
           
 
Constructor Summary
SnowballStemmer()
          For the English PorterStemmer
SnowballStemmer(String stemmerClass)
           
 
Method Summary
 void processNIFModel(com.hp.hpl.jena.ontology.OntModel model)
           
 void processText(String prefix, URIGenerator urigenerator, String text, com.hp.hpl.jena.ontology.OntModel model)
           
 boolean stem()
           
 String stem(String token)
           
 
Methods inherited from class org.tartarus.snowball.SnowballProgram
getCurrent, setCurrent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoratee

public org.tartarus.snowball.SnowballProgram decoratee
Constructor Detail

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
Method Detail

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.