Confidence 0 after finetuning for empty recognition #1996
hanshupe007
started this conversation in
General
Replies: 1 comment 4 replies
-
|
Hi @hanshupe007 👋 If it's "real" empty then it will be 0 --> word_values = [
"".join(self._embedding[idx] for idx in encoded_seq).split("<eos>")[0]
for encoded_seq in out_idxs.cpu().numpy()
]
# compute probabilties for each word up to the EOS token
probs = [
preds_prob[i, : len(word)].clip(0, 1).mean().item() if word else 0.0 for i, word in enumerate(word_values)
] |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
I fine tuned parseq and other models to be able to recognize empty "" text, like a blank box. The prediction works as expected but for some reason the confidence score is always 0. Does anyone know why?
I know the usual way would be to use the detection model, but I do the detection separately.
Beta Was this translation helpful? Give feedback.
All reactions