Skip to main content

Grafeno

Python library for concept graph extraction from text, operation, and linearization. An integrated web service is provided.

This library is still a work in progress, but it has shown to be already useful for a number of applications, for example extractive text summarization.

Install

Using poetry:

  1. poetry install
  2. If you want to install some extras, run poetry install --extras "web lexical modules" with the extras that you need (see pyproject.toml).
  3. poetry run setup

To run any grafeno script with poetry, use poetry run before the name of the script and its arguments.

Documentation

The documentation is a work in progress, so it is a bit patchy, but go ahead and read it in ReadTheDocs.

Examples

See the notebooks in the examples directory for how to use grafeno in different applications.

Web Service

Run the server.py script to get a json web service which exposes most of the pipeline functionality.

Use -h to get the list of options available.

Test script

A test script is provided in test.py that can run a pipeline to test the library. It can serve as the entry point to the library operation, or as an example of how to use it from python.

Use -h to get the list of options available.

Requirements

  • python >= 3.4
    • Python packages for use of the library are listed in requirements.txt. We recommend using conda to install grafeno and its dependencies in a virtual environment.
  • A dependency parser. For now, the following are supported:
  • If using the simplenlg linearizer, a java executable will have to be available.

You may also need some NLTK data, for example 'wordnet' and 'wordnet_ic'. They can be downloaded in python with:

import nltk
nltk.download(['wordnet', 'wordnet_ic'])

Authors

Acknowledgements

The continued development of this library has been possible thanks to a number of different research and development projects, listed below.

  • A collaboration with MedWhat, a company that develops virtual medical assistant bots and other medical artificial intelligence solutions.
  • This research is funded by the Spanish Ministry of Economy and Competitiveness and the European Regional Development Fund (TIN2015-66655-R (MINECO/FEDER)).
  • This work is funded by ConCreTe. The project ConCreTe acknowledges the financial support of the Future and Emerging Technologies (FET) programme within the Seventh Framework Programme for Research of the European Commission, under FET grant number 611733.

Metadata

Release files for grafeno 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grafeno 0.4.0
File Size Uploaded Provenance Actions
grafeno-0.4.0.tar.gz 75.9 MB Without provenance Details for grafeno-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grafeno 0.4.0
File Interpreter ABI Platform Actions
grafeno-0.4.0-py3-none-any.whl Python 3 none any Details for grafeno-0.4.0-py3-none-any.whl

Total release size: 76.3 MB

Release files / grafeno-0.4.0.tar.gz

Download URL grafeno-0.4.0.tar.gz
Size 75.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ad3efc2d87b20d4ca4a6cbf07df37124e291a46b0a46b57dd93eff28d963e014
BLAKE2b-256 checksum
How to use checksums
4ac340d65fa84796124bc14b311cc3d77236d9b4c01747ef3ebf9944f1fc006a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.18

Release files / grafeno-0.4.0-py3-none-any.whl

Download URL grafeno-0.4.0-py3-none-any.whl
Size 428.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0135d5d40b95e4d542c55e2d225199f430fb43d19bb5cd0fdeedb6bb8ac43571
BLAKE2b-256 checksum
How to use checksums
642dfc9ac96d32c44bb49e274c0da2d9ddb30de37c9b1d18bdc56eb96d86a11c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.18

Security for grafeno 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page