Access SpanCat predictions for a specific span #13420
Unanswered
baukearends
asked this question in
Help: Coding & Implementations
Replies: 1 comment
-
Your pipeline consists of two components,
And they both need to be run to create predictions. This is due to the "listener" pattern that is being applied:
In a nutshell, the listener will fetch results that were produced by the
works - it runs the full pipeline, while
doesn't work correctly - it will not get sensical vectors as input for the spancat component. |
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
-
After successfully training and testing my model, I would like to access predictions for specific spans. In particular, I'm looking for SpanCat predictions on the exact gold spans that may or may not be present in the docs. I'm able to run a prediction and access the 'raw' probabilities, but for all spans (not just the gold ones) the predicted span is 'no_label'. This does not seem right as I'm receiving predictions for other labels when I call the nlp pipeline, these overlap in general with the gold spans (Jaccard similarity of 0.95).
Can anybody help me understand what's the correct way to access the 'raw' probabilities?
Config:
Beta Was this translation helpful? Give feedback.
All reactions