Commit 074d193f authored by javi's avatar javi
Browse files
parents d8ce9228 aac2e66d
variables:
DOCKER_USER: javicorvi
DOCKER_BUILD: $DOCKER_USER/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
- build
build_docker_image:
stage: build
only:
- tags
script:
- docker login -u javicorvi -p $DOCKER_PASS
- docker build -t $DOCKER_BUILD .
- docker push $DOCKER_BUILD
tags:
- build
\ No newline at end of file
# Change Log
## Version 1.0, 2020-03-03
First version of the component.
This diff is collapsed.
......@@ -6,11 +6,13 @@ This component export the treatment-related findings annotated in XML GATE forma
This component is only used inside the treatment-related findings pipeline because is tired up to that specific domain.
## For clone this component
git clone --depth 1 https://github.com/inab/docker-textmining-tools.git ades-export-to-json
cd ades-export-to-json
git filter-branch --prune-empty --subdirectory-filter ades-export-to-json HEAD
## Actual Version: 0.1, 2020-03-04
## [Changelog](https://gitlab.bsc.es/inb/etransafe/ades-export-to-json/blob/master/CHANGELOG)
## Docker
javicorvi/ades-export-to-json
## Build and Run the Docker
......
......@@ -189,7 +189,7 @@ public class App {
document.addProperty("id", System.currentTimeMillis());
JsonObject section = new JsonObject();
section.addProperty("name", "document");
Set<String> types = Stream.of("FINDING","SEX","SPECIMEN","GROUP","DOSE","DOSE_DURATION","DOSE_QUANTITY","DOSE_FREQUENCY","MANIFESTATION_FINDING","RISK_LEVEL","NO_TREATMENT_RELATED_TRIGGER",
Set<String> types = Stream.of("FINDING","SEX","SPECIMEN","GROUP","DOSE","MANIFESTATION_FINDING","RISK_LEVEL","NO_TREATMENT_RELATED_TRIGGER",
"TREATMENT_RELATED_TRIGGER","STUDY_DOMAIN","STUDY_DAY_FINDING","STUDY_TESTCD", "ROUTE_OF_ADMINISTRATION","MODE_OF_ACTION","STATISTICAL_SIGNIFICANCE","CYPS").collect(Collectors.toCollection(HashSet::new));
JsonObject entities = new JsonObject();
AnnotationSet as = doc.getAnnotations(annotationSet).get(types);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment