Skip to main content

A tool to automatically upload a Språkbanken resource to the Hugging Face Hub.

Project description

Introduction

This is a toolkit for automatically creating a Hugging Face repository for a Språkbanken resource.

Usage

sb2hf is a command-line tool which creates a Hugging Face repository from a Språkbanken resource url (found at https://spraakbanken.gu.se/resurser). For example, if an authenticated user of the sbx organization of the user runs this:

python sbx2hf.py https://spraakbanken.gu.se/resurser/forarbeten1734 --push-to-hub

This dataset with the same resource name will be automatically uploaded: https://huggingface.co/datasets/sbx/forarbeten1734.

To use this outside the Språkbanken Text organization, simply specify your own organization or user under the --hf-namespace argument.

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

sbx2hf-0.1.1.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sbx2hf-0.1.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file sbx2hf-0.1.1.tar.gz.

File metadata

  • Download URL: sbx2hf-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for sbx2hf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a1a1c6b6838a08e96ab5bd26b679a04b40543a78447a62c59995fcb9252e12f9
MD5 3e719f7a3aaa03b34052fa87e4205971
BLAKE2b-256 4b3cd7c38bd79b1ac96b1fcb127e09b686544c0468fcf3da865fd52ede421b1d

See more details on using hashes here.

File details

Details for the file sbx2hf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sbx2hf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for sbx2hf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dd708aa8fe05170486137e1525c104c474a937af42dfe0f0af4b0fa7a07f371
MD5 959247e24aba6e43638fc6a06abdab11
BLAKE2b-256 3ceb4ae2efd2e39b374ceef8b47bb479fa04453ef159e20aec38d42b63f6e48e

See more details on using hashes here.

Supported by

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