|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
gov.llnl.ontology.mapreduce.CorpusTableMR
gov.llnl.ontology.mapreduce.stats.WordsiMR
public class WordsiMR
Nested Class Summary | |
---|---|
static class |
WordsiMR.WordsiDependencyMapper
The TableMapper responsible for the real work. |
static class |
WordsiMR.WordsiOccurrenceMapper
The TableMapper responsible for the real work. |
Nested classes/interfaces inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR |
---|
CorpusTableMR.CorpusTableMapper<K,V> |
Field Summary | |
---|---|
static String |
ABOUT
|
static String |
CONF_PREFIX
A prefix for any Configuration setting. |
static String |
DEFAULT_ACCEPTOR
The classname of the default DependencyPathAcceptor . |
static String |
DEFAULT_WEIGHT
The classname of the default DependencyPathWeight . |
static String |
DEPENDENCY_BASIS
The configuration for setting the DependencyPathBasisMapping . |
static String |
PATH_ACCEPTOR
The configuration for setting the DependencyPathAcceptor . |
static String |
PATH_LENGTH
The configuration for setting the path length or word co-occurrence window. |
static String |
PATH_WEIGHT
The configuration for setting the DependencyPathWeight . |
static String |
USE_ORDERING
The configuration set when word ordering features should be used. |
static String |
USE_POS
The configuration set when part of speech features should be used. |
Fields inherited from class gov.llnl.ontology.mapreduce.CorpusTableMR |
---|
TABLE |
Constructor Summary | |
---|---|
WordsiMR()
|
Method Summary | ||
---|---|---|
protected void |
addOptions(MRArgOptions options)
Add more command line arguments. |
|
static
|
emitContext(String focus,
edu.ucla.sspace.basis.BasisMapping<T,String> basis,
edu.ucla.sspace.vector.SparseDoubleVector vector,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
|
String |
jobName()
Returns a descriptive job name for this map reduce task. |
|
static void |
main(String[] args)
Runs the TokenCountMR . |
|
protected Class |
mapperClass()
Returns the Class object for the Mapper task. |
|
protected Class |
mapperKeyClass()
Returns the Class object for the Mapper Value of this task. |
|
protected Class |
mapperValueClass()
Returns the Class object for the Mapper Value of this 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 |
setupReducer(String tableName,
org.apache.hadoop.mapreduce.Job job,
MRArgOptions options)
Sets up the Reducer for this job. |
|
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 |
---|
run |
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 |
---|
public static final String ABOUT
public static final String CONF_PREFIX
Configuration
setting.
public static final String PATH_ACCEPTOR
DependencyPathAcceptor
.
public static final String PATH_WEIGHT
DependencyPathWeight
.
public static final String PATH_LENGTH
public static final String DEPENDENCY_BASIS
DependencyPathBasisMapping
.
public static final String USE_POS
public static final String USE_ORDERING
public static final String DEFAULT_ACCEPTOR
DependencyPathAcceptor
.
public static final String DEFAULT_WEIGHT
DependencyPathWeight
.
Constructor Detail |
---|
public WordsiMR()
Method Detail |
---|
public static void main(String[] args) throws Exception
TokenCountMR
.
Exception
protected void validateOptions(MRArgOptions options)
MRArgOptions
contains a valid value for each
requried option. By default, this does no validation.
validateOptions
in class CorpusTableMR
public String jobName()
jobName
in class CorpusTableMR
protected void addOptions(MRArgOptions options)
addOptions
in class CorpusTableMR
protected void setupConfiguration(MRArgOptions options, org.apache.hadoop.conf.Configuration conf)
Configuration
so that
Map/Reduce jobs can utilize the values set. By default, this does no
configuration.
setupConfiguration
in class CorpusTableMR
protected Class mapperClass()
Class
object for the Mapper task.
mapperClass
in class CorpusTableMR
protected Class mapperKeyClass()
Class
object for the Mapper Value of this task.
mapperKeyClass
in class CorpusTableMR
protected Class mapperValueClass()
Class
object for the Mapper Value of this task.
mapperValueClass
in class CorpusTableMR
protected void setupReducer(String tableName, org.apache.hadoop.mapreduce.Job job, MRArgOptions options)
setupReducer
in class CorpusTableMR
public static <T> void emitContext(String focus, edu.ucla.sspace.basis.BasisMapping<T,String> basis, edu.ucla.sspace.vector.SparseDoubleVector vector, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |