predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From infoquest india <infoquestin...@gmail.com>
Subject Issue while deploying OpenNLP Sentiment Analysis Template
Date Mon, 20 Feb 2017 06:12:15 GMT
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

Mime
View raw message