diff --git a/README.md b/README.md index 83bd4c9..793216c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ By default the MedCAT service will be running on port `5000`. MedCAT models will If you have a gpu and wish to use it, please change the `docker/docker-compose.yml` file, use the `cogstacksystems/medcat-service-gpu:latest` image or change the `build:` directive to build `../Dockerfile_gpu`. ### IMPORTANT ! -If you wish to run this docker service manually, use the docker/docker-compose.yml file, execute `docker-compose up -d` whilst in the `docker` folder. +If you wish to run this docker service manually, use the docker/docker-compose.yml file, execute `docker compose up -d` whilst in the `docker` folder. Alternatively, an example script `./docker/run_example_medmen.sh` was provided to run the Docker container with MedCAT service. The script will download an example model (using the `./models/download_medmen.sh` script),it will use an example environment configuration, then it will build and start the service using the provided Docker Compose file, the service WONT WORK without the model being present. @@ -70,7 +70,7 @@ All models should be mounted from the `models/` folder. 1. cd ./models/ 2. bash ./download_medmen.sh 3. cd ../docker/ - 4. docker-compose up -d + 4. docker compose up -d DONE! ``` Or, if you wish to use the above mentioned script ( the sample model is downloaded via script, you don't need to do anything): @@ -104,6 +104,14 @@ and the received result: } ``` +Additional DE-ID query sample (make sure you have a de-id model loaded): + +curl -XPOST http://localhost:5555/api/process \ + -H 'Content-Type: application/json' \ + -d '{"content":{"text":"Patient Information: Full Name: John Michael Doe \n Gender: Male \n Date of Birth: January 15, 1975 (Age: 49) \n Patient ID: 567890123 \n Address: 1234 Elm Street, Springfield, IL 62701 \n Phone Number: (555) 123-4567 \n Email: johnmdoe@example.com \n Emergency Contact: Jane Doe (Wife) \n Phone: (555) 987-6543 \n Relationship: Spouse"}}' + +Make sure you have the following option enabled in `envs/env_medcat` , `DEID_MODE=True`. + process_bulk example : ```