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 3836E200B82 for ; Fri, 16 Sep 2016 23:47:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36ABB160AC4; Fri, 16 Sep 2016 21:47:21 +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 48D57160AB7 for ; Fri, 16 Sep 2016 23:47:20 +0200 (CEST) Received: (qmail 34321 invoked by uid 500); 16 Sep 2016 21:47:19 -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 34310 invoked by uid 99); 16 Sep 2016 21:47:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2016 21:47:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 07EC7C03BC for ; Fri, 16 Sep 2016 21:47:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rbZ_I7MtKw_b for ; Fri, 16 Sep 2016 21:47:17 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 436A25F4E3 for ; Fri, 16 Sep 2016 21:47:17 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 988D6E002B for ; Fri, 16 Sep 2016 21:47:16 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5F6EC3A0248 for ; Fri, 16 Sep 2016 21:47:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1761099 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java Date: Fri, 16 Sep 2016 21:47:15 -0000 To: commits@ctakes.apache.org From: clin@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160916214716.5F6EC3A0248@svn01-us-west.apache.org> archived-at: Fri, 16 Sep 2016 21:47:21 -0000 Author: clin Date: Fri Sep 16 21:47:15 2016 New Revision: 1761099 URL: http://svn.apache.org/viewvc?rev=1761099&view=rev Log: add skip write option for deepPhe docTimeRel evaluator. Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java?rev=1761099&r1=1761098&r2=1761099&view=diff ============================================================================== --- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java (original) +++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventDocTimeRelDeepPhe.java Fri Sep 16 21:47:15 2016 @@ -85,6 +85,9 @@ Evaluation_ImplBase testItems = Arrays.asList(2, 21); // possibleParams.add(defaultParams); + ParameterSettings params = allParams; try{ @@ -138,6 +142,7 @@ Evaluation_ImplBase loggers = Maps.newHashMap(); // protected boolean printRelations = false; @@ -203,15 +209,17 @@ Evaluation_ImplBase svmOptions = new ArrayList<>(); svmOptions.add("-c"); svmOptions.add(""+params.svmCost); // svm cost @@ -247,15 +255,15 @@ Evaluation_ImplBase eventMentionToSpan = AnnotationStatistics.annotationToSpan(); Map> propertyGetters; propertyGetters = new HashMap<>(); @@ -364,7 +372,7 @@ Evaluation_ImplBase cTakesMentions = new ArrayList<>(); -// cTakesMentions.addAll(JCasUtil.select(systemView, EventMention.class)); -// for (IdentifiedAnnotation cTakesMention : cTakesMentions) { -// cTakesMention.removeFromIndexes(); -// } + // List cTakesMentions = new ArrayList<>(); + // cTakesMentions.addAll(JCasUtil.select(systemView, EventMention.class)); + // for (IdentifiedAnnotation cTakesMention : cTakesMentions) { + // cTakesMention.removeFromIndexes(); + // } // copy gold Mentions and Modifiers to the system view List goldMentions = new ArrayList<>(); @@ -402,7 +410,7 @@ Evaluation_ImplBase cTakesMentions = new ArrayList<>(); cTakesMentions.addAll(JCasUtil.select(systemView, EventMention.class)); @@ -456,7 +464,7 @@ Evaluation_ImplBase> coveredMap = - JCasUtil.indexCovered(jCas, EventMention.class, EventMention.class); + JCasUtil.indexCovered(jCas, EventMention.class, EventMention.class); // copy covered event's DocTimeRel to the gold event for (EventMention aEvent: JCasUtil.select(systemView, EventMention.class)){ @@ -486,8 +494,8 @@ Evaluation_ImplBase cTakesMentions = new ArrayList<>(); cTakesMentions.addAll(JCasUtil.select(systemView, EventMention.class)); for (EventMention aEvent: cTakesMentions){