start to annotate pre-defined labels in python

Dear Ines,

we have a text data of a book, we want to annotate based on some labels. what is the starting point, I could follow your documentation. can I work with prodigy in my Jupyter lab and python?

Best

Hi! When you say ā€œannotate based on some labelsā€, what do you mean exactly? Do you want to assign one or more labels to a text? Do you want to highlight spans in a text and assign labels to them? How many labels do you have?

The default usage of Prodigy is via the command line, and if you’re using JupyterLab, you should be able to use the built-in terminal, or add a the command to a cell with a !, e.g. ! python -m prodigy .... We’re also working on a JupyterLab extension that will let you annotate in a widget without having to leave JupyterLab :smiley:

1 Like

Dear Ines,
first, It seems still have problem with run prodigy in my browser,

I followed the instruction in your website, it seems still does not work, I could not run from cmd,
but I only ran from jupyter lab

import prodigy

prodigy.serve(ā€˜ner.teach’, ā€˜dataset’, ā€˜en_core_web_sm’, ā€˜data.jsonl’,
None, None, [ā€˜PERSON’, ā€˜ORG’], None, None)

I had interface (although I opeded browser manually http://localhost:8080/)
but it says
Oops, something went wrong :frowning:

it seems installation is correct (I have also folder in my directory and pip show I have prodigy)
can you let me know what should I do ?

we have five labels, and we want to assign to some each entity only one label

Best
Moha

I've posted an answer to your question in the other thread: