would you try change EmptyParams() to new EmptyEvaluationInfo() ?
On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <[email protected]> wrote: > Hi > > I am trying to convert OpenNLP Sentiment Analysis Template to work with > prediction-0.10.0-incubating after replacing prediction.io with > org.apache.predictionio > everywhere I am getting below error while building. Please help me solving > this issue. > > Compiling 16 Scala sources to /home/apache-predictionio-0. > 10.0-incubating/PredictionIO-0.10.0-incubating/templates/ > Sentiment/target/scala-2.10/classes... > > [INFO] [Console$] [error] /home/apache-predictionio-0. > 10.0-incubating/PredictionIO-0.10.0-incubating/templates/ > Sentiment/src/main/scala/io/prediction/opennlp/engine/DataSource.scala:39: > type mismatch; > > [INFO] [Console$] [error] found : org.apache.predictionio. > controller.EmptyParams > > [INFO] [Console$] [error] required: org.apache.predictionio. > controller.EmptyEvaluationInfo > > [INFO] [Console$] [error] (which expands to) org.apache.predictionio. > controller.SerializableClass > > [INFO] [Console$] [error] Seq((trainingData, EmptyParams(), > sc.parallelize(qna))) > > [INFO] [Console$] [error] ^ > > [INFO] [Console$] [error] one error found > > [INFO] [Console$] [error] (compile:compile) Compilation failed > > [INFO] [Console$] [error] Total time: 11 s, completed Feb 20, 2017 > 10:29:20 AM > > [ERROR] [Console$] Return code of previous step is 1. Aborting. > > > > > Thanks > Gaurav > >
