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 A8997200B8F for ; Fri, 30 Sep 2016 21:56:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A71F5160AD9; Fri, 30 Sep 2016 19:56:37 +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 E6CED160AB4 for ; Fri, 30 Sep 2016 21:56:36 +0200 (CEST) Received: (qmail 32205 invoked by uid 500); 30 Sep 2016 19:56:36 -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 32196 invoked by uid 99); 30 Sep 2016 19:56:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 19:56:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B70D1C800E for ; Fri, 30 Sep 2016 19:56:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IdtETFnJCnAC for ; Fri, 30 Sep 2016 19:56:35 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE6A95FAC3 for ; Fri, 30 Sep 2016 19:56:34 +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 09D5FE049C for ; Fri, 30 Sep 2016 19:56:33 +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 6632E3A031D for ; Fri, 30 Sep 2016 19:56:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1762962 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java Date: Fri, 30 Sep 2016 19:56:32 -0000 To: commits@ctakes.apache.org From: dligach@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160930195633.6632E3A031D@svn01-us-west.apache.org> archived-at: Fri, 30 Sep 2016 19:56:37 -0000 Author: dligach Date: Fri Sep 30 19:56:32 2016 New Revision: 1762962 URL: http://svn.apache.org/viewvc?rev=1762962&view=rev Log: added an example Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java?rev=1762962&r1=1762961&r2=1762962&view=diff ============================================================================== --- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java (original) +++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventTimeRelPositionPrinter.java Fri Sep 30 19:56:32 2016 @@ -55,7 +55,15 @@ import com.lexicalscope.jewel.cli.CliFac import com.lexicalscope.jewel.cli.Option; /** - * Print gold standard relations and their context. + * contains(spring of 2009, drained): + * perineal abscess drained in the spring of 2009 . + * 0 1 2 3 4 5 6 7 8 + * + * time arg position: 5, 6, 7 + * event arg position: 2 + * + * distance to time: -5, -4, -3, -2, -1, 0, 0, 0, 1 + * distance to event: -2, -1, 0, 1, 2, 3, 4, 5, 6 * * @author dmitriy dligach */ @@ -350,9 +358,9 @@ public class EventTimeRelPositionPrinter } String tokensAsString = String.join(" ", tokens).replaceAll("[\r\n]", " "); - String wrtToTimeAsString = String.join(" ", positionsWrtToTime); - String wrtToEventAsString = String.join(" ", positionsWrtToEvent); + String distanceToTime = String.join(" ", positionsWrtToTime); + String distanceToEvent = String.join(" ", positionsWrtToEvent); - return tokensAsString + "|" + wrtToTimeAsString + "|" + wrtToEventAsString; + return tokensAsString + "|" + distanceToTime + "|" + distanceToEvent; } }