add `import org.apache.predictionio.controller.EmptyEvaluationInfo` and use `new EmptyEvaluationInfo()` see example here:
https://github.com/apache/incubator-predictionio-template-attribute-based-classifier/blob/develop/src/main/scala/DataSource.scala#L103 On Mon, Feb 20, 2017 at 1:11 AM, infoquest india <[email protected]> wrote: > Hi Kenneth > > Thanks for responding, I have changed EmptyEvaluationInfo(). But still > error is there. > > /home/apache-predictionio-0.10.0-incubating/PredictionIO- > 0.10.0-incubating/templates/Sentiment/src/main/scala/io/ > prediction/opennlp/engine/DataSource.scala:39: not found: value > EmptyEvaluationInfo > > [ERROR] [Console$] [error] Seq((trainingData, EmptyEvaluationInfo(), > sc.parallelize(qna))) > > [ERROR] [Console$] [error] ^ > > [ERROR] [Console$] [error] one error found > > [ERROR] [Console$] [error] (compile:compile) Compilation failed > > [ERROR] [Console$] [error] Total time: 11 s, completed Feb 20, 2017 > 2:34:17 PM > > [ERROR] [Console$] Return code of previous step is 1. Aborting. > > > > > Thanks > Gaurav > > > On Mon, Feb 20, 2017 at 1:13 PM, Kenneth Chan <[email protected]> wrote: > >> 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/Senti >>> ment/target/scala-2.10/classes... >>> >>> [INFO] [Console$] [error] /home/apache-predictionio-0.10 >>> .0-incubating/PredictionIO-0.10.0-incubating/templates/Senti >>> ment/src/main/scala/io/prediction/opennlp/engine/DataSource.scala:39: >>> type mismatch; >>> >>> [INFO] [Console$] [error] found : org.apache.predictionio.contro >>> ller.EmptyParams >>> >>> [INFO] [Console$] [error] required: org.apache.predictionio.contro >>> ller.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 >>> >>> >> >
