All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.spark.text.functions.ReduceSentenceCount Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta_spark_2
Show newest version
package org.deeplearning4j.spark.text.functions;

import org.apache.spark.api.java.function.Function2;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author jeffreytang
 */
public class ReduceSentenceCount implements Function2 {
    public AtomicLong call(AtomicLong a, AtomicLong b) {
        return new AtomicLong(a.get() + b.get());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy