[cad161]: / edsnlp / pipes / misc / tables / factory.py

Download this file

16 lines (13 with data), 348 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
from edsnlp.core import registry
from edsnlp.pipes.misc.tables import TablesMatcher
DEFAULT_CONFIG = dict(
tables_pattern=None,
sep_pattern=None,
attr="TEXT",
ignore_excluded=True,
)
create_component = registry.factory.register(
"eds.tables",
assigns=["doc.spans", "doc.ents"],
deprecated=["tables"],
)(TablesMatcher)