From 400011deb50d6f94588b85a2a628764a80fb9f4e Mon Sep 17 00:00:00 2001 From: Kamil Plucinski Date: Tue, 4 Feb 2025 14:15:00 +0100 Subject: [PATCH] WEuights 1,1,1 --- unstructured/metrics/text_extraction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unstructured/metrics/text_extraction.py b/unstructured/metrics/text_extraction.py index 715385230..4efcbb4bb 100644 --- a/unstructured/metrics/text_extraction.py +++ b/unstructured/metrics/text_extraction.py @@ -8,7 +8,7 @@ from unstructured.cleaners.core import clean_bullets, remove_sentence_punctuatio def calculate_accuracy( output: Optional[str], source: Optional[str], - weights: Tuple[int, int, int] = (2, 1, 1), + weights: Tuple[int, int, int] = (1, 1, 1), ) -> float: """ Calculates accuracy by calling calculate_edit_distance function using `return_as=score`. @@ -20,7 +20,7 @@ def calculate_accuracy( def calculate_edit_distance( output: Optional[str], source: Optional[str], - weights: Tuple[int, int, int] = (2, 1, 1), + weights: Tuple[int, int, int] = (1, 1, 1), return_as: str = "distance", standardize_whitespaces: bool = True, ) -> float: