Metadata-Version: 2.4
Name: sbx2hf
Version: 0.1.1
Summary: A tool to automatically upload a Språkbanken resource to the Hugging Face Hub.
Author-email: Felix Morger <felix.morger@gu.se>
License: The GNU General Public License v3.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: huggingface-hub~=0.26.2
Requires-Dist: jinja2~=3.1.4
Requires-Dist: pandas~=2.2.3
Requires-Dist: requests~=2.31.0
Description-Content-Type: text/markdown

# 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.
