From c8e2f13fa47633a06fb76c6a2c32911d41757b75 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Thu, 19 Apr 2018 15:20:21 +0200 Subject: [PATCH] #1210 - Handle discontinuous segments in brat format - Retain only the first element in the discontinous segment --- .../dkpro/core/io/brat/internal/model/BratTextAnnotation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dkpro-core-io-brat-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/brat/internal/model/BratTextAnnotation.java b/dkpro-core-io-brat-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/brat/internal/model/BratTextAnnotation.java index e6780af4c3..bf407e8ee0 100644 --- a/dkpro-core-io-brat-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/brat/internal/model/BratTextAnnotation.java +++ b/dkpro-core-io-brat-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/brat/internal/model/BratTextAnnotation.java @@ -30,7 +30,8 @@ public class BratTextAnnotation "(?T[0-9]+)\\t" + "(?[a-zA-Z_][a-zA-Z0-9_\\-]+) " + "(?[0-9]+) " + - "(?[0-9]+)\\t" + + "(?[0-9]+)" + + "(;[0-9]+ [0-9]+)*\\t" + "(?.*)"); private static final String ID = "ID";