https://github.com/asappresearch/rationale-alignment
https://github.com/asappresearch/rationale-alignment
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/asappresearch/rationale-alignment
- Owner: asappresearch
- License: mit
- Created: 2020-05-01T16:12:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T18:50:54.000Z (almost 5 years ago)
- Last Synced: 2025-04-05T11:07:29.429Z (27 days ago)
- Language: Python
- Size: 104 KB
- Stars: 46
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rationale-alignment
Pytorch Library for ACL 2020 paper:
[Rationalizing Text Matching:Learning Sparse Alignments via Optimal Transport](https://arxiv.org/pdf/2005.13111.pdf)## Usage
[Data](https://drive.google.com/file/d/1prhH-tZZ-gGHj2-PdikGosHZT_SDBRyr/view?usp=sharing): please down load data and unzip to `data` folderEmbedding: we use fasttext embedding [cc.en.300.bin](https://fasttext.cc/docs/en/crawl-vectors.html), please download and specify the `embedding_path` in `utils/parsing.py`
## Replicate results from the paper
## Example usage
## Cite
```sh
@inproceedings{swanson-etal-2020-rationalizing,
title = "Rationalizing Text Matching: {L}earning Sparse Alignments via Optimal Transport",
author = "Swanson, Kyle and Yu, Lili and Lei, Tao",
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
year = "2020",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.acl-main.496",
}
```