Looking at the documentation, I see that there is an argument to "accept empty", but with textcat.correct, an option is often pre-selected. These are radio buttons (mutually-exclusive), and I don't see a way to deselect once one is clicked on. I tried pressing "0" but that just selects option "10" (makes sense).
I'm using the -ae and -UP (model in-loop) arguments.
There's not really a way to undo the exclusive selection from the model. Honestly, I think this case was not contemplated when adding -ae to textcat.teach.
One thing you could do is to set the thresholdparameter to ensure that the answers are pre-selected with a high enough confidence only.
Another option would be to flag or reject/ignore these examples and handle them in postprocessing.
Yet another option would be do add an extra button for resetting the radio buttons via custom javascript. For simplicity I put all the code in javascript (you could of course get fancier and add a styled html block instead).
This should do the job, though:
Thank you Magda! Hopefully the button will be implemented in a future release- it looks like most of the work is done already. Setting a higher confidence threshold is a good option too.
I had to put the undo_button.js file in ./javascript, so given the "javascript_dir" /prodigy, the undo_button.js file lives in /prodigy/javscript/undo_button.js.
I couldn't find anything about this in the Prodigy docs but may have missed it.
Given your undo_button.js lives in the directory /prodigy, the path /prodigyshould work as a value of javascript_dir There should not be a need to add a javascript folder specifically, it should be a folder with the relevant js files only, though.
Here we mention the different options to inject js: Custom Interfaces · Prodigy · An annotation tool for AI, Machine Learning & NLP