edu.umd.hooka.alignment
Class EFMarginalCounter.MarginalMapper
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
edu.umd.hooka.alignment.EFMarginalCounter.MarginalMapper
- All Implemented Interfaces:
- Closeable, JobConfigurable, Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>
- Enclosing class:
- EFMarginalCounter
public static class EFMarginalCounter.MarginalMapper
- extends MapReduceBase
- implements Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>
EFMarginalCounter.MarginalMapper
public EFMarginalCounter.MarginalMapper()
map
public void map(IntWritable key,
PhrasePair value,
OutputCollector<IntWritable,IndexedFloatArray> output,
Reporter reporter)
throws IOException
- Specified by:
map in interface Mapper<IntWritable,PhrasePair,IntWritable,IndexedFloatArray>
- Throws:
IOException
makeIFA
public IndexedFloatArray makeIFA(float[] map,
int max)
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class MapReduceBase