Scifabric / pybossa

PYBOSSA is the ultimate crowdsourcing framework (aka microtasking) to analyze or enrich data that can't be processed by machines alone.
http://pybossa.com
GNU Affero General Public License v3.0
745 stars 268 forks source link

Pre populate tasks' answers #1977

Closed eyast closed 4 years ago

eyast commented 4 years ago

Is it possible to pre-populate the answers of tasks? We've used an ML model to transcribe text, and the accuracy is very low. we want to now use Pybossa to distribute tasks for people to "fix" the transcription. if we were to create a new task presenter for the job, would it be possible to prepopulate a text field with what we've already modeled in ML? Akin to the PDF transcriber, but without an empty text box per task

teleyinex commented 4 years ago

Hi!

Yes, you can pre-populate the tasks with any information that you want. The task.info field is a JSONB object within the PostgreSQL database, so you can have something like this:

{
"options": [ {"text": "option 1", "val": "value1"}, {"text": "option 2", "val": "value2"}]
}

Then you can present the user with different options (like a select or radio button) based on that options field.

I hope this helps!