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

Kristian Rickert resolved OPENNLP-1851.
---------------------------------------
    Resolution: Fixed

> Fix: DocumentCategorizerDLEval.categorizeFailsLoudlyOnFailure after 
> OPENNLP-1845
> --------------------------------------------------------------------------------
>
>                 Key: OPENNLP-1851
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1851
>             Project: OpenNLP
>          Issue Type: Bug
>            Reporter: Kristian Rickert
>            Assignee: Kristian Rickert
>            Priority: Critical
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> h2. Fix
> Update {{DocumentCategorizerDLEval.categorizeFailsLoudlyOnFailure}}:
> * Empty/null input → expect {{IllegalArgumentException}}
> * Non-empty input ({{"hello world"}}) with {{categorizerWithoutSession()}} → 
> expect {{IllegalStateException}} for {{categorize}}, {{scoreMap}}, and 
> {{sortedScoreMap}}
> * Guard {{AbstractDL.close()}} when {{session == null}}



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

Reply via email to