DeepKE trains and runs models for named entity recognition, relation extraction, attributes, and events across standard, few-shot, document, and multimodal settings.
Overview
DeepKE is an open toolkit for building knowledge graphs from unstructured text. It organizes named entity recognition, relation extraction, attribute extraction, and event extraction behind a shared training, evaluation, and prediction layout so researchers can swap datasets, encoders, and task-specific models.
Scenarios include fully supervised pipelines, few-shot low-resource setups, document-level relation extraction, and multimodal entity or relation models that combine text with visual cues. The project also points to companion DeepKE-LLM and OneKE directions for large-language-model workflows and an MCP tool path that lets LLMs call lightweight extractors.
Installation supports pip, source builds, optional Docker images, and Linux is recommended. Off-the-shelf cnSchema-oriented models are published for Chinese entity and relation extraction without custom training, and an online demo offers quick trials.
The framework separates data loading, model modules, and task cores across example directories for each function, with Hydra-style configuration files governing hyperparameters and checkpoints.
Key features
- NER, relation, attribute, and event tasks
- Standard, few-shot, and document modes
- Multimodal entity and relation models
- cnSchema off-the-shelf Chinese models
- pip install deepke packaging
- Optional Docker image builds
- DeepKE-LLM and MCP tool extensions
- Online demonstration deployment
Use cases
- Populating knowledge graphs from Chinese text
- Few-shot relation extraction with little labeled data
- Document-level relation mining across sentences
- Combining text and images for entity linking
- Teaching information extraction with unified examples