File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
examples/annotation_import Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 205
205
"outputs" : [],
206
206
"source" : [
207
207
" # Create Labelbox project\n " ,
208
- " mal_project = client.create_project(name=\" conversational_mal_project\" , media_type=MediaType.Document )\n " ,
208
+ " mal_project = client.create_project(name=\" conversational_mal_project\" , media_type=MediaType.Conversational )\n " ,
209
209
" \n " ,
210
210
" # Create one Labelbox dataset\n " ,
211
211
" dataset = client.create_dataset(name=\" conversational_annotation_import_demo_dataset\" )\n " ,
220
220
" editor = next(client.get_labeling_frontends(where=LabelingFrontend.name == \" Editor\" )) # Unless using a custom editor, do not modify this\n " ,
221
221
" \n " ,
222
222
" mal_project.setup(editor, ontology_builder.asdict()) # Connect your ontology and editor to your MAL project\n " ,
223
- " mal_project.datasets.connect(dataset) # Connect your dataset to your MAL project"
223
+ " \n " ,
224
+ " mal_project.create_batch('initial-batch', [data_row]) # Create a batch to start labelling"
224
225
]
225
226
},
226
227
{
You can’t perform that action at this time.
0 commit comments