validate_detection
Validate PII detection accuracy by comparing results against expected entities to calculate precision, recall, and F1 scores for testing purposes.
Instructions
Validate PII detection against expected results (useful for testing).
Args:
text: The text to analyze
expected_entities: List of expected entities with 'entity_type', 'start', 'end'
language: Language code (default: "en")
Returns:
JSON string with validation results including precision, recall, and F1 score
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| expected_entities | Yes | ||
| language | No | en |