Skip to content

Conversation

@ovalle15
Copy link
Contributor

  1. Replace data row ids with global keys
  2. Replace create_data_row with create_data_rows
  3. Added task methods for failed data rows
  4. Updated text explanations
  5. Added data class for creating labels
  6. Added new supported annotations (NER annotation type for pdf)
  7. Added newly supported relationship annotation to image notebook
  8. Refactor video notebook to include annotation types

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ovalle15 ovalle15 merged commit f926f5a into develop Mar 17, 2023
@ovalle15 ovalle15 deleted the ao_global_keys_notebooks branch March 17, 2023 19:18
{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #6.      global_keys=global_key, # Paginated collection of data row objects, list of data row ids or global keys

global_keys=[global_key]


Reply via ReviewNB

],
"cell_type": "markdown"
},
{
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #3.        global_keys=global_key, # DataRow objects, a list of global keys or data row ids are supported

global_keys=[global_key]


Reply via ReviewNB

],
"cell_type": "markdown"
},
{
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #1.    label_ndjson_method2 = []

Should we rename this to just label_ndjson or annotations_ndjson ?


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure !

],
"cell_type": "markdown"
},
{
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #3.      global_keys=global_key, # A list of data rows or data row ids

global_keys=[global_key]


Reply via ReviewNB

"cell_type": "markdown"
},
{
"metadata": {},
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #6.      global_keys=global_key, # A list of data rows or data row ids

global_keys=[global_key]


Reply via ReviewNB

{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #1.    model_run.upsert_data_rows(global_keys=global_key)

global_keys=[global_key]


Reply via ReviewNB

{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably good to remove this output


Reply via ReviewNB

{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #1.    model_run.upsert_data_rows(global_keys=global_key)

Might be better practice to pass in a list of global_keys here, since the function accepts a list

model_run.upsert_data_rows(global_keys=[global_key])

Reply via ReviewNB

{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as before, let's pass in a list of global_keys by wrapping global_key in a list: [global_key] .

Also, we should update the comment next to it


Reply via ReviewNB

{
"metadata": {},
"source": [
"!pip install -q 'labelbox[data]'"
Copy link
Contributor

@kkim-labelbox kkim-labelbox Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #2.    set_feature_schema_id(features_schema, bbox_with_radio_subclass_annotation_ndjson)

Do we need these steps, if we can reference the feature schemas by name?


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not been able to do this by name - We discussed at some point but I don't think we investigated further.

" \"first-batch-convo-demo\", # Each batch in a project must have a unique name\n",
" [data_row.uid], # Paginated collection of data row objects\n",
" 5 # priority between 1(Highest) - 5(lowest)\n",
" global_keys=global_key, # Paginated collection of data row objects, list of data row ids or global keys\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one might need the array wrapping update too [global_key]

" \"first-batch-text-demo\", # Each batch in a project must have a unique name\n",
" dataset.export_data_rows(), # A list of data rows or data row ids\n",
" 5 # priority between 1(Highest) - 5(lowest)\n",
" global_keys=global_key, # A list of data rows or data row ids\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noting this spot too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants