OntoSim 2.4

fr.inrialpes.exmo.ontosim.util
Class LuceneAnalyser

java.lang.Object
  extended by fr.inrialpes.exmo.ontosim.util.LuceneAnalyser

public class LuceneAnalyser
extends Object


Field Summary
private static org.apache.lucene.analysis.Analyzer analyzer
           
 
Constructor Summary
LuceneAnalyser()
           
 
Method Summary
static Collection<String> getTerms(String s, Collection<String> elements)
          add all words contained in toAnalyse into words collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

analyzer

private static org.apache.lucene.analysis.Analyzer analyzer
Constructor Detail

LuceneAnalyser

public LuceneAnalyser()
Method Detail

getTerms

public static Collection<String> getTerms(String s,
                                          Collection<String> elements)
add all words contained in toAnalyse into words collection. Words are stemmed.

Parameters:
toAnalyse - : the string to be analysed
words - : the collection to add extracted words

OntoSim 2.4

(C) INRIA, UPMF & friends, 2008-2011