TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph
Project description
title: TextGraphs emoji: ✴ colorFrom: green colorTo: gray sdk: streamlit sdk_version: 1.28.2 app_file: app.py pinned: false license: mit
project info:
see https://huggingface.co/spaces/DerwenAI/textgraphs
requirements:
- Python 3.10+
deploy library 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 because 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 locally:
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -U pip wheel setuptools
python3 -m pip install -r requirements.txt
to run the Streamlit or JupyterLab demos, or prior to working locally on the development and testing of this repo:
python3 -m pip install -r requirements-dev.txt
pre-commit install --hook-type pre-commit
test library locally:
python3 -m pytest
update code on GitHub:
git remote set-url origin https://github.com/DerwenAI/textgraphs.git
git push
update code on Hugging Face:
git remote set-url origin https://huggingface.co/spaces/DerwenAI/textgraphs
git push
publish library:
rm dist/*
python3 -m build
twine check dist/*
twine upload ./dist/* --verbose
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 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for textgraphs-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4bdfc17515182a557756b0d5f494ea7b50128e46a49e65253abc21a55cdf1e5 |
|
MD5 | 576ee2ac6bb529a03c2c322bc0712829 |
|
BLAKE2b-256 | 994230719b6ac9f3fa8d2c6580346d59fca6204ab244b4308447863c546e303e |