org.apache.mahout.vectorizer
Class DefaultAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
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.
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAnalyzer
public DefaultAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
reusableTokenStream
public org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Overrides:
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
- Throws:
IOException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.