textgraphs


Nametextgraphs JSON
Version 0.3.1 PyPI version JSON
download
home_page
SummaryTextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph
upload_time2024-01-04 21:59:55
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) 2023-2024 Derwen, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements spacy None None beautifulsoup4 GitPython icecream markdown2 matplotlib networkx pulp pyinstrument pyvis qwikidata spacy-dbpedia-spotlight span_marker transformers wordcloud
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---
title: TextGraphs
emoji: ✴
colorFrom: green
colorTo: gray
sdk: streamlit
sdk_version: 1.28.2
app_file: app.py
pinned: false
license: mit
---

# TextGraphs

[![DOI](https://zenodo.org/badge/735568863.svg)](https://zenodo.org/doi/10.5281/zenodo.10431783)
![Licence](https://img.shields.io/github/license/DerwenAI/textgraphs)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
![CI](https://github.com/DerwenAI/textgraphs/workflows/CI/badge.svg)
<br/>
![Repo size](https://img.shields.io/github/repo-size/DerwenAI/textgraphs)
![downloads](https://img.shields.io/pypi/dm/textgraphs)
![sponsor](https://img.shields.io/github/sponsors/ceteri)

<img
 alt="TextGraphs logo"
 src="https://raw.githubusercontent.com/DerwenAI/textgraphs/main/docs/assets/logo.png"
 width="231"
/>


## project info

Project home: <https://huggingface.co/spaces/DerwenAI/textgraphs>

Full documentation: <https://derwen.ai/docs/txg/>

Sample code is provided in `demo.py`


## requirements

  * Python 3.10+


## deploy library from PyPi

To install from [PyPi](https://pypi.python.org/pypi/textgraphs):

```bash
python3 -m pip install -u textgraphs
python3 -m pip install git+https://github.com/thunlp/OpenNRE
```

NB: both the spaCy and PyPi teams induce packaging errors
since they have "opinionated" views which conflict against
each other and also don't quite follow the Python packaging
standards.


## run demos locally

```bash
python3 demo.py
```

```bash
./venv/bin/jupyter-lab
```

```bash
streamlit run app.py
```


## install library from a source code repo locally

```bash
python3 -m venv venv
source venv/bin/activate

python3 -m pip install -U pip wheel setuptools
python3 -m pip install -r requirements.txt
python3 -m pip install git+https://github.com/thunlp/OpenNRE
```

to run the Streamlit or JupyterLab demos, also install:

```bash
python3 -m pip install -r requirements-dev.txt
```


## license and copyright

Source code for **TextGraphs** plus its logo, documentation, and
examples have an [MIT license](https://spdx.org/licenses/MIT.html)
which is succinct and simplifies use in commercial applications.

All materials herein are Copyright &copy; 2023-2024 Derwen, Inc.


## attribution

Please use the following BibTeX entry for citing **TextGraphs** if you
use it in your research or software:
```bibtex
@software{TextGraphs,
  author = {Paco Nathan},
  title = {{TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph}},
  year = 2023,
  publisher = {Derwen},
  doi = {10.5281/zenodo.10431783},
  url = {https://github.com/DerwenAI/textgraphs}
}
```


## star history

[![Star History Chart](https://api.star-history.com/svg?repos=derwenai/textgraphs&type=Date)](https://star-history.com/#derwenai/textgraphs&Date)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "textgraphs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "\"derwen.ai\" <info@derwen.ai>",
    "download_url": "https://files.pythonhosted.org/packages/f1/22/e18725bae15ba349070ea39d2ced25e725b68423b7cd38281b247b7a128a/textgraphs-0.3.1.tar.gz",
    "platform": null,
    "description": "---\ntitle: TextGraphs\nemoji: \u2734\ncolorFrom: green\ncolorTo: gray\nsdk: streamlit\nsdk_version: 1.28.2\napp_file: app.py\npinned: false\nlicense: mit\n---\n\n# TextGraphs\n\n[![DOI](https://zenodo.org/badge/735568863.svg)](https://zenodo.org/doi/10.5281/zenodo.10431783)\n![Licence](https://img.shields.io/github/license/DerwenAI/textgraphs)\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n![CI](https://github.com/DerwenAI/textgraphs/workflows/CI/badge.svg)\n<br/>\n![Repo size](https://img.shields.io/github/repo-size/DerwenAI/textgraphs)\n![downloads](https://img.shields.io/pypi/dm/textgraphs)\n![sponsor](https://img.shields.io/github/sponsors/ceteri)\n\n<img\n alt=\"TextGraphs logo\"\n src=\"https://raw.githubusercontent.com/DerwenAI/textgraphs/main/docs/assets/logo.png\"\n width=\"231\"\n/>\n\n\n## project info\n\nProject home: <https://huggingface.co/spaces/DerwenAI/textgraphs>\n\nFull documentation: <https://derwen.ai/docs/txg/>\n\nSample code is provided in `demo.py`\n\n\n## requirements\n\n  * Python 3.10+\n\n\n## deploy library from PyPi\n\nTo install from [PyPi](https://pypi.python.org/pypi/textgraphs):\n\n```bash\npython3 -m pip install -u textgraphs\npython3 -m pip install git+https://github.com/thunlp/OpenNRE\n```\n\nNB: both the spaCy and PyPi teams induce packaging errors\nsince they have \"opinionated\" views which conflict against\neach other and also don't quite follow the Python packaging\nstandards.\n\n\n## run demos locally\n\n```bash\npython3 demo.py\n```\n\n```bash\n./venv/bin/jupyter-lab\n```\n\n```bash\nstreamlit run app.py\n```\n\n\n## install library from a source code repo locally\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\n\npython3 -m pip install -U pip wheel setuptools\npython3 -m pip install -r requirements.txt\npython3 -m pip install git+https://github.com/thunlp/OpenNRE\n```\n\nto run the Streamlit or JupyterLab demos, also install:\n\n```bash\npython3 -m pip install -r requirements-dev.txt\n```\n\n\n## license and copyright\n\nSource code for **TextGraphs** plus its logo, documentation, and\nexamples have an [MIT license](https://spdx.org/licenses/MIT.html)\nwhich is succinct and simplifies use in commercial applications.\n\nAll materials herein are Copyright &copy; 2023-2024 Derwen, Inc.\n\n\n## attribution\n\nPlease use the following BibTeX entry for citing **TextGraphs** if you\nuse it in your research or software:\n```bibtex\n@software{TextGraphs,\n  author = {Paco Nathan},\n  title = {{TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph}},\n  year = 2023,\n  publisher = {Derwen},\n  doi = {10.5281/zenodo.10431783},\n  url = {https://github.com/DerwenAI/textgraphs}\n}\n```\n\n\n## star history\n\n[![Star History Chart](https://api.star-history.com/svg?repos=derwenai/textgraphs&type=Date)](https://star-history.com/#derwenai/textgraphs&Date)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023-2024 Derwen, Inc.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph",
    "version": "0.3.1",
    "project_urls": {
        "DOI": "https://zenodo.org/doi/10.5281/zenodo.10431783",
        "PyPi": "https://pypi.org/project/textgraphs/",
        "code": "https://github.com/DerwenAI/textgraphs",
        "docs": "https://derwen.ai/docs/txg/",
        "home": "https://huggingface.co/spaces/DerwenAI/textgraphs"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0030ad4874d1d4bfcdb56ae692ca9915f9a84adc46aa56f19512948bda585707",
                "md5": "80ac49e3b5c4cd63350480d7700ceaf3",
                "sha256": "2bcf0a50aa852bb1e8d06c1f49edf81b8c2c0654ebabe2f083cd3ba499f7c8d5"
            },
            "downloads": -1,
            "filename": "textgraphs-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80ac49e3b5c4cd63350480d7700ceaf3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 37081,
            "upload_time": "2024-01-04T21:59:53",
            "upload_time_iso_8601": "2024-01-04T21:59:53.583818Z",
            "url": "https://files.pythonhosted.org/packages/00/30/ad4874d1d4bfcdb56ae692ca9915f9a84adc46aa56f19512948bda585707/textgraphs-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f122e18725bae15ba349070ea39d2ced25e725b68423b7cd38281b247b7a128a",
                "md5": "f24f398a8676ed142bd3315765b1ea6d",
                "sha256": "5536a4d659b4c9c236634f23aa7b4c828abda1be7f31c01363a9661e114a2e17"
            },
            "downloads": -1,
            "filename": "textgraphs-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f24f398a8676ed142bd3315765b1ea6d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 229095,
            "upload_time": "2024-01-04T21:59:55",
            "upload_time_iso_8601": "2024-01-04T21:59:55.371128Z",
            "url": "https://files.pythonhosted.org/packages/f1/22/e18725bae15ba349070ea39d2ced25e725b68423b7cd38281b247b7a128a/textgraphs-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-04 21:59:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DerwenAI",
    "github_project": "textgraphs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "spacy",
            "specs": [
                [
                    ">=",
                    "3.7"
                ]
            ]
        },
        {
            "name": null,
            "specs": []
        },
        {
            "name": null,
            "specs": []
        },
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    ">=",
                    "4.12"
                ]
            ]
        },
        {
            "name": "GitPython",
            "specs": [
                [
                    ">=",
                    "3.1"
                ]
            ]
        },
        {
            "name": "icecream",
            "specs": [
                [
                    ">=",
                    "2.1"
                ]
            ]
        },
        {
            "name": "markdown2",
            "specs": [
                [
                    ">=",
                    "2.4"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    ">=",
                    "3.8"
                ]
            ]
        },
        {
            "name": "networkx",
            "specs": [
                [
                    ">=",
                    "3.2"
                ]
            ]
        },
        {
            "name": "pulp",
            "specs": [
                [
                    ">=",
                    "2.7"
                ]
            ]
        },
        {
            "name": "pyinstrument",
            "specs": [
                [
                    ">=",
                    "4.6"
                ]
            ]
        },
        {
            "name": "pyvis",
            "specs": [
                [
                    ">=",
                    "0.3"
                ]
            ]
        },
        {
            "name": "qwikidata",
            "specs": [
                [
                    ">=",
                    "0.4"
                ]
            ]
        },
        {
            "name": "spacy-dbpedia-spotlight",
            "specs": [
                [
                    ">=",
                    "0.2.6"
                ]
            ]
        },
        {
            "name": "span_marker",
            "specs": [
                [
                    ">=",
                    "1.5"
                ]
            ]
        },
        {
            "name": "transformers",
            "specs": [
                [
                    ">=",
                    "4.35"
                ]
            ]
        },
        {
            "name": "wordcloud",
            "specs": [
                [
                    ">=",
                    "1.9"
                ]
            ]
        }
    ],
    "lcname": "textgraphs"
}
        
Elapsed time: 0.18086s