Calmcode - pigeon: introduction

Introduction

1 2 3 4

Sometimes you want to add labels to a dataset. There are plenty of great labelling tools out there but sometimes you only need something simple from Jupyter. If that sounds familiar you'll want to check out pigeon.

Make sure that pigeon is installed first.

pip install pigeon-jupyter

Be mindful that you'll preferably want to install this in a modern Jupyter environment. To start annotating you can run the code below.

from pigeon import annotate

sentiment_examples = ['I like this', 'I do not like this', 'This is great']
# The annotations can be retreived from the assigned variable.
annotations = annotate(sentiment_examples, options=["positive", "negative"])