Code for a commonsense knowledge graph construction research paper
Top 50.5% on sourcepulse
This repository provides code for the ACL 2019 paper "COMET: Commonsense Transformers for Automatic Knowledge Graph Construction." It enables researchers and NLP practitioners to build knowledge graphs using commonsense reasoning, offering pre-trained models and scripts for training, evaluation, and generation on ATOMIC and ConceptNet datasets.
How It Works
The project leverages transformer models to generate commonsense knowledge graph tuples. It processes structured knowledge bases like ATOMIC and ConceptNet, mapping relations to natural language or learning relation embeddings. This approach allows for the automatic construction of knowledge graphs by inferring implicit commonsense relationships between concepts.
Quick Start & Requirements
bash scripts/setup/*.sh
to download models and data, then install dependencies via conda
and pip
.Highlighted Details
Maintenance & Community
The project is associated with Antoine Bosselut and Yejin Choi, authors of the COMET paper. No specific community channels or active development signals are present in the README.
Licensing & Compatibility
The repository's license is not explicitly stated in the README. The inclusion of OpenAI models and the nature of academic research code suggest potential usage restrictions.
Limitations & Caveats
The README mentions a bug in beam search scoring that impacts reproducibility of exact paper results if not explicitly enabled. The classification script requires a separate Python 2.7 installation.
2 years ago
Inactive