mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-06 04:33:18 +00:00
Big update, corpus analysis reworked, versioned services, preliminary work for contributions
This commit is contained in:
app
TesseractOCRModel.defaults.yml__init__.py
docker-compose.traefik.ymlapi
auth
cli.pycontribute
corpora
daemon
jobs
models.pyservices
static
css
js
templates
utils.pymigrations/versions
nopaque.pyrequirements.txt@ -10,25 +10,10 @@ class JobResultList extends RessourceList {
|
||||
</tr>
|
||||
`.trim(),
|
||||
ressourceMapper: jobResult => {
|
||||
let description;
|
||||
|
||||
if (jobResult.filename.endsWith('.pdf.zip')) {
|
||||
description = 'PDF files with text layer';
|
||||
} else if (jobResult.filename.endsWith('.txt.zip')) {
|
||||
description = 'Raw text files';
|
||||
} else if (jobResult.filename.endsWith('.vrt.zip')) {
|
||||
description = 'VRT compliant files including the NLP data';
|
||||
} else if (jobResult.filename.endsWith('.xml.zip')) {
|
||||
description = 'TEI compliant files';
|
||||
} else if (jobResult.filename.endsWith('.poco.zip')) {
|
||||
description = 'HOCR and image files for post correction (PoCo)';
|
||||
} else {
|
||||
description = 'All result files created during this job';
|
||||
}
|
||||
return {
|
||||
id: jobResult.id,
|
||||
creationDate: jobResult.creation_date,
|
||||
description: description,
|
||||
description: jobResult.description,
|
||||
filename: jobResult.filename
|
||||
};
|
||||
},
|
||||
|
Reference in New Issue
Block a user