Hi, I'm trying to use the 'span-and-textcat' custom recipe(prodigy-recipes/tutorials/span-and-textcat at master · explosion/prodigy-recipes · GitHub),
and when I perform span categorization, the text(title) part of the text categorization view is being overwritten by the span labeling result.
I would like to use the text (title) for the text categorization view.
(ex) {"view_id": "choice", "text": "Please select the correct option"}
Could you please review this issue?
I'm not entirely sure what you mean with text(title)
, cold you elaborate?
I'm assuming that you're referring to the fact that the choice
view_id doesn't render the text. The reason for this is that the "spans_manual" view already renders the text. It similar to this situation described on our docs.
blocks = [
{"view_id": "spans_manual"},
{"view_id": "choice", "text": None},
]
If you really want to render some extra text, you can always add another block though. Maybe something like this?
blocks = [
{"view_id": "spans_manual"},
{"view_id": "html"},
{"view_id": "choice", "text": None},
]
You can how add an html
key to your examples, that contains a small description. Maybe something like:
{
"text": "i want to buy two large mushroom pizzas with extra cheese",
"html": "<small>Please select the correct option:</small>"
}