mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00
WEuights 1,1,1
This commit is contained in:
parent
9d58b34ab4
commit
400011deb5
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user