-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e915cc4
commit 7c588be
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# Introduction | ||
|
||
This is a toolkit for automatically creating a HuggingFace repository for a Språkbanken resource. | ||
This is a toolkit for automatically creating a Hugging Face repository for a Språkbanken resource. | ||
|
||
# Usage | ||
|
||
TBD | ||
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 sb2hf.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. |