fr.inrialpes.exmo.ontosim.util
Class LuceneAnalyser
java.lang.Object
fr.inrialpes.exmo.ontosim.util.LuceneAnalyser
public class LuceneAnalyser
- extends Object
Field Summary |
private static org.apache.lucene.analysis.Analyzer |
analyzer
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
analyzer
private static org.apache.lucene.analysis.Analyzer analyzer
LuceneAnalyser
public LuceneAnalyser()
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 analysedwords
- : the collection to add extracted words
(C) INRIA, UPMF & friends, 2008-2011