[ 
https://issues.apache.org/jira/browse/OPENNLP-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated OPENNLP-1952:
------------------------------------
    Fix Version/s: 2.5.13
                   3.0.0

> Report a CoNLL-U multiword token range without its word lines
> -------------------------------------------------------------
>
>                 Key: OPENNLP-1952
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1952
>             Project: OpenNLP
>          Issue Type: Bug
>    Affects Versions: 2.5.12, 3.0.0-M6
>            Reporter: Richard Zowalla
>            Assignee: Kristian Rickert
>            Priority: Minor
>             Fix For: 2.5.13, 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{ConlluStream.postProcessContractions}}, lines 174/178/186:
> {code:java}
> int contractionIndex = index.get\(contractionId\);
> expandedParts.add\(lines.get\(index.get\(id\)\)\);
> {code}
> A sentence with a range line {{1\-2}} but no word line {{2}} \(a damaged or 
> hand\-edited treebank\) unboxes {{null}} and throws NPE instead of 
> {{InvalidFormatException}}.
> _Fix:_ check that every id in the range exists, throw 
> {{InvalidFormatException}} naming the missing id, and add a test.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to