improve html layout; add reasonable default for --image-url option

pull/39/head
Kai Labusch 5 years ago
parent b9901436c6
commit 692e990fba

@ -49,7 +49,7 @@
<div class="col-2">
<div id="file-region"></div>
</div>
<div class="col-8">
<div class="col-9">
<div class="row">
<div class="col text-center">
<h3><a href="https://github.com/cneud/ner.edith" target="_blank">ner.edith</a>: named entity recognition editor in html</h3>
@ -57,7 +57,7 @@
</div>
</div>
</div>
<div class="col-2">
<div class="col-1">
</div>
</div>
<div class="row mt-3">
@ -77,9 +77,9 @@
<div class="row mt-3">
<div class="col-2">
</div>
<div class="col-8 text-center" id="btn-region">
<div class="col-9 text-center" id="btn-region">
</div>
<div class="col-2">
<div class="col-1">
</div>
</div>

@ -103,7 +103,7 @@ def extract_doc_links(tsv_file):
@click.command()
@click.argument('page-xml-file', type=click.Path(exists=True), required=True, nargs=1)
@click.argument('tsv-out-file', type=click.Path(), required=True, nargs=1)
@click.option('--image-url', type=str, default='')
@click.option('--image-url', type=str, default='http://empty')
def page2tsv(page_xml_file, tsv_out_file, image_url):
tree = ET.parse(page_xml_file)

Loading…
Cancel
Save