Add README.md file
Browse files
README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
| 1 |
---
|
| 2 |
license: odc-by
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: odc-by
|
| 3 |
+
task_categories:
|
| 4 |
+
- token-classification
|
| 5 |
+
- text-classification
|
| 6 |
+
language:
|
| 7 |
+
- cs
|
| 8 |
+
tags:
|
| 9 |
+
- czech
|
| 10 |
+
- punctuation
|
| 11 |
+
- pos-tagging
|
| 12 |
+
- syntax
|
| 13 |
+
- neuro-symbolic
|
| 14 |
+
- nanoGPT
|
| 15 |
+
size_categories:
|
| 16 |
+
- 10K<n<100K
|
| 17 |
+
pretty_name: Czech Punctuation, POS and Syntactic Dataset
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: train/train_data.parquet
|
| 23 |
+
- split: validation
|
| 24 |
+
path: validation/validation_data.parquet
|
| 25 |
+
- split: test
|
| 26 |
+
path: test/test_data.parquet
|
| 27 |
---
|
| 28 |
+
|
| 29 |
+
# Czech Punctuation, POS and Syntactic Dataset 🇨🇿
|
| 30 |
+
### A High-Quality Dataset for Punctuation Restoration and Neuro-Symbolic LLM Grounding
|
| 31 |
+
|
| 32 |
+
This dataset is a structured, linguistically annotated corpus of the Czech language, specifically designed for **Punctuation Restoration tasks**, **Part-of-Speech (POS) tagging**, and **token-level syntax embedding** (such as nanoGPT custom metadata training).
|
| 33 |
+
|
| 34 |
+
Unlike pure raw text corpora, this dataset provides a deterministic 1:1 token-level mapping of morphological features (word class, grammatical case) and dependency syntax roles (subject, predicate, object) directly derived via Stanford's state-of-the-art **Stanza pipeline** (trained on the Prague Dependency Treebank standard).
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## 📊 Dataset Structure
|
| 39 |
+
|
| 40 |
+
The dataset contains three official subsets split using a strict, reproducible **80% / 10% / 10%** distribution with seed shuffling:
|
| 41 |
+
* **Train:** 80% of sentences
|
| 42 |
+
* **Validation:** 10% of sentences
|
| 43 |
+
* **Test:** 10% of sentences
|
| 44 |
+
|
| 45 |
+
### Data Schema
|
| 46 |
+
Every split is delivered in the optimized Apache Parquet format utilizing the following strict schema layout:
|
| 47 |
+
|
| 48 |
+
| Column Name | Type | Description |
|
| 49 |
+
| :--- | :--- | :--- |
|
| 50 |
+
| `segment` | `string` | The original raw Czech sentence structure (text segment). |
|
| 51 |
+
| `punctuation_type` | `string` | Classification target category based on the sentence ending/comma presence (`čárka`, `tečka`, `otazník`, `vykřičník`, `žádná`). |
|
| 52 |
+
| `tokens_annotation` | `list (struct)` | An array of structured token profiles (excluding raw punctuation marks). |
|
| 53 |
+
|
| 54 |
+
#### Inside `tokens_annotation` Struct:
|
| 55 |
+
* `slovo` (*string*): The clean isolated token/word.
|
| 56 |
+
* `slovni_druh` (*string*): Czech morphological category (`podstatne_jmeno`, `sloveso`, `zajmeno`, `prislovce`, `predlozka`, `jiny`).
|
| 57 |
+
* `vetny_clen` (*string*): Syntactic dependency function (`podmet`, `prisudek`, `predmet`, `jiny`).
|
| 58 |
+
* `pad` (*int64*): Real Czech grammatical case number (`1` to `7`), or `0` for indeclinable word classes.
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## 💻 Usage Example
|
| 63 |
+
|
| 64 |
+
You can instantly load this dataset using the Hugging Face `datasets` library:
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from datasets import load_dataset
|
| 68 |
+
|
| 69 |
+
# Load the full dataset splits
|
| 70 |
+
dataset = load_dataset("KRadim/czech-punctuation-pos-syntax")
|
| 71 |
+
|
| 72 |
+
# Access individual splits
|
| 73 |
+
train_data = dataset["train"]
|
| 74 |
+
validation_data = dataset["validation"]
|
| 75 |
+
test_data = dataset["test"]
|
| 76 |
+
|
| 77 |
+
# Inspect an example row
|
| 78 |
+
print(train_data[0])
|