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.
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. To install dependencies, simply run:
poetry install
Dataset Preparation
For now, we only work with the Quora Question Pairs dataset. 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.
catbird
├── catbird
├── tools
├── configs
├── data
│ ├── quora
│ │ ├── quora_duplicate_questions.tsv
We use the HuggingFace Datasets library to load the datasets.
Train
poetry run python tools/train.py ${CONFIG_FILE} [optional arguments]
Example:
- Train T5 on QQP.
$ python tools/train.py configs/t5_quora.yaml
Contributors
Metadata
Release files for catbird 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| catbird-0.0.2.tar.gz | 13.1 kB | Without provenance | Details for catbird-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| catbird-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for catbird-0.0.2-py3-none-any.whl |
Total release size: 30.4 kB
Release files / catbird-0.0.2.tar.gz
| Download URL | catbird-0.0.2.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2b505f6812a19653fa0f368e0477733b5f9d82d0e7b946d39498e9501b606d3
|
|
BLAKE2b-256 checksum How to use checksums |
106426b8e0e01e90d4bec720f5d46d16f39695cf8b96c0f592acf84a637e1c52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.5 Linux/5.11.0-43-generic
|
Release files / catbird-0.0.2-py3-none-any.whl
| Download URL | catbird-0.0.2-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2779fa9cdcc843af096dcc006cdcb8dbf1c62ff56f2e40871a76fbc5f73c0069
|
|
BLAKE2b-256 checksum How to use checksums |
7d6246d08d17ace94f29d5a54fcbf9c81c97a87cb6a497bbfdd9357b869a91c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.5 Linux/5.11.0-43-generic
|
Security for catbird 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.