Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Not A Problem
-
2.0.0
-
None
-
None
Description
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/src/test/java/opennlp/dl/doccat/DocumentCategorizerDLEval.java, and I got the same error.
Thank you very much for your efforts.
Aws khadour