net.sf.eos.hadoop.mapred.cooccurrence
Class DictionaryBasedEntityRecognizerMapReduceDriver
java.lang.Object
org.apache.hadoop.conf.Configured
net.sf.eos.hadoop.mapred.AbstractEosDriver
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DictionaryBasedEntityRecognizerMapReduceDriver
public DictionaryBasedEntityRecognizerMapReduceDriver()
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.