You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
page2tsv/tsvtools/ocrd_cli.py

15 lines
454 B
Python

import click
from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor
from .ocrd_processors import OcrdNeatExportProcessor, OcrdNeatImportProcessor
@click.command()
@ocrd_cli_options
def export_cli(*args, **kwargs):
return ocrd_cli_wrap_processor(OcrdNeatExportProcessor, *args, **kwargs)
@click.command()
@ocrd_cli_options
def import_cli(*args, **kwargs):
return ocrd_cli_wrap_processor(OcrdNeatImportProcessor, *args, **kwargs)