Skip to content

Commit 639ca59

Browse files
authored
fix: Table metric typo (#3623)
It looks like we puts columns when we meant rows in one of the table metrics. @pravin-unstructured flagged this.
1 parent ab94c6c commit 639ca59

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
## 0.15.12-dev0
1+
## 0.15.12-dev1
22

33
### Enhancements
44

55
### Features
66

77
### Fixes
88

9+
* **Fixed table accuracy metric** Table accuracy was incorrectly using column content difference in calculating row accuracy.
10+
911
## 0.15.11
1012

1113
### Enhancements

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.15.12-dev0" # pragma: no cover
1+
__version__ = "0.15.12-dev1" # pragma: no cover

unstructured/metrics/table/table_alignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ def get_element_level_alignment(
176176
"col_index_acc": round(np.mean(col_index_acc), 2),
177177
"row_index_acc": round(np.mean(row_index_acc), 2),
178178
"col_content_acc": round(np.mean(content_diff_cols) / 100.0, 2),
179-
"row_content_acc": round(np.mean(content_diff_cols) / 100.0, 2),
179+
"row_content_acc": round(np.mean(content_diff_rows) / 100.0, 2),
180180
}

0 commit comments

Comments
 (0)