Hi all,
I recently started playing around with Prodigy and I must say that I am really enjoying myself. The sheer volume of available recipes, online documentation and active support community made creating my own annotation pipeline really easy. However, I have reached the point where I'm stuck and I wondering if I'm missing something.
The problem is that I want the annotator to be able to select the span of an entity, add links between these spans, and also provide the option for additional comments by the annotator. So essentially, I would like a recipe like the rel.manual
recipe, but with an additional comment box.
I have tried making a custom recipe using the newly added blocks
feature. In my mind, using the following block structure should get me what I want:
blocks = [
{"view_id": "relations", "span-label": ["SPAN1", "SPAN2"], "labels": ["REL1","REL2"] },
{"view_id": "text_input", "field_rows": 3, "field_label": "Add description"}
]
However, the problem is that unlike the rel.manual
recipe, the block with the relations
view ID does not allow for creating new spans. It only allows for creating relations between existing tokens. I have tried looking at different view IDs but none seem to be more applicable than what I want to achieve (see attached screenshot for the list of permitted view IDs).
So, my question is whether I am missing something. Is is possible to add a comment box to the rel.manual
recipe using the blocks
feature? Or has this not been implemented (yet)?
Also, if you have any suggestions for a different approach, I am happy to learn!
Thanks in advance!
Cheers,
Ritten