Custom Review Recipe with Blocks interface

Hello,

Iám currently working on a custom review recipe for creating a gold dataset.
The Interface used for the annotations is the block Interface which displays the a text, a choice interface which displays the top 5 predictions made by the model.
In addition the interface consists of two text input fields, which is used if the all of the predictions made were false.

The Issue when trying to build the Review recipe is, that i can correctly display the review recipe with only the text and the choice interface.
However, when I try to visualize the text input fields in addition to the previous elements, do i run in to multiple errors.

Example of json task:

{
    "text": "Some Text....",
    "view_id": "choice",
    "options": options, # 4-5 choices
    "versions": [
        {"options": task1['options'],
        "accept": task1['accept'],
		"Kldb_id": task1['kldb_id'],
		"Bkz_code": task1['Bkz_code'],
		"sessions": [user1]},
		{"options": task1['options'],
        "accept": task1['accept'],
		"Kldb_id": task1['kldb_id'],
		"Bkz_code": task1['Bkz_code'],
		"sessions": [user1]}
    ]
    
}

returned config:

{
        "view_id": "review",
        "dataset": dataset,
        "stream": stream,
        "config": {
            "lang": "de",
            "blocks": blocks,
            "choice_style": "multiple",
        }
    }

Blocks defined as:

 blocks = [{'view_id': 'text'},
              {"view_id": "choice", "text": None},
              {"view_id": "text_input",
               "field_id": "kldb_id",
               "field_rows": 3,
               "field_label": "Please enter a BA 5-digit code",
               "field_suggestions": suggestions},
               {"view_id": "text_input",
               "field_id": "Bkz_code",
               "field_rows": 3,
               "field_label": "Please enter a BA 6-digit code",
               "field_suggestions": suggestions_6}]

Results in:

image1

I have already tried to change the view_id of the returned config to blocks, which gives me the desired interface with the choice block, and both text input fields but i lost the review interface by doing so. When I add {'view_id': 'review'} as a block in the blocks list. The Recipe doesn´t stop loading.

Open for anykind of help !:slight_smile:

Prodigy Version: 1.11.7
Python Version: 3.9.7

Hi there!

Could you share the custom recipe with me? That way I might be able to reproduce this locally to see what's going awry. It might be that there's an issue in your code and I'd just like to rule that out.

Just to check, your examples don't contain any hashes?

Also, could you perhaps share some background of your task? I'm curious to understand why the standard review interface does not suffice and why you've opted for the extra blocks.