Download test_data_integrity.py from openlanguagedata/oldi_seed: direct link, hf CLI and curl.
- Browser
- Download file 23.8 kB
-
https://huggingface.co/datasets/openlanguagedata/oldi_seed/resolve/main/test_data_integrity.py
- Command line
-
hf download hf://datasets/openlanguagedata/oldi_seed/test_data_integrity.py
-
curl -L -o test_data_integrity.py https://huggingface.co/datasets/openlanguagedata/oldi_seed/resolve/main/test_data_integrity.py
23.8 kB
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "datasets", | |
| # "pandas", | |
| # "pytest", | |
| # "scipy", | |
| # "tqdm", | |
| # ] | |
| # /// | |
| from collections import Counter, defaultdict | |
| from pathlib import Path | |
| import datasets | |
| import pandas as pd | |
| from tqdm.auto import tqdm | |
| def load_jsonl_data(data_path, tmp_path): | |
| print("Loading dataset from", data_path) | |
| data = datasets.load_dataset( | |
| path=str(data_path), | |
| cache_dir=str(tmp_path), | |
| data_files={"train": "seed/*.jsonl"}, | |
| ) | |
| return data | |
| def test_texts_adequacy(tmp_path): | |
| """ | |
| This test provides a few basic checks of the data integrity: | |
| 1. A correct number of sentences for each split and language. | |
| 2. Correct row ids for each language. | |
| 3. Sentence length (should be between 5 and 700 characters; it's OK to modify these limits if needed). | |
| 4. Correlation of sentence lengths with English (normally should be above 0.5; lower number may indicate poor translation quality). | |
| """ | |
| data_path = Path(__file__).parent.resolve() | |
| data = load_jsonl_data(data_path, tmp_path) | |
| issues = [] | |
| def spot(x): | |
| issues.append(x) | |
| print(x) | |
| for split, raw_dataset in data.items(): | |
| df_long = raw_dataset.to_pandas() | |
| keys = ["iso_639_3", "iso_15924", "glottocode"] | |
| key2short = { | |
| k: v.sort_values("id").reset_index(drop=True) | |
| for k, v in df_long.groupby(keys) | |
| } | |
| df_en = key2short[("eng", "Latn", "stan1293")] | |
| for k, df in key2short.items(): | |
| assert df.shape == df_en.shape, ( | |
| f"The {split} dataset for {k} has unusual shape {df.shape} (expected {df_en.shape})" | |
| ) | |
| assert (df_en.columns == df.columns).all(), ( | |
| f"The {split} dataset for {k} has confusing column names: {df.columns}." | |
| ) | |
| assert (df["id"] == df_en["id"]).all(), ( | |
| f"The {split} dataset for {k} has confusing values in the `id` column." | |
| ) | |
| lengths = df["text"].str.len() | |
| too_short = df[lengths <= 5] | |
| too_long = df[lengths > 700] | |
| # Shan has some very long sentences. | |
| if k != ("shn", "Mymr", "shan1277"): | |
| if too_short.shape[0] > 0: | |
| spot( | |
| f"The {split} dataset for {k} has very short sentences: {too_short.text.tolist()}" | |
| ) | |
| if too_long.shape[0] > 0: | |
| spot( | |
| f"The {split} dataset for {k} has very long sentences: {too_long.text.tolist()}" | |
| ) | |
| corr = df_en["text"].str.len().corr(lengths, method="spearman") | |
| if corr < 0.59: | |
| spot( | |
| f"The {split} dataset for {k} has low correlation of text lengths with English: {corr}." | |
| ) | |
| assert len(issues) == 0, ( | |
| f"In the dataset, {len(issues)} issues were found (see the messages printed above)" | |
| ) | |
| def test_identical_translations(tmp_path): | |
| ds_path = Path(__file__).parent.resolve() | |
| data = load_jsonl_data(ds_path, tmp_path) | |
| df_long = pd.concat([df.to_pandas() for df in data.values()], ignore_index=True) | |
| copies = [] | |
| for row_id, part in tqdm(df_long.groupby("id"), desc="Finding copies"): | |
| text2value = defaultdict(set) | |
| for row in part.sort_values( | |
| ["iso_639_3", "iso_15924", "glottocode"] | |
| ).itertuples(): | |
| key = (row.iso_639_3, row.iso_15924, row.glottocode) | |
| for other_key in text2value[row.text]: | |
| copies.append([row_id, other_key, key, row.text]) | |
| text2value[row.text].add(key) | |
| print("Total copies:", len(copies)) | |
| copy_pairs = Counter((l1, l2) for row_id, l1, l2, text in copies) | |
| print("All copypaste translations (just for reference):") | |
| for (l1, l2), cnt in copy_pairs.most_common(): | |
| print(f"{(l1, l2)}: {cnt},") | |
| unexpected = False | |
| for (l1, l2), cnt in copy_pairs.most_common(): | |
| if (l1, l2) not in EXPECTED_COPIES: | |
| unexpected = True | |
| print( | |
| f"New lang pair with exact copies! {l1} and {l2}; {cnt} copypaste translations!" | |
| ) | |
| continue | |
| excnt = EXPECTED_COPIES[(l1, l2)] | |
| if excnt < cnt: | |
| unexpected = True | |
| print(f"New copies for {l1} and {l2}: {excnt} => {cnt}") | |
| continue | |
| if excnt > cnt: | |
| print(f"Less copies for {l1} and {l2}: {excnt} => {cnt}") | |
| assert not unexpected, ( | |
| "Some unexpected copypaste translations appeared! See the messages above." | |
| ) | |
| # These are the copy-paste translation currently present. | |
| # We tolerate them, but we don't want any more! | |
| # In many cases, these are false positives from bibliographic | |
| # entries that should be kept as-is. | |
| EXPECTED_COPIES = { | |
| (('taq', 'Tfng', 'tama1365'), ('zgh', 'Tfng', 'stan1324')): 1649, | |
| (('eng', 'Latn', 'stan1293'), ('szl', 'Latn', 'sile1253')): 17, | |
| (('eng', 'Latn', 'stan1293'), ('fra', 'Latn', 'stan1290')): 16, | |
| (('ben', 'Beng', 'beng1280'), ('mni', 'Beng', 'mani1292')): 15, | |
| (('scn', 'Latn', 'sici1248'), ('srd', 'Latn', 'sard1257')): 12, | |
| (('eng', 'Latn', 'stan1293'), ('lij', 'Latn', 'geno1240')): 11, | |
| (('eng', 'Latn', 'stan1293'), ('lim', 'Latn', 'limb1263')): 11, | |
| (('fra', 'Latn', 'stan1290'), ('szl', 'Latn', 'sile1253')): 11, | |
| (('fra', 'Latn', 'stan1290'), ('lim', 'Latn', 'limb1263')): 10, | |
| (('eng', 'Latn', 'stan1293'), ('vec', 'Latn', 'vene1259')): 10, | |
| (('scn', 'Latn', 'sici1248'), ('vec', 'Latn', 'vene1259')): 10, | |
| (('eng', 'Latn', 'stan1293'), ('ita', 'Latn', 'ital1282')): 9, | |
| (('ita', 'Latn', 'ital1282'), ('lij', 'Latn', 'geno1240')): 9, | |
| (('lij', 'Latn', 'geno1240'), ('lim', 'Latn', 'limb1263')): 9, | |
| (('eng', 'Latn', 'stan1293'), ('scn', 'Latn', 'sici1248')): 9, | |
| (('lij', 'Latn', 'geno1240'), ('scn', 'Latn', 'sici1248')): 9, | |
| (('ban', 'Latn', 'bali1278'), ('eng', 'Latn', 'stan1293')): 8, | |
| (('fra', 'Latn', 'stan1290'), ('lij', 'Latn', 'geno1240')): 8, | |
| (('ita', 'Latn', 'ital1282'), ('lim', 'Latn', 'limb1263')): 8, | |
| (('lij', 'Latn', 'geno1240'), ('vec', 'Latn', 'vene1259')): 8, | |
| (('srd', 'Latn', 'sard1257'), ('vec', 'Latn', 'vene1259')): 8, | |
| (('eng', 'Latn', 'stan1293'), ('fur', 'Latn', 'east2271')): 8, | |
| (('ita', 'Latn', 'ital1282'), ('srd', 'Latn', 'sard1257')): 8, | |
| (('szl', 'Latn', 'sile1253'), ('vec', 'Latn', 'vene1259')): 8, | |
| (('fur', 'Latn', 'east2271'), ('vec', 'Latn', 'vene1259')): 8, | |
| (('fur', 'Latn', 'east2271'), ('scn', 'Latn', 'sici1248')): 8, | |
| (('fra', 'Latn', 'stan1290'), ('ita', 'Latn', 'ital1282')): 7, | |
| (('ita', 'Latn', 'ital1282'), ('scn', 'Latn', 'sici1248')): 7, | |
| (('fra', 'Latn', 'stan1290'), ('scn', 'Latn', 'sici1248')): 7, | |
| (('lim', 'Latn', 'limb1263'), ('scn', 'Latn', 'sici1248')): 7, | |
| (('ita', 'Latn', 'ital1282'), ('vec', 'Latn', 'vene1259')): 7, | |
| (('fra', 'Latn', 'stan1290'), ('vec', 'Latn', 'vene1259')): 7, | |
| (('lmo', 'Latn', 'lomb1257'), ('vec', 'Latn', 'vene1259')): 7, | |
| (('lim', 'Latn', 'limb1263'), ('vec', 'Latn', 'vene1259')): 7, | |
| (('fra', 'Latn', 'stan1290'), ('fur', 'Latn', 'east2271')): 7, | |
| (('fur', 'Latn', 'east2271'), ('lim', 'Latn', 'limb1263')): 7, | |
| (('eng', 'Latn', 'stan1293'), ('srd', 'Latn', 'sard1257')): 7, | |
| (('lij', 'Latn', 'geno1240'), ('srd', 'Latn', 'sard1257')): 7, | |
| (('ita', 'Latn', 'ital1282'), ('szl', 'Latn', 'sile1253')): 7, | |
| (('knc', 'Latn', 'cent2050'), ('scn', 'Latn', 'sici1248')): 7, | |
| (('eng', 'Latn', 'stan1293'), ('lmo', 'Latn', 'lomb1257')): 6, | |
| (('ita', 'Latn', 'ital1282'), ('lmo', 'Latn', 'lomb1257')): 6, | |
| (('lij', 'Latn', 'geno1240'), ('lmo', 'Latn', 'lomb1257')): 6, | |
| (('lim', 'Latn', 'limb1263'), ('lmo', 'Latn', 'lomb1257')): 6, | |
| (('lmo', 'Latn', 'lomb1257'), ('scn', 'Latn', 'sici1248')): 6, | |
| (('fur', 'Latn', 'east2271'), ('lij', 'Latn', 'geno1240')): 6, | |
| (('lim', 'Latn', 'limb1263'), ('srd', 'Latn', 'sard1257')): 6, | |
| (('lij', 'Latn', 'geno1240'), ('szl', 'Latn', 'sile1253')): 6, | |
| (('fur', 'Latn', 'east2271'), ('szl', 'Latn', 'sile1253')): 6, | |
| (('lim', 'Latn', 'limb1263'), ('szl', 'Latn', 'sile1253')): 6, | |
| (('scn', 'Latn', 'sici1248'), ('szl', 'Latn', 'sile1253')): 6, | |
| (('ace', 'Latn', 'achi1257'), ('scn', 'Latn', 'sici1248')): 6, | |
| (('ban', 'Latn', 'bali1278'), ('fra', 'Latn', 'stan1290')): 5, | |
| (('ban', 'Latn', 'bali1278'), ('szl', 'Latn', 'sile1253')): 5, | |
| (('knc', 'Latn', 'cent2050'), ('vec', 'Latn', 'vene1259')): 5, | |
| (('fur', 'Latn', 'east2271'), ('lmo', 'Latn', 'lomb1257')): 5, | |
| (('fur', 'Latn', 'east2271'), ('srd', 'Latn', 'sard1257')): 5, | |
| (('lmo', 'Latn', 'lomb1257'), ('srd', 'Latn', 'sard1257')): 5, | |
| (('fra', 'Latn', 'stan1290'), ('srd', 'Latn', 'sard1257')): 5, | |
| (('lmo', 'Latn', 'lomb1257'), ('szl', 'Latn', 'sile1253')): 5, | |
| (('srd', 'Latn', 'sard1257'), ('szl', 'Latn', 'sile1253')): 5, | |
| (('fur', 'Latn', 'east2271'), ('knc', 'Latn', 'cent2050')): 5, | |
| (('crh', 'Latn', 'crim1257'), ('eng', 'Latn', 'stan1293')): 4, | |
| (('ban', 'Latn', 'bali1278'), ('ita', 'Latn', 'ital1282')): 4, | |
| (('ban', 'Latn', 'bali1278'), ('lij', 'Latn', 'geno1240')): 4, | |
| (('fra', 'Latn', 'stan1290'), ('lmo', 'Latn', 'lomb1257')): 4, | |
| (('ban', 'Latn', 'bali1278'), ('scn', 'Latn', 'sici1248')): 4, | |
| (('dik', 'Latn', 'sout2832'), ('eng', 'Latn', 'stan1293')): 4, | |
| (('knc', 'Latn', 'cent2050'), ('srd', 'Latn', 'sard1257')): 4, | |
| (('dik', 'Latn', 'sout2832'), ('szl', 'Latn', 'sile1253')): 4, | |
| (('fur', 'Latn', 'east2271'), ('ita', 'Latn', 'ital1282')): 4, | |
| (('eng', 'Latn', 'stan1293'), ('knc', 'Latn', 'cent2050')): 4, | |
| (('knc', 'Latn', 'cent2050'), ('lij', 'Latn', 'geno1240')): 4, | |
| (('ace', 'Latn', 'achi1257'), ('fur', 'Latn', 'east2271')): 4, | |
| (('ace', 'Latn', 'achi1257'), ('knc', 'Latn', 'cent2050')): 4, | |
| (('crh', 'Latn', 'crim1257'), ('fra', 'Latn', 'stan1290')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('ita', 'Latn', 'ital1282')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('lij', 'Latn', 'geno1240')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('lim', 'Latn', 'limb1263')): 3, | |
| (('ban', 'Latn', 'bali1278'), ('lim', 'Latn', 'limb1263')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('lmo', 'Latn', 'lomb1257')): 3, | |
| (('ban', 'Latn', 'bali1278'), ('lmo', 'Latn', 'lomb1257')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('scn', 'Latn', 'sici1248')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('vec', 'Latn', 'vene1259')): 3, | |
| (('ban', 'Latn', 'bali1278'), ('vec', 'Latn', 'vene1259')): 3, | |
| (('ban', 'Latn', 'bali1278'), ('dik', 'Latn', 'sout2832')): 3, | |
| (('eng', 'Latn', 'stan1293'), ('spa', 'Latn', 'amer1254')): 3, | |
| (('bjn', 'Latn', 'banj1239'), ('srd', 'Latn', 'sard1257')): 3, | |
| (('spa', 'Latn', 'amer1254'), ('szl', 'Latn', 'sile1253')): 3, | |
| (('eng', 'Latn', 'stan1293'), ('nus', 'Latn', 'nuer1246')): 3, | |
| (('crh', 'Latn', 'crim1257'), ('srd', 'Latn', 'sard1257')): 3, | |
| (('eng', 'Latn', 'stan1293'), ('shn', 'Mymr', 'shan1277')): 3, | |
| (('shn', 'Mymr', 'shan1277'), ('szl', 'Latn', 'sile1253')): 3, | |
| (('eng', 'Latn', 'stan1293'), ('hrv', 'Latn', 'croa1245')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('ita', 'Latn', 'ital1282')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('knc', 'Latn', 'cent2050')): 3, | |
| (('ita', 'Latn', 'ital1282'), ('knc', 'Latn', 'cent2050')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('lij', 'Latn', 'geno1240')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('scn', 'Latn', 'sici1248')): 3, | |
| (('knc', 'Latn', 'cent2050'), ('szl', 'Latn', 'sile1253')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('szl', 'Latn', 'sile1253')): 3, | |
| (('hrv', 'Latn', 'croa1245'), ('vec', 'Latn', 'vene1259')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('bjn', 'Latn', 'banj1239')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('eng', 'Latn', 'stan1293')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('fra', 'Latn', 'stan1290')): 3, | |
| (('fra', 'Latn', 'stan1290'), ('knc', 'Latn', 'cent2050')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('lij', 'Latn', 'geno1240')): 3, | |
| (('knc', 'Latn', 'cent2050'), ('lim', 'Latn', 'limb1263')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('lim', 'Latn', 'limb1263')): 3, | |
| (('ace', 'Latn', 'achi1257'), ('srd', 'Latn', 'sard1257')): 3, | |
| (('ban', 'Latn', 'bali1278'), ('crh', 'Latn', 'crim1257')): 2, | |
| (('bho', 'Deva', 'bhoj1244'), ('kas', 'Deva', 'kash1277')): 2, | |
| (('bam', 'Latn', 'bamb1269'), ('ban', 'Latn', 'bali1278')): 2, | |
| (('bam', 'Latn', 'bamb1269'), ('dik', 'Latn', 'sout2832')): 2, | |
| (('bug', 'Latn', 'bugi1244'), ('eng', 'Latn', 'stan1293')): 2, | |
| (('bam', 'Latn', 'bamb1269'), ('eng', 'Latn', 'stan1293')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('spa', 'Latn', 'amer1254')): 2, | |
| (('bam', 'Latn', 'bamb1269'), ('spa', 'Latn', 'amer1254')): 2, | |
| (('ban', 'Latn', 'bali1278'), ('spa', 'Latn', 'amer1254')): 2, | |
| (('bug', 'Latn', 'bugi1244'), ('szl', 'Latn', 'sile1253')): 2, | |
| (('bam', 'Latn', 'bamb1269'), ('szl', 'Latn', 'sile1253')): 2, | |
| (('bjn', 'Latn', 'banj1239'), ('vec', 'Latn', 'vene1259')): 2, | |
| (('crh', 'Latn', 'crim1257'), ('fur', 'Latn', 'east2271')): 2, | |
| (('crh', 'Latn', 'crim1257'), ('szl', 'Latn', 'sile1253')): 2, | |
| (('scn', 'Latn', 'sici1248'), ('shn', 'Mymr', 'shan1277')): 2, | |
| (('lmo', 'Latn', 'lomb1257'), ('shn', 'Mymr', 'shan1277')): 2, | |
| (('shn', 'Mymr', 'shan1277'), ('vec', 'Latn', 'vene1259')): 2, | |
| (('ita', 'Latn', 'ital1282'), ('spa', 'Latn', 'amer1254')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('fra', 'Latn', 'stan1290')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('shn', 'Mymr', 'shan1277')): 2, | |
| (('ban', 'Latn', 'bali1278'), ('shn', 'Mymr', 'shan1277')): 2, | |
| (('ban', 'Latn', 'bali1278'), ('hrv', 'Latn', 'croa1245')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('ita', 'Latn', 'ital1282')): 2, | |
| (('ban', 'Latn', 'bali1278'), ('knc', 'Latn', 'cent2050')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('lij', 'Latn', 'geno1240')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('lmo', 'Latn', 'lomb1257')): 2, | |
| (('knc', 'Latn', 'cent2050'), ('lmo', 'Latn', 'lomb1257')): 2, | |
| (('hrv', 'Latn', 'croa1245'), ('lmo', 'Latn', 'lomb1257')): 2, | |
| (('hne', 'Deva', 'chha1249'), ('mag', 'Deva', 'maga1260')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('scn', 'Latn', 'sici1248')): 2, | |
| (('dik', 'Latn', 'sout2832'), ('vec', 'Latn', 'vene1259')): 2, | |
| (('ban', 'Latn', 'bali1278'), ('srd', 'Latn', 'sard1257')): 2, | |
| (('fur', 'Latn', 'east2271'), ('hrv', 'Latn', 'croa1245')): 2, | |
| (('fra', 'Latn', 'stan1290'), ('hrv', 'Latn', 'croa1245')): 2, | |
| (('ace', 'Latn', 'achi1257'), ('hrv', 'Latn', 'croa1245')): 2, | |
| (('ace', 'Latn', 'achi1257'), ('ita', 'Latn', 'ital1282')): 2, | |
| (('hrv', 'Latn', 'croa1245'), ('lim', 'Latn', 'limb1263')): 2, | |
| (('hrv', 'Latn', 'croa1245'), ('srd', 'Latn', 'sard1257')): 2, | |
| (('ace', 'Latn', 'achi1257'), ('szl', 'Latn', 'sile1253')): 2, | |
| (('ace', 'Latn', 'achi1257'), ('vec', 'Latn', 'vene1259')): 2, | |
| (('ace', 'Latn', 'achi1257'), ('ban', 'Latn', 'bali1278')): 2, | |
| (('eng', 'Latn', 'stan1293'), ('mri', 'Latn', 'maor1246')): 2, | |
| (('lij', 'Latn', 'geno1240'), ('mri', 'Latn', 'maor1246')): 2, | |
| (('fur', 'Latn', 'east2271'), ('taq', 'Latn', 'tama1365')): 2, | |
| (('eng', 'Latn', 'stan1293'), ('taq', 'Latn', 'tama1365')): 2, | |
| (('fra', 'Latn', 'stan1290'), ('taq', 'Latn', 'tama1365')): 2, | |
| (('lim', 'Latn', 'limb1263'), ('taq', 'Latn', 'tama1365')): 2, | |
| (('taq', 'Latn', 'tama1365'), ('vec', 'Latn', 'vene1259')): 2, | |
| (('taq', 'Latn', 'tama1365'), ('taq', 'Tfng', 'tama1365')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('bug', 'Latn', 'bugi1244')): 1, | |
| (('ban', 'Latn', 'bali1278'), ('bug', 'Latn', 'bugi1244')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('dik', 'Latn', 'sout2832')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('knc', 'Latn', 'cent2050')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('ary', 'Arab', 'moro1292'), ('arz', 'Arab', 'egyp1253')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('bug', 'Latn', 'bugi1244')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('crh', 'Latn', 'crim1257')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('crh', 'Latn', 'crim1257')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('eng', 'Latn', 'stan1293')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('fra', 'Latn', 'stan1290')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('fra', 'Latn', 'stan1290')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('fur', 'Latn', 'east2271')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('fur', 'Latn', 'east2271')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('gug', 'Latn', 'para1311')): 1, | |
| (('eng', 'Latn', 'stan1293'), ('gug', 'Latn', 'para1311')): 1, | |
| (('crh', 'Latn', 'crim1257'), ('gug', 'Latn', 'para1311')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('gug', 'Latn', 'para1311')): 1, | |
| (('fur', 'Latn', 'east2271'), ('gug', 'Latn', 'para1311')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('gug', 'Latn', 'para1311')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('ita', 'Latn', 'ital1282')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('ita', 'Latn', 'ital1282')): 1, | |
| (('gug', 'Latn', 'para1311'), ('ita', 'Latn', 'ital1282')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('lij', 'Latn', 'geno1240')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('lij', 'Latn', 'geno1240')): 1, | |
| (('gug', 'Latn', 'para1311'), ('lij', 'Latn', 'geno1240')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('lim', 'Latn', 'limb1263')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('lim', 'Latn', 'limb1263')): 1, | |
| (('gug', 'Latn', 'para1311'), ('lim', 'Latn', 'limb1263')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('lmo', 'Latn', 'lomb1257')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('lmo', 'Latn', 'lomb1257')): 1, | |
| (('gug', 'Latn', 'para1311'), ('lmo', 'Latn', 'lomb1257')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('crh', 'Latn', 'crim1257'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('ita', 'Latn', 'ital1282'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('lij', 'Latn', 'geno1240'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('fur', 'Latn', 'east2271'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('lmo', 'Latn', 'lomb1257'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('gug', 'Latn', 'para1311'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('lim', 'Latn', 'limb1263'), ('nus', 'Latn', 'nuer1246')): 1, | |
| (('ace', 'Latn', 'achi1257'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('nus', 'Latn', 'nuer1246'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('gug', 'Latn', 'para1311'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('nus', 'Latn', 'nuer1246'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('bjn', 'Latn', 'banj1239'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('gug', 'Latn', 'para1311'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('ace', 'Latn', 'achi1257'), ('taq', 'Latn', 'tama1365')): 1, | |
| (('shn', 'Mymr', 'shan1277'), ('taq', 'Latn', 'tama1365')): 1, | |
| (('bug', 'Latn', 'bugi1244'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('nus', 'Latn', 'nuer1246'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('gug', 'Latn', 'para1311'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('crh', 'Latn', 'crim1257'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('fur', 'Latn', 'east2271'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('shn', 'Mymr', 'shan1277'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('lim', 'Latn', 'limb1263'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('pbt', 'Arab', 'sout2649')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('pbt', 'Arab', 'sout2649')): 1, | |
| (('eng', 'Latn', 'stan1293'), ('pbt', 'Arab', 'sout2649')): 1, | |
| (('ban', 'Latn', 'bali1278'), ('pbt', 'Arab', 'sout2649')): 1, | |
| (('pbt', 'Arab', 'sout2649'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('pbt', 'Arab', 'sout2649'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('hrv', 'Latn', 'croa1245')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('hrv', 'Latn', 'croa1245')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('ita', 'Latn', 'ital1282')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('knc', 'Latn', 'cent2050')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('knc', 'Latn', 'cent2050')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('lij', 'Latn', 'geno1240')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('lmo', 'Latn', 'lomb1257')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('knc', 'Latn', 'cent2050'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('hrv', 'Latn', 'croa1245'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('ita', 'Latn', 'ital1282'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('lij', 'Latn', 'geno1240'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('eng', 'Latn', 'stan1293'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('lmo', 'Latn', 'lomb1257'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('ban', 'Latn', 'bali1278'), ('prs', 'Arab', 'dari1249')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('scn', 'Latn', 'sici1248')): 1, | |
| (('prs', 'Arab', 'dari1249'), ('scn', 'Latn', 'sici1248')): 1, | |
| (('knc', 'Latn', 'cent2050'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('hrv', 'Latn', 'croa1245'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('ita', 'Latn', 'ital1282'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('lij', 'Latn', 'geno1240'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('prs', 'Arab', 'dari1249'), ('shn', 'Mymr', 'shan1277')): 1, | |
| (('knc', 'Latn', 'cent2050'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('hrv', 'Latn', 'croa1245'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('scn', 'Latn', 'sici1248'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('shn', 'Mymr', 'shan1277'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('lij', 'Latn', 'geno1240'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('lmo', 'Latn', 'lomb1257'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('prs', 'Arab', 'dari1249'), ('spa', 'Latn', 'amer1254')): 1, | |
| (('prs', 'Arab', 'dari1249'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('spa', 'Latn', 'amer1254'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('bam', 'Latn', 'bamb1269'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('prs', 'Arab', 'dari1249'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('ban', 'Latn', 'bali1278'), ('fur', 'Latn', 'east2271')): 1, | |
| (('ace', 'Latn', 'achi1257'), ('lmo', 'Latn', 'lomb1257')): 1, | |
| (('fuv', 'Latn', 'nige1253'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('fur', 'Latn', 'east2271')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('lim', 'Latn', 'limb1263')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('ita', 'Latn', 'ital1282'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('fur', 'Latn', 'east2271'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('lmo', 'Latn', 'lomb1257'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('fra', 'Latn', 'stan1290'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('lim', 'Latn', 'limb1263'), ('mri', 'Latn', 'maor1246')): 1, | |
| (('mri', 'Latn', 'maor1246'), ('scn', 'Latn', 'sici1248')): 1, | |
| (('dik', 'Latn', 'sout2832'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('mri', 'Latn', 'maor1246'), ('srd', 'Latn', 'sard1257')): 1, | |
| (('mri', 'Latn', 'maor1246'), ('szl', 'Latn', 'sile1253')): 1, | |
| (('mri', 'Latn', 'maor1246'), ('vec', 'Latn', 'vene1259')): 1, | |
| (('ban', 'Latn', 'bali1278'), ('bjn', 'Latn', 'banj1239')): 1, | |
| (('szl', 'Latn', 'sile1253'), ('taq', 'Latn', 'tama1365')): 1, | |
| (('scn', 'Latn', 'sici1248'), ('taq', 'Latn', 'tama1365')): 1, | |
| (('lij', 'Latn', 'geno1240'), ('taq', 'Latn', 'tama1365')): 1, | |
| } | |
| if __name__ == "__main__": | |
| import sys | |
| import pytest | |
| raise SystemExit(pytest.main([__file__, *sys.argv[1:]])) | |