You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by infoquest india <in...@gmail.com> on 2017/02/20 06:12:15 UTC
Issue while deploying OpenNLP Sentiment Analysis Template
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
Re: Issue while deploying OpenNLP Sentiment Analysis Template
Posted by Gustavo Frederico <gu...@thinkwrap.com>.
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
<in...@gmail.com> 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 <ke...@apache.org> 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
>> <in...@gmail.com> 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 <ke...@apache.org> wrote:
>>>>
>>>> would you try change
>>>> EmptyParams() to new EmptyEvaluationInfo() ?
>>>>
>>>>
>>>> On Sun, Feb 19, 2017 at 10:12 PM, infoquest india
>>>> <in...@gmail.com> 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
>>>>>
>>>>
>>>
>>
>
Re: Issue while deploying OpenNLP Sentiment Analysis Template
Posted by infoquest india <in...@gmail.com>.
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 <ke...@apache.org> 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 <infoquestindia@gmail.com
> > 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/predic
>> tion/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 <ke...@apache.org> wrote:
>>
>>> would you try change
>>> EmptyParams() to new EmptyEvaluationInfo() ?
>>>
>>>
>>> On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <
>>> infoquestindia@gmail.com> 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
>>>>
>>>>
>>>
>>
>
Re: Issue while deploying OpenNLP Sentiment Analysis Template
Posted by Kenneth Chan <ke...@apache.org>.
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 <in...@gmail.com>
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 <ke...@apache.org> wrote:
>
>> would you try change
>> EmptyParams() to new EmptyEvaluationInfo() ?
>>
>>
>> On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <
>> infoquestindia@gmail.com> 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
>>>
>>>
>>
>
Re: Issue while deploying OpenNLP Sentiment Analysis Template
Posted by infoquest india <in...@gmail.com>.
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 <ke...@apache.org> wrote:
> would you try change
> EmptyParams() to new EmptyEvaluationInfo() ?
>
>
> On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <
> infoquestindia@gmail.com> 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/Sent
>> iment/target/scala-2.10/classes...
>>
>> [INFO] [Console$] [error] /home/apache-predictionio-0.10
>> .0-incubating/PredictionIO-0.10.0-incubating/templates/Sent
>> iment/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
>>
>>
>
Re: Issue while deploying OpenNLP Sentiment Analysis Template
Posted by Kenneth Chan <ke...@apache.org>.
would you try change
EmptyParams() to new EmptyEvaluationInfo() ?
On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <in...@gmail.com>
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
>
>