[
https://issues.apache.org/jira/browse/OPENNLP-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Wiesner updated OPENNLP-1851:
------------------------------------
Component/s: Deep Learning
> Fix: DocumentCategorizerDLEval.categorizeFailsLoudlyOnFailure after
> OPENNLP-1845
> --------------------------------------------------------------------------------
>
> Key: OPENNLP-1851
> URL: https://issues.apache.org/jira/browse/OPENNLP-1851
> Project: OpenNLP
> Issue Type: Bug
> Components: Deep Learning
> Reporter: Kristian Rickert
> Assignee: Kristian Rickert
> Priority: Minor
> 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)