catbird-0.0.2
توضیحات
Paraphrase generation Toolbox and Benchmark
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | catbird-0.0.2 |
| نام | catbird |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Afonso Sousa |
| ایمیل نویسنده | afonsousa2806@gmail.com |
| آدرس صفحه اصلی | https://github.com/AfonsoSalgadoSousa/catbird |
| آدرس اینترنتی | https://pypi.org/project/catbird/ |
| مجوز | MIT |
<div align="center">
</p>
<img src="resources/catbird_logo.svg" width="200"/>
</p>
[](https://opensource.org/licenses/MIT)
</div>
`Catbird` is an open source paraphrase generation toolkit based on PyTorch.
## Quick Start
### Requirements and Installation
The project is based on PyTorch 1.5+ and Python 3.6+.
## Install Catbird
**a. Clone the repository.**
```shell
git clone https://github.com/AfonsoSalgadoSousa/catbird.git
```
**b. Install dependencies.**
This project uses Poetry as its package manager. There should Make sure you have it installed. For more info check [Poetry's official documentation](https://python-poetry.org/docs/).
To install dependencies, simply run:
```shell
poetry install
```
## Dataset Preparation
For now, we only work with the [Quora Question Pairs dataset](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs). It is recommended to download and extract the datasets somewhere outside the project directory and symlink the dataset root to `$CATBIRD/data` as below. If your folder structure is different, you may need to change the corresponding paths in config files.
```text
catbird
├── catbird
├── tools
├── configs
├── data
│ ├── quora
│ │ ├── quora_duplicate_questions.tsv
```
We use the [HuggingFace Datasets library](https://huggingface.co/docs/datasets/) to load the datasets.
### Train
```shell
poetry run python tools/train.py ${CONFIG_FILE} [optional arguments]
```
Example:
1. Train T5 on QQP.
```bash
$ python tools/train.py configs/t5_quora.yaml
```
## Contributors
* [Afonso Sousa][1] (afonsousa2806@gmail.com)
[1]: https://github.com/AfonsoSalgadoSousa
نیازمندی
| مقدار | نام |
|---|---|
| >=1.10.0,<2.0.0 | torch |
| >=0.4.7,<0.5.0 | pytorch-ignite |
| >=1.16.1,<2.0.0 | datasets |
| >=0.1.96,<0.2.0 | sentencepiece |
| >=2.4.0,<3.0.0 | addict |
| >=4.14.1,<5.0.0 | transformers |
| >=2.4.1,<3.0.0 | tensorboardX |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl catbird-0.0.2:
pip install catbird-0.0.2.whl
نصب پکیج tar.gz catbird-0.0.2:
pip install catbird-0.0.2.tar.gz