A C E F G I M O R S T

A

analyze(String) - Method in class org.apache.lucene.wordnet.SynonymMap
Analyzes/transforms the given word on input stream loading.
AnalyzerUtil - Class in org.apache.lucene.wordnet
Various fulltext analysis utilities avoiding redundant code in several classes.

C

createToken(String, AttributeSource.State) - Method in class org.apache.lucene.wordnet.SynonymTokenFilter
Creates and returns a token for the given synonym of the current input token; Override for custom (stateless or stateful) behavior, if desired.

E

expand(String, Searcher, Analyzer, String, float) - Static method in class org.apache.lucene.wordnet.SynExpand
Perform synonym expansion on a query.
expand(String, Searcher, Analyzer, String, float) - Static method in class org.apache.lucene.wordnet.SynLookup
Perform synonym expansion on a query.

F

F_SYN - Static variable in class org.apache.lucene.wordnet.Syns2Index
 
F_WORD - Static variable in class org.apache.lucene.wordnet.Syns2Index
 

G

getLoggingAnalyzer(Analyzer, PrintStream, String) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns a simple analyzer wrapper that logs all tokens produced by the underlying child analyzer to the given log stream (typically System.err); Otherwise behaves exactly like the child analyzer, delivering the very same tokens; useful for debugging purposes on custom indexing and/or querying.
getMaxTokenAnalyzer(Analyzer, int) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns an analyzer wrapper that returns at most the first maxTokens tokens from the underlying child analyzer, ignoring all remaining tokens.
getMostFrequentTerms(Analyzer, String, int) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns (frequency:term) pairs for the top N distinct terms (aka words), sorted descending by frequency (and ascending by term, if tied).
getParagraphs(String, int) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns at most the first N paragraphs of the given text.
getPorterStemmerAnalyzer(Analyzer) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns an English stemming analyzer that stems tokens from the underlying child analyzer according to the Porter stemming algorithm.
getSentences(String, int) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns at most the first N sentences of the given text.
getSynonymAnalyzer(Analyzer, SynonymMap, int) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns an analyzer wrapper that wraps the underlying child analyzer's token stream into a SynonymTokenFilter.
getSynonyms(String) - Method in class org.apache.lucene.wordnet.SynonymMap
Returns the synonym set for the given word, sorted ascending.
getTokenCachingAnalyzer(Analyzer) - Static method in class org.apache.lucene.wordnet.AnalyzerUtil
Returns an analyzer wrapper that caches all tokens generated by the underlying child analyzer's token streams, and delivers those cached tokens on subsequent calls to tokenStream(String fieldName, Reader reader) if the fieldName has been seen before, altogether ignoring the Reader parameter on cache lookup.

I

incrementToken() - Method in class org.apache.lucene.wordnet.SynonymTokenFilter
Returns the next token in the stream, or null at EOS.
isValid(String) - Method in class org.apache.lucene.wordnet.SynonymMap
 

M

main(String[]) - Static method in class org.apache.lucene.wordnet.SynExpand
Test driver for synonym expansion.
main(String[]) - Static method in class org.apache.lucene.wordnet.SynLookup
 
main(String[]) - Static method in class org.apache.lucene.wordnet.Syns2Index
Takes arg of prolog file name and index directory.

O

org.apache.lucene.wordnet - package org.apache.lucene.wordnet
This package uses synonyms defined by WordNet.

R

reset() - Method in class org.apache.lucene.wordnet.SynonymTokenFilter
 

S

SynExpand - Class in org.apache.lucene.wordnet
Expand a query by looking up synonyms for every term.
SynExpand() - Constructor for class org.apache.lucene.wordnet.SynExpand
 
SynLookup - Class in org.apache.lucene.wordnet
Test program to look up synonyms.
SynLookup() - Constructor for class org.apache.lucene.wordnet.SynLookup
 
SYNONYM_TOKEN_TYPE - Static variable in class org.apache.lucene.wordnet.SynonymTokenFilter
The Token.type used to indicate a synonym to higher level filters.
SynonymMap - Class in org.apache.lucene.wordnet
Loads the WordNet prolog file wn_s.pl into a thread-safe main-memory hash map that can be used for fast high-frequency lookups of synonyms for any given (lowercase) word string.
SynonymMap(InputStream) - Constructor for class org.apache.lucene.wordnet.SynonymMap
Constructs an instance, loading WordNet synonym data from the given input stream.
SynonymTokenFilter - Class in org.apache.lucene.wordnet
Injects additional tokens for synonyms of token terms fetched from the underlying child stream; the child stream must deliver lowercase tokens for synonyms to be found.
SynonymTokenFilter(TokenStream, SynonymMap, int) - Constructor for class org.apache.lucene.wordnet.SynonymTokenFilter
Creates an instance for the given underlying stream and synonym table.
Syns2Index - Class in org.apache.lucene.wordnet
Convert the prolog file wn_s.pl from the WordNet prolog download into a Lucene index suitable for looking up synonyms and performing query expansion (SynExpand.expand(...)).
Syns2Index() - Constructor for class org.apache.lucene.wordnet.Syns2Index
 

T

toString() - Method in class org.apache.lucene.wordnet.SynonymMap
Returns a String representation of the index data for debugging purposes.

A C E F G I M O R S T

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.