org.apache.nutch.analysis
Class AnalyzerFactory

java.lang.Object
  extended by 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
           
 
Constructor Summary
AnalyzerFactory(Configuration conf)
           
 
Method Summary
static AnalyzerFactory get(Configuration conf)
           
 NutchAnalyzer get(String lang)
          Returns the appropriate analyzer implementation given a language code.
protected  NutchAnalyzer getDefault()
          Method used by unit test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

AnalyzerFactory

public AnalyzerFactory(Configuration conf)
Method Detail

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