Dataset Preview Go to dataset viewer
The dataset preview is not available for this dataset.
Cannot get the split names for the dataset.
Error code:   SplitsNamesError
Exception:    AttributeError
Message:      'NoneType' object has no attribute 'strip'
Traceback:    Traceback (most recent call last):
                File "/src/workers/datasets_based/src/datasets_based/workers/", line 119, in compute_splits_response
                  split_items = get_dataset_split_full_names(dataset=dataset, use_auth_token=use_auth_token)
                File "/src/workers/datasets_based/src/datasets_based/workers/", line 76, in get_dataset_split_full_names
                  return [
                File "/src/workers/datasets_based/src/datasets_based/workers/", line 79, in <listcomp>
                  for split in get_dataset_split_names(path=dataset, config_name=config, use_auth_token=use_auth_token)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 442, in get_dataset_split_names
                  info = get_dataset_config_info(
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 367, in get_dataset_config_info
                  builder = load_dataset_builder(
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 1519, in load_dataset_builder
                  builder_instance: DatasetBuilder = builder_cls(
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 1357, in __init__
                  super().__init__(*args, **kwargs)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 322, in __init__
                  self.config, self.config_id = self._create_builder_config(
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/", line 475, in _create_builder_config
                  builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/badranx--opus_raw/767baf8bcc7044cdf1bb7099aba1dfe3515a64a8ede469fefd25fb6bc5f2ab48/", line 40, in __init__
              AttributeError: 'NoneType' object has no attribute 'strip'

Need help to make the dataset viewer work? Open an discussion for direct support.

YAML Metadata Warning: empty or missing yaml metadata in repo card (

Load mono corpora from OPUS

OPUS provides many parallel corpora, but it has more data for a single language. This enables you to load any raw mono corpus from Please check for the available corpora and licenses. The targeted corpus is called raw corpus on OPUS.

To use it, you need the name of the corpus, the version, and the target language code. The corpus name and version are provided in one string seperated by space (e.g. 'News-Commentary v16'). All of these can be found on

I didn't provide any default dataset, because this targets different datasets at once. You must provide two parameters as configurations: corpus and lang, see the example below.


dataset = load_dataset('badranx/opus_raw', corpus="News-Commentary v16", lang="de")


The structure is simple.

   "id": datasets.Value("string"),
   "text": datasets.Value("string"),

"text" can be one or more sentences, but not more than a paragraph.

Downloads last month