Discover and explore top open-source AI tools and projects—updated daily.
Deep learning toolkit for knowledge graph extraction/construction
Top 12.0% on SourcePulse
DeepKE is an open-source toolkit for knowledge graph extraction and construction, targeting researchers and practitioners in Natural Language Processing and Knowledge Engineering. It provides a unified framework for Named Entity Recognition (NER), Relation Extraction (RE), and Attribute Extraction (AE), supporting various scenarios including low-resource, document-level, and multimodal data.
How It Works
DeepKE employs a modular architecture where each task (NER, RE, AE) is composed of Data (Tokenizer, Preprocessor, Loader), Model (Module, Encoder, Forwarder), and Core (Training, Evaluation, Prediction) components. This design allows for flexibility in handling different data formats and implementing various extraction models, including support for Large Language Models (LLMs) through its DeepKE-LLM extension.
Quick Start & Requirements
conda create -n deepke-llm python=3.9
, conda activate deepke-llm
, cd example/llm
, pip install -r requirements.txt
.git clone --depth 1 https://github.com/zjunlp/DeepKE.git
, conda create -n deepke python=3.8
, conda activate deepke
, pip install -r requirements.txt
, python setup.py install
. Then navigate to task-specific directories (e.g., example/re/standard
) and download data.docker pull zjunlp/deepke:latest
, docker run -it zjunlp/deepke:latest /bin/bash
.Highlighted Details
Maintenance & Community
The project has active development with recent updates including LLM integration, new datasets (IEPile), and models. Community contributions are acknowledged. For issues, users are directed to submit GitHub issues.
Licensing & Compatibility
The repository does not explicitly state a license in the README. However, the presence of dockerfile
and general open-source practices suggest it is intended for broad use. Compatibility with commercial or closed-source projects would require license clarification.
Limitations & Caveats
The project recommends Linux environments, with specific notes for Windows path usage. Installation of large pretrained models online can be slow, suggesting pre-downloading. The pip install deepke
method is noted as not recommended. Python version compatibility might be strict (e.g., Python 3.8 for DeepKE core, 3.9 for DeepKE-LLM).
2 months ago
1 day