annotation_specs add_attribute#

Description#

アノテーション仕様に非選択肢系の属性を追加します。

Examples#

以下のコマンドは、"car", "bus"ラベルにチェックボックス属性を追加します。

$ annofabcli annotation_specs add_attribute \
 --project_id prj1 \
 --attribute_type flag \
 --attribute_name_en unclear \
 --label_name_en car bus

--attribute_type に指定できる値#

--attribute_type には、以下の非選択肢系属性を指定できます。

  • flag : チェックボックス

  • integer : 整数

  • text : 自由記述(1行)

  • comment : 自由記述(複数行)

  • tracking : トラッキングID

  • link : アノテーションリンク

Usage Details#

アノテーション仕様に非選択肢系の属性を追加します。選択肢系属性の追加は add_choice_attribute コマンドを使用してください。

usage: annofabcli annotation_specs add_attribute [-h] [--yes]
                                                 [--endpoint_url ENDPOINT_URL]
                                                 [--annofab_user_id ANNOFAB_USER_ID]
                                                 [--annofab_password ANNOFAB_PASSWORD]
                                                 [--annofab_pat ANNOFAB_PAT]
                                                 [--logdir LOGDIR]
                                                 [--disable_log] [--debug] -p
                                                 PROJECT_ID --attribute_type
                                                 {comment,flag,integer,link,text,tracking}
                                                 --attribute_name_en
                                                 ATTRIBUTE_NAME_EN
                                                 [--attribute_id ATTRIBUTE_ID]
                                                 [--attribute_name_ja ATTRIBUTE_NAME_JA]
                                                 (--label_name_en LABEL_NAME_EN [LABEL_NAME_EN ...] | --label_id LABEL_ID [LABEL_ID ...])
                                                 [--comment COMMENT]

Named Arguments#

-p, --project_id

対象のプロジェクトのproject_idを指定します。

--attribute_type

Possible choices: comment, flag, integer, link, text, tracking

追加する属性の種類。 * flag : チェックボックス * integer : 整数 * text : 自由記述(1行) * comment : 自由記述(複数行) * tracking : トラッキングID * link : アノテーションリンク

--attribute_name_en

追加する属性の英語名。

--attribute_id

追加する属性の属性ID。未指定の場合はUUIDv4を自動生成します。

--attribute_name_ja

追加する属性の日本語名。

--label_name_en

属性を追加する対象ラベルの英語名。複数指定できます。 file:// を先頭に付けると一覧ファイルを指定できます。

--label_id

属性を追加する対象ラベルのlabel_id。複数指定できます。 file:// を先頭に付けると一覧ファイルを指定できます。

--comment

アノテーション仕様の変更内容を説明するコメント。未指定の場合、自動でコメントが生成されます。

global optional arguments#

--yes

処理中に現れる問い合わせに対して、常に yes と回答します。

--endpoint_url

Annofab WebAPIのエンドポイントを指定します。

Default: 'https://annofab.com'

--annofab_user_id

Annofabにログインする際のユーザーID

--annofab_password

Annofabにログインする際のパスワード

--annofab_pat

Annofabにログインする際のパーソナルアクセストークン

--logdir

ログファイルを保存するディレクトリを指定します。

Default: .log

--disable_log

ログを無効にします。

--debug

HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。