mirror of
https://github.com/qurator-spk/page2tsv.git
synced 2025-07-06 00:29:54 +02:00
Change scale-factor default parameter. Fix make-page2tsv-commands
This commit is contained in:
parent
900015da61
commit
f606cb92b0
2 changed files with 4 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -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…
Add table
Add a link
Reference in a new issue