Skip to content
Snippets Groups Projects
Commit be5a985d authored by Konstantin Baierer's avatar Konstantin Baierer
Browse files

record whether CLI is OCR-D spec-compliant

parent f237dd78
No related branches found
No related tags found
No related merge requests found
......@@ -4,23 +4,32 @@ repodir: /data/ocrd_all
repolist:
- url: https://github.com/ASVLeipzig/cor-asv-ann
official: true
compliant_cli: true
- url: https://github.com/ASVLeipzig/cor-asv-fst
official: true
compliant_cli: true
- url: https://github.com/OCR-D/ocrd_calamari
compliant_cli: true
- url: https://github.com/OCR-D/ocrd_im6convert
compliant_cli: true
- url: https://github.com/OCR-D/ocrd_keraslm
- url: https://github.com/OCR-D/ocrd_kraken
- url: https://github.com/OCR-D/ocrd_ocropy
- url: https://github.com/OCR-D/ocrd_olena
compliant_cli: true
- url: https://github.com/OCR-D/ocrd_segment
compliant_cli: true
- url: https://github.com/OCR-D/ocrd_tesserocr
official: true
compliant_cli: true
- url: https://github.com/cisocrgroup/ocrd_cis
official: true
compliant_cli: true
- url: https://github.com/mjenckel/LAYoutERkennung
official: true
- url: https://github.com/ocr-d-modul-2-segmentierung/segmentation-runner
official: true
compliant_cli: false
- url: https://github.com/qurator-spk/dinglehopper
- url: https://github.com/qurator-spk/pixelwise_segmentation_SBB
- url: https://github.com/seuretm/ocrd_typegroups_classifier
......
......@@ -10,11 +10,12 @@ LOG = getLogger('kwalitee.repo')
class Repo():
def __init__(self, config, url, official=False):
def __init__(self, config, url, official=False, compliant_cli=False):
self.url = url
self.config = config
self.name = Path(url).name
self.official = official
self.compliant_cli = compliant_cli
self.path = Path(self.config['repodir'], self.name)
def __str__(self):
......@@ -75,6 +76,7 @@ class Repo():
desc = {}
desc['url'] = self.url
desc['official'] = self.official
desc['compliant_cli'] = self.compliant_cli
desc['org_plus_name'] = '/'.join(self.url.split('/')[-2:])
desc['name'] = self.name
desc['files'] = self.get_file_contents()
......
click >=7
ocrd >= 2.0.0a1
ocrd
pyyaml
requests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment