Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
ner_tags: list<item: int64>
  child 0, item: int64
tokens: list<item: string>
  child 0, item: string
pos_tags: list<item: string>
  child 0, item: string
__index_level_0__: int64
-- schema metadata --
pandas: '{"index_columns": ["__index_level_0__"], "column_indexes": [{"na' + 689
to
{'ner_tags': List(Value('int64')), 'tokens': List(Value('string')), 'pos_tags': List(Value('string'))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2567, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2102, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2125, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 479, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 380, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 209, in _generate_tables
                  yield Key(file_idx, batch_idx), self._cast_table(pa_table)
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 147, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              ner_tags: list<item: int64>
                child 0, item: int64
              tokens: list<item: string>
                child 0, item: string
              pos_tags: list<item: string>
                child 0, item: string
              __index_level_0__: int64
              -- schema metadata --
              pandas: '{"index_columns": ["__index_level_0__"], "column_indexes": [{"na' + 689
              to
              {'ner_tags': List(Value('int64')), 'tokens': List(Value('string')), 'pos_tags': List(Value('string'))}
              because column names don't match

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.

WikiNER-fr-gold

This dataset is a manually revised version of 20% of the French proportion of WikiNER. The original dataset is currently available here, based on which WikiNER-fr-gold is created. The entities are annotated using the BIOES scheme. The POS tags are not revised i.e. remain the same as the original dataset.

For more information on the revision details, please refer to our paper WikiNER-fr-gold: A Gold-Standard NER Corpus.

The dataset is available in two formats. The CoNLL version contains three columns: text, POS and NER. The Parquet version is downloadable using the datasets library. Originally conceived as a test set, there is no recommended train/dev/test split. The downloaded dataset is by default labeled train.

from datasets import load_dataset

ds = load_dataset('danrun/WikiNER-fr-gold')

ds['train'][0]
# {'ner_tags': [...], 'tokens': [...], 'pos_tags': [...]}

The NER tags are indexed using the following table (see labels.json):

{
 'O': 0,
 'B-PER': 1,
 'I-PER': 2,
 'E-PER': 3,
 'S-PER': 4,
 'B-LOC': 5,
 'I-LOC': 6,
 'E-LOC': 7,
 'S-LOC': 8,
 'B-ORG': 9,
 'I-ORG': 10,
 'E-ORG': 11,
 'S-ORG': 12,
 'B-MISC': 13,
 'I-MISC': 14,
 'E-MISC': 15,
 'S-MISC': 16
}

Citation

@misc{cao2024wikinerfrgoldgoldstandardnercorpus,
      title={WikiNER-fr-gold: A Gold-Standard NER Corpus}, 
      author={Danrun Cao and Nicolas Béchet and Pierre-François Marteau},
      year={2024},
      eprint={2411.00030},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2411.00030}, 
}
Downloads last month
62

Paper for danrun/WikiNER-fr-gold