Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3606C200C21 for ; Mon, 20 Feb 2017 10:11:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 34A16160B73; Mon, 20 Feb 2017 09:11:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 35381160B62 for ; Mon, 20 Feb 2017 10:11:38 +0100 (CET) Received: (qmail 82789 invoked by uid 500); 20 Feb 2017 09:11:37 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 82779 invoked by uid 99); 20 Feb 2017 09:11:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2017 09:11:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BC8541857AE for ; Mon, 20 Feb 2017 09:11:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xmVobcdxXJz2 for ; Mon, 20 Feb 2017 09:11:33 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7281F5F56B for ; Mon, 20 Feb 2017 09:11:33 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id x71so23895697qkb.3 for ; Mon, 20 Feb 2017 01:11:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=XAB+47EPzprT1LVmcuKpC3+XNjqfD+BP9fOFgjU4swc=; b=dzrb8Nq1K9ZbbWJK8tPN/dgPYjCFGmC8CL2zFabf3gLqGNnmuYiatJtVlkdY9uEu+P R8nLt9F0h2XUiy2RGSxsuQYahnhs1pe1c7dDirLVLVbBaiSd9umtFXdDB2ju2PO7GLbk TIXvDYoYI+gwfyyckElZV8lZTA4k2gHgQ0u2D5wLzbg8Vp5an33HEW8pNFmfLf6NRsmr M9Z3DSl07nt7f/C0FL7+c6hUrsuR1kwJalAVIG91jiUMBllSEbd9/3QUyPlgeX848Tt0 AuSWXjSiWE6Gpp4pPVjfriaYAAvw9iJ2CMmrkBFrOzDnOt5bFKvBQCR+V6LDCCQUPcFZ 5H6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XAB+47EPzprT1LVmcuKpC3+XNjqfD+BP9fOFgjU4swc=; b=PtJ4KDJ9McANZaY+tnc5s/+K6Mkt/lP0flBZ1uARxhwhz4kQ2XK+IuRLWmGWWMmVIL v1uoViOkHuPcjNu8TtenTTTknGPwDFm1JWUxZDwbGFfecxqs7C62R5pVmgyzsi8n2kQ0 LxpAYvM7k+GJGJBnwEbgYfkh8HEdYZbvjIY2aoZMEw6QogsXhw81enioTd4ZTmiFoZf2 JFnXSZVcFxptsDClny8bipXtwle6oulOT8Hey/CE4wXWV71xQbbAfQpz3h/FDdDGz/d5 /CnU1fOk+IbshmuoEM0PtmT9sl4X/kn1zRMtEKPQN7McDlry5Ae6NRdPI1KRN79WJf9W JsMQ== X-Gm-Message-State: AMke39lNCVQAzQq2y2xxH5bbgbAYUI9Rgo+CdTXmZjToXRTm7C3zzXvGYIT6FtRgjnLno5qM3vJYb7eEXrOaWw== X-Received: by 10.55.185.70 with SMTP id j67mr20854115qkf.4.1487581891231; Mon, 20 Feb 2017 01:11:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.44.45 with HTTP; Mon, 20 Feb 2017 01:11:10 -0800 (PST) In-Reply-To: References: From: infoquest india Date: Mon, 20 Feb 2017 14:41:10 +0530 Message-ID: Subject: Re: Issue while deploying OpenNLP Sentiment Analysis Template To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c043d7a3387d00548f2a69c archived-at: Mon, 20 Feb 2017 09:11:39 -0000 --94eb2c043d7a3387d00548f2a69c Content-Type: text/plain; charset=UTF-8 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 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 >> >> > --94eb2c043d7a3387d00548f2a69c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Kenneth

Thanks for responding, I hav= e 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 E= mptyEvaluationInfo

[ERROR] [Console$] [<= span class=3D"gmail-s2">error] =C2=A0 =C2= =A0 Seq((trainingData, EmptyEvaluationInfo(), sc.parallelize(qna)))<= /p>

[ERROR] [Console$] [<= span class=3D"gmail-s2">error]=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^

[ERROR] [Console$] [<= span class=3D"gmail-s2">error] one error fo= und

[ERROR] [Console$] [<= span class=3D"gmail-s2">error] (compile:compile) Compi= lation failed

[ERROR] [Console$] [<= span class=3D"gmail-s2">error] Total time: = 11 s, completed Feb 20, 2017 2:34:17 PM

[ERROR] [Console$] Return co= de of previous step is 1. Aborting.




Thanks
Gaurav


On Mon, Feb 20, 2017 at 1:13 PM, Kenneth Cha= n <kenneth@apache.org> wrote:
would you try change=C2=A0
EmptyParams() to=C2=A0= new EmptyEvaluationInfo() ?


On Sun, Feb 19, 2017 at 10:12 PM, infoquest india <<= a href=3D"mailto:infoquestindia@gmail.com" target=3D"_blank">infoquestindia= @gmail.com> wrote:
Hi=C2=A0

I am trying to convert=C2=A0OpenNLP Se= ntiment Analysis Template to work with prediction-0.10.0-incubating=C2=A0a<= wbr>fter replacing predi= ction.io with=C2=A0org.apache.predict= ionio everywhere I am getting below error while building. Please help me so= lving this issue.

Compiling 16 Scal= a 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/predicti= on/opennlp/engine/DataSource.scala:39: type mismatch;

[INFO] [Console$]= [error]=C2=A0 found =C2=A0 : org.apache.predictionio.controller.Empty= Params

[INFO] [Console$]= [error]=C2=A0 required: org.apache.predictionio.controller.EmptyEvalu= ationInfo

[INFO] [Console$]= [error] =C2=A0 =C2=A0 (which expands to)=C2=A0 org.apache.predictionio.con= troller.SerializableClass

[INFO] [Console$]= [error] =C2=A0 =C2=A0 Seq((trainingData, EmptyParams(), sc.parallelize(qna= )))

[INFO] [Console$]= [error] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^

[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



--94eb2c043d7a3387d00548f2a69c--