If you are publishing this template, can you please let me know where I can find it?
Thanks Gustavo On Mon, Feb 20, 2017 at 5:35 AM, infoquest india <[email protected]> wrote: > Worked... Thanks for help. Pat & You are doing a really nice work here. > Let me run if its ok, i can create pull request with working template. > > Thanks > Gaurav > http://www.infoquestsolutions.com > Turning Imagination To Reality > Skype:- infoquestsolutions > Gtalk:- infoquestindia > > On Mon, Feb 20, 2017 at 3:17 PM, Kenneth Chan <[email protected]> wrote: >> >> 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/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 >>>>> >>>> >>> >> >
