gov.llnl.ontology.mapreduce.ingest
Class DisambiguateMR

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by gov.llnl.ontology.mapreduce.CorpusTableMR
          extended by gov.llnl.ontology.mapreduce.ingest.DisambiguateMR
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class DisambiguateMR
extends CorpusTableMR

Author:
Keith Stevens

Nested Class Summary
static class DisambiguateMR.DisambiguateMapper
          This TableMapper does all of the work.
 
Nested classes/interfaces inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR
CorpusTableMR.CorpusTableMapper<K,V>
 
Field Summary
static String WORDNET_DIR
          The configuration key for setting the wordnet directory.
static String WSD_ALG
          The configuration key for setting the WordSenseDisambiguation algorithm.
 
Fields inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR
CONF_PREFIX, TABLE
 
Constructor Summary
DisambiguateMR()
           
 
Method Summary
protected  void addOptions(MRArgOptions options)
          Add more command line arguments.
protected  String jobName()
          Returns a descriptive job name for this map reduce task.
static void main(String[] args)
          Runs the DisambiguateMR.
protected  Class mapperClass()
          Returns the Class object for the Mapper task.
protected  void setupConfiguration(MRArgOptions options, org.apache.hadoop.conf.Configuration conf)
          Copies command line arguments to a Configuration so that Map/Reduce jobs can utilize the values set.
protected  void validateOptions(MRArgOptions options)
          Returns true if the MRArgOptions contains a valid value for each requried option.
 
Methods inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR
mapperKeyClass, mapperValueClass, run, setupReducer
 
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

WSD_ALG

public static String WSD_ALG
The configuration key for setting the WordSenseDisambiguation algorithm.


WORDNET_DIR

public static String WORDNET_DIR
The configuration key for setting the wordnet directory.

Constructor Detail

DisambiguateMR

public DisambiguateMR()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Runs the DisambiguateMR.

Throws:
Exception

addOptions

protected void addOptions(MRArgOptions options)
Add more command line arguments. By default, this adds no options.

Overrides:
addOptions in class CorpusTableMR

validateOptions

protected void validateOptions(MRArgOptions options)
Returns true if the MRArgOptions contains a valid value for each requried option. By default, this does no validation.

Overrides:
validateOptions in class CorpusTableMR

jobName

protected String jobName()
Returns a descriptive job name for this map reduce task.

Overrides:
jobName in class CorpusTableMR

setupConfiguration

protected void setupConfiguration(MRArgOptions options,
                                  org.apache.hadoop.conf.Configuration conf)
Copies command line arguments to a Configuration so that Map/Reduce jobs can utilize the values set. By default, this does no configuration.

Overrides:
setupConfiguration in class CorpusTableMR

mapperClass

protected Class mapperClass()
Returns the Class object for the Mapper task.

Specified by:
mapperClass in class CorpusTableMR


Copyright © 2010-2011. All Rights Reserved.