public static class EFMarginalCounter.MarginalMapper extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.IntWritable,PhrasePair,org.apache.hadoop.io.IntWritable,IndexedFloatArray>
| Constructor and Description |
|---|
EFMarginalCounter.MarginalMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IndexedFloatArray |
makeIFA(float[] map,
int max) |
void |
map(org.apache.hadoop.io.IntWritable key,
PhrasePair value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.IntWritable,IndexedFloatArray> output,
org.apache.hadoop.mapred.Reporter reporter) |
public void map(org.apache.hadoop.io.IntWritable key,
PhrasePair value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.IntWritable,IndexedFloatArray> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
map in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.IntWritable,PhrasePair,org.apache.hadoop.io.IntWritable,IndexedFloatArray>IOExceptionpublic IndexedFloatArray makeIFA(float[] map, int max)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapred.MapReduceBaseCopyright © 2015. All rights reserved.