mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
synced 2025-07-01 19:00:34 +00:00
Add description to hocrtotei
This commit is contained in:
10
hocrtotei
10
hocrtotei
@ -5,15 +5,17 @@ from xml.sax.saxutils import escape
|
||||
import argparse
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(description='hocrtotei merges several hOCR files in order of their occurrence on command line to one TEI result file.')
|
||||
parser.add_argument(
|
||||
'i',
|
||||
help='The input files.',
|
||||
nargs='*',
|
||||
metavar='hOCR-sourcefile',
|
||||
help='Input file in hOCR file format.',
|
||||
nargs='+'
|
||||
)
|
||||
parser.add_argument(
|
||||
'o',
|
||||
help='The output file.',
|
||||
metavar='TEI-destfile',
|
||||
help='Output file.'
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
|
Reference in New Issue
Block a user