You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "karam madi (Jira)" <ji...@apache.org> on 2022/08/15 12:46:00 UTC

[jira] [Created] (OPENNLP-1383) Unload to perform document classification inference: class [[[F cannot be cast to class [[F ([[[F and [[F are in module java.base of loader 'bootstrap')

karam madi created OPENNLP-1383:
-----------------------------------

             Summary: Unload to perform document classification inference: class [[[F cannot be cast to class [[F ([[[F and [[F are in module java.base of loader 'bootstrap')
                 Key: OPENNLP-1383
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1383
             Project: OpenNLP
          Issue Type: Bug
          Components: Deep Learning
    Affects Versions: 2.0.0
            Reporter: karam madi
         Attachments: OpenNLP issue.PNG

I am trying to infer many versions (Classification/ Sentiment Analysis) of Transformers models (fine-tuned) with the format .onnx using the OpenNLP library in java. I receive all the time the same error, which is "Unload to perform document classification inference: class [[[F cannot be cast to class [[F ([[[F and [[F are in module java. base of loader 'bootstrap')".

This was in the "Infer" function of DocumentCategorizerInference class by executing getValue() in line 30. Could you please help me to know why I am receiving this exception?

Note: I have also tried the test demo here:https://github.com/apache/opennlp/blob/master/opennlp-dl/pom.xml, and I got the same error.


Thank you very much for your efforts.

Aws khadour



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