org.apache.nutch.analysis
Class AnalyzerFactory
java.lang.Object
org.apache.nutch.analysis.AnalyzerFactory
public class AnalyzerFactory
- extends Object
Creates and caches NutchAnalyzer
plugins.
- Author:
- Jérôme Charron
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
AnalyzerFactory
public AnalyzerFactory(Configuration conf)
get
public static AnalyzerFactory get(Configuration conf)
get
public NutchAnalyzer get(String lang)
- Returns the appropriate
analyzer
implementation
given a language code.
NutchAnalyzer extensions should define the attribute "lang". The first
plugin found whose "lang" attribute equals the specified lang parameter is
used. If none match, then the NutchDocumentAnalyzer
is used.
getDefault
protected NutchAnalyzer getDefault()
- Method used by unit test
Copyright © 2006 The Apache Software Foundation