Re: how to extend java transformer from Scala UnaryTransformer ?

2016-01-02 Thread Chris Fregly
Looks like you're not registering the input param correctly. Below are examples from the Spark Java source that show how to build a custom transformer. Note that a Model is a Transformer. Also, that chimpler/wordpress/naive bayes example is a bit dated. I tried to implement it a while ago, but

how to extend java transformer from Scala UnaryTransformer ?

2016-01-01 Thread Andy Davidson
I am trying to write a trivial transformer I use use in my pipeline. I am using java and spark 1.5.2. It was suggested that I use the Tokenize.scala class as an example. This should be very easy how ever I do not understand Scala, I am having trouble debugging the following exception. Any help