Tutorials1 min read
5分でPotatoを始める
インストールから初めてのラベル付きデータまで、Potatoで最初のアノテーションプロジェクトを設定するクイックガイド。
Potato Team·
5分でPotatoを始める
アノテーションを始める準備はできましたか?このクイックチュートリアルで、5分以内にデータのラベリングを開始できます。基本を示すために、シンプルなセンチメント分析タスクを作成します。
ステップ1:Potatoのインストール
まず、pipでPotatoをインストール:
bash
pip install potato-annotationインストールを確認:
bash
potato --versionステップ2:設定の作成
以下の最小構成でconfig.yamlファイルを作成:
yaml
annotation_task_name: "Quick Start Sentiment Analysis"
# Your data file
data_files:
- data.json
# Annotation interface
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "What is the sentiment of this text?"
labels:
- Positive
- Negative
- Neutralステップ3:サンプルデータの作成
サンプルテキストを含むdata.jsonファイルを作成:
json
{"id": "1", "text": "I love this product! It's amazing!"}
{"id": "2", "text": "Terrible experience. Would not recommend."}
{"id": "3", "text": "The weather is partly cloudy today."}
{"id": "4", "text": "Best purchase I've ever made!"}
{"id": "5", "text": "This is the worst service I've encountered."}ステップ4:アノテーション開始
アノテーションサーバーを起動:
bash
potato start config.yamlブラウザでhttp://localhost:8000を開きます。アノテーションインターフェースが表示されます!
ステップ5:データのラベリング
- 任意のユーザー名でログイン(Potatoは自動的にアカウントを作成します)
- 表示されたテキストを読む
- 適切なセンチメントラベルを選択
- 「送信」をクリックして保存し、次のアイテムに進む
ステップ6:アノテーションのエクスポート
アノテーションは自動的にannotation_output/フォルダに保存されます。各アノテーターの作業は別のファイルに保存されます。
アノテーションを確認するには:
bash
cat annotation_output/your_username.jsonl次のステップ
おめでとうございます!最初のアノテーションタスクが完了しました。次のステップ:
- キーボードショートカットの追加:ホットキーでアノテーションを高速化
- インターフェースのカスタマイズ:説明、ツールチップ、バリデーションの追加
- 複数アノテーターの設定:ユーザー管理と品質管理の設定
- アノテーションタイプの探索:スパン、チェックボックス、リッカートスケールなどを試す
各機能の詳細ガイドはドキュメントをご覧いただくか、完全な設定例はショーケースをご覧ください。