Practical overview
When it fits
Use Aggcn when working with sentence-level relation extraction and you can meet its Python, PyTorch, CUDA and dataset requirements. It is also suited to evaluating the released checkpoint or adapting the training code for related research.
Who it is for
- NLP researchers studying sentence-level relation extraction.
- Developers seeking a graph-based research baseline or code to adapt for related extraction datasets.
Documented uses
- Train a relation-extraction model on TACRED or another prepared dataset.
- Evaluate the released checkpoint on a test split.
- Fine-tune the pretrained model using the supplied training script.
- Use a graph-based model as a baseline in NLP experiments.
Requirements & limits
The code is publicly available on GitHub under the MIT license. TACRED access requires an LDC license.
- TACRED is not bundled as an unrestricted dataset; its access requires an LDC license.
- Preprocessed Semeval-10 Task 8 and PubMed datasets are included in the repository.
- The documented tested stack is Python 3.6.8, PyTorch 0.4.1 and CUDA 9.0; tqdm is also required.
- The authors report 69.0% F1 for the released model in the ACL paper and caution that results may differ across environments.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Evaluate the released model on TACRED
Run the supplied evaluation script against the test split using the released checkpoint.
Before you start
- Python 3, PyTorch, CUDA and tqdm, with the README listing tested versions 3.6.8, 0.4.1 and 9.0.
- Access to TACRED under its LDC license; place its JSON files in dataset/tacred.
- The repository's released model under saved_models/01 and prepared vocabulary and GloVe files.
Steps
Download and unzip GloVe vectors with the repository's download script.
Prepare vocabulary and initial vectors using the documented prepare_vocab.py command for dataset/tacred.
Run the supplied eval.py command on saved_models/01 with --dataset test; it uses best_model.pt by default.
Expected outcome
The evaluation script runs the test-set evaluation with the released best_model.pt checkpoint.
Guide limitations
- TACRED access requires an LDC license.
- The authors caution that results may differ across hardware and software environments.
Train an AGGCN model
Prepare TACRED vocabulary and vectors, then start training with the provided script.
Before you start
- Python 3, PyTorch, CUDA and tqdm; tested versions are listed as Python 3.6.8, PyTorch 0.4.1 and CUDA 9.0.
- TACRED access under its LDC license, with JSON files placed in dataset/tacred.
- GloVe vectors, downloadable using the repository's script.
Steps
Download and unzip GloVe vectors with the documented download script.
Run prepare_vocab.py for dataset/tacred to write vocabulary and initial vectors to dataset/vocab.
Run bash train_aggcn.sh 1 to begin training.
Expected outcome
The training script is configured to save model checkpoints and logs under ./saved_models/01.
Guide limitations
- TACRED requires an LDC license.
- The repository cautions that training results can vary across software and hardware environments.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 November 2026
- Original website title
- Cartus/AGGCN · Official homepage title · retained in its source language

