Skip to main content

No project description provided

Project description

prodigy-tui

A TUI for Prodigy, made with Textual.

This project is currently mainly meant as a demo. Partially because doing annotations via the terminal is relatively experimental, but also because I cannot guarantee full feature parity with Prodigy just yet. The only implemented interface right now is textcat.manual but I may implement more in the future.

That said, this tool does integrate with Prodigy. For example, when you run this:

> python -m prodigy-tui textcat.manual --help 

You're going to get a very familiar help text.

usage: textcat.manual [-h] [--label LABEL] dataset source

Interface for binary text classification from the terminal!

positional arguments:
  dataset               dataset to write annotations into (str)
  source                path to text source (Path)

optional arguments:
  -h, --help            show this help message and exit
  --label LABEL, -l LABEL
                        category label to apply, only binary is supported (str)

To start annotating binary text examples, you can run something like:

prodigy-tui textcat.manual reddit-data examples.jsonl --label positive

And this will start saving annotations into the reddit-data dataset.

Installation

You will need to install this tool in an environment that already has Prodi.gy installed. Given such an environment, you can use pip.

python -m pip install "prodigy-tui @ git+https://github.com/koaning/prodigy-tui.git"

Features

  • Works over SSH, no need to share a browser.
  • Keyboard shortcuts are the same.
  • You could even click the buttons if you really wanted to though.

Feedback

As mentioned before, this is a bit of an experiment. But it seems interesting to explore. Maybe data annotation is something that can happen via the terminal and maybe there's something that's very developer friendly about that.

Shoutout

Props to the folks over at textualize. Much of the heavy lifting in UI-land is handled by their stack.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prodigy-tui-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

prodigy_tui-0.0.1-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file prodigy-tui-0.0.1.tar.gz.

File metadata

  • Download URL: prodigy-tui-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for prodigy-tui-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2cb28e520b26e2a22418ae56afb2a41bd463927fccbe2ee35bc1c9d1e31fa691
MD5 d195a9fea2ae3453f34d4615ede7cb0e
BLAKE2b-256 871816948ca5971dd6a6b3e7f414281ffcf9d8423be4688b7321bfb79dfe14ec

See more details on using hashes here.

File details

Details for the file prodigy_tui-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for prodigy_tui-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6aa02a76c4358b7b076390b611b89c762902b64af04bdfcacc155c9e82685d1
MD5 b3f14a60523659d396058fca503553e3
BLAKE2b-256 9e9476b2e4261877bbd4696e1dc8a1d6ab77f618da55b621abc621c63a87220a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page