Skip to main content

License: MIT

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:

  1. 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)

Source distribution for catbird 0.0.2
File Size Uploaded
catbird-0.0.2.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for catbird 0.0.2
File Interpreter ABI Platform
catbird-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page