gate.creole.annic.lucene
Class LuceneAnalyzer

java.lang.Object
  extended by gate.creole.annic.apache.lucene.analysis.Analyzer
      extended by 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

Constructor Summary
LuceneAnalyzer()
           
 
Method Summary
 TokenStream tokenStream(String fieldName, Reader reader)
          Each analyzer is required to provide implementation of this method.
 
Methods inherited from class gate.creole.annic.apache.lucene.analysis.Analyzer
tokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneAnalyzer

public LuceneAnalyzer()
Method Detail

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