Methods in org.apache.mahout.utils.nlp.collocations.llr with parameters of type GramKey |
int |
GramKeyPartitioner.getPartition(GramKey key,
Gram value,
int numPartitions)
|
protected void |
CollocReducer.processSubgram(GramKey key,
java.util.Iterator<Gram> values,
org.apache.hadoop.mapred.OutputCollector<Gram,Gram> output,
org.apache.hadoop.mapred.Reporter reporter)
Sum frequencies for subgram, ngrams and deliver ngram, subgram pairs to the collector. |
protected void |
CollocReducer.processUnigram(GramKey key,
java.util.Iterator<Gram> values,
org.apache.hadoop.mapred.OutputCollector<Gram,Gram> output,
org.apache.hadoop.mapred.Reporter reporter)
Sum frequencies for unigrams and deliver to the collector |
void |
CollocReducer.reduce(GramKey key,
java.util.Iterator<Gram> values,
org.apache.hadoop.mapred.OutputCollector<Gram,Gram> output,
org.apache.hadoop.mapred.Reporter reporter)
collocation finder: pass 1 reduce phase:
given input from the mapper, |
void |
CollocCombiner.reduce(GramKey key,
java.util.Iterator<Gram> values,
org.apache.hadoop.mapred.OutputCollector<GramKey,Gram> output,
org.apache.hadoop.mapred.Reporter reporter)
|