Return-Path: X-Original-To: apmail-ctakes-commits-archive@www.apache.org Delivered-To: apmail-ctakes-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93A0D11AAB for ; Thu, 11 Sep 2014 15:10:53 +0000 (UTC) Received: (qmail 84403 invoked by uid 500); 11 Sep 2014 15:10:53 -0000 Delivered-To: apmail-ctakes-commits-archive@ctakes.apache.org Received: (qmail 84366 invoked by uid 500); 11 Sep 2014 15:10:53 -0000 Mailing-List: contact commits-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list commits@ctakes.apache.org Received: (qmail 84356 invoked by uid 99); 11 Sep 2014 15:10:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 15:10:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 15:10:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4C6A023889D5; Thu, 11 Sep 2014 15:10:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1624315 - in /ctakes/sandbox/ctakes-wsd: pom.xml src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java Date: Thu, 11 Sep 2014 15:10:32 -0000 To: commits@ctakes.apache.org From: dligach@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140911151032.4C6A023889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dligach Date: Thu Sep 11 15:10:31 2014 New Revision: 1624315 URL: http://svn.apache.org/r1624315 Log: updated pom to latest ctakes snapshot; removed unused code from Analyze.java Modified: ctakes/sandbox/ctakes-wsd/pom.xml ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java Modified: ctakes/sandbox/ctakes-wsd/pom.xml URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/pom.xml?rev=1624315&r1=1624314&r2=1624315&view=diff ============================================================================== --- ctakes/sandbox/ctakes-wsd/pom.xml (original) +++ ctakes/sandbox/ctakes-wsd/pom.xml Thu Sep 11 15:10:31 2014 @@ -28,7 +28,7 @@ org.apache.ctakes ctakes - 3.1.2-SNAPSHOT + 3.2.1-SNAPSHOT Modified: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java?rev=1624315&r1=1624314&r2=1624315&view=diff ============================================================================== --- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java (original) +++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/wsd/pipelines/Analyze.java Thu Sep 11 15:10:31 2014 @@ -14,7 +14,6 @@ import org.apache.ctakes.typesystem.type import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation; import org.apache.uima.analysis_engine.AnalysisEngine; import org.apache.uima.analysis_engine.AnalysisEngineProcessException; -import org.apache.uima.cas.CASException; import org.apache.uima.cas.FeatureStructure; import org.apache.uima.collection.CollectionReader; import org.apache.uima.jcas.JCas; @@ -73,13 +72,6 @@ public class Analyze { @Override public void process(JCas jCas) throws AnalysisEngineProcessException { - JCas goldView; - try { - goldView = jCas.getView(GOLD_VIEW_NAME); - } catch (CASException e) { - throw new AnalysisEngineProcessException(e); - } - for (EventMention mention : Lists.newArrayList(JCasUtil.select(jCas, EventMention.class))) { // for some reason in gold begin offset for some mentions is a huge number if(mention.getBegin() > jCas.getDocumentText().length()) {