We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I ran into trouble when adding pre annotations using the SDK for textareas. Here's my initial bug report: HumanSignal/label-studio#3941
I think there might still be a bug in the SDK causing the uploaded tasks pre-annotations to contain the following
"value": { "textarea": [ "... transcription ..." ] },
instead of
"value": { "text": [ "... transcription ..." ] },
The text was updated successfully, but these errors were encountered:
Could you please share your SDK code where you create pre-annotations?
Sorry, something went wrong.
Sure, it's basically these two steps:
interface = """ <View> <Audio name="audio" value="$audio" zoom="true" hotkey="ctrl+enter" /> <Header value="Provide Transcription" /> <TextArea name="transcript" toName="audio" rows="5" editable="true" maxSubmissions="1" /> </View> """ project_name = "Audio Project" ls = Client(url=labelstudio_url, api_key=labelstudio_key) project = ls.start_project( title=project_name, label_config=interface, )
project.import_tasks( df_tasks.to_dict('records'), preannotated_from_fields=['transcript'])
it won't work this way, because preannotatored from fields work for choices only. Check this video https://labelstud.io/guide/predictions.html#Prepare-pre-annotations-for-Label-Studio and prepare your annotation json following this video tutorial.
Also check this example: https://github.com/heartexlabs/label-studio-sdk/blob/master/examples/import_preannotations/import_preannotations.py#L29
No branches or pull requests
I ran into trouble when adding pre annotations using the SDK for textareas. Here's my initial bug report: HumanSignal/label-studio#3941
I think there might still be a bug in the SDK causing the uploaded tasks pre-annotations to contain the following
instead of
The text was updated successfully, but these errors were encountered: