Thank you for checking
I will share with you the prodigy.json
I have set.
The blocks that I tried to incorporate into review.py
have a similar structure.
{
"global_css": ".prodigy-content{text-align: left} .prodigy-text-input",
"validate": "True",
"view_id": "blocks",
"blocks": [
{
"view_id": "diff",
"text": ""
},
{
"view_id": "html",
"html_template": "<small>[校正前]<br>{{original}}<br>[校正後]<br>{{revised}}<br>[choice]<br>{{choice}}<br>[comments]{{comments}}</small>"
},
{
"view_id": "choice",
"text": ""
},
{
"view_id": "text_input",
"field_label": "comment",
"field_id": "comment",
"field_rows": 3
}
],
"instructions": "/data/sugino/kousei/annotation/aap/02_annotation/scr/instructions.html"
}
Yes, that's right. I will share with you the contents of the dataset to be reviewed. original
,revised
,choice
, comments
, comment
key etc. are my own settings.
{
"original": "This are a sample.",
"revised": "This is a sample.",
"domain": "ai",
"text": "This are a sample.\n\nThis is a sample.",
"added": "This are a sample.",
"removed": "This is a sample.",
"meta": {
"pred_label": "error",
"score": "0.938"
},
"label": null,
"options": [
{
"id": 1,
"text": "error"
},
{
"id": 2,
"text": "Probably error"
},
{
"id": 3,
"text": "not error"
},
{
"id": 4,
"text": "Probably not error"
}
],
"_input_hash": 2100084490,
"_task_hash": -1640287291,
"_view_id": "blocks",
"accept": [
3
],
"config": {
"choice_style": "single"
},
"comment": "Neither is wrong.",
"answer": "accept",
"_timestamp": 1639536500,
"_annotator_id": "dataset-annotator1",
"_session_id": "dataset-annotator1",
"choice": "annotator1 : [3]\nannotator2 : [2]\nannotator3 : [1]\nannotator4 : [3]\nannotator5 : [3]\n",
"comments": "annotator1:Neither is wrong.\n"
}