Name | ontogpt JSON |
Version |
0.3.11
JSON |
| download |
home_page | None |
Summary | OntoGPT |
upload_time | 2024-04-14 19:40:56 |
maintainer | None |
docs_url | None |
author | Chris Mungall |
requires_python | !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9 |
license | BSD-3 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# OntoGPT
[![DOI](https://zenodo.org/badge/13996/monarch-initiative/ontogpt.svg)](https://zenodo.org/badge/latestdoi/13996/monarch-initiative/ontogpt)
![PyPI](https://img.shields.io/pypi/v/ontogpt)
## Introduction
_OntoGPT_ is a Python package for extracting structured information from text with large language models (LLMs), _instruction prompts_, and ontology-based grounding.
[For more details, please see the full documentation.](https://monarch-initiative.github.io/ontogpt/)
## Quick Start
OntoGPT runs on the command line, though there's also a minimal web app interface (see `Web Application` section below).
1. Ensure you have Python 3.9 or greater installed.
2. Install with `pip`:
```bash
pip install ontogpt
```
3. Set your OpenAI API key:
```bash
runoak set-apikey -e openai <your openai api key>
```
4. See the list of all OntoGPT commands:
```bash
ontogpt --help
```
5. Try a simple example of information extraction:
```bash
echo "One treatment for high blood pressure is carvedilol." > example.txt
ontogpt extract -i example.txt -t drug
```
OntoGPT will retrieve the necessary ontologies and output results to the command line. Your output will provide all extracted objects under the heading `extracted_object`.
## Web Application
There is a bare bones web application for running OntoGPT and viewing results.
First, install the required dependencies with `pip` by running the following command:
```bash
pip install ontogpt[web]
```
Then run this command to start the web application:
```bash
web-ontogpt
```
NOTE: We do not recommend hosting this webapp publicly without authentication.
## Evaluations
OntoGPT's functions have been evaluated on test data. Please see the full documentation for details on these evaluations and how to reproduce them.
## Related Projects
* [TALISMAN](https://github.com/monarch-initiative/talisman/), a tool for generating summaries of functions enriched within a gene set. TALISMAN uses OntoGPT to work with LLMs.
## Tutorials and Presentations
- Presentation: "Staying grounded: assembling structured biological knowledge with help from large language models" - presented by Harry Caufield as part of the AgBioData Consortium webinar series (September 2023)
- [Slides](https://docs.google.com/presentation/d/1rMQVWaMju-ucYFif5nx4Xv3bNX2SVI_w89iBIT1bkV4/edit?usp=sharing)
- [Video](https://www.youtube.com/watch?v=z38lI6WyBsY)
- Presentation: "Transforming unstructured biomedical texts with large language models" - presented by Harry Caufield as part of the BOSC track at ISMB/ECCB 2023 (July 2023)
- [Slides](https://docs.google.com/presentation/d/1LsOTKi-rXYczL9vUTHB1NDkaEqdA9u3ZFC5ANa0x1VU/edit?usp=sharing)
- [Video](https://www.youtube.com/watch?v=a34Yjz5xPp4)
- Presentation: "OntoGPT: A framework for working with ontologies and large language models" - talk by Chris Mungall at Joint Food Ontology Workgroup (May 2023)
- [Slides](https://docs.google.com/presentation/d/1CosJJe8SqwyALyx85GWkw9eOT43B4HwDlAY2CmkmJgU/edit)
- [Video](https://www.youtube.com/watch?v=rt3wobA9hEs&t=1955s)
## Citation
The information extraction approach used in OntoGPT, SPIRES, is described further in: Caufield JH, Hegde H, Emonet V, Harris NL, Joachimiak MP, Matentzoglu N, et al. Structured prompt interrogation and recursive extraction of semantics (SPIRES): A method for populating knowledge bases using zero-shot learning. _Bioinformatics_, Volume 40, Issue 3, March 2024, btae104, [https://doi.org/10.1093/bioinformatics/btae104](https://doi.org/10.1093/bioinformatics/btae104).
## Acknowledgements
This project is part of the [Monarch Initiative](https://monarchinitiative.org/). We also gratefully acknowledge [Bosch Research](https://www.bosch.com/research) for their support of this research project.
Raw data
{
"_id": null,
"home_page": null,
"name": "ontogpt",
"maintainer": null,
"docs_url": null,
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Chris Mungall",
"author_email": "cjmungall@lbl.gov",
"download_url": "https://files.pythonhosted.org/packages/31/92/b83809467a4ad18031fd10ed79a9884f4d60b4686d1cb8a692d8b18ccf3c/ontogpt-0.3.11.tar.gz",
"platform": null,
"description": "# OntoGPT\n\n[![DOI](https://zenodo.org/badge/13996/monarch-initiative/ontogpt.svg)](https://zenodo.org/badge/latestdoi/13996/monarch-initiative/ontogpt)\n![PyPI](https://img.shields.io/pypi/v/ontogpt)\n\n## Introduction\n\n_OntoGPT_ is a Python package for extracting structured information from text with large language models (LLMs), _instruction prompts_, and ontology-based grounding.\n\n[For more details, please see the full documentation.](https://monarch-initiative.github.io/ontogpt/)\n\n## Quick Start\n\nOntoGPT runs on the command line, though there's also a minimal web app interface (see `Web Application` section below).\n\n1. Ensure you have Python 3.9 or greater installed.\n2. Install with `pip`:\n\n ```bash\n pip install ontogpt\n ```\n\n3. Set your OpenAI API key:\n\n ```bash\n runoak set-apikey -e openai <your openai api key>\n ```\n\n4. See the list of all OntoGPT commands:\n\n ```bash\n ontogpt --help\n ```\n\n5. Try a simple example of information extraction:\n\n ```bash\n echo \"One treatment for high blood pressure is carvedilol.\" > example.txt\n ontogpt extract -i example.txt -t drug\n ```\n\n OntoGPT will retrieve the necessary ontologies and output results to the command line. Your output will provide all extracted objects under the heading `extracted_object`.\n\n## Web Application\n\nThere is a bare bones web application for running OntoGPT and viewing results.\n\nFirst, install the required dependencies with `pip` by running the following command:\n\n```bash\npip install ontogpt[web]\n```\n\nThen run this command to start the web application:\n\n```bash\nweb-ontogpt\n```\n\nNOTE: We do not recommend hosting this webapp publicly without authentication.\n\n## Evaluations\n\nOntoGPT's functions have been evaluated on test data. Please see the full documentation for details on these evaluations and how to reproduce them.\n\n## Related Projects\n\n* [TALISMAN](https://github.com/monarch-initiative/talisman/), a tool for generating summaries of functions enriched within a gene set. TALISMAN uses OntoGPT to work with LLMs.\n\n## Tutorials and Presentations\n\n- Presentation: \"Staying grounded: assembling structured biological knowledge with help from large language models\" - presented by Harry Caufield as part of the AgBioData Consortium webinar series (September 2023)\n - [Slides](https://docs.google.com/presentation/d/1rMQVWaMju-ucYFif5nx4Xv3bNX2SVI_w89iBIT1bkV4/edit?usp=sharing)\n - [Video](https://www.youtube.com/watch?v=z38lI6WyBsY)\n- Presentation: \"Transforming unstructured biomedical texts with large language models\" - presented by Harry Caufield as part of the BOSC track at ISMB/ECCB 2023 (July 2023)\n - [Slides](https://docs.google.com/presentation/d/1LsOTKi-rXYczL9vUTHB1NDkaEqdA9u3ZFC5ANa0x1VU/edit?usp=sharing)\n - [Video](https://www.youtube.com/watch?v=a34Yjz5xPp4)\n- Presentation: \"OntoGPT: A framework for working with ontologies and large language models\" - talk by Chris Mungall at Joint Food Ontology Workgroup (May 2023)\n - [Slides](https://docs.google.com/presentation/d/1CosJJe8SqwyALyx85GWkw9eOT43B4HwDlAY2CmkmJgU/edit)\n - [Video](https://www.youtube.com/watch?v=rt3wobA9hEs&t=1955s)\n\n## Citation\n\nThe information extraction approach used in OntoGPT, SPIRES, is described further in: Caufield JH, Hegde H, Emonet V, Harris NL, Joachimiak MP, Matentzoglu N, et al. Structured prompt interrogation and recursive extraction of semantics (SPIRES): A method for populating knowledge bases using zero-shot learning. _Bioinformatics_, Volume 40, Issue 3, March 2024, btae104, [https://doi.org/10.1093/bioinformatics/btae104](https://doi.org/10.1093/bioinformatics/btae104).\n\n## Acknowledgements\n\nThis project is part of the [Monarch Initiative](https://monarchinitiative.org/). We also gratefully acknowledge [Bosch Research](https://www.bosch.com/research) for their support of this research project.\n\n",
"bugtrack_url": null,
"license": "BSD-3",
"summary": "OntoGPT",
"version": "0.3.11",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e563feb271f8c8e999a761a2cb8108a4c232cd2dec516d24f63dd897e4c9dd73",
"md5": "2d7de5ee34f637bcac22f466b2d214e1",
"sha256": "2d1611ab0e6b3a8898415ef89502d9e540ebe85d5574449488a0a2a2cc26ca5b"
},
"downloads": -1,
"filename": "ontogpt-0.3.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2d7de5ee34f637bcac22f466b2d214e1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
"size": 1188231,
"upload_time": "2024-04-14T19:40:54",
"upload_time_iso_8601": "2024-04-14T19:40:54.407328Z",
"url": "https://files.pythonhosted.org/packages/e5/63/feb271f8c8e999a761a2cb8108a4c232cd2dec516d24f63dd897e4c9dd73/ontogpt-0.3.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3192b83809467a4ad18031fd10ed79a9884f4d60b4686d1cb8a692d8b18ccf3c",
"md5": "4c608794d44ec256a49e0b4d42117987",
"sha256": "b117e83c45201a72031a8358ba0cbcf56bc13b4f4919ace89f219872d5821087"
},
"downloads": -1,
"filename": "ontogpt-0.3.11.tar.gz",
"has_sig": false,
"md5_digest": "4c608794d44ec256a49e0b4d42117987",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
"size": 1066174,
"upload_time": "2024-04-14T19:40:56",
"upload_time_iso_8601": "2024-04-14T19:40:56.596604Z",
"url": "https://files.pythonhosted.org/packages/31/92/b83809467a4ad18031fd10ed79a9884f4d60b4686d1cb8a692d8b18ccf3c/ontogpt-0.3.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-14 19:40:56",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ontogpt"
}