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

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by net.sf.eos.hadoop.mapred.EosDocumentSupportMapReduceBase
          extended by net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerReducer
All Implemented Interfaces:
Closeable, JobConfigurable, Reducer<Text,Text,Text,Text>

public class DictionaryBasedEntityRecognizerReducer
extends EosDocumentSupportMapReduceBase
implements Reducer<Text,Text,Text,Text>


Field Summary
static String META_FIELD_FOR_SEPARATION_CONFIG_NAME
          The meta field for separation.
 
Constructor Summary
DictionaryBasedEntityRecognizerReducer()
           
 
Method Summary
 void close()
           
 void configure(JobConf conf)
           
 void reduce(Text key, Iterator<Text> valuesIterator, OutputCollector<Text,Text> outputCollector, Reporter reporter)
           
 
Methods inherited from class net.sf.eos.hadoop.mapred.EosDocumentSupportMapReduceBase
eosDocumentToText, getSerializer, textToEosDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_FIELD_FOR_SEPARATION_CONFIG_NAME

@ConfigurationKey(description="Metakeys, comma delimited, for separation.")
public static final String META_FIELD_FOR_SEPARATION_CONFIG_NAME
The meta field for separation. Default value is EosDocument.ID_META_KEY.

See Also:
Constant Field Values
Constructor Detail

DictionaryBasedEntityRecognizerReducer

public DictionaryBasedEntityRecognizerReducer()
Method Detail

reduce

public void reduce(Text key,
                   Iterator<Text> valuesIterator,
                   OutputCollector<Text,Text> outputCollector,
                   Reporter reporter)
            throws IOException
Specified by:
reduce in interface Reducer<Text,Text,Text,Text>
Throws:
IOException

configure

public void configure(JobConf conf)
Specified by:
configure in interface JobConfigurable
Overrides:
configure in class EosDocumentSupportMapReduceBase

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class EosDocumentSupportMapReduceBase
Throws:
IOException


Copyright © 2008. All Rights Reserved.