Datasets:
wmt
/

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:
lhoestq HF staff commited on
Commit
504f121
1 Parent(s): a3783b8

Fix: wmt datasets - fix CWMT zh subsets (#4871)

Browse files

fix cwmt zh subsets

Commit from https://github.com/huggingface/datasets/commit/54b532a8a2f5353fdb0207578162153f7b2da2ec

Files changed (1) hide show
  1. wmt_utils.py +1 -1
wmt_utils.py CHANGED
@@ -872,7 +872,7 @@ def _parse_parallel_sentences(f1, f2, filename1, filename2):
872
  if split_path[-1] == "txt":
873
  # CWMT
874
  lang = split_path[-2].split("_")[-1]
875
- lang = "zh" if lang in ("ch", "cn") else lang
876
  else:
877
  lang = split_path[-1]
878
 
 
872
  if split_path[-1] == "txt":
873
  # CWMT
874
  lang = split_path[-2].split("_")[-1]
875
+ lang = "zh" if lang in ("ch", "cn", "c[hn]") else lang
876
  else:
877
  lang = split_path[-1]
878