allow displacy to display several kind of spans #11311
-
I would like to display several categories of spans
with It looks like it is only possible to visualize ONE category of spans. is that so? if not this is a suggestion for a change. (I would not call it improvement because there might be a reason for this way of working) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @joseberlines , Yes, the visualizer can only display one |
Beta Was this translation helpful? Give feedback.
-
Hi, What about the case where we want to visualize both gold and predicted spans in the same plot using different colors? The gold span can match the predicted one, but nevertheless, I'd like to use a different color to make the distinction. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Hi @joseberlines ,
Yes, the visualizer can only display one
spans_key
at a time. It might be tricky to distinguish between two keys in the visualization, hence the design. If you like to show both, you can combine them into a singlespans_key
(e.g.,custom_sc
) and pass that value to displaCy.