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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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