net.sf.eos.hadoop.mapred.cooccurrence
Class DictionaryBasedEntityRecognizerMapReduceDriver

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by net.sf.eos.hadoop.mapred.AbstractEosDriver
          extended by net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerMapReduceDriver
All Implemented Interfaces:
Configurable, Tool

public class DictionaryBasedEntityRecognizerMapReduceDriver
extends AbstractEosDriver

The driver supports the base arguments. To run the driver set the path to the trie.

Author:
Sascha Kohlmann
See Also:
DictionaryBasedEntityRecognizerReducer, DictionaryBasedEntityRecognizerMapper

Field Summary
static String TRIE_LONG_CMD_ARG
          Long commandline parameter name for the path to the trie data.
static String TRIE_SHORT_CMD_ARG
          Short commandline parameter name for the path to the trie data.
 
Fields inherited from class net.sf.eos.hadoop.mapred.AbstractEosDriver
DESTINATION_LONG_CMD_ARG, DESTINATION_SHORT_CMD_ARG, SOURCE_LONG_CMD_ARG, SOURCE_SHORT_CMD_ARG
 
Constructor Summary
DictionaryBasedEntityRecognizerMapReduceDriver()
           
 
Method Summary
protected  org.apache.commons.cli.Options createOptions()
           
static void main(String[] args)
          The parameter "-t" or "--trie" must be set use the trie data.
 int run(String[] args)
          Starts the job.
 
Methods inherited from class net.sf.eos.hadoop.mapred.AbstractEosDriver
doJob, getJobConf
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Field Detail

TRIE_SHORT_CMD_ARG

public static final String TRIE_SHORT_CMD_ARG
Short commandline parameter name for the path to the trie data. The parameter is required.

See Also:
TrieLoader, DistributedCacheStrategy, Constant Field Values

TRIE_LONG_CMD_ARG

public static final String TRIE_LONG_CMD_ARG
Long commandline parameter name for the path to the trie data. The parameter is required.

See Also:
TrieLoader, DistributedCacheStrategy, Constant Field Values
Constructor Detail

DictionaryBasedEntityRecognizerMapReduceDriver

public DictionaryBasedEntityRecognizerMapReduceDriver()
Method Detail

main

public static void main(String[] args)
                 throws Exception
The parameter "-t" or "--trie" must be set use the trie data.

Parameters:
args - the command line arguments
Throws:
Exception
See Also:
TRIE_LONG_CMD_ARG, AbstractEosDriver.DESTINATION_LONG_CMD_ARG, AbstractEosDriver.SOURCE_LONG_CMD_ARG, GenericOptionsParser

run

public int run(String[] args)
        throws Exception
Starts the job.

Specified by:
run in interface Tool
Overrides:
run in class AbstractEosDriver
Returns:
always zero.
Throws:
Exception

createOptions

protected org.apache.commons.cli.Options createOptions()
Overrides:
createOptions in class AbstractEosDriver


Copyright © 2008. All Rights Reserved.