Kristian Rickert created OPENNLP-1851:
-----------------------------------------
Summary: 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
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)