Skip to content

wrapper.put_annotation_for_simple_annotation_jsonに、アノテーション仕様V2版を指定できるようにする #313

New issue

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

Merged
merged 24 commits into from
May 24, 2021

Conversation

yuji38kwmt
Copy link
Collaborator

@yuji38kwmt yuji38kwmt commented May 23, 2021

アノテーション仕様のV1版を使用する場合(従来と同様の方法)

        annotation_specs_v1, _ = service.api.get_annotation_specs(project_id, query_params={"v": "1"})
        service.wrapper.put_annotation_for_simple_annotation_json(
            project_id, task_id, input_data_id, simple_annotation_json
            annotation_specs_labels=annotation_specs_v1["labels"],
        )

アノテーション仕様のV2版を使用する場合(新規)

        annotation_specs_v2, _ = service.api.get_annotation_specs(project_id, query_params={"v": "2"})
        service.wrapper.put_annotation_for_simple_annotation_json(
            project_id, task_id, input_data_id, simple_annotation_json
            annotation_specs_labels=annotation_specs_v2["labels"],
            annotation_specs_additionals=annotation_specs_v2["additionals"],
        )

@yuji38kwmt yuji38kwmt merged commit 1bce988 into master May 24, 2021
@yuji38kwmt yuji38kwmt deleted the update-specs branch May 24, 2021 13:26
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.

1 participant