Replies: 2 comments 1 reply
-
Ideally, the QuestionAnsweringTranslator should take To keep backward compatibility, we can implement a hacky solution to still return String in a json encoded format. Will push a PR soon. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Regarding this Bert QAInference example: https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/inference/nlp/BertQaInference.java
Is it somehow possible that the answer also returns the score?
Like in the transformer pipeline?
{'score': 0.28, 'start': 10, 'end': 95, 'answer': 'that is the answer'}
Beta Was this translation helpful? Give feedback.
All reactions