Uses of Class
org.apache.mahout.utils.nlp.collocations.llr.Gram

Packages that use Gram
org.apache.mahout.utils.nlp.collocations.llr   
 

Uses of Gram in org.apache.mahout.utils.nlp.collocations.llr
 

Methods in org.apache.mahout.utils.nlp.collocations.llr with parameters of type Gram
 int GramKeyPartitioner.getPartition(GramKey key, Gram value, int numPartitions)
           
 void LLRReducer.reduce(Gram ngram, java.util.Iterator<Gram> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.DoubleWritable> output, org.apache.hadoop.mapred.Reporter reporter)
          Perform LLR calculation, input is: k:ngram:ngramFreq v:(h_|t_)subgram:subgramfreq N = ngram total Each ngram will have 2 subgrams, a head and a tail, referred to as A and B respectively below.
 void GramKey.set(Gram gram, byte[] order)
          set the gram held by this key
 

Method parameters in org.apache.mahout.utils.nlp.collocations.llr with type arguments of type Gram
 void CollocMapper.map(org.apache.hadoop.io.Text key, StringTuple value, org.apache.hadoop.mapred.OutputCollector<GramKey,Gram> collector, org.apache.hadoop.mapred.Reporter reporter)
          Collocation finder: pass 1 map phase.
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.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.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
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
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 LLRReducer.reduce(Gram ngram, java.util.Iterator<Gram> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.DoubleWritable> output, org.apache.hadoop.mapred.Reporter reporter)
          Perform LLR calculation, input is: k:ngram:ngramFreq v:(h_|t_)subgram:subgramfreq N = ngram total Each ngram will have 2 subgrams, a head and a tail, referred to as A and B respectively below.
 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 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 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)
           
 void CollocCombiner.reduce(GramKey key, java.util.Iterator<Gram> values, org.apache.hadoop.mapred.OutputCollector<GramKey,Gram> output, org.apache.hadoop.mapred.Reporter reporter)
           
 

Constructors in org.apache.mahout.utils.nlp.collocations.llr with parameters of type Gram
Gram(Gram other)
          Copy constructor
GramKey(Gram gram, byte[] order)
          create a GramKey based on the specified Gram and order
 



Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.