Discover and explore top open-source AI tools and projects—updated daily.
TensorFlow code for entity-relation extraction
Top 32.0% on SourcePulse
This repository provides a pipeline-based solution for entity and relation extraction, specifically tailored for schema-constrained knowledge extraction tasks. It is designed for researchers and practitioners working with Chinese text data, offering a practical implementation based on TensorFlow and BERT for the 2019 Language and Intelligence Technology Competition.
How It Works
The system employs a two-stage pipeline. First, a multi-label classification model identifies potential relationship types within a sentence. Subsequently, a sequence labeling model, taking the sentence and predicted relationship types as input, identifies and labels the entities (subject and object) corresponding to those relationships. This approach allows for a structured extraction of (Subject, Predicate, Object) triples that adhere to predefined schemas.
Quick Start & Requirements
pretrained_model
directory. Download competition data and place it in ./raw_data/
.run_predicate_classification.py
) and the sequence labeling model (run_sequnce_labeling.py
).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
5 years ago
Inactive