org.apache.mahout.vectorizer
Class DefaultAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.mahout.vectorizer.DefaultAnalyzer
All Implemented Interfaces:
Closeable

public final class DefaultAnalyzer
extends org.apache.lucene.analysis.Analyzer

A subclass of the Lucene StandardAnalyzer that provides a no-argument constructor. Used as the default analyzer in many cases where an analyzer is instantiated by class name by calling a no-arg constructor.


Constructor Summary
DefaultAnalyzer()
           
 
Method Summary
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnalyzer

public DefaultAnalyzer()
Method Detail

tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
                                                          Reader reader)
Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.