Input
output
(str): The generated text (set of items)expectedOutput
(str): The reference text (set of items)
Output
Result
(float): A score between 0 and 1.
Interpretation
- Higher scores (closer to 1): Strong balance of precision and recall
- Lower scores (closer to 0): Either precision or recall (or both) are weak
Formula
Where:This is a Similarity Metric
Use Cases
- Evaluating classifiers with class imbalance
- Information extraction and NER
- Scenarios where both precision and recall matter