Hello !
First of all, bravo on prodigy, the tool looks amazing and I will, for sure, use it a lot in the future.
I have a question about how to annotate an html snippet, using the choice interface.
I have a case where I want to select between 3 choices for a snippet.
I have designed a jsonl looking like this :
{}
{"html": ">iframe src='prodigy ai – Qwant Search' width='990' height='950'>","text":"prodigy ai", "answer": " ","options": [{"id": 1, "text": "UP"},{"id":0, "text": "Down"},{"id":2, "text": "OK"}]}
{"html": ">iframe src='prodigy – Qwant Search' width='990' height='950'>","text":"prodigy", "answer": " ","options": [{"id": 1, "text": "UP"},{"id":0, "text": "Down"},{"id":2, "text": "OK"}]}
{"html": ">iframe src='prodigy . ai – Qwant Search' width='990' height='950'>","text":"prodigy.ai", "answer": " ","options": [{"id": 1, "text": "UP"},{"id":0, "text": "Down"},{"id":2, "text": "OK"}]}
( the >iframe is on purpose <iframe would try to render inside the post otherwise).
I made as a starter a custom recipe, in order to visualise the iframe and the choices :
@recipe('ad',dataset=recipe_args['dataset'],source=recipe_args['source'], label=recipe_args['label'])
def addresse(dataset,source,label=''):
return {
'dataset': dataset,
'view_id':'choice',
'stream': JSONL(source),
'update': None,
'batch_size': 25,
'progress': None,
'config': {'lang': 'fr', 'labels': label}
}
However, when i launch my recipe, I can see the choices, but I can't see the html being displayed.
Am i doing something wrong?
And I have a bonus question, as I have seen your image segmentation example, do you think it's doable to do the same with html objects?
Thank you,
Robin