Concept graph library
Project description
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:
poetry install
- If you want to install some extras, run
poetry install --extras "web lexical modules"
with the extras that you need (seepyproject.toml
). 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.
- Python packages for use of the library are listed in
- A dependency parser. For now, the following are supported:
- If using the
simplenlg
linearizer, ajava
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
- Antonio F. G. Sevilla afgs@ucm.es
- Alberto Díaz albertodiaz@fdi.ucm.es
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.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file grafeno-0.4.0.tar.gz
.
File metadata
- Download URL: grafeno-0.4.0.tar.gz
- Upload date:
- Size: 75.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3efc2d87b20d4ca4a6cbf07df37124e291a46b0a46b57dd93eff28d963e014 |
|
MD5 | fe8e5a8c60bcb43bbfe294a83b79f4f0 |
|
BLAKE2b-256 | 4ac340d65fa84796124bc14b311cc3d77236d9b4c01747ef3ebf9944f1fc006a |
File details
Details for the file grafeno-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: grafeno-0.4.0-py3-none-any.whl
- Upload date:
- Size: 428.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0135d5d40b95e4d542c55e2d225199f430fb43d19bb5cd0fdeedb6bb8ac43571 |
|
MD5 | b4f032defeb52aeacd2b47b20e0fe97a |
|
BLAKE2b-256 | 642dfc9ac96d32c44bb49e274c0da2d9ddb30de37c9b1d18bdc56eb96d86a11c |