You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2023/04/22 17:15:00 UTC

[jira] [Updated] (OPENNLP-1384) Automatically generate classifications map from model's config.json

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

Martin Wiesner updated OPENNLP-1384:
------------------------------------
    Component/s: Deep Learning

> Automatically generate classifications map from model's config.json
> -------------------------------------------------------------------
>
>                 Key: OPENNLP-1384
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1384
>             Project: OpenNLP
>          Issue Type: Task
>          Components: Deep Learning
>    Affects Versions: 2.0.0
>            Reporter: Jeff Zemerick
>            Priority: Major
>
> Automatically generate classifications map from model's config.json.
> Currently, the implementations utilizing ONNX Runtime require a Map that stores the model-assigned value along with the human readable name for each value. This map must be created manually:
> Map<Integer, String> classifications = new HashMap<>();
> classifications.put(0, "negative");
> classifications.put(1, "positive");
> How to create this map is determined by looking at the model's config.json file. This task is to have OpenNLP read the config.json file and make the map automatically instead of requiring the user to make it manually.



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