Datasets:
Release framework v2.5.0
Browse filesUse the production PyPI helper with preview-oriented Parquet columns and document Parquet as the standard distribution. Preserve the published citation and tag corrections in the generated card.
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/6
Refs: https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/5
Files changed (5)
- CHANGELOG.md+13
- README.md+39-103
- pyproject.toml+2-5
- tools/README-2.19+39-103
- tools/templates/README.tmpl+39-103
6 unmodified lines7891011126 unmodified lines## [Unreleased]## [2.4.0] - 2026-11-22### Added6 unmodified lines789101112131415161718192021222324256 unmodified lines## [Unreleased]## [2.5.0] - 2026-12-01### Changed- **Parquet Schema**- Put `tokens`, `lemmas`, `upos`, and `feats` first for easier browsing; keep `sent_id` last. Column names, types, and values are unchanged. Code that accesses columns by position needs to use the new order.- Pin the upstream `ud-hf-parquet-tools==1.4.0` release from production PyPI instead of the temporary Git fork.- Refresh the UD 2.18 and 2.19 datasets with this framework release. See [discussion #6](https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/6).- **Dataset Card**- Describe Parquet as the standard distribution rather than a migration. Document the CoNLL-U-to-Parquet representation and validation without implying byte-identical reconstruction.- Keep the current linguistic-framework citation and remove the unrelated constituency-parsing tag from generated cards. See [discussion #5](https://huggingface.co/datasets/universal-dependencies/universal_dependencies/discussions/5).## [2.4.0] - 2026-11-22### Added
2586 unmodified lines25872588258925902591259225932594259525962597259825992600260126022603260426052606260739 unmodified lines2647264826492650265126522653265426552656265726582659266026612662266326642665266648 unmodified lines27152716271727182719272027212722272327242725272627272728272927302731273211 unmodified lines2744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228339 unmodified lines28432844284528462847284828492586 unmodified linespath: parquet/zza_zsd/train.parquet---## Dataset Card (v2.0) for Universal Dependencies Treebank**Version 2.0.0** introduces significant improvements and breaking changes:- **Parquet Format:** faster loading with HuggingFace datasets >=4.0.0- **MWT Support:** New `mwt` field provides structured multi-word token information- **Enhanced Security:** No more `trust_remote_code=True` required- **Separate Versioning:** Loader version (2.0.0) distinct from UD data version (2.19)**Breaking Changes:**- Token sequences now exclude MWT surface forms (matches UD guidelines)- Requires `datasets>=4.0.0` for Parquet support- **Migration Guide:** See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions- **Changelog:** See [CHANGELOG.md](CHANGELOG.md) for complete release notes## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityThis dataset achieves **100% fidelity** for linguistic data (tokens,annotations, dependencies) and **very high (~98%) fidelity** for metadata. TheParquet files can be perfectly reconstructed back to the original CoNLL-Uformat with:- All linguistic annotations preserved exactly- Multi-word tokens (MWTs) and empty nodes fully supported- Duplicate metadata keys preserved (1,323 sentences across 14 treebanks)- Enhanced dependencies and rare annotation edge cases handled correctlyRecent improvements include fixes for:- Double equals parsing in FEATS/MISC fields (e.g., `Gloss==POSS`)- Empty nodes with ID < 1 (e.g., `0.1` for pro-drop subjects)- Empty metadata values and keys without values- Raw field parsing to bypass library bugsFor technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureAll files use a revised version of [the CoNLL-Xformat](http://anthology.aclweb.org/W/W06/W06-2920.pdf) called CoNLL-U.Annotations are encoded in plain text files (UTF-8, [normalized toNFC](http://unicode.org/reports/tr15/), using only the LF character as linebreak, including an LF character at the end of file).* [Revision (r2.19) specific documentation](https://github.com/UniversalDependencies/docs/blob/r2.19/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset has 402 configurations (treebanks).```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Get the latest configurationsget_dataset_config_names("universal-dependencies/universal_dependencies")# Load a specific treebankdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt")print(dataset)# Output:# DatasetDict({# train: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 12544# })# dev: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2001# })# test: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2077# })# })```### Data FieldsEach example in the dataset contains the following fields:- **sent_id** (string): Sentence ID from the CoNLL-U file metadata- **text** (string): Full sentence text (surface form)- **tokens** (list of strings): Syntactic word forms (MWT surface forms excluded)- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **xpos** (list of strings): Language-specific POS tags- **feats** (list of strings): Morphological features in UD format- **head** (list of integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **mwt** (list of dicts): Multi-Word Token information (NEW in v2.0)- **id** (string): Token range (e.g., "1-2")- **form** (string): Surface form (e.g., "don't")- **misc** (string): MWT-specific metadata- **empty_nodes** (list of dicts): Empty Node Token information (NEW in v2.0)- **comments** (list of strings): All comments including duplicates, empty values, and original ordering (NEW in v2.0)**Example:**```pythonfrom datasets import load_datasetdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", split="train")print(dataset[0])# Output:{'sent_id': 'weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-0001','text': 'Al-Zaman : American forces killed Shaikh Abdullah al-Ani, the preacher at the mosque in the town of Qaim, near the Syrian border.','comments': ['newdoc id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000','__SENT_ID__','newpar id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-p0001','__TEXT__'],'tokens': ['Al', '-', 'Zaman', ':', 'American', 'forces', 'killed', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'lemmas': ['Al', '-', 'Zaman', ':', 'American', 'force', 'kill', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'upos': ['PROPN', 'PUNCT', 'PROPN', 'PUNCT', 'ADJ', 'NOUN', 'VERB', ...],'xpos': ['NNP', 'HYPH', 'NNP', ':', 'JJ', 'NNS', 'VBD', 'NNP', 'NNP', 'NNP', 'HYPH', 'NNP', ',', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'NNP', ',', 'IN', 'DT', 'JJ', 'NN', '.'],'feats': ['Number=Sing', None, 'Number=Sing', None, 'Degree=Pos', 'Number=Plur', 'Mood=Ind|Number=Plur|Person=3|Tense=Past|VerbForm=Fin', 'Number=Sing', 'Number=Sing', 'Number=Sing', None, 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Number=Sing', None, None, 'Definite=Def|PronType=Art', 'Degree=Pos', 'Number=Sing', None],'head': [0, 3, 1, 7, 6, 7, 1, ...],'deprel': ['root', 'punct', 'flat', 'punct', 'amod', 'nsubj', 'parataxis', 'obj', 'flat', 'flat', 'punct', 'flat', 'punct', 'det', 'appos', 'case', 'det', 'nmod', 'case', 'det', 'nmod', 'case', 'nmod', 'punct', 'case', 'det', 'amod', 'nmod', 'punct'],'deps': ['0:root', '3:punct', '1:flat', '7:punct', '6:amod', '7:nsubj', '1:parataxis', '7:obj', '8:flat', '8:flat', '12:punct', '8:flat', '15:punct', '15:det', '8:appos', '18:case', '18:det', '15:nmod:at', '21:case', '21:det', '18:nmod:in', '23:case', '21:nmod:of', '28:punct', '28:case', '28:det', '28:amod', '21:nmod:near', '1:punct'],'misc': ['SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, 'SpaceAfter=No', 'SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, None, None, None, 'SpaceAfter=No', None, None, None, None, 'SpaceAfter=No', None],'mwt': [],'empty_nodes': []}```*MWT Example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", split="train")# Find sentence with MWTexample = [ex for ex in dataset if ex['mwt']][0]print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies", filename="metadata.json", repo_type="dataset")with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)2586 unmodified lines25872588258925902591259225932594259525962597259839 unmodified lines263826392640264126422643264426452646264748 unmodified lines26962697269826992700270127022703270427052706270727082709271027112712271311 unmodified lines27252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327649 unmodified lines2774277527762777277827792780278127822783278427852586 unmodified linespath: parquet/zza_zsd/train.parquet---## Universal Dependencies TreebanksThis dataset packages the official Universal Dependencies 2.19 releaseas Parquet, with one configuration per distributable treebank. Load it with`datasets>=4.0.0`; no remote code is required. UD data revisions are versionedseparately from the Parquet tooling (see [CHANGELOG.md](CHANGELOG.md)).## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityValidation compares reconstructed token annotation lines against the sourceCoNLL-U files, including multi-word tokens, empty nodes, and enhanceddependencies. Comment order and duplicate keys are preserved, but commentwhitespace may differ from the original.For technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureThe Parquet files store sentence-level records derived from the source[CoNLL-U](https://universaldependencies.org/format.html) annotations. Eachrecord keeps syntactic words in the token-aligned fields; multi-word tokensurface forms and empty nodes are stored separately.* [Revision (r2.19) specific documentation](https://github.com/UniversalDependencies/docs/blob/r2.19/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset publishes 399treebank configurations for UD 2.19.```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Load a specific treebank and inspect the splitsdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", revision="2.19")print({split: len(rows) for split, rows in dataset.items()})```### Data FieldsEach example in the dataset contains the following fields:- **tokens** (list of strings): Syntactic word forms, excluding MWT surface forms- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **feats** (list of strings): Morphological features in UD format- **text** (string): Full sentence text (surface form)- **xpos** (list of strings): Language-specific POS tags- **head** (list of 16-bit integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **comments** (list of strings): CoNLL-U comments in source order, including duplicate keys- **mwt** (list of dicts): Multi-word tokens, with `id`, `form`, `feats`, and `misc`- **empty_nodes** (list of dicts): The ten CoNLL-U fields for each empty node- **sent_id** (string): Sentence ID from the CoNLL-U metadata**MWT example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", revision="2.19", split="train")# Find sentence with MWTexample = next(ex for ex in dataset if ex["mwt"])print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies",filename="metadata.json",repo_type="dataset",revision="2.19",)with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)
1234564 unmodified lines1112131415161747 unmodified lines656667686970[project]name = "universal-dependencies"version = "2.4.0"description = "UD Dependencies Data Set"readme = "README.md"requires-python = ">=3.12"4 unmodified lines"conllu>=5.0.0","pytest>=7.0.0","python-dotenv>=1.0.0","ud-hf-parquet-tools","jinja2>=3.1.6",]47 unmodified linesname = "TestPyPI"url = "https://test.pypi.org/simple/"explicit = true[tool.uv.sources]ud-hf-parquet-tools = { git = "https://github.com/ellepannitto/ud-hf-parquet-tools", rev = "44430d894e6373f962a8d4d1effc257d9b01c1db" }1234564 unmodified lines1112131415161747 unmodified lines656667[project]name = "universal-dependencies"version = "2.5.0"description = "UD Dependencies Data Set"readme = "README.md"requires-python = ">=3.12"4 unmodified lines"conllu>=5.0.0","pytest>=7.0.0","python-dotenv>=1.0.0","ud-hf-parquet-tools==1.4.0","jinja2>=3.1.6",]47 unmodified linesname = "TestPyPI"url = "https://test.pypi.org/simple/"explicit = true
2586 unmodified lines25872588258925902591259225932594259525962597259825992600260126022603260426052606260739 unmodified lines2647264826492650265126522653265426552656265726582659266026612662266326642665266648 unmodified lines27152716271727182719272027212722272327242725272627272728272927302731273211 unmodified lines2744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228339 unmodified lines28432844284528462847284828492586 unmodified linespath: parquet/zza_zsd/train.parquet---## Dataset Card (v2.0) for Universal Dependencies Treebank**Version 2.0.0** introduces significant improvements and breaking changes:- **Parquet Format:** faster loading with HuggingFace datasets >=4.0.0- **MWT Support:** New `mwt` field provides structured multi-word token information- **Enhanced Security:** No more `trust_remote_code=True` required- **Separate Versioning:** Loader version (2.0.0) distinct from UD data version (2.19)**Breaking Changes:**- Token sequences now exclude MWT surface forms (matches UD guidelines)- Requires `datasets>=4.0.0` for Parquet support- **Migration Guide:** See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions- **Changelog:** See [CHANGELOG.md](CHANGELOG.md) for complete release notes## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityThis dataset achieves **100% fidelity** for linguistic data (tokens,annotations, dependencies) and **very high (~98%) fidelity** for metadata. TheParquet files can be perfectly reconstructed back to the original CoNLL-Uformat with:- All linguistic annotations preserved exactly- Multi-word tokens (MWTs) and empty nodes fully supported- Duplicate metadata keys preserved (1,323 sentences across 14 treebanks)- Enhanced dependencies and rare annotation edge cases handled correctlyRecent improvements include fixes for:- Double equals parsing in FEATS/MISC fields (e.g., `Gloss==POSS`)- Empty nodes with ID < 1 (e.g., `0.1` for pro-drop subjects)- Empty metadata values and keys without values- Raw field parsing to bypass library bugsFor technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureAll files use a revised version of [the CoNLL-Xformat](http://anthology.aclweb.org/W/W06/W06-2920.pdf) called CoNLL-U.Annotations are encoded in plain text files (UTF-8, [normalized toNFC](http://unicode.org/reports/tr15/), using only the LF character as linebreak, including an LF character at the end of file).* [Revision (r2.19) specific documentation](https://github.com/UniversalDependencies/docs/blob/r2.19/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset has 402 configurations (treebanks).```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Get the latest configurationsget_dataset_config_names("universal-dependencies/universal_dependencies")# Load a specific treebankdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt")print(dataset)# Output:# DatasetDict({# train: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 12544# })# dev: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2001# })# test: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2077# })# })```### Data FieldsEach example in the dataset contains the following fields:- **sent_id** (string): Sentence ID from the CoNLL-U file metadata- **text** (string): Full sentence text (surface form)- **tokens** (list of strings): Syntactic word forms (MWT surface forms excluded)- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **xpos** (list of strings): Language-specific POS tags- **feats** (list of strings): Morphological features in UD format- **head** (list of integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **mwt** (list of dicts): Multi-Word Token information (NEW in v2.0)- **id** (string): Token range (e.g., "1-2")- **form** (string): Surface form (e.g., "don't")- **misc** (string): MWT-specific metadata- **empty_nodes** (list of dicts): Empty Node Token information (NEW in v2.0)- **comments** (list of strings): All comments including duplicates, empty values, and original ordering (NEW in v2.0)**Example:**```pythonfrom datasets import load_datasetdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", split="train")print(dataset[0])# Output:{'sent_id': 'weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-0001','text': 'Al-Zaman : American forces killed Shaikh Abdullah al-Ani, the preacher at the mosque in the town of Qaim, near the Syrian border.','comments': ['newdoc id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000','__SENT_ID__','newpar id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-p0001','__TEXT__'],'tokens': ['Al', '-', 'Zaman', ':', 'American', 'forces', 'killed', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'lemmas': ['Al', '-', 'Zaman', ':', 'American', 'force', 'kill', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'upos': ['PROPN', 'PUNCT', 'PROPN', 'PUNCT', 'ADJ', 'NOUN', 'VERB', ...],'xpos': ['NNP', 'HYPH', 'NNP', ':', 'JJ', 'NNS', 'VBD', 'NNP', 'NNP', 'NNP', 'HYPH', 'NNP', ',', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'NNP', ',', 'IN', 'DT', 'JJ', 'NN', '.'],'feats': ['Number=Sing', None, 'Number=Sing', None, 'Degree=Pos', 'Number=Plur', 'Mood=Ind|Number=Plur|Person=3|Tense=Past|VerbForm=Fin', 'Number=Sing', 'Number=Sing', 'Number=Sing', None, 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Number=Sing', None, None, 'Definite=Def|PronType=Art', 'Degree=Pos', 'Number=Sing', None],'head': [0, 3, 1, 7, 6, 7, 1, ...],'deprel': ['root', 'punct', 'flat', 'punct', 'amod', 'nsubj', 'parataxis', 'obj', 'flat', 'flat', 'punct', 'flat', 'punct', 'det', 'appos', 'case', 'det', 'nmod', 'case', 'det', 'nmod', 'case', 'nmod', 'punct', 'case', 'det', 'amod', 'nmod', 'punct'],'deps': ['0:root', '3:punct', '1:flat', '7:punct', '6:amod', '7:nsubj', '1:parataxis', '7:obj', '8:flat', '8:flat', '12:punct', '8:flat', '15:punct', '15:det', '8:appos', '18:case', '18:det', '15:nmod:at', '21:case', '21:det', '18:nmod:in', '23:case', '21:nmod:of', '28:punct', '28:case', '28:det', '28:amod', '21:nmod:near', '1:punct'],'misc': ['SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, 'SpaceAfter=No', 'SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, None, None, None, 'SpaceAfter=No', None, None, None, None, 'SpaceAfter=No', None],'mwt': [],'empty_nodes': []}```*MWT Example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", split="train")# Find sentence with MWTexample = [ex for ex in dataset if ex['mwt']][0]print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies", filename="metadata.json", repo_type="dataset")with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)2586 unmodified lines25872588258925902591259225932594259525962597259839 unmodified lines263826392640264126422643264426452646264748 unmodified lines26962697269826992700270127022703270427052706270727082709271027112712271311 unmodified lines27252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327649 unmodified lines2774277527762777277827792780278127822783278427852586 unmodified linespath: parquet/zza_zsd/train.parquet---## Universal Dependencies TreebanksThis dataset packages the official Universal Dependencies 2.19 releaseas Parquet, with one configuration per distributable treebank. Load it with`datasets>=4.0.0`; no remote code is required. UD data revisions are versionedseparately from the Parquet tooling (see [CHANGELOG.md](CHANGELOG.md)).## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityValidation compares reconstructed token annotation lines against the sourceCoNLL-U files, including multi-word tokens, empty nodes, and enhanceddependencies. Comment order and duplicate keys are preserved, but commentwhitespace may differ from the original.For technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureThe Parquet files store sentence-level records derived from the source[CoNLL-U](https://universaldependencies.org/format.html) annotations. Eachrecord keeps syntactic words in the token-aligned fields; multi-word tokensurface forms and empty nodes are stored separately.* [Revision (r2.19) specific documentation](https://github.com/UniversalDependencies/docs/blob/r2.19/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset publishes 399treebank configurations for UD 2.19.```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Load a specific treebank and inspect the splitsdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", revision="2.19")print({split: len(rows) for split, rows in dataset.items()})```### Data FieldsEach example in the dataset contains the following fields:- **tokens** (list of strings): Syntactic word forms, excluding MWT surface forms- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **feats** (list of strings): Morphological features in UD format- **text** (string): Full sentence text (surface form)- **xpos** (list of strings): Language-specific POS tags- **head** (list of 16-bit integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **comments** (list of strings): CoNLL-U comments in source order, including duplicate keys- **mwt** (list of dicts): Multi-word tokens, with `id`, `form`, `feats`, and `misc`- **empty_nodes** (list of dicts): The ten CoNLL-U fields for each empty node- **sent_id** (string): Sentence ID from the CoNLL-U metadata**MWT example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", revision="2.19", split="train")# Find sentence with MWTexample = next(ex for ex in dataset if ex["mwt"])print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies",filename="metadata.json",repo_type="dataset",revision="2.19",)with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)
48 unmodified lines49505152535455565758596061626364656667686939 unmodified lines10911011111211311411511611711811912012112212312412512612712848 unmodified lines17717817918018118218318418518618718818919019119219319411 unmodified lines2062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942959 unmodified lines30530630730830931031148 unmodified lines{%- endfor %}---## Dataset Card (v2.0) for Universal Dependencies Treebank**Version 2.0.0** introduces significant improvements and breaking changes:- **Parquet Format:** faster loading with HuggingFace datasets >=4.0.0- **MWT Support:** New `mwt` field provides structured multi-word token information- **Enhanced Security:** No more `trust_remote_code=True` required- **Separate Versioning:** Loader version (2.0.0) distinct from UD data version ({{ ud_ver }})**Breaking Changes:**- Token sequences now exclude MWT surface forms (matches UD guidelines)- Requires `datasets>=4.0.0` for Parquet support- **Migration Guide:** See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions- **Changelog:** See [CHANGELOG.md](CHANGELOG.md) for complete release notes## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityThis dataset achieves **100% fidelity** for linguistic data (tokens,annotations, dependencies) and **very high (~98%) fidelity** for metadata. TheParquet files can be perfectly reconstructed back to the original CoNLL-Uformat with:- All linguistic annotations preserved exactly- Multi-word tokens (MWTs) and empty nodes fully supported- Duplicate metadata keys preserved (1,323 sentences across 14 treebanks)- Enhanced dependencies and rare annotation edge cases handled correctlyRecent improvements include fixes for:- Double equals parsing in FEATS/MISC fields (e.g., `Gloss==POSS`)- Empty nodes with ID < 1 (e.g., `0.1` for pro-drop subjects)- Empty metadata values and keys without values- Raw field parsing to bypass library bugsFor technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureAll files use a revised version of [the CoNLL-Xformat](http://anthology.aclweb.org/W/W06/W06-2920.pdf) called CoNLL-U.Annotations are encoded in plain text files (UTF-8, [normalized toNFC](http://unicode.org/reports/tr15/), using only the LF character as linebreak, including an LF character at the end of file).* [Revision (r{{ ud_ver }}) specific documentation](https://github.com/UniversalDependencies/docs/blob/r{{ ud_ver }}/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset has {{ data.items()|length }} configurations (treebanks).```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Get the latest configurationsget_dataset_config_names("universal-dependencies/universal_dependencies")# Load a specific treebankdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt")print(dataset)# Output:# DatasetDict({# train: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 12544# })# dev: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2001# })# test: Dataset({# features: ['sent_id', 'text', 'comments', 'tokens', 'lemmas', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'mwt', 'empty_nodes'],# num_rows: 2077# })# })```### Data FieldsEach example in the dataset contains the following fields:- **sent_id** (string): Sentence ID from the CoNLL-U file metadata- **text** (string): Full sentence text (surface form)- **tokens** (list of strings): Syntactic word forms (MWT surface forms excluded)- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **xpos** (list of strings): Language-specific POS tags- **feats** (list of strings): Morphological features in UD format- **head** (list of integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **mwt** (list of dicts): Multi-Word Token information (NEW in v2.0)- **id** (string): Token range (e.g., "1-2")- **form** (string): Surface form (e.g., "don't")- **misc** (string): MWT-specific metadata- **empty_nodes** (list of dicts): Empty Node Token information (NEW in v2.0)- **comments** (list of strings): All comments including duplicates, empty values, and original ordering (NEW in v2.0)**Example:**```pythonfrom datasets import load_datasetdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", split="train")print(dataset[0])# Output:{'sent_id': 'weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-0001','text': 'Al-Zaman : American forces killed Shaikh Abdullah al-Ani, the preacher at the mosque in the town of Qaim, near the Syrian border.','comments': ['newdoc id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000','__SENT_ID__','newpar id = weblog-juancole.com_juancole_20051126063000_ENG_20051126_063000-p0001','__TEXT__'],'tokens': ['Al', '-', 'Zaman', ':', 'American', 'forces', 'killed', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'lemmas': ['Al', '-', 'Zaman', ':', 'American', 'force', 'kill', 'Shaikh', 'Abdullah', 'al', '-', 'Ani', ',', 'the', 'preacher', 'at', 'the', 'mosque', 'in', 'the', 'town', 'of', 'Qaim', ',', 'near', 'the', 'Syrian', 'border', '.'],'upos': ['PROPN', 'PUNCT', 'PROPN', 'PUNCT', 'ADJ', 'NOUN', 'VERB', ...],'xpos': ['NNP', 'HYPH', 'NNP', ':', 'JJ', 'NNS', 'VBD', 'NNP', 'NNP', 'NNP', 'HYPH', 'NNP', ',', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'DT', 'NN', 'IN', 'NNP', ',', 'IN', 'DT', 'JJ', 'NN', '.'],'feats': ['Number=Sing', None, 'Number=Sing', None, 'Degree=Pos', 'Number=Plur', 'Mood=Ind|Number=Plur|Person=3|Tense=Past|VerbForm=Fin', 'Number=Sing', 'Number=Sing', 'Number=Sing', None, 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Definite=Def|PronType=Art', 'Number=Sing', None, 'Number=Sing', None, None, 'Definite=Def|PronType=Art', 'Degree=Pos', 'Number=Sing', None],'head': [0, 3, 1, 7, 6, 7, 1, ...],'deprel': ['root', 'punct', 'flat', 'punct', 'amod', 'nsubj', 'parataxis', 'obj', 'flat', 'flat', 'punct', 'flat', 'punct', 'det', 'appos', 'case', 'det', 'nmod', 'case', 'det', 'nmod', 'case', 'nmod', 'punct', 'case', 'det', 'amod', 'nmod', 'punct'],'deps': ['0:root', '3:punct', '1:flat', '7:punct', '6:amod', '7:nsubj', '1:parataxis', '7:obj', '8:flat', '8:flat', '12:punct', '8:flat', '15:punct', '15:det', '8:appos', '18:case', '18:det', '15:nmod:at', '21:case', '21:det', '18:nmod:in', '23:case', '21:nmod:of', '28:punct', '28:case', '28:det', '28:amod', '21:nmod:near', '1:punct'],'misc': ['SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, 'SpaceAfter=No', 'SpaceAfter=No', 'SpaceAfter=No', None, None, None, None, None, None, None, None, None, None, 'SpaceAfter=No', None, None, None, None, 'SpaceAfter=No', None],'mwt': [],'empty_nodes': []}```*MWT Example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", split="train")# Find sentence with MWTexample = [ex for ex in dataset if ex['mwt']][0]print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies", filename="metadata.json", repo_type="dataset")with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)48 unmodified lines49505152535455565758596039 unmodified lines10010110210310410510610710810948 unmodified lines15815916016116216316416516616716816917017117217317417511 unmodified lines1871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252269 unmodified lines23623723823924024124224324424524624748 unmodified lines{%- endfor %}---## Universal Dependencies TreebanksThis dataset packages the official Universal Dependencies {{ ud_ver }} releaseas Parquet, with one configuration per distributable treebank. Load it with`datasets>=4.0.0`; no remote code is required. UD data revisions are versionedseparately from the Parquet tooling (see [CHANGELOG.md](CHANGELOG.md)).## Table of Contents- [Dataset Description](#dataset-description)39 unmodified lines### Data Quality & FidelityValidation compares reconstructed token annotation lines against the sourceCoNLL-U files, including multi-word tokens, empty nodes, and enhanceddependencies. Comment order and duplicate keys are preserved, but commentwhitespace may differ from the original.For technical details, see [CONLLU_PARSING.md](https://github.com/bot-zen/ud-hf-parquet-tools/blob/main/CONLLU_PARSING.md) in the ud-hf-parquet-tools repository.48 unmodified lines## Dataset StructureThe Parquet files store sentence-level records derived from the source[CoNLL-U](https://universaldependencies.org/format.html) annotations. Eachrecord keeps syntactic words in the token-aligned fields; multi-word tokensurface forms and empty nodes are stored separately.* [Revision (r{{ ud_ver }}) specific documentation](https://github.com/UniversalDependencies/docs/blob/r{{ ud_ver }}/format.md)* [Latest UD CoNLL-U Format documentation](https://universaldependencies.org/format.html)### Data InstancesThis dataset publishes {{ data.values()|rejectattr('blocked')|list|length }}treebank configurations for UD {{ ud_ver }}.```pythonfrom datasets import get_dataset_config_names, load_dataset11 unmodified lines# ...# ]# Load a specific treebank and inspect the splitsdataset = load_dataset("universal-dependencies/universal_dependencies", "en_ewt", revision="{{ ud_ver }}")print({split: len(rows) for split, rows in dataset.items()})```### Data FieldsEach example in the dataset contains the following fields:- **tokens** (list of strings): Syntactic word forms, excluding MWT surface forms- **lemmas** (list of strings): Lemmas for each syntactic word- **upos** (list of strings): Universal POS tags- **feats** (list of strings): Morphological features in UD format- **text** (string): Full sentence text (surface form)- **xpos** (list of strings): Language-specific POS tags- **head** (list of 16-bit integers): Head indices for dependency relations- **deprel** (list of strings): Dependency relation labels- **deps** (list of strings): Enhanced dependency graph- **misc** (list of strings): Miscellaneous annotations- **comments** (list of strings): CoNLL-U comments in source order, including duplicate keys- **mwt** (list of dicts): Multi-word tokens, with `id`, `form`, `feats`, and `misc`- **empty_nodes** (list of dicts): The ten CoNLL-U fields for each empty node- **sent_id** (string): Sentence ID from the CoNLL-U metadata**MWT example (French):**```pythondataset = load_dataset("universal-dependencies/universal_dependencies", "fr_gsd", revision="{{ ud_ver }}", split="train")# Find sentence with MWTexample = next(ex for ex in dataset if ex["mwt"])print(example['mwt'])# Output:9 unmodified linesfrom huggingface_hub import hf_hub_downloadimport jsonmd = hf_hub_download(repo_id="universal-dependencies/universal_dependencies",filename="metadata.json",repo_type="dataset",revision="{{ ud_ver }}",)with open(md, "r", encoding="utf-8") as f:metadata = json.load(f)
CHANGELOG.md+13
README.md+39-103
pyproject.toml+2-5
tools/README-2.19+39-103
tools/templates/README.tmpl+39-103