SDK for graph neural networks in NLP
Top 25.7% on sourcepulse
Graph4NLP is a Python library designed to simplify the application of Graph Neural Networks (GNNs) to Natural Language Processing (NLP) tasks. It offers pre-implemented state-of-the-art models and flexible interfaces for researchers and developers, aiming to accelerate R&D in Deep Learning on Graphs for NLP.
How It Works
Graph4NLP is built on a four-layer architecture: Data, Module, Model, and Application. It leverages highly optimized runtime libraries like DGL for efficiency and extensibility. The library supports various graph construction methods and graph embedding techniques, enabling users to build custom GNN models for diverse NLP applications.
Quick Start & Requirements
pip install graph4nlp${CUDA}
(e.g., pip install graph4nlp-cu102
for CUDA 10.2, pip install graph4nlp
for CPU). Installation from source is also supported.Highlighted Details
Maintenance & Community
The project is led by the Graph4AI Team, with contributors from industry and academia (e.g., Pinterest, Zhejiang University, Facebook AI, IBM). Recent releases include v0.5.5 (Jan 2022) with API improvements and refactoring. Resources include a DLG4NLP website and a survey paper.
Licensing & Compatibility
Limitations & Caveats
Windows users are advised to refer to source code installation due to potential compatibility issues with pip wheels. CUDA 11.1 users also need to install from source.
1 year ago
Inactive