Change scale-factor default parameter. Fix make-page2tsv-commands

pull/2/head
Kai 4 years ago
parent 900015da61
commit f606cb92b0

@ -24,7 +24,7 @@ setup(
"annotate-tsv=tsvtools.cli:annotate_tsv",
"page2tsv=tsvtools.cli:page2tsv",
"find-entities=cli:find_entities",
"make-page2tsv-commands=cli:make_page2tsv_commands"
"make-page2tsv-commands=tsvtools.cli:make_page2tsv_commands"
]
},
python_requires='>=3.6.0',

@ -252,6 +252,9 @@ def find_entities(tsv_file, tsv_out_file, ner_rest_endpoint, ned_rest_endpoint,
"\n\nOCR: OCR application/ground-truth creation. "
"\n\ndefault: NERD.")
def make_page2tsv_commands(xls_file, purpose):
"""
XLS_FILE: Read parameters from xls-file. Expected columns: Filename, iiif_url, scale_factor.
"""
df = pd.read_excel(xls_file)

Loading…
Cancel
Save