Someone recently asked me for a code example of how to to write a custom pipeline transformer in Java
Enjoy, Share Andy https://github.com/AEDWIP/Spark-Naive-Bayes-text-classification/blob/260a6b9 b67d7da42c1d0f767417627da342c8a49/src/test/java/com/santacruzintegration/spa rk/SparseVectorToLogicalTranformer.java#L52 https://github.com/AEDWIP/Spark-Naive-Bayes-text-classification/blob/260a6b9 b67d7da42c1d0f767417627da342c8a49/src/test/java/com/santacruzintegration/spa rk/NaiveBayesStanfordExampleTest.java#L207