Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
shaunbys c3c90b8f9d | 1 year ago | |
---|---|---|
.. | ||
.idea | 2 years ago | |
data | 2 years ago | |
.DS_Store | 2 years ago | |
AttentionVisual.py | 2 years ago | |
CrossAttention.py | 2 years ago | |
MultiVoteCrossAttention.py | 2 years ago | |
README.md | 1 year ago | |
build_fixed_graph.py | 2 years ago | |
datasets.py | 2 years ago | |
embed.py | 2 years ago | |
gcn_layers.py | 2 years ago | |
main.py | 2 years ago | |
multihop_gcn.py | 2 years ago | |
utils.py | 2 years ago |
The code and dataset for the ACL2021 paper Multi-hop Graph Convolutional Network with High-order Chebyshev Approximation for Text Reasoning, implemented in PyTorch.
Some functions are based on Text GCN. Thank for their work.
Download pre-trained word embeddings glove.6B.300d.txt
from here and unzip to the root file.
First, use the remove_words.py
to clean up the original text in datasets
python remove_words.py [DATASET]
Build graphs from the datasets in data/
as:
python build_fixed_graph.py [DATASET] [WINSIZE]
Provided datasets include ohsumed
. The default sliding window size is 5 with weighted connection.
To use your own dataset, put the text file under data/
and the label file under data/
as other datasets do. Preprocess the text by running remove_words.py
before building the graphs.
Start training and inference as:
python train.py [--dataset ohsumed]
@inproceedings{
jiang2021multi,
title={Multi-hop Graph Convolutional Network with High-order Chebyshev Approximation for Text Reasoning},
author={Jiang, Shuoran and Chen, Qingcai and Liu, Xin and Hu, Baotian and Zhang, Lisai},
booktitle={Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
pages={6563--6573},
year={2021}
}
基于预训练模型和图神经网络的NLP任务。
Unity3D Asset Python Text
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》