Skip to content

Roberta ONNX as classifier #3566

Answered by frankfliu
lordofthejars asked this question in Q&A
Discussion options

You must be logged in to vote

@lordofthejars

I tried 0.29.0, it works for me:

  1. I exported the model using djl-convert:
djl-convert -f OnnxRuntime -m "guishe/nuner-v1_orgs" 
  1. And I use the following code in java:
        String text = "Foreign governments may be spying on your smartphone notifications, senator says. Washington (CNN) — Foreign governments have reportedly attempted to spy on iPhone and Android users through the mobile app notifications they receive on their smartphones - and the US government has forced Apple and Google to keep quiet about it, according to a top US senator. Through legal demands sent to the tech giants, governments have allegedly tried to force Apple and Google to turn over sensitive …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@lordofthejars
Comment options

@frankfliu
Comment options

Answer selected by lordofthejars
@lordofthejars
Comment options

@lordofthejars
Comment options

@frankfliu
Comment options

@frankfliu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants