-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`. | ||
|
||
### <span style="color:red">IMPORTANT !</span> | ||
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 <b><span style="color:red">WONT WORK</span></b> 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: [email protected] \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 : | ||
|
||
``` | ||
|