Calculates the harmonic mean of precision and recall, providing a single, balanced score that is useful for imbalanced datasets.
output
(str): The generated text (set of items)expectedOutput
(str): The reference text (set of items)Result
(float): A score between 0 and 1.