public class CoOccurrenceCalculator extends java.lang.Object implements org.apache.spark.api.java.function.Function<Pair<java.util.List<java.lang.String>,java.util.concurrent.atomic.AtomicLong>,CounterMap<java.lang.String,java.lang.String>>
Constructor and Description |
---|
CoOccurrenceCalculator(boolean symmetric,
org.apache.spark.broadcast.Broadcast<VocabCache<VocabWord>> vocab,
int windowSize) |
Modifier and Type | Method and Description |
---|---|
CounterMap<java.lang.String,java.lang.String> |
call(Pair<java.util.List<java.lang.String>,java.util.concurrent.atomic.AtomicLong> pair) |
public CoOccurrenceCalculator(boolean symmetric, org.apache.spark.broadcast.Broadcast<VocabCache<VocabWord>> vocab, int windowSize)
public CounterMap<java.lang.String,java.lang.String> call(Pair<java.util.List<java.lang.String>,java.util.concurrent.atomic.AtomicLong> pair) throws java.lang.Exception
call
in interface org.apache.spark.api.java.function.Function<Pair<java.util.List<java.lang.String>,java.util.concurrent.atomic.AtomicLong>,CounterMap<java.lang.String,java.lang.String>>
java.lang.Exception