Skip to content

Commit b972dc6

Browse files
Merge pull request #219 from fastlabel/feature/update-dataset-readme
update readme
2 parents d27e575 + 8729250 commit b972dc6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,6 +2512,7 @@ dataset_object = client.create_dataset_object(
25122512
],
25132513
"attributes": [
25142514
{
2515+
"type": "text",
25152516
"value": "Scottish field",
25162517
"key": "kind"
25172518
}
@@ -2532,6 +2533,32 @@ dataset_object = client.create_dataset_object(
25322533
)
25332534
```
25342535

2536+
If you would like to create a new dataset object with classification type annotations, please pass empty points and value of the annotation named 'classification'.
2537+
2538+
```python
2539+
dataset_object = client.create_dataset_object(
2540+
dataset="YOUR_DATASET_NAME",
2541+
name="brushwood_dog.jpg",
2542+
file_path="./brushwood_dog.jpg",
2543+
tags=["dog"], # max 5 tags per dataset object.
2544+
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
2545+
annotations=[
2546+
{
2547+
"type": "classification",
2548+
"value": "classification",
2549+
"points": [],
2550+
"attributes": [
2551+
{
2552+
"type": "text",
2553+
"value": "Scottish field",
2554+
"key": "kind"
2555+
}
2556+
]
2557+
}
2558+
]
2559+
)
2560+
```
2561+
25352562
#### Response Dataset Object
25362563

25372564
See API docs for details.

0 commit comments

Comments
 (0)