Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Information

This dataset is designed for the Dependency parsing task and is used to train the Airudit multitask model.

Dataset Description

The dataset combines Universal Dependencies v2.17 French corpora available at
commul/universal_dependencies.

Included corpora:

  • commul/universal_dependencies/fr_gsd
  • commul/universal_dependencies/fr_sequoia
  • commul/universal_dependencies/fr_rhapsodie

Nb. Other corpora, as 'fr_parisstories', 'fr_partut', 'fr_poitevindivital', 'fr_pud' are excluded because of too large difference in labels sets.

Dataset Structure

The dataset contains the following splits:

DatasetDict({
    train: Dataset({
        features: ['sent_id', 'tokens', 'head', 'deprel'],
        num_rows: 17925
    })
    dev: Dataset({
        features: ['sent_id', 'tokens', 'head', 'deprel'],
        num_rows: 2950
    })
    test_fr_gsd: Dataset({
        features: ['sent_id', 'tokens', 'head', 'deprel'],
        num_rows: 415
    })
    test_fr_rhapsodie: Dataset({
        features: ['sent_id', 'tokens', 'head', 'deprel'],
        num_rows: 812
    })
    test_fr_sequoia: Dataset({
        features: ['sent_id', 'tokens', 'head', 'deprel'],
        num_rows: 456
    })
})

Labels

Labels are encoded in the dataset and can be retrieved as following :

from datasets import load_dataset
ds = load_dataset('airudit/UD_v2_17_DEP')
ds["train"].features["deprel"].feature.names
# ['acl', 'acl:relcl', 'advcl', 'advcl:cleft', 'advmod', 'amod', 'appos', 'aux', 'aux:caus', 'aux:pass', 'aux:tense', 'case', 'cc', 'ccomp', 'compound', 'conj', 'cop', 'csubj', 'csubj:pass', 'dep', 'dep:comp', 'det', 'discourse', 'dislocated', 'expl:comp', 'expl:pass', 'expl:subj', 'fixed', 'flat:foreign', 'flat:name', 'iobj', 'mark', 'nmod', 'nsubj', 'nsubj:caus', 'nsubj:outer', 'nsubj:pass', 'nummod', 'obj', 'obj:lvc', 'obl', 'obl:agent', 'obl:arg', 'obl:mod', 'orphan', 'parataxis', 'parataxis:insert', 'punct', 'reparandum', 'root', 'vocative', 'xcomp']

πŸ” Quick usage example:

from datasets import load_dataset
ds = load_dataset('airudit/UD_v2_17_DEP')
ds["train"][0]
# {'sent_id': [...], 'tokens': [...], 'head': [...], 'deprel': [...]}

πŸ“¦ Dataset Pre-Processing :

Dependency Relation Filtering :

Sentences containing the following dependency relations are removed:

  • flat This relation does not appear in Sequoia treebank beacause the annotation always uses a subtype (e.g. flat:name). When flat is not subtyped it is difficult to automatically map it to a consistent subype.
  • parataxis:parenth is used to annotate parenthetical clauses. Only present in Rhapsodie treebank. The number of occurrences is small (39 occ), and parentical are currently not cosidered essential for target multitask model.

In total, removed 14 sentences for GSD treebank and 78 sentences for Rhapsodie treebank.

Dependency Relation Normalization :

To harmonize the annotation schemes across treebanks, the following mapping is applied:

{
  "goeswith": "compound",
  "expl:pv": "expl:pass",
  "obj:agent": "obj",
  "iobj:agent": "iobj",
  "nmod:appos": "nmod"
}

Occurrences affected by this normalization:

fr_gsd
{'expl:pv': 1016, 'obj:agent': 111, 'goeswith': 38, 'iobj:agent': 24}
fr_rhapsodie
{'nmod:appos': 115}
fr_sequoia
{'expl:pv': 242, 'obj:agent': 12, 'goeswith': 2, 'iobj:agent': 1}

Additional Label

The relation reparandum is added to the final vocabulary.

  • The label appears only in Rhapsodie treebank (1205 occ).
  • It is used to annotate speech disfluencies and self-corrections.
  • This information can be useful for ASR post-processing tasks.

Structure

  • Train and dev splits from all corpora are merged into unified train and dev splits.
  • Test splits are preserved and renamed according to their source corpus.
  • Only the relevant columns are kept: ["sent_id", "tokens", "head", "deprel"].
  • The dataset was generated using the following script: multitask-nlp/src/multitask_nlp/datasets/dependency_dataset_preparation.py
Downloads last month
10