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

org.deeplearning4j.spark.text.functions.GetSentenceCountFunction 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.Function;
import org.deeplearning4j.berkeley.Pair;

import java.util.List;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @author jeffreytang
 */
public class GetSentenceCountFunction implements Function, AtomicLong>, AtomicLong> {

    @Override
    public AtomicLong call(Pair, AtomicLong> pair) throws Exception {
        return pair.getSecond();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy