datasette-annotate
Datasette plugin for annotating / labelling your training data.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-annotate
Only the root actor will have access to create (write) annotations.
Usage
You can start the annotation process by going to the /database_name/table_name/-/annotate page. This table should be configured to specify which annotation labels can be selected, see below. Annotations will be written to the table table_name_annotations.
Configuration
To add annotations for a table it must have a primary key column. The possible labels for each table should be configured by adding the following settings to the metadata.json:
{
"databases": {
"my_database": {
"tables": {
"training_data": {
"plugins": {
"datasette-annotate": {
"labels": ["ABSTAIN", "HAM", "SPAM"]
}
}
}
}
}
}
}
If you are using metadata.yml the configuration should look like this:
databases:
my_database:
tables:
training_data:
plugins:
datasette-annotate:
labels:
- ABSTAIN
- HAM
- SPAM
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-annotate
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-annotate 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datasette-annotate-0.2.1.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_annotate-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / datasette-annotate-0.2.1.tar.gz
| Download URL | datasette-annotate-0.2.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d397be4fc289e4695a1d2b67144f2ca59cb08a6314e81f835bed91744edb9784
|
|
BLAKE2b-256 checksum How to use checksums |
a37ecd9e966ef4ae952b50b20b3372a62d4a51da3aa926d4a947409010bf3259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / datasette_annotate-0.2.1-py3-none-any.whl
| Download URL | datasette_annotate-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5d35fef26b2871d6f1b1c0a2e33bfe65c26e37809cfee7a446df2bef98f0925
|
|
BLAKE2b-256 checksum How to use checksums |
c8ed2c7fd7f26fa9e74eced2becf0311a656137dda7cbc1302e917f1a4c2ab1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|