Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ dataset_object = client.create_dataset_object(
],
"attributes": [
{
"type": "text",
Copy link
Author

Choose a reason for hiding this comment

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

必須のパラメータであり、現状のサンプルコードではエラーが出てしまう。

"value": "Scottish field",
"key": "kind"
}
Expand All @@ -2532,6 +2533,32 @@ dataset_object = client.create_dataset_object(
)
```

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'.

```python
dataset_object = client.create_dataset_object(
dataset="YOUR_DATASET_NAME",
name="brushwood_dog.jpg",
file_path="./brushwood_dog.jpg",
tags=["dog"], # max 5 tags per dataset object.
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
annotations=[
{
"type": "classification",
"value": "classification",
"points": [],
"attributes": [
{
"type": "text",
"value": "Scottish field",
"key": "kind"
}
]
}
]
)
```

#### Response Dataset Object

See API docs for details.
Expand Down