Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. 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')

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.0.0
    • None
    • Deep Learning
    • 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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            karam karam madi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment