Graph2Taxo is a GNN-based cross-domain transfer framework for taxonomy construction. It uses a noisy graph constructed from automatically extracted noisy hyponym-hypernym candidate pairs, and a set of taxonomies for some known domains for training. The learned model is then used to generate taxonomy for a new unknown domain given a set of terms for that domain.
If you use this system, please cite the following paper -
@inproceedings{chao2020-g2t,
title={Taxonomy Construction of Unseen Domains via Graph-based Cross-Domain Knowledge Transfer},
author={Chao Shang and Sarthak Dash and Md Faisal Mahbub Chowdhury and Nandana Mihindukulasooriya and Alfio Gliozzo},
booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL 2020) },
publisher = "Association for Computational Linguistics",
year = {2020},
}
Install PyTorch from the official website or using Anaconda.
After cloning the repo, if you need to process the data, please use the command git submodule update
to initialize the dependent submodules. This will clone TaxoRL and TAXI projects that are used to reproduce data from existing experiments.
git submodule update
TAXI data is given in the "data/TAXI_dataset" folder. Data from TaxoRL paper is given in the "data/TaxoRL_dataset" folder.
When you process the data, you can run:
python preprocess.py
When you train the model, you can run:
python train.py
You can directly modify the GRAPH2TAXO model in the "models.py" file.
Bumps ipython from 7.16.3 to 8.10.0.
Sourced from ipython's releases.
See https://pypi.org/project/ipython/
We do not use GitHub release anymore. Please see PyPI https://pypi.org/project/ipython/
15ea1ed
release 8.10.0560ad10
DOC: Update what's new for 8.10 (#13939)7557ade
DOC: Update what's new for 8.10385d693
Merge pull request from GHSA-29gw-9793-fvw7e548ee2
Swallow potential exceptions from showtraceback() (#13934)0694b08
MAINT: mock slowest test. (#13885)8655912
MAINT: mock slowest test.a011765
Isolate the attack tests with setUp and tearDown methodsc7a9470
Add some regression tests for this changefd34cf5
Swallow potential exceptions from showtraceback()Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Right now we are using two files from existing libraries (as submodules and ask users to clone the two repos using submodule update
.
We can check if we can easily reimplement those utils so we don't have to use submodules.
Third part files being used now: 1. TaxoRL.code.utils_tree 2. TAXI.jnt.morph