File size: 1,019 Bytes
82e7490
 
 
 
3044e81
 
 
5e17889
 
 
82e7490
 
 
 
 
3044e81
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## **6 Tag the version of the curation**

Once you have made a dataset public, create a tagged branch using the [`create_tag`](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_tag) function that allows for including the dataset in reproducible workflows.  Versions typically follow standard [semantic versioning guidelines](https://semver.org/) of `<major>.<minor>.<patch>`. 

    import huggingface_hub  
    huggingface_hub.create_tag(  
      repo_id = "<org_name>/<dataset_name\>",  
      tag = "<version>",  
      tag_message = "<message>",  
      repo_type = "dataset")

To access the tagged branch from the web-interface, go to the dataset → Files and version → select from the drop-down menu the tagged version:  
![][image1]  
To download a specific tagged branch for a dataset, add the `revision="<version>"` argument to `load_dataset()`:

    import datasets  
    dataset = datasets.load_dataset("<org_name>/<dataset_name>", `revision="1.0"`)