You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jz...@apache.org on 2022/10/17 20:26:07 UTC

[opennlp] branch master updated: OPENNLP-1372: ConlluWordLine to include line text in invalid number of fields exception (#425)

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

jzemerick 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 8069a734 OPENNLP-1372: ConlluWordLine to include line text in invalid number of fields exception (#425)
8069a734 is described below

commit 8069a734a3e909acd76213c7a4388b186f0ab57d
Author: Jeff Zemerick <13...@users.noreply.github.com>
AuthorDate: Mon Oct 17 16:26:01 2022 -0400

    OPENNLP-1372: ConlluWordLine to include line text in invalid number of fields exception (#425)
---
 .../src/main/java/opennlp/tools/formats/conllu/ConlluWordLine.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opennlp-tools/src/main/java/opennlp/tools/formats/conllu/ConlluWordLine.java b/opennlp-tools/src/main/java/opennlp/tools/formats/conllu/ConlluWordLine.java
index 4e626bed..4aee16d2 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/formats/conllu/ConlluWordLine.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/formats/conllu/ConlluWordLine.java
@@ -51,7 +51,7 @@ public class ConlluWordLine {
     String[] fields = line.split("\t");
 
     if (fields.length != 10) {
-      throw new InvalidFormatException("Line must have exactly 10 fields");
+      throw new InvalidFormatException("Line [" + line + "] must have exactly 10 fields");
     }
 
     id = fields[0];