Skip to content

Commit b2ed4f4

Browse files
author
Marcin Kardas
committed
Return proposals for single-digit cells
1 parent aad880d commit b2ed4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sota_extractor2/models/linking/bm25_naive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def annotations(r, c, type='model'):
191191
if type in structure[nr, c]:
192192
yield Value(structure[nr, c], matrix[nr, c])
193193

194-
number_re = re.compile(r'^[± Ee/()^0-9.%,_+-]{2,}$')
194+
number_re = re.compile(r'(^[± Ee/()^0-9.%,_+-]{2,}$)|(^[0-9]$)')
195195

196196
proposals = [Proposal(
197197
cell=Cell(cell_ext_id=f"{table_ext_id}/{r}.{c}",

0 commit comments

Comments
 (0)