de.fu_berlin.ties.classify.feature
Class FeatureExtractorFactory

java.lang.Object
  extended by de.fu_berlin.ties.classify.feature.FeatureExtractorFactory

public final class FeatureExtractorFactory
extends Object

Static factory for initializing feature extractors.

Version:
$Revision: 1.4 $, $Date: 2006/10/21 16:03:57 $, $Author: siefkes $
Author:
Christian Siefkes

Method Summary
static FeatureExtractor createExtractor(TiesConfiguration conf, String suffix)
          Factory method that creates a feature extractor based on the provided configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createExtractor

public static FeatureExtractor createExtractor(TiesConfiguration conf,
                                               String suffix)
                                        throws ProcessingException
Factory method that creates a feature extractor based on the provided configuration. The "feature.extractor" key in the configuration (optionally adapted by appending the provided suffix) must give the qualified name of a FeatureExtractor implementation accepting a TiesConfiguration as first argument and a suffix String as second argument.

Parameters:
conf - used to configure this instance
suffix - optional suffix for adapting configuration keys if not null
Returns:
the created extractor
Throws:
ProcessingException - if an error occurred while creating the extractor


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.