├── README.md ├── data ├── pubmed_unsupervised.json ├── remain_unsup.json ├── train_wiki.json ├── val_nyt.json ├── val_pubmed.json ├── val_semeval.json └── val_wiki.json ├── fewshot_re_kit ├── __init__.py ├── data_loader.py ├── framework.py ├── network │ ├── __init__.py │ ├── embedding.py │ └── encoder.py ├── old_data_loader.py ├── sentence_encoder.py └── utils.py ├── hyperparams.py ├── models ├── __init__.py ├── d.py ├── entropy.py ├── gnn.py ├── gnn_iclr.py ├── metanet.py ├── pair.py ├── proto.py ├── proto_norm.py ├── relation.py ├── siamese.py └── snail.py ├── requirements.txt └── train_demo.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/README.md -------------------------------------------------------------------------------- /data/pubmed_unsupervised.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/pubmed_unsupervised.json -------------------------------------------------------------------------------- /data/remain_unsup.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/remain_unsup.json -------------------------------------------------------------------------------- /data/train_wiki.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/train_wiki.json -------------------------------------------------------------------------------- /data/val_nyt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/val_nyt.json -------------------------------------------------------------------------------- /data/val_pubmed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/val_pubmed.json -------------------------------------------------------------------------------- /data/val_semeval.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/val_semeval.json -------------------------------------------------------------------------------- /data/val_wiki.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/data/val_wiki.json -------------------------------------------------------------------------------- /fewshot_re_kit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/__init__.py -------------------------------------------------------------------------------- /fewshot_re_kit/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/data_loader.py -------------------------------------------------------------------------------- /fewshot_re_kit/framework.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/framework.py -------------------------------------------------------------------------------- /fewshot_re_kit/network/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/network/__init__.py -------------------------------------------------------------------------------- /fewshot_re_kit/network/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/network/embedding.py -------------------------------------------------------------------------------- /fewshot_re_kit/network/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/network/encoder.py -------------------------------------------------------------------------------- /fewshot_re_kit/old_data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/old_data_loader.py -------------------------------------------------------------------------------- /fewshot_re_kit/sentence_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/sentence_encoder.py -------------------------------------------------------------------------------- /fewshot_re_kit/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/fewshot_re_kit/utils.py -------------------------------------------------------------------------------- /hyperparams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/hyperparams.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/d.py -------------------------------------------------------------------------------- /models/entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/entropy.py -------------------------------------------------------------------------------- /models/gnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/gnn.py -------------------------------------------------------------------------------- /models/gnn_iclr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/gnn_iclr.py -------------------------------------------------------------------------------- /models/metanet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/metanet.py -------------------------------------------------------------------------------- /models/pair.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/pair.py -------------------------------------------------------------------------------- /models/proto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/proto.py -------------------------------------------------------------------------------- /models/proto_norm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/proto_norm.py -------------------------------------------------------------------------------- /models/relation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/relation.py -------------------------------------------------------------------------------- /models/siamese.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/siamese.py -------------------------------------------------------------------------------- /models/snail.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/models/snail.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/requirements.txt -------------------------------------------------------------------------------- /train_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/congxin95/DaFeC/HEAD/train_demo.py --------------------------------------------------------------------------------