Datasets:
Filter blocked treebanks from README configs
Browse files- Add conditional check to skip blocked treebanks in configs section
- Only treebanks with metadata.blocked == False will appear in dataset card
- Ensures blocked treebanks (e.g., pt_cintil) don't show in HuggingFace UI
This prevents users from seeing configs for treebanks that have no
parquet files due to license restrictions.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
tools/templates/README.tmpl
CHANGED
|
@@ -48,6 +48,7 @@ tags:
|
|
| 48 |
|
| 49 |
configs:
|
| 50 |
{%- for name,metadata in data.items()|sort(attribute='1.dirname') %}
|
|
|
|
| 51 |
- config_name: {{ name }}
|
| 52 |
data_files:
|
| 53 |
{%- set ns = namespace(dataset_size=0) -%}
|
|
@@ -58,6 +59,7 @@ configs:
|
|
| 58 |
{%- if name == 'en_ewt' %}
|
| 59 |
default: true
|
| 60 |
{%- endif %}
|
|
|
|
| 61 |
{%- endfor %}
|
| 62 |
---
|
| 63 |
|
|
|
|
| 48 |
|
| 49 |
configs:
|
| 50 |
{%- for name,metadata in data.items()|sort(attribute='1.dirname') %}
|
| 51 |
+
{%- if not metadata.blocked %}
|
| 52 |
- config_name: {{ name }}
|
| 53 |
data_files:
|
| 54 |
{%- set ns = namespace(dataset_size=0) -%}
|
|
|
|
| 59 |
{%- if name == 'en_ewt' %}
|
| 60 |
default: true
|
| 61 |
{%- endif %}
|
| 62 |
+
{%- endif %}
|
| 63 |
{%- endfor %}
|
| 64 |
---
|
| 65 |
|