/textgraphs

TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph

Primary LanguagePythonMIT LicenseMIT

title emoji colorFrom colorTo sdk sdk_version app_file pinned license
TextGraphs
green
gray
streamlit
1.28.2
app.py
false
mit

TextGraphs

DOI Licence Checked with mypy CI
Repo size downloads sponsor

TextGraphs logo

project info

See the project home at: https://huggingface.co/spaces/DerwenAI/textgraphs

See the full documentation at: https://derwen.ai/docs/txg/

Sample code is provided in demo.py

requirements

  • Python 3.10+

deploy library from PyPi

To install from PyPi:

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

python3 demo.py
./venv/bin/jupyter lab
streamlit run app.py

install library from a source code repo locally

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:

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 which is succinct and simplifies use in commercial applications.

All materials herein are Copyright © 2023-2024 Derwen, Inc.

attribution

Please use the following BibTeX entry for citing TextGraphs if you use it in your research or software:

@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