nopaque/app/services/__init__.py

78 lines
2.4 KiB
Python
Raw Normal View History

2019-07-19 11:28:17 +00:00
from flask import Blueprint
2021-02-19 12:00:52 +00:00
SERVICES = {
'file-setup': {
2021-02-19 12:00:52 +00:00
'name': 'File setup',
'versions': {
2021-04-14 10:00:09 +00:00
'latest': '1.0.0b',
'1.0.0b': {
2021-02-19 12:00:52 +00:00
'publishing_data': {
'date': None,
'title': 'nopaque File setup service',
2021-04-14 10:00:09 +00:00
'url': 'https://gitlab.ub.uni-bielefeld.de/sfb1288inf/file-setup/-/tree/1.0.0b', # noqa
2021-02-19 12:00:52 +00:00
'version': '1.0.0'
}
}
}
},
'nlp': {
'name': 'Natural Language Processing',
'versions': {
2021-04-14 10:00:09 +00:00
'latest': '1.0.0b',
'1.0.0b': {
2021-02-19 12:00:52 +00:00
'check_encoding': True,
'models': {
'de': 'German',
'en': 'English',
'it': 'Italian',
'nl': 'Dutch',
'pl': 'Polish',
'zh': 'Chinese'
},
2021-02-19 12:00:52 +00:00
'publishing_data': {
'date': None,
'title': 'nopaque NLP service',
2021-04-14 10:00:09 +00:00
'url': 'https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp/-/tree/1.0.0b', # noqa
2021-02-19 12:00:52 +00:00
'version': '1.0.0'
}
}
}
},
'ocr': {
'name': 'Optical Character Recognition',
'versions': {
2021-04-14 10:00:09 +00:00
'latest': '1.0.0b',
'1.0.0b': {
2021-02-19 12:00:52 +00:00
'binarization': True,
'models': {
'ara': 'Arabic',
'chi_tra': 'Chinese - Traditional',
'dan': 'Danish',
2021-02-19 12:00:52 +00:00
'eng': 'English',
'enm': 'English, Middle 1100-1500',
'fra': 'French',
'frm': 'French, Middle ca. 1400-1600',
'deu': 'German',
'frk': 'German Fraktur',
'ell': 'Greek, Modern (1453-)',
2021-02-19 12:00:52 +00:00
'ita': 'Italian',
'por': 'Portuguese',
'rus': 'Russian',
2021-02-19 12:00:52 +00:00
'spa': 'Spanish; Castilian',
},
'publishing_data': {
'date': None,
'title': 'nopaque OCR service',
2021-04-14 10:00:09 +00:00
'url': 'https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr/-/tree/1.0.0b', # noqa
2021-02-19 12:00:52 +00:00
'version': '1.0.0'
}
}
}
}
}
bp = Blueprint('services', __name__)
from . import routes