common.skipToContent

AIエンティティの作成

AIの支援でカスタムエンティティパターンを作成

AIを使用して、組み込みの認識器ではカバーされていないカスタムエンティティタイプを検出するための正規表現パターンを生成します。

AIエンティティの作成はベーシックプラン以上で利用可能です。無料プランのユーザーは、正規表現パターンを使用して手動でカスタムエンティティを作成できます。

AI Entity Creation is available on Basic plan and above. Free plan users can create custom entities manually using regex patterns.


仕組み

1

検出したいパターンの例を3〜5件提供してください

AIに検出したい内容を平易な言葉で伝えます

2

AIが例を分析し、正規表現パターンを生成します

AIがあなたの説明に基づいて正規表現パターンを作成します

3

サンプルテキストでパターンをテストします

サンプルテキストでパターンをテストし、必要に応じて調整します

4

品質指標を確認し、必要に応じて改善します

分析で使用するためにカスタムエンティティを保存します


AIエンティティの作成

ステップ1:カスタムエンティティを開く

  1. Go to Settings → Custom Entities
  2. Click Create New Entity
  3. Select AI-Assisted mode

ステップ2:パターンを説明する

検出したい内容の明確な説明を入力します。フォーマットについて具体的に記述してください。

良い例

  • "Employee IDs in the format EMP-12345 where 12345 is a 5-digit number"
  • "Order numbers starting with ORD followed by 8 digits, like ORD12345678"
  • "German postal codes - 5 digit numbers between 01000 and 99999"
  • "Internal project codes: 3 uppercase letters, a dash, and 4 digits (e.g., ABC-1234)"

曖昧な説明は避ける

  • "ID numbers" - Too vague, what format?
  • "Customer data" - What specific pattern?
  • "Codes" - Need more specifics about format

ステップ3:生成されたパターンを確認する

AIがあなたの説明に基づいて正規表現パターンを生成します。それを確認してください:

// For "Employee IDs: EMP-12345"

EMP-\d{5}

ステップ4:パターンをテストする

  1. Enter sample text in the test area
  2. Click Test Pattern
  3. Verify that matches are highlighted correctly
  4. Check for false positives and false negatives

ステップ5:エンティティを保存する

  1. Enter a name for your entity (e.g., EMPLOYEE_ID)
  2. Add an optional description
  3. Choose a category (Personal, Technical, Custom, etc.)
  4. Click Save Entity

トークンコスト

50トークンAIエンティティの作成ごと

これはパターンの複雑さに関係なく固定コストです。手動の正規表現入力は無料です。

コストを最小限に抑えるために:

  • Be as specific as possible in your first description
  • Use manual regex if you already know the pattern
  • Test thoroughly before saving to avoid recreating

手動正規表現の作成

正規表現を知っている場合は、トークンを使用せずにカスタムエンティティを手動で作成できます:

  1. Go to Settings → Custom Entities
  2. Click Create New Entity
  3. Select Manual mode
  4. Enter your regex pattern directly
  5. Test and save

正規表現のヒント

パターン意味例の一致
\dAny digit (0-9)5
\d{3}Exactly 3 digits123
[A-Z]Uppercase letterA
[A-Z]{3}3 uppercase lettersABC
\wLetter, digit, or underscorea, 1, _
-Literal dash-
?Optional (0 or 1)
+One or more
*Zero or more

例パターン

Employee ID (EMP-12345)

EMP-\d{5}

Order Number (ORD12345678)

ORD\d{8}

Project Code (ABC-1234)

[A-Z]{3}-\d{4}

License Plate (ABC 123 or ABC-123)

[A-Z]{3}[\s-]?\d{3}


カスタムエンティティの使用

作成後、カスタムエンティティは組み込みエンティティのように機能します:

アナライザー内で

  1. Open the entity selection panel
  2. Find your custom entity under the Custom category
  3. Check the box to include it in detection
  4. Run analysis as normal

プリセット内で

  1. Create or edit a preset
  2. Select your custom entity from the entity list
  3. Save the preset

Tip

カスタムエンティティは、組み込みエンティティと区別するために「カスタム」バッジが表示されます。


カスタムエンティティの管理

エンティティの編集

  1. Go to Settings → Custom Entities
  2. Find your entity and click Edit
  3. Modify the name, description, or pattern
  4. Test the updated pattern
  5. Save changes

エンティティの削除

  1. Go to Settings → Custom Entities
  2. Find your entity and click Delete
  3. Confirm deletion

Note

カスタムエンティティを削除すると、それを使用するすべてのプリセットから削除されます。プリセットは機能し続けますが、そのエンティティタイプを検出しません。


ベストプラクティス

AIの説明では具体的に記述してください - フォーマットの詳細や例を含める
保存する前にエッジケースでパターンをテストする
ID1の代わりにCUSTOMER_ORDER_IDのような意味のある名前を使用する
各エンティティが検出する内容を思い出すのに役立つ説明を追加する
快適であれば手動正規表現を使用する - トークンを節約
簡単に管理できるように関連するカスタムエンティティを同じプリセットにグループ化する

Related Documentation

最終更新日: 2026年3月