gate.creole.annic.lucene
Class LuceneAnalyzer
java.lang.Object
gate.creole.annic.apache.lucene.analysis.Analyzer
gate.creole.annic.lucene.LuceneAnalyzer
public class LuceneAnalyzer
- extends Analyzer
This class provides an implementation for Analyzer which is used
internally by ANNIC resources.
- Author:
- niraj
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneAnalyzer
public LuceneAnalyzer()
tokenStream
public TokenStream tokenStream(String fieldName,
Reader reader)
- Each analyzer is required to provide implementation of this method.
Using the provided reader, which in this case must be an instance
of LuceneReader, it obtains the tokenStream and wrap it in the
instanceof LuceneTokenizer. It is this instance that is returned to
the user.
- Overrides:
tokenStream in class Analyzer