This is an automated email from the ASF dual-hosted git repository.

joern pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/master by this push:
     new 1929834  OPENNLP-1165: Add id to overlapping annotation exception in 
NameSample
1929834 is described below

commit 1929834c27a931ab505f7a389d38fafd10331d8b
Author: thygesen <[email protected]>
AuthorDate: Mon Dec 4 10:34:33 2017 +0100

    OPENNLP-1165: Add id to overlapping annotation exception in NameSample
---
 opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java 
b/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java
index a1e1d07..fb6b33b 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java
@@ -76,8 +76,8 @@ public class NameSample implements Serializable {
     if (this.names.size() > 1) {
       for (int i = 1; i < this.names.size(); i++) {
         if (this.names.get(i).getStart() < this.names.get(i - 1).getEnd()) {
-          throw new RuntimeException(String.format("name spans %s and %s are 
overlapped",
-              this.names.get(i - 1), this.names.get(i)));
+          throw new RuntimeException(String.format("name spans %s and %s are 
overlapped in file: %s",
+              this.names.get(i - 1), this.names.get(i), id));
         }
       }
     }

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to