mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-07 13:13:17 +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@ -53,7 +53,7 @@ class CorpusAnalysisApp {
|
||||
this.data.cQiClient = new CQiClient(this.settings.corpusId);
|
||||
this.data.cQiClient.connect()
|
||||
.then(cQiStatus => {
|
||||
return this.data.cQiClient.corpora.get('CORPUS');
|
||||
return this.data.cQiClient.corpora.get(`NOPAQUE_${this.settings.corpusId}`);
|
||||
})
|
||||
.then(
|
||||
cQiCorpus => {
|
||||
|
@ -100,7 +100,10 @@ class JobDisplay extends RessourceDisplay {
|
||||
}
|
||||
|
||||
setServiceArgs(serviceArgs) {
|
||||
this.setElements(this.displayElement.querySelectorAll('.job-service-args'), serviceArgs);
|
||||
this.setElements(
|
||||
this.displayElement.querySelectorAll('.job-service-args'),
|
||||
JSON.stringify(serviceArgs)
|
||||
);
|
||||
}
|
||||
|
||||
setServiceVersion(serviceVersion) {
|
||||
|
@ -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