Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agermanidis/pigeon
🐦 Quickly annotate data from the comfort of your Jupyter notebook
https://github.com/agermanidis/pigeon
Last synced: 8 days ago
JSON representation
🐦 Quickly annotate data from the comfort of your Jupyter notebook
- Host: GitHub
- URL: https://github.com/agermanidis/pigeon
- Owner: agermanidis
- License: apache-2.0
- Created: 2017-09-05T00:04:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T08:55:11.000Z (7 months ago)
- Last Synced: 2024-04-08T00:53:45.214Z (7 months ago)
- Language: Python
- Homepage:
- Size: 991 KB
- Stars: 764
- Watchers: 11
- Forks: 126
- Open Issues: 16
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
🐦 pigeon - Quickly annotate data on Jupyter
========================Pigeon is a simple widget that lets you quickly annotate a dataset of
unlabeled examples from the comfort of your Jupyter notebook.Pigeon currently supports annotation for classification tasks (set of
labels), regression tasks (int/float range), or captioning tasks
(variable-length text). Anything that can be displayed on Jupyter
(text, images, audio, graphs, etc.) can be displayed by pigeon
by providing the appropriate :code:`display_fn` argument.Installation
-----.. code-block:: bash
pip install pigeon-jupyter
Examples
------ Text classification
Code:
.. code-block:: python
from pigeon import annotate
annotations = annotate(
['I love this movie', 'I was really disappointed by the book'],
options=['positive', 'negative']
)Preview:
.. image:: http://i.imgur.com/00ry4Li.gif
- Image classification
Code:
.. code-block:: python
from pigeon import annotate
from IPython.display import display, Imageannotations = annotate(
['assets/img_example1.jpg', 'assets/img_example2.jpg'],
options=['cat', 'dog', 'horse'],
display_fn=lambda filename: display(Image(filename))
)Preview:
.. image:: http://i.imgur.com/PiE3eDt.gif