-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach Java to Python dists, Deployment / Run Scripts (#33)
Various functionality for deployment / distribution. Updated bi_lstm sentence detector.
- Loading branch information
1 parent
986097e
commit 6f3ae83
Showing
21 changed files
with
757 additions
and
110 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 |
---|---|---|
|
@@ -3,3 +3,38 @@ | |
The BioMedical Information Collection and Understanding System (BioMedICUS) is a system for large-scale text analysis and processing of biomedical and clinical reports. The system is being developed by the Natural Language Processing and Information Extraction Program at the University of Minnesota Institute for Health Informatics. | ||
|
||
This is a collaborative project that aims to serve biomedical and clinical researchers, allowing for customization with different texts. | ||
|
||
More information about BioMedICUS can be found on our [website](https://nlpie.github.io/biomedicus). | ||
|
||
## Prerequisites | ||
|
||
- [Python 3.5 or later](https://www.python.org/) | ||
- [Java JDK 8.0 or later](https://adoptopenjdk.net/index.html). Note, you will need to have the ["java" command on the your "$PATH"](https://www.java.com/en/download/help/path.xml). | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install biomedicus\[torch] | ||
``` | ||
|
||
## Deploying the default BioMedICUS Pipeline | ||
|
||
The following command runs a script that will start up all of the BioMedICUS services for processing clinical notes: | ||
|
||
```bash | ||
biomedicus deploy --download-data | ||
``` | ||
|
||
## Processing a directory of text files using BioMedICUS | ||
|
||
After deploying BioMedICUS, you can process a directory of documents using the following command: | ||
|
||
```bash | ||
biomedicus run /path/to/input_dir /path/to/output_dir | ||
``` | ||
|
||
This will process the documents in the directory using BioMedICUS and save the results as json-serialized MTAP Events to output directory. | ||
|
||
## Contact | ||
|
||
BioMedICUS is developed by the [NLP/IE Group](https://healthinformatics.umn.edu/research/nlpie-group) at the University of Minnesota Institute for Health Informatics. You can contact us at [[email protected]](mailto:[email protected]). |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 Regents of the University of Minnesota. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
from biomedicus.cli import main | ||
|
||
main() |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2019 Regents of the University of Minnesota. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
def main(args=None): | ||
from argparse import ArgumentParser | ||
from biomedicus.deployment.deploy_biomedicus import deployment_parser, deploy | ||
from biomedicus.pipeline.default_pipeline import default_pipeline_parser, run_default_pipeline | ||
parser = ArgumentParser() | ||
parser.set_defaults(f=lambda _: parser.print_help()) | ||
subparsers = parser.add_subparsers() | ||
|
||
deployment_subparser = subparsers.add_parser('deploy', parents=[deployment_parser()], | ||
help='Deploys the default biomedicus pipeline.') | ||
deployment_subparser.set_defaults(f=deploy) | ||
|
||
run_subparser = subparsers.add_parser('run', parents=[default_pipeline_parser()], | ||
help="Runs the default biomedicus pipeline on files " | ||
"in a directory.") | ||
run_subparser.set_defaults(f=run_default_pipeline) | ||
|
||
conf = parser.parse_args(args) | ||
f = conf.f | ||
del conf.f | ||
f(conf) |
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
Empty file.
Oops, something went wrong.