Skip to main content

W3C Data Annotation for Natual Language Processing and Machine Leaning in Python.

Project description

main License: MIT PyPI - Version

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

linalgo-0.1.6.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

linalgo-0.1.6-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

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

Hashes for linalgo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b80abeb476e4499da1a02fc8a52a995e8ca26dcde59c6fbc149e2d727645f315
MD5 ca234aeca9f83c2cc126d27260098898
BLAKE2b-256 439bce183f803aa645648b07e15495f75a3fea46eb39ec93fec0cb783e5a628e

See more details on using hashes here.

Provenance

The following attestation bundles were made for linalgo-0.1.6.tar.gz:

Publisher: pypi.yml on linalgo/linalgo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for linalgo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e9161a6076fb557be1cf1a186902393868b08412f09aa1ed5b880c4033ec27d6
MD5 d27ec64961e4210bd1840f7d5d1f0a85
BLAKE2b-256 1b687b37657677ccc305e146b646c62fcc955b187e269d410e23f2545c7fd1f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for linalgo-0.1.6-py3-none-any.whl:

Publisher: pypi.yml on linalgo/linalgo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page