W3C Data Annotation for Natual Language Processing and Machine Leaning in Python.
Project description
Linalgo W3C Web Annotation Library
Linalgo is a Python module to help Machine Learning team create and curate datasets for Natural Language Processing. It tries to follow the W3C Web Annotation Data Model and to provides a powerful system to add metadata to most commonly used text and image formats: TXT, PDF, HTML, etc.
Documentation
The documentation is available at https://linalgo.github.io/linalgo
Installation
Basic installation:
pip install linalgo
To use the annotation server functionality:
pip install "linalgo[hub]"
Linalgo CLI
Linalgo provides a command-line interface to interact with the annotation server (linhub) and manage your configuration.
Getting Started
Initialize your environment with interactive prompts:
linalgo init
This will:
- Set up your username and organization
- Configure the server URL
- Initialize a local server if using localhost
- Log you in and save your authentication token
Authentication
Log in to the Linalgo hub and save your authentication token:
linalgo login
Configuration Management
Manage your configuration settings:
linalgo config show # Show all configuration values
linalgo config get <key> # Get a specific configuration value
linalgo config set <key> <value> # Set a configuration value
linalgo config load [env_file] # Load configuration from .env file
Interacting with the Hub
Pass commands directly to linhub:
linalgo hub <command>
For example, to start the annotation server:
linalgo hub runserver
Running the Annotation Server
After installing with the hub extras, you can run a local annotation server using:
linalgo hub runserver
This will start a local Django server that you can use for annotation tasks.
Test
pytest
Storing Annotation Data
By default, linalgo stores annotations on a dedicated hub at https://hub.linalgo.com. There are also connectors to retrieve data from Google BigQuery.
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
Built Distribution
File details
Details for the file linalgo-0.1.6.tar.gz
.
File metadata
- Download URL: linalgo-0.1.6.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b80abeb476e4499da1a02fc8a52a995e8ca26dcde59c6fbc149e2d727645f315
|
|
MD5 |
ca234aeca9f83c2cc126d27260098898
|
|
BLAKE2b-256 |
439bce183f803aa645648b07e15495f75a3fea46eb39ec93fec0cb783e5a628e
|
Provenance
The following attestation bundles were made for linalgo-0.1.6.tar.gz
:
Publisher:
pypi.yml
on linalgo/linalgo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
linalgo-0.1.6.tar.gz
-
Subject digest:
b80abeb476e4499da1a02fc8a52a995e8ca26dcde59c6fbc149e2d727645f315
- Sigstore transparency entry: 212755620
- Sigstore integration time:
-
Permalink:
linalgo/linalgo@28c8bd0af97993be3f3134e651dc5e2ef1403f13
-
Branch / Tag:
refs/heads/prod
- Owner: https://github.com/linalgo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
pypi.yml@28c8bd0af97993be3f3134e651dc5e2ef1403f13
-
Trigger Event:
push
-
Statement type:
File details
Details for the file linalgo-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: linalgo-0.1.6-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e9161a6076fb557be1cf1a186902393868b08412f09aa1ed5b880c4033ec27d6
|
|
MD5 |
d27ec64961e4210bd1840f7d5d1f0a85
|
|
BLAKE2b-256 |
1b687b37657677ccc305e146b646c62fcc955b187e269d410e23f2545c7fd1f4
|
Provenance
The following attestation bundles were made for linalgo-0.1.6-py3-none-any.whl
:
Publisher:
pypi.yml
on linalgo/linalgo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
linalgo-0.1.6-py3-none-any.whl
-
Subject digest:
e9161a6076fb557be1cf1a186902393868b08412f09aa1ed5b880c4033ec27d6
- Sigstore transparency entry: 212755623
- Sigstore integration time:
-
Permalink:
linalgo/linalgo@28c8bd0af97993be3f3134e651dc5e2ef1403f13
-
Branch / Tag:
refs/heads/prod
- Owner: https://github.com/linalgo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
pypi.yml@28c8bd0af97993be3f3134e651dc5e2ef1403f13
-
Trigger Event:
push
-
Statement type: