├── .gitignore ├── LICENSE ├── README.md ├── configs ├── ablation.json5 ├── data │ ├── quora.json5 │ ├── scitail.json5 │ ├── snli.json5 │ └── wikiqa.json5 ├── debug.json5 ├── default.json5 ├── main.json5 └── robustness.json5 ├── data ├── prepare_quora.py ├── prepare_scitail.py ├── prepare_snli.py └── prepare_wikiqa.py ├── evaluate.py ├── figure.png ├── requirements.txt ├── src ├── __init__.py ├── evaluator.py ├── interface.py ├── model.py ├── modules │ ├── __init__.py │ ├── alignment.py │ ├── connection.py │ ├── embedding.py │ ├── encoder.py │ ├── fusion.py │ ├── pooling.py │ └── prediction.py ├── network.py ├── trainer.py └── utils │ ├── __init__.py │ ├── loader.py │ ├── logger.py │ ├── metrics.py │ ├── params.py │ ├── registry.py │ └── vocab.py └── train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/README.md -------------------------------------------------------------------------------- /configs/ablation.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/ablation.json5 -------------------------------------------------------------------------------- /configs/data/quora.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/data/quora.json5 -------------------------------------------------------------------------------- /configs/data/scitail.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/data/scitail.json5 -------------------------------------------------------------------------------- /configs/data/snli.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/data/snli.json5 -------------------------------------------------------------------------------- /configs/data/wikiqa.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/data/wikiqa.json5 -------------------------------------------------------------------------------- /configs/debug.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/debug.json5 -------------------------------------------------------------------------------- /configs/default.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/default.json5 -------------------------------------------------------------------------------- /configs/main.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/main.json5 -------------------------------------------------------------------------------- /configs/robustness.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/configs/robustness.json5 -------------------------------------------------------------------------------- /data/prepare_quora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/data/prepare_quora.py -------------------------------------------------------------------------------- /data/prepare_scitail.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/data/prepare_scitail.py -------------------------------------------------------------------------------- /data/prepare_snli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/data/prepare_snli.py -------------------------------------------------------------------------------- /data/prepare_wikiqa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/data/prepare_wikiqa.py -------------------------------------------------------------------------------- /evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/evaluate.py -------------------------------------------------------------------------------- /figure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/figure.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/evaluator.py -------------------------------------------------------------------------------- /src/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/interface.py -------------------------------------------------------------------------------- /src/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/model.py -------------------------------------------------------------------------------- /src/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/__init__.py -------------------------------------------------------------------------------- /src/modules/alignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/alignment.py -------------------------------------------------------------------------------- /src/modules/connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/connection.py -------------------------------------------------------------------------------- /src/modules/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/embedding.py -------------------------------------------------------------------------------- /src/modules/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/encoder.py -------------------------------------------------------------------------------- /src/modules/fusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/fusion.py -------------------------------------------------------------------------------- /src/modules/pooling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/pooling.py -------------------------------------------------------------------------------- /src/modules/prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/modules/prediction.py -------------------------------------------------------------------------------- /src/network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/network.py -------------------------------------------------------------------------------- /src/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/trainer.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/utils/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/loader.py -------------------------------------------------------------------------------- /src/utils/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/logger.py -------------------------------------------------------------------------------- /src/utils/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/metrics.py -------------------------------------------------------------------------------- /src/utils/params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/params.py -------------------------------------------------------------------------------- /src/utils/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/registry.py -------------------------------------------------------------------------------- /src/utils/vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/src/utils/vocab.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alibaba-edu/simple-effective-text-matching/HEAD/train.py --------------------------------------------------------------------------------