diff --git a/pyproject.toml b/pyproject.toml index 8f83249..9e610c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,8 +37,5 @@ Repository = "https://github.com/qurator-spk/eynollah.git" [tool.setuptools.dynamic] dependencies = {file = ["requirements.txt"]} -[tool.setuptools.packages.find] -where = ["qurator"] - [tool.setuptools.package-data] "*" = ["*.json", '*.yml', '*.xml', '*.xsd'] diff --git a/qurator/eynollah/ocrd-tool.json b/qurator/eynollah/ocrd-tool.json index 127b95b..2da970d 100644 --- a/qurator/eynollah/ocrd-tool.json +++ b/qurator/eynollah/ocrd-tool.json @@ -6,8 +6,8 @@ "executable": "ocrd-eynollah-segment", "categories": ["Layout analysis"], "description": "Segment page into regions and lines and do reading order detection with eynollah", - "input_file_grp": ["OCR-D-IMG", "OCR-D-SEG-PAGE", "OCR-D-GT-SEG-PAGE"], - "output_file_grp": ["OCR-D-SEG-LINE"], + "input_file_grp_cardinality": 1, + "output_file_grp_cardinality": 1, "steps": ["layout/segmentation/region", "layout/segmentation/line"], "parameters": { "models": { diff --git a/qurator/eynollah/processor.py b/qurator/eynollah/processor.py index 01dd797..fd7dd2a 100644 --- a/qurator/eynollah/processor.py +++ b/qurator/eynollah/processor.py @@ -6,10 +6,6 @@ from .eynollah import Eynollah class EynollahProcessor(Processor): - @property - def metadata_filename(self) -> str: - return 'eynollah/ocrd-tool.json' - def setup(self) -> None: # for caching models self.models = None