html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 63
51.8k
| body
stringlengths 0
36.2k
⌀ | comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/418 | Addition of google drive links to dl_manager | Oh sorry, I think `_get_drive_url` is doing that.
Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
| Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database. | 21 | Addition of google drive links to dl_manager
Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database.
Oh sorry, I think `_get_drive_url` is doing that.
Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
| [
-0.0986937806,
0.0516562499,
-0.1309201866,
-0.0558965728,
0.063940607,
-0.0953547359,
0.3679335713,
0.2208106965,
0.2062921226,
0.2249777764,
-0.0750642493,
0.3655761778,
-0.2819622159,
0.1416773498,
0.1477239132,
0.1173322722,
-0.2243513763,
0.2025328726,
0.275634706,
-0.1639438719,
-0.2751328051,
0.3278070986,
-0.0318779014,
-0.0081285518,
0.0502307341,
0.0505593494,
-0.1391223073,
0.1980682164,
-0.1188959256,
-0.2999537885,
-0.4197378159,
0.1671043485,
0.1602400392,
-0.0974566862,
-0.0001042657,
-0.1480784714,
0.2225691974,
-0.2084537446,
-0.4087233543,
-0.293666631,
0.2981949151,
-0.1724280715,
0.1073082536,
-0.2651380002,
-0.0045759855,
-0.0983254015,
0.2041179389,
0.1354037225,
0.2655148208,
0.303234309,
0.2717004716,
0.0790490434,
0.1134709045,
0.0298929326,
0.3312549293,
-0.0354893617,
-0.0682808906,
0.3527143896,
0.3344673812,
-0.3054538667,
-0.1618670225,
0.2883865535,
-0.005473163,
-0.0109914355,
0.219513312,
0.111340858,
0.5780609846,
-0.3311682343,
0.1066151857,
0.0327493884,
0.023619419,
-0.0413234085,
-0.0850505307,
-0.2842148244,
0.0838140175,
-0.2874572575,
0.2766533792,
0.1495649666,
-0.2334840298,
-0.054357402,
-0.129478842,
-0.0255046543,
-0.0154688759,
0.0540597476,
-0.088927567,
0.4138540626,
-0.0389395133,
-0.2830848396,
0.386126101,
-0.0381518416,
-0.097157374,
-0.1532618701,
-0.0394701734,
0.0766007602,
-0.037477009,
-0.2887776494,
0.1567478925,
0.046639964,
0.0937974006,
0.2489914894,
0.0460647866,
0.032891266,
0.2356234938,
0.0752923265,
0.1630283892,
0.4459601343,
-0.0003143964,
0.0400673673,
0.3538968563,
0.4176516533,
0.1608999372,
0.1501171142,
-0.1202335283,
-0.1861606538,
-0.1416517198,
0.1408617347,
-0.157578975,
0.0906012133,
-0.4310441613,
-0.1330973506,
-0.3732344508,
0.0073384685,
-0.0343622491,
0.4378282726,
-0.0487493016,
-0.1396608055,
0.2441131473,
0.2374015898,
-0.0423723347,
0.0900180489,
-0.1254784763,
0.2556157708,
-0.2168088704,
-0.0520230718,
0.3310389221,
0.0770798847,
0.4212232232,
-0.2571608424,
-0.121339865,
-0.2241328657,
0.138893947,
0.0859964937,
-0.0139241833,
-0.0641110539,
0.4167027771,
0.0155227417,
-0.1533246189,
-0.4158215523,
-0.0712254122,
0.0388117805,
0.0347076207,
-0.0371071845,
-0.1740765125,
0.3355268836,
-0.0862291232,
-0.0942454711,
-0.0037769512,
0.2271475494,
-0.1502159536,
0.043601241,
0.0858766511,
0.3182859123,
-0.0827771798,
-0.0009885405,
0.1685231775,
0.2986228764,
-0.0949453712,
-0.2877131104,
-0.1839940995,
0.1673677266,
-0.1132550612,
-0.0632705688,
-0.0449297912,
0.2455675304,
-0.3794006705,
0.2419204563,
0.3043462038,
-0.2896391451,
-0.2050281465,
0.2148447633,
-0.3752189875,
-0.174903065,
0.0302695986,
0.0142995985,
0.4108040631,
-0.0042553288,
-0.1432297081,
0.4827904701,
0.0771706179,
0.2428659648,
-0.3040136099,
-0.4660174847,
-0.1829137951,
0.2075027376,
0.1516648531,
-0.1184459627,
0.1088403463,
-0.0877447277,
0.3002709448,
-0.1562738419,
0.186559692,
0.1028919891,
0.0824308842,
0.0962021723,
0.0902653709,
0.1277572066,
-0.4553064406,
-0.0245842505,
-0.1491095871,
0.2400399446,
-0.3181628883,
-0.1654347032,
-0.2285122573,
-0.1823611706,
-0.2087038606,
-0.3032358587,
0.2976226509,
0.2181789279,
0.0589154586,
0.2489141822,
0.0791667923,
-0.0783370361,
0.1662932783,
0.1352359056,
0.0483057462,
0.3308410347,
-0.3822059333,
-0.1154452637,
0.1777765304,
0.0533853769,
0.1627698243,
-0.0097971717,
0.0177792627,
0.2022306472,
-0.2338354439,
0.4560255408,
0.0342992656,
-0.0184879042,
0.2643817067,
-0.0018943587,
0.3286044598,
0.3785976768,
0.1253686696,
-0.0423224457,
-0.1335391104,
0.399320811,
0.2978735864,
0.1315350831,
0.1984392703,
0.1492632926,
-0.0345824882,
-0.3092210591,
-0.0366152935,
-0.1750034988,
0.1060319096,
0.4917030334,
0.3812163472,
-0.1171898469,
-0.1798557043,
0.2268594205,
0.3522839248,
-0.0431042053,
0.2884166241,
0.0797793567,
-0.3493874669,
-0.1552884132,
-0.117249012,
0.3525730968,
0.1629649103,
0.2543207109,
0.1712720543,
0.0493352264,
-0.0080081113,
-0.3064471483,
0.3992124498,
0.065561451,
0.1062253788,
0.355427742,
0.112255007,
-0.1241624355,
-0.3668965399,
-0.0078182193,
-0.0030907039,
-0.0519340336,
-0.2809714377,
-0.035977155,
-0.2021116018,
-0.1673543006,
-0.0404170156,
0.1189080179,
-0.0453861728,
-0.1994876266,
0.241571784,
0.2851103246,
-0.2777341008,
0.1271889657,
0.167578727,
0.3435672224,
-0.0704193786,
-0.0517405979,
-0.109321095,
0.0156290922,
-0.331397146,
0.1907474846,
0.2792064548,
0.0847771317,
0.166862905,
0.0353544764,
0.0824099109,
-0.4212258458,
-0.1966776997,
0.2405077815,
-0.1467301846,
0.0396609418,
0.1082567573,
-0.0911809653,
-0.0478257798,
-0.3472118378,
0.0503747128,
-0.2066100538,
-0.2028837502,
-0.3251748979,
0.1594581902,
0.062949501,
-0.4881838858,
-0.3987681568,
-0.2369149029,
-0.3800841272,
0.1677401513,
0.1598065943,
0.1822993904,
0.1246551871,
-0.054826349,
0.1800565869,
0.2231408209,
-0.160607487,
-0.1476716995,
0.2775506377,
0.4198611677,
-0.409594357,
-0.3190639913,
0.0439115614,
-0.3232086897,
0.0133836437,
-0.2990262508,
-0.2501086295,
-0.4383625388,
0.15373151,
-0.177799806,
-0.0845338255,
-0.0026809166,
0.2986175418,
0.1873590797,
-0.2003105581,
0.0265889969,
-0.1110699177,
0.207054615,
0.0882990956,
0.3847720623,
-0.1615371406,
0.406722784,
0.1174866036,
0.2566289306,
-0.2691878974,
0.0335369594,
0.3619188666,
-0.0506728403,
0.1701949984,
0.1592023075,
-0.086352095,
0.1363564581,
0.0409466997,
-0.0944345966,
0.5336620808,
-0.0854695141,
-0.48649773,
-0.182667315,
0.0532185622,
-0.2736864686,
-0.2679209709,
-0.1089558452,
0.2660419941,
-0.1956837922,
0.0115902042,
0.2149550915,
0.0052228686,
-0.0608395897,
0.2059179097,
0.2196900696,
-0.0772172511,
-0.120615162,
0.118584618,
0.1042682007,
-0.3951483369,
0.1117486656,
0.1043820083,
-0.4041222036,
0.1074391976,
-0.2256137133,
0.2036410123,
-0.3195443749,
0.3587412834,
-0.1209612042,
0.2662652731,
-0.0143703856,
0.216437906,
0.1093022674,
-0.099338226,
-0.2988062501,
-0.321182251,
0.4507476389,
-0.047875829,
-0.2656047642,
-0.1441641599,
0.3384919763,
-0.2589461505,
0.0323874801,
-0.0962956399,
-0.019114444,
-0.5297092795,
-0.542252481,
0.077239491,
0.1260938346,
0.0979747921,
-0.1870060712,
-0.1639555395,
0.2704378664,
-0.2099727839,
-0.112227641,
0.0596683919,
0.1827884167,
0.1411257386,
-0.0469048396,
0.2014990747,
0.4859795272,
-0.0863522887,
0.0502428748,
0.0887131244,
0.1350987256,
0.3584618568,
-0.2915492952,
-0.012051695,
0.4303934574,
0.0423832349,
-0.1449912786,
-0.3378116488,
0.1312000602,
-0.0050205742,
0.0262092333,
0.352330029,
-0.0076963278,
0.3189740479,
-0.1285666227,
0.3718144298,
-0.1149386093,
-0.1495707333,
-0.1133223698,
0.1379418671,
-0.489156276,
0.2023630291,
0.249479264,
1.0095969439,
0.1828904748,
0.1841593087,
0.3770167232,
-0.1828774363,
0.2244260758,
-0.2048052847,
0.2420449257,
-0.2759123147,
0.2594018281,
0.027056016,
0.1235550344,
-0.2554804683,
0.2857078016,
-0.3485202193,
0.2226645947,
0.191833958,
-0.0550933965,
0.0397400446,
0.5254421234,
-0.4147656262,
-0.3550723493,
-0.0840060189,
0.2253389955,
0.2074781954,
0.3336937129,
-0.0224047489,
-0.3262497187,
0.0230253134,
-0.3689985871,
-0.1200432628,
0.2228098661,
-0.6562030315,
0.0811415166,
-0.4205801487,
-0.2054659128,
0.0714980587,
0.121639058,
0.1825932413,
0.1002612039,
-0.0640582666,
0.2806991041,
0.0451344177,
-0.0464381315,
-0.0050445423,
-0.1170367673,
0.2287958562,
-0.2543816566,
-0.2008147687,
-0.0529558174,
0.1507781744,
-0.2844578922,
0.049413994,
-0.0253134128,
-0.2893361449,
0.1632660925,
0.0008360891,
0.0888022482,
-0.4070389867,
-0.1701178849,
0.2157661319,
-0.2228650749,
-0.0063024247,
-0.0420259163,
0.0753561482,
-0.1657579839,
-0.1717544943,
0.4114313722,
-0.1920538247,
-0.3257522285,
0.5842945576,
0.0643737689,
-0.1504259706,
-0.3654354513,
-0.2140040845,
0.0150124235,
-0.1508515775,
0.1102014109,
-0.1128667369,
-0.2562161684,
-0.0146314371,
0.5000478625,
-0.0012306349,
0.2679026425,
0.0265189763,
-0.0871423408,
-0.0991813391,
0.2623233199,
-0.1346050203,
0.2985245883,
-0.0751187503,
0.0820538402,
0.1869877726,
-0.1457144767,
-0.4634032845,
0.0790764838,
-0.1712542623,
-0.1405718923,
0.1250740737,
-0.2987323999,
0.3095210791,
0.170426175,
0.2733667195,
0.2205570489,
-0.0772568658,
-0.2663615346,
-0.0304334722,
0.0700642169,
0.047300715,
-0.1006333008,
0.0123661226,
-0.1115101501,
-0.2185091227,
0.1263174266,
0.2010792643,
-0.1831628531,
0.0833368152,
-0.1032223552,
-0.2481859922,
0.0976702198,
0.2554212809,
-0.1850831062,
-0.0976004824,
0.4207085371,
0.0166872125,
0.107595101,
0.0078060795,
0.0033928144,
0.043122977,
0.1411654353,
0.0564507619,
0.3387710452,
0.2962434888,
0.0672249198,
-0.5515543818,
0.0619443767,
0.2637965977,
0.0785371065,
-0.2515685856,
-0.1156085655,
0.222831592,
0.3556101024,
-0.2594173253,
0.173217833,
-0.162311092,
-0.4482298791,
0.3617486656,
0.2996285558,
0.1987315714,
0.0672524124,
0.0475774854,
0.1538341343,
0.404625684,
-0.0747886598,
-0.0928395316,
-0.0525273681,
-0.1224943548,
0.1339277178,
0.185081467,
0.0674028173,
0.3257804811,
-0.1616301537,
-0.1871491075,
0.0087998668,
0.0235792343,
0.2640462816,
0.2166270912,
0.0519342534,
0.038368132,
0.0814640746,
-0.2451708317,
0.0961865485,
-0.0673367307,
0.2200666666,
-0.3235001266,
0.0240177494,
-0.3409783542,
0.4161135852,
-0.0618106984,
-0.0085473824,
-0.2516658306,
-0.3260460496,
-0.6693038344,
0.1929430366,
0.0450477824,
-0.1420248002,
-0.4067168534,
0.1091225073,
-0.0436599813,
0.048874855,
-0.2354438305,
-0.0959130004,
0.3324646056,
-0.4127461314,
0.1486724466,
0.0149961906,
0.122397624,
-0.1983053386,
0.3227460086,
0.2554572523,
0.2159600407,
-0.3102446795,
-0.2035479993,
-0.0794244111,
-0.060155198,
-0.1442168355,
0.0371101163,
0.3265763819,
-0.169457078,
0.1500539035,
0.2160782069,
-0.3853531778,
-0.0577884838,
0.2834992707,
-0.2225656956,
0.2526808083,
0.1624028534,
0.271872133,
0.0135585815,
-0.3872140646,
-0.3066832423,
-0.5732125044,
-0.1348944157,
-0.2507287264,
-0.1008887291,
0.2407358736,
-0.3101223707,
0.1533885747,
0.117405802,
0.1802913249,
0.3067572117,
-0.0013956535,
-0.1100463346,
-0.235751152,
-0.4394382238,
0.0553812087,
0.2680013776,
-0.1324961782,
-0.2193134725,
0.4046545923,
-0.0119784679,
-0.0210185703,
0.0093865022,
0.5449492931,
0.2535099685,
0.0710762069,
-0.186858952,
0.1759402007,
0.1250488311,
0.114530161,
0.0818907768,
-0.1827894598,
-0.1159718782,
-0.2869516611,
0.2148596346,
-0.1342401505,
0.1613275856,
-0.3132973611,
0.0037506483,
0.4126845002,
-0.245964393,
0.2662290037,
-0.2862209678,
-0.1534481645,
-0.1860762984,
0.2085222751,
-0.2952426374,
-0.3550873697,
0.2407323718,
0.1949658841,
0.0700789988,
0.066966787,
-0.269187063,
0.2615858614,
0.0445119441,
0.004922979,
-0.1911265552,
0.1149074808,
-0.0623385496,
0.0978204384,
0.0315191783,
0.2053172588,
-0.1249732375,
0.0482876785,
-0.4952872992,
-0.5152051449,
0.1610217392,
-0.0524532236,
-0.0868818983,
-0.0676094666,
0.3968175948,
0.2529715896,
0.1593206972,
-0.2931995988,
0.1256084889,
-0.0083495583,
0.182300806,
-0.1703493148,
0.137327075,
0.1382036507,
-0.1351920664,
-0.0715939626,
-0.2012003958,
0.3138324618,
0.0080848094,
-0.2065827847,
-0.3480611145
] |
https://github.com/huggingface/datasets/issues/414 | from_dict delete? | `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
Right now if you want to use `from_dict` you have to install the package from the master branch
```
pip install git+https://github.com/huggingface/nlp.git
``` | AttributeError: type object 'Dataset' has no attribute 'from_dict' | 53 | from_dict delete?
AttributeError: type object 'Dataset' has no attribute 'from_dict'
`from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
Right now if you want to use `from_dict` you have to install the package from the master branch
```
pip install git+https://github.com/huggingface/nlp.git
``` | [
-0.1168894768,
-0.2096913904,
-0.1167025194,
0.0465560071,
0.1620284468,
-0.1888364106,
0.09435682,
0.3141215146,
0.0377569348,
0.1403820366,
0.0539773405,
0.5944420099,
-0.1069425493,
0.2920181751,
-0.0426579677,
-0.1649782807,
-0.0688439161,
0.320004046,
-0.3128444552,
-0.0461875871,
0.0110785058,
0.3731951714,
-0.1320794672,
0.2549416721,
0.120558843,
-0.1711763889,
0.0303648803,
0.1430948824,
-0.1418490857,
-0.3311374485,
0.2542816699,
0.0454764813,
-0.1363681555,
0.1577940434,
-0.000099203,
-0.0431269668,
0.324180305,
-0.0708886608,
-0.2661368549,
-0.3808971643,
-0.1292470992,
-0.1784547716,
0.3302334845,
-0.1057156771,
-0.2622192204,
0.1483008564,
0.0286047086,
-0.0083774114,
0.3838491738,
0.3884246647,
0.3685189188,
0.1577927619,
0.1676736772,
-0.1256329864,
0.1861924231,
0.1869292557,
-0.0660706833,
-0.0968852118,
0.0539163984,
-0.1805332303,
0.3063398898,
0.2829714715,
-0.1644661129,
-0.0961183161,
0.187416628,
-0.0243609864,
0.0242316648,
-0.1416924298,
0.0300104227,
0.1506769806,
0.2641411424,
-0.3806947172,
-0.1140292585,
-0.301545918,
-0.0242865775,
-0.3830109835,
0.0237073209,
-0.0531722531,
-0.1575686038,
0.1301054806,
-0.0527610667,
-0.4518621862,
-0.1853361875,
0.3525792956,
0.1932298988,
0.068972677,
-0.112705797,
0.0655096844,
0.2613548636,
-0.0540379584,
-0.3767985702,
0.2988928854,
-0.1951346546,
0.141661346,
-0.0280432906,
-0.201837495,
0.3356459439,
-0.0524854064,
-0.0726941079,
0.1180981621,
-0.0129488427,
-0.0188899506,
-0.009921764,
0.2746321261,
0.4173331559,
0.1929974854,
0.3750910461,
0.2258399576,
0.1976597607,
0.0005200735,
-0.0670652762,
-0.0705472827,
0.108468473,
0.0079595968,
-0.1542847306,
-0.0837849006,
0.2740111351,
-0.1018360034,
-0.2801435292,
-0.2536679506,
0.1547211856,
0.1114790142,
0.0496225879,
0.316187501,
0.0285120606,
0.2045547962,
0.0234101769,
0.1625920236,
-0.3559414446,
-0.0318723321,
-0.2442647666,
0.3273056746,
-0.1398756802,
-0.47908324,
0.0662471876,
0.1737168431,
0.3600258231,
-0.1125763133,
0.0398116745,
0.2609203756,
0.0090482142,
0.0365596674,
0.0756463856,
0.2162596434,
-0.0976463035,
-0.158245191,
0.2198809534,
-0.5354819894,
-0.2740392089,
0.1050389558,
-0.225500524,
-0.2852152288,
-0.450622946,
0.3046717346,
0.0804249272,
-0.2931634784,
-0.32935673,
0.1842864007,
0.1359828413,
-0.2164477557,
-0.1059305221,
-0.1513110846,
-0.0192244649,
-0.1611666679,
-0.0074460483,
0.1157193333,
-0.2353723496,
-0.2091400176,
-0.202537328,
-0.3065539598,
0.2619756758,
0.3139547408,
-0.2446836084,
0.2455073148,
-0.1226883531,
0.1057921723,
0.5160629153,
-0.572424531,
-0.2312459201,
0.2054413706,
-0.0490398146,
-0.1142272651,
-0.1684025377,
-0.0179513432,
0.1819058061,
-0.0890896991,
-0.0099351238,
0.3474219441,
0.186073035,
0.1431888342,
-0.1495317817,
-0.1222073436,
-0.0283664279,
-0.0966636166,
-0.0759284869,
0.0703812018,
0.1684973389,
0.1468974203,
0.2025403827,
-0.0945227519,
0.0093129231,
0.1962148696,
0.5006924272,
0.0556178354,
-0.0935518444,
-0.438208878,
-0.0323108099,
-0.1394478977,
-0.197867468,
0.3533263505,
-0.3188264966,
-0.1176967248,
-0.2525277734,
0.099780634,
-0.2223488688,
-0.1572248042,
0.3052580357,
0.0586952418,
0.1432728916,
0.0759010911,
-0.344825387,
0.1163835973,
0.0605935752,
0.0451133549,
-0.2440582514,
-0.0218844041,
-0.3494741619,
-0.2440227121,
0.0595741719,
0.4624376595,
0.0109012304,
-0.0529733822,
0.0195063334,
0.3652353585,
-0.0927100256,
0.0546629578,
0.1078714803,
-0.1840555519,
0.0560942665,
-0.2318472862,
-0.0272629019,
0.0637399778,
0.0834897757,
0.1336135566,
-0.1064657196,
0.17299968,
0.2040767372,
-0.0279306453,
0.2542046607,
0.1592371017,
0.3644244373,
-0.251411885,
0.1046669185,
-0.3587050438,
0.2191611975,
-0.0493638888,
-0.0715417787,
-0.1774632782,
-0.423636198,
0.0452173352,
0.6067505479,
0.1550345719,
0.2132897675,
0.0952786058,
-0.0068472899,
-0.1788430661,
-0.0514613353,
0.0949727818,
0.1725855917,
0.2499798238,
-0.1400129199,
0.0440864526,
-0.0233692825,
-0.0711450875,
0.313359201,
-0.1102234796,
0.1291939616,
0.1159421653,
0.14646025,
-0.1220927909,
-0.4732964933,
-0.099083513,
-0.271918565,
0.3124082386,
-0.1202232316,
0.2324866354,
-0.3833060265,
-0.5119462609,
0.0298310295,
-0.2020338476,
-0.3217609525,
-0.3416158855,
0.2300840914,
0.1038933024,
-0.0862874836,
0.1916829646,
0.1746335477,
0.0412038304,
0.0341080651,
-0.109108299,
-0.0448256694,
-0.3886272311,
-0.2937380373,
0.2078531235,
-0.046474006,
0.1856131554,
0.3453903198,
-0.0927942693,
-0.1346258372,
-0.0653238818,
-0.4512677491,
0.1339701414,
-0.1982105374,
0.4171160161,
0.4988258481,
0.0458737798,
-0.158619687,
-0.1184889823,
0.2855279446,
-0.5542434454,
-0.2418100387,
0.1625317782,
-0.0430539846,
0.0001884875,
-0.2799883187,
-0.2784692347,
-0.2698888481,
-0.4429299235,
0.3062043488,
0.2609967887,
0.2338289618,
0.333676815,
-0.0887838155,
0.1830667257,
-0.1976732612,
0.3888368607,
-0.1767813265,
-0.1744703054,
-0.0336390957,
-0.2309451401,
-0.4337508082,
0.0063296496,
0.1090221554,
0.3247975111,
-0.2439881116,
-0.3170568347,
-0.2650545239,
0.0487911068,
0.1092738211,
0.0224367082,
0.1758805513,
0.2571715117,
0.1897462159,
-0.2251132429,
-0.2148873657,
-0.0785522684,
0.2249793261,
0.2017374784,
0.1111918315,
-0.0416106731,
0.2193103433,
0.1520112753,
0.3629113734,
-0.0490331873,
0.1733386368,
0.3288863897,
-0.1233883649,
0.4986997843,
-0.1633702368,
-0.3937042058,
-0.0244874209,
0.2137498707,
0.1091392338,
0.1704997122,
-0.0209093094,
-0.2336776853,
-0.2458529919,
0.0355990566,
-0.2109140307,
-0.2162307352,
-0.0307534412,
-0.209496513,
-0.0089888545,
0.0670691878,
-0.0869471878,
-0.2360557765,
-0.1214587912,
-0.0317258909,
-0.0994310305,
-0.1177404299,
-0.1608856618,
-0.5274446011,
-0.3798381686,
-0.4278234541,
0.246521771,
-0.0692680851,
0.119546093,
-0.1371687055,
-0.1768673807,
0.0999171883,
-0.128868103,
0.3627330065,
-0.0043359292,
-0.1355550438,
0.141272977,
0.0477273986,
-0.3704728186,
0.2148819566,
-0.2964706123,
0.2145404667,
0.4119859934,
0.0834663883,
-0.4349455237,
-0.2798311114,
0.3200951815,
-0.0390960015,
-0.1202357486,
0.1618259102,
-0.2939399779,
-0.363619864,
-0.544957757,
-0.1299729496,
0.0731193051,
0.3367331922,
0.1882374287,
0.1335388422,
0.0055835294,
-0.1185667589,
0.0229387227,
0.01874201,
0.2522699833,
-0.2153329402,
-0.3697975874,
-0.2291401774,
0.2577158809,
0.0217590891,
0.418009758,
-0.1041850448,
-0.2362632453,
-0.2990652621,
-0.0036221528,
0.4200937152,
-0.0112967733,
0.0881403908,
0.2431384474,
-0.1229884773,
0.2615295053,
0.1734338999,
0.0778047293,
0.2646637857,
-0.0300041102,
0.0469723418,
-0.2418218553,
0.1561151147,
-0.056205295,
0.006501345,
0.0302878655,
0.0922404006,
-0.2980343997,
0.3624906242,
-0.173701182,
0.827670753,
0.1541239172,
0.1495211869,
0.1627135724,
0.0200283546,
0.6298737526,
0.1459992975,
0.301427871,
-0.2305775285,
0.2545523047,
0.03710391,
-0.0480947457,
0.2337826192,
0.0967630446,
-0.2803463638,
0.3622639179,
0.0007975524,
0.0417944938,
-0.1365336031,
0.1986435503,
0.0912433043,
-0.0252851322,
-0.3467204273,
0.2415170074,
-0.1234223098,
0.170629859,
-0.0352699719,
-0.1865021735,
0.1307334602,
-0.2843440175,
-0.1883137524,
0.1650151908,
0.0355020389,
0.332015872,
0.2341721356,
-0.357424736,
-0.1196799204,
0.2072730958,
0.1231375933,
0.0464343205,
-0.1416502148,
0.1934480369,
-0.1504728794,
-0.1314359903,
0.0581149608,
0.3791006804,
0.4059224427,
-0.303753525,
-0.3127821982,
0.135592103,
0.0106383441,
-0.4071266651,
0.2054924965,
0.0124371005,
-0.0358399637,
0.0005649672,
-0.0626733974,
0.1061066985,
0.0027788247,
-0.2611285448,
0.2479954809,
0.2681896687,
-0.2971423268,
0.130171895,
0.0277892463,
-0.1332817674,
-0.0597796254,
-0.0008436095,
0.1286651194,
0.0012183806,
0.4648872018,
0.1023398712,
-0.1767463386,
-0.4118675292,
-0.2713214159,
-0.1673768461,
-0.2263266444,
0.3819693029,
0.2274308801,
-0.1809470803,
0.1564968377,
0.4324985445,
-0.1519450396,
0.0465012491,
-0.216388613,
-0.2470471114,
-0.1826239973,
0.1593075693,
-0.0476222597,
0.0862606913,
0.175696373,
0.1856442392,
0.1167447641,
0.0309039149,
-0.457442075,
0.0554915071,
-0.3008746803,
0.1754258871,
0.4310330451,
-0.2218663692,
0.1155421287,
-0.0534146354,
0.2771425843,
-0.1712550223,
-0.160826847,
-0.3855386376,
-0.0767777413,
0.0738791227,
-0.0763093755,
-0.0384725668,
0.0168642439,
-0.0655053779,
-0.1414911449,
-0.0536487848,
0.1224131882,
-0.0986469463,
-0.0447295047,
0.5866773129,
0.0955240428,
-0.0281800404,
0.3729471266,
-0.0531998724,
0.0246787611,
0.1688961238,
-0.1014152318,
0.1502835006,
-0.0921993926,
-0.1458045691,
-0.0007066702,
0.0461676084,
0.0317955911,
0.1970808208,
0.2288703918,
-0.290632993,
-0.092196919,
0.0392901674,
0.4682255387,
-0.0393224917,
-0.0785331205,
0.0475333817,
0.3697397709,
0.3186564445,
-0.4926092923,
0.0549897142,
0.2415748388,
-0.0794777051,
0.0962624848,
0.1426692456,
0.0707420036,
0.0915967897,
0.0073605613,
0.1195816472,
0.2814493775,
-0.3491175473,
0.085738413,
0.237569347,
-0.2161262929,
-0.1672633737,
0.1247377917,
0.2451855242,
0.3118289709,
0.6150823832,
-0.0412340797,
0.1317594796,
0.1235014349,
0.0718663633,
0.1753037572,
-0.0961658508,
0.2723701596,
0.1497652829,
0.1668111384,
0.0526755862,
0.1435910761,
0.3294470906,
-0.2138655186,
-0.017915789,
-0.0795615241,
0.6706981659,
-0.1344929039,
-0.1535613984,
-0.223507911,
0.0610391758,
0.1749211997,
-0.1438237876,
0.1336372197,
-0.0305898115,
0.0905558616,
0.1358241588,
0.05135132,
-0.4324581027,
0.3161313236,
-0.1809590459,
0.1757670939,
-0.0775604546,
0.0436395966,
-0.0343451574,
-0.0201535504,
-0.1533801705,
0.3481296599,
0.4525028467,
0.1537194699,
-0.2976202667,
-0.0402157195,
-0.1711032838,
-0.2158661336,
-0.1685932875,
0.3800277412,
0.1822300553,
0.4804611206,
0.1164076105,
0.2183571905,
-0.2005444914,
-0.1231266111,
0.1783154011,
0.0904934183,
-0.1555394232,
0.5753044486,
0.0531927682,
-0.3424187303,
-0.1728661656,
0.0383356959,
-0.4150215089,
0.0661643445,
0.294295162,
0.0953266844,
0.1888164878,
-0.3335588276,
0.1745781749,
0.1563626677,
0.3946988881,
0.3342246115,
0.2382940352,
0.1870157272,
-0.1841726899,
-0.4572913349,
0.0788849443,
-0.0789053142,
-0.276589036,
-0.0074921786,
0.3077088892,
-0.0091801928,
0.2107316256,
-0.0831292048,
-0.0004254825,
-0.0617789365,
-0.4295383096,
-0.2338010669,
0.0362690836,
-0.1000896543,
-0.0556547791,
0.1671202183,
-0.2100698054,
-0.116202198,
0.027013408,
0.1769953072,
-0.1185849681,
0.1766653955,
-0.009819244,
-0.0512388721,
-0.1382741332,
0.298473984,
0.1597547084,
-0.1168612018,
-0.1258474141,
0.1876398325,
-0.3609209955,
-0.3744494617,
0.1019268408,
-0.0730053037,
0.3420500457,
-0.1621479541,
0.1303642243,
-0.1603463292,
0.1503835469,
0.0480322465,
0.0211185887,
-0.2224085927,
0.1399755478,
0.1745987684,
-0.131418705,
-0.143236503,
0.1130637228,
-0.1071954891,
0.0569358915,
-0.2670478821,
-0.3180978,
0.4615897536,
-0.3228897452,
-0.4482118189,
-0.0576568842,
0.191120699,
-0.0651575923,
-0.3452369571,
-0.4551795125,
0.1387112141,
0.2597663701,
0.0705321059,
-0.0792656839,
0.4142343998,
-0.2969503105,
0.0366845131,
0.1778424978,
0.4717921317,
0.2032424808,
-0.1371378452,
0.0796470866,
-0.160191834
] |
https://github.com/huggingface/datasets/issues/414 | from_dict delete? | > `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
> Right now if you want to use `from_dict` you have to install the package from the master branch
>
> ```
> pip install git+https://github.com/huggingface/nlp.git
> ```
OK, thank you.
| AttributeError: type object 'Dataset' has no attribute 'from_dict' | 62 | from_dict delete?
AttributeError: type object 'Dataset' has no attribute 'from_dict'
> `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
> Right now if you want to use `from_dict` you have to install the package from the master branch
>
> ```
> pip install git+https://github.com/huggingface/nlp.git
> ```
OK, thank you.
| [
-0.0747187659,
-0.2516210377,
-0.1155344173,
0.0879218876,
0.1837775111,
-0.1787120849,
0.0908714011,
0.2998166084,
0.0316059962,
0.1319084018,
0.0510093197,
0.5649476647,
-0.1044340879,
0.2966353297,
-0.0471769162,
-0.2244531363,
-0.0426338837,
0.2933093905,
-0.3304526806,
-0.0517253093,
0.040468365,
0.3629772365,
-0.1296856403,
0.2741339207,
0.1252756715,
-0.1901748478,
0.0015234521,
0.152687788,
-0.1340596527,
-0.3176124096,
0.2797694206,
0.0268053282,
-0.1014018133,
0.1761729121,
-0.0000985522,
-0.0737007707,
0.3171124756,
-0.0745513812,
-0.2624134421,
-0.3476299644,
-0.1504907757,
-0.1589508504,
0.2975647748,
-0.1199096739,
-0.2388194948,
0.1387147456,
0.0045637707,
0.0186311398,
0.3920910954,
0.3837103844,
0.3749193549,
0.1249380782,
0.1929480135,
-0.1214170977,
0.1639738828,
0.1866835505,
-0.0807385296,
-0.0862305239,
0.055448126,
-0.1901000291,
0.3049734533,
0.2913114727,
-0.1488624364,
-0.1117042452,
0.1986548603,
-0.0462512933,
0.0224083588,
-0.1591615677,
0.0389377028,
0.1428239644,
0.312306881,
-0.3866828978,
-0.1058307514,
-0.2720892727,
-0.0205369163,
-0.3580048382,
0.0111033358,
-0.0354099609,
-0.1274464428,
0.1445008814,
-0.0395701975,
-0.4792865515,
-0.2171789706,
0.3515557051,
0.2264174968,
0.0382253639,
-0.1236404181,
0.0532368086,
0.2304847687,
-0.06376113,
-0.3869413733,
0.295168668,
-0.1951298416,
0.1586608589,
-0.0446747653,
-0.2178730518,
0.326392591,
-0.0638524443,
-0.0525568649,
0.0825083181,
0.0046486789,
-0.0221264604,
-0.0281216912,
0.2544953823,
0.4578904808,
0.2475712597,
0.3936288357,
0.2212031484,
0.1548514962,
0.0250812881,
-0.0860894918,
-0.0489334464,
0.0843025222,
0.0313624628,
-0.1318343431,
-0.0685864687,
0.2815737426,
-0.1133549586,
-0.2768693864,
-0.2064282149,
0.1209659949,
0.1106282175,
0.0282629747,
0.3377596438,
0.0086516477,
0.2231969535,
0.0360627472,
0.1516711861,
-0.3684815168,
-0.0670753047,
-0.234834075,
0.3588407636,
-0.1695244759,
-0.4798001647,
0.0434887111,
0.1753266901,
0.3514822721,
-0.1070453674,
0.0640285835,
0.214396432,
-0.0057427874,
0.0531015024,
0.0964142978,
0.1829386204,
-0.0929336026,
-0.1560869962,
0.2100334913,
-0.5214314461,
-0.2521961629,
0.1298752874,
-0.2238717824,
-0.2987519503,
-0.4562395811,
0.2990598083,
0.0899032503,
-0.2795068324,
-0.3280280828,
0.1972241253,
0.1388174891,
-0.1668094546,
-0.0827485099,
-0.1410974711,
-0.0044681407,
-0.148026824,
-0.02434019,
0.1140936092,
-0.2422045916,
-0.1710827649,
-0.1728950739,
-0.3147647977,
0.2596480548,
0.3290224373,
-0.2628428638,
0.2250305712,
-0.1182507202,
0.1163872033,
0.4797016084,
-0.5727300644,
-0.192109704,
0.2145443261,
-0.0597663559,
-0.1025573611,
-0.1759748906,
-0.027561767,
0.1942093223,
-0.1094257385,
-0.0382940285,
0.3194499612,
0.1817689091,
0.148936376,
-0.2012804449,
-0.0979349688,
-0.0093582729,
-0.1098809093,
-0.0755401403,
0.0522702225,
0.1559681147,
0.1709437519,
0.2374146283,
-0.0858647823,
0.022511065,
0.2546884418,
0.4777037799,
0.0747560114,
-0.0862907469,
-0.4368613362,
-0.0294939261,
-0.1539906114,
-0.1910115033,
0.3839291334,
-0.2584607005,
-0.1255776733,
-0.2810029685,
0.1069898158,
-0.1987516135,
-0.171275869,
0.3102853,
0.0364369191,
0.1287696213,
0.0446913838,
-0.3484447598,
0.1158473566,
0.0292403586,
0.0292405803,
-0.2396180183,
-0.0224091262,
-0.3669725955,
-0.2318976521,
0.1010941565,
0.4514656067,
0.0169413947,
-0.0570092686,
0.0298733432,
0.3622140586,
-0.1076149493,
0.0602519102,
0.1294947416,
-0.1758582294,
0.0612261631,
-0.2530982494,
-0.0331599042,
0.0573222265,
0.0873133838,
0.1328567863,
-0.0833986774,
0.1473477781,
0.1943660975,
-0.047581695,
0.2373598665,
0.1458623707,
0.356136471,
-0.2580803931,
0.0934286192,
-0.3171674907,
0.2263147682,
-0.0559445694,
-0.1203267276,
-0.1707590669,
-0.4570819438,
0.0728361011,
0.6142222285,
0.1181453839,
0.2027907372,
0.110026367,
-0.0104905395,
-0.2033448368,
-0.0465198644,
0.1275081933,
0.1598942429,
0.2393365502,
-0.1442100853,
0.040248964,
-0.0160734691,
-0.0424355492,
0.3344412744,
-0.0953002274,
0.149064824,
0.0981974155,
0.1295661628,
-0.1051477492,
-0.4526612163,
-0.1029858142,
-0.2659783661,
0.3086747825,
-0.1300008893,
0.213701129,
-0.3413684964,
-0.5405294895,
0.0080293193,
-0.2147607803,
-0.3553178906,
-0.3191394508,
0.2329049855,
0.0794751048,
-0.1158467755,
0.183207497,
0.1557336897,
0.0698952228,
0.0368976593,
-0.0881304294,
-0.0506451577,
-0.3942845166,
-0.3033125699,
0.2088560462,
-0.0302760378,
0.2184648663,
0.3349038661,
-0.0923140943,
-0.1171327308,
-0.0730037913,
-0.4271929562,
0.1169193983,
-0.2132864445,
0.4308358431,
0.4775033295,
0.1004523784,
-0.1677221805,
-0.1249690354,
0.2748678625,
-0.5327470303,
-0.2540537715,
0.1580506712,
-0.0154886562,
-0.0048850561,
-0.2759036422,
-0.2948980033,
-0.2444999367,
-0.4642466307,
0.3006661534,
0.2462505251,
0.2239494622,
0.3138276339,
-0.098714985,
0.1614603102,
-0.1947260201,
0.421576947,
-0.1935764849,
-0.1916533411,
-0.0404681973,
-0.2186051607,
-0.4552696943,
0.0204547066,
0.1377619654,
0.3500980735,
-0.2896835804,
-0.3144923449,
-0.2251937091,
0.0580294654,
0.0870286822,
-0.001244487,
0.1882112622,
0.2421654463,
0.2206175923,
-0.216399312,
-0.2033872008,
-0.1030125991,
0.2228534073,
0.2019103318,
0.1072850153,
-0.0429829322,
0.2035516202,
0.1423748583,
0.3852212727,
-0.0343020633,
0.1985270679,
0.319697082,
-0.0675483346,
0.4661508203,
-0.1550482064,
-0.407001555,
-0.0091277342,
0.1755028516,
0.1023463309,
0.1916301548,
-0.0077864057,
-0.2419212312,
-0.2517976463,
-0.0047007101,
-0.2284078598,
-0.2309152633,
0.0008258822,
-0.238473922,
0.0005095947,
0.0652891397,
-0.1143398881,
-0.2259871066,
-0.1049543843,
-0.0050719911,
-0.1000624001,
-0.0912703127,
-0.1490985155,
-0.5165438652,
-0.355594188,
-0.4211894572,
0.2103485614,
-0.0652922466,
0.1419126242,
-0.1439501941,
-0.1787517667,
0.1019725874,
-0.1125371531,
0.3513399363,
0.0308236759,
-0.1319414526,
0.1510488093,
0.0532497577,
-0.3147057891,
0.2232513577,
-0.2976682484,
0.199382171,
0.3850404024,
0.0479148701,
-0.4532952607,
-0.2799513042,
0.2857566476,
-0.0285098702,
-0.1267177314,
0.1414327621,
-0.2920064032,
-0.3294555843,
-0.5601936579,
-0.1146838963,
0.1040032655,
0.3459017277,
0.1609198153,
0.1414266229,
0.0273949038,
-0.1401555389,
0.0379167721,
-0.0090294275,
0.2666153908,
-0.2080400884,
-0.3748337626,
-0.2492125183,
0.2636886239,
0.0184719451,
0.4048206806,
-0.1258103251,
-0.222981751,
-0.3117395341,
-0.0307581667,
0.4273921549,
-0.0128269326,
0.1002398506,
0.2510440648,
-0.1236005351,
0.2783619761,
0.131415993,
0.0324286446,
0.2652899921,
-0.0184588954,
0.0434191674,
-0.2153190225,
0.1376202852,
-0.0795843974,
0.0065777395,
0.0342802294,
0.1068124101,
-0.3075435162,
0.3447081745,
-0.1606529355,
0.8757855892,
0.1566375494,
0.1482196748,
0.1443024874,
0.0060098581,
0.6237418056,
0.1574923843,
0.3093409538,
-0.2359822989,
0.2198899388,
0.0453437455,
-0.023353003,
0.2113474309,
0.0939022452,
-0.2781502306,
0.3415943384,
-0.011055545,
0.0125485593,
-0.1442005783,
0.2061145604,
0.0848263428,
-0.01956724,
-0.4315617681,
0.2368655801,
-0.1003961489,
0.1428441405,
-0.0665389225,
-0.2186393142,
0.121283628,
-0.2725218534,
-0.1870216727,
0.1411040127,
0.0477348268,
0.2928524315,
0.2638771832,
-0.3232083321,
-0.1018035635,
0.2294431329,
0.1322083175,
0.0215001684,
-0.1622177958,
0.1684939861,
-0.1676186621,
-0.1405908018,
0.0638553277,
0.3672299683,
0.4578963816,
-0.3215275407,
-0.3099900484,
0.1329868585,
-0.0128235258,
-0.3776732087,
0.1706561744,
0.017044846,
-0.0479895137,
-0.0179227404,
-0.0911342651,
0.1027871966,
-0.0172752701,
-0.2291879952,
0.2480985075,
0.2937904298,
-0.3036978543,
0.1194649413,
0.0586558618,
-0.12384253,
-0.0439166054,
-0.0098206494,
0.1302969903,
0.0020779371,
0.4763105214,
0.1353938431,
-0.2008343786,
-0.4135893285,
-0.2553916574,
-0.140520066,
-0.2420742959,
0.3765791059,
0.2040148079,
-0.1696826965,
0.1431552023,
0.4442285001,
-0.1112205088,
0.0574419126,
-0.1993821859,
-0.2484334558,
-0.2025046945,
0.1892825216,
-0.0655537546,
0.0782247037,
0.1425436884,
0.1986285299,
0.1594914794,
0.0600587577,
-0.4667701721,
0.0484202541,
-0.3432677984,
0.1815654933,
0.4437234104,
-0.2099005729,
0.1012223884,
-0.0235765427,
0.2671226263,
-0.1746079773,
-0.1538971961,
-0.3755473793,
-0.0732359439,
0.0731339604,
-0.0796445757,
-0.0282618888,
0.0293464959,
-0.0664705113,
-0.1379357427,
-0.0232474115,
0.0933144689,
-0.1077136844,
-0.033522848,
0.5934745073,
0.0909655541,
-0.0071247024,
0.3224604726,
-0.0606761388,
0.0415875725,
0.2016904056,
-0.0930848494,
0.1157100648,
-0.0881644264,
-0.1559306532,
-0.0023575958,
0.0622476749,
0.0199800916,
0.1833563,
0.2383445799,
-0.287448585,
-0.0894557387,
0.0469666682,
0.4964927435,
-0.0594529286,
-0.1009845808,
0.0709988698,
0.382643193,
0.3303327262,
-0.5057240129,
0.0831439123,
0.2515088022,
-0.1181497797,
0.0589179769,
0.1303808093,
0.0547283702,
0.0908325613,
0.0286453031,
0.1321125031,
0.2479615659,
-0.367557317,
0.0719399601,
0.2021697313,
-0.2696196735,
-0.1480325609,
0.1263962239,
0.2348932475,
0.3072804511,
0.6015738249,
-0.0306529496,
0.1460758448,
0.1362860799,
0.0902563781,
0.1895991564,
-0.0361278467,
0.264405787,
0.1784326285,
0.1773348153,
0.0430850349,
0.1173861623,
0.3615165651,
-0.194719702,
-0.0503714569,
-0.0662263557,
0.6730319262,
-0.1513728648,
-0.1384246796,
-0.2244410366,
0.0297664478,
0.1638581157,
-0.1666562557,
0.1155288294,
-0.0265722107,
0.1167303994,
0.1477525085,
0.0404452533,
-0.4394562244,
0.287722379,
-0.1617626995,
0.1960940063,
-0.0942887291,
0.044368349,
-0.0271909032,
-0.0181136206,
-0.1653069407,
0.3592184186,
0.4551663101,
0.1674996614,
-0.2915838063,
-0.0534514822,
-0.1397530735,
-0.2116465718,
-0.1342040747,
0.4058215022,
0.2126344889,
0.4610164464,
0.134728536,
0.2065757513,
-0.1926116645,
-0.1079935208,
0.1983432323,
0.0853297114,
-0.1661790907,
0.553599298,
0.0306687597,
-0.3605211675,
-0.2123487592,
0.0388969369,
-0.4257967472,
0.0837270245,
0.296818018,
0.0673177019,
0.2045307606,
-0.3567804098,
0.1773059219,
0.1780986786,
0.401587218,
0.3509912491,
0.2550210953,
0.1661326885,
-0.1810493916,
-0.4496580064,
0.0841703862,
-0.0507889502,
-0.2418991476,
-0.0206429567,
0.3006989062,
0.0002590021,
0.2212194055,
-0.0865426958,
-0.0084869275,
-0.0446577966,
-0.3914660215,
-0.248638764,
0.0468302257,
-0.0883682519,
-0.0308395308,
0.1717143059,
-0.1824655831,
-0.123530753,
0.0278110318,
0.1662775725,
-0.1078461409,
0.190574646,
-0.0070867515,
-0.032207787,
-0.173086673,
0.2991682291,
0.13249138,
-0.1177578717,
-0.1633813828,
0.1962731481,
-0.3696708679,
-0.3476007581,
0.1061205417,
-0.0462088548,
0.3358205557,
-0.1556407958,
0.1364307851,
-0.163021192,
0.1335618496,
0.035647057,
0.0332455747,
-0.2534839809,
0.1212154776,
0.1745647341,
-0.1633089036,
-0.1208328381,
0.1273243576,
-0.1131868511,
0.0501783937,
-0.290261507,
-0.3075343966,
0.4495239854,
-0.3335689902,
-0.4592610598,
-0.060097158,
0.207671985,
-0.0630890429,
-0.3752246499,
-0.4853549302,
0.141993165,
0.2410846204,
0.0844377354,
-0.0768747926,
0.421423018,
-0.3127441108,
0.0632281005,
0.1830019802,
0.4975368381,
0.2221595198,
-0.0971201956,
0.0885696709,
-0.1633361578
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | Unfortunately it's not possible to download only the dev set of NQ.
I think we could add a way to download only the test set by adding a custom configuration to the processing script though. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 35 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
Unfortunately it's not possible to download only the dev set of NQ.
I think we could add a way to download only the test set by adding a custom configuration to the processing script though. | [
-0.4314169884,
0.1772086024,
-0.112971954,
0.1146224514,
-0.1070227027,
-0.0347266644,
-0.2576386034,
0.7160259485,
-0.032957755,
0.3145226836,
-0.2831302583,
0.0151574602,
-0.2205640525,
0.6092381477,
0.4744932055,
-0.0987762734,
-0.1157777756,
0.4419943988,
-0.0799669996,
0.0518986061,
-0.1738965511,
0.2375748903,
-0.0511894897,
0.1008467823,
0.3044530451,
-0.2877177596,
0.1591365337,
-0.0306119062,
-0.3407663405,
-0.2889768779,
0.0223002583,
0.2152757645,
0.1746727526,
-0.3234874308,
-0.0001247324,
-0.0638321117,
-0.0178546924,
-0.1316623688,
-0.1318191439,
0.1239355505,
-0.1069383323,
-0.1338654011,
0.0931723639,
0.0113325519,
-0.0697071105,
-0.2781603336,
0.2135230899,
-0.0861072317,
0.3582045138,
0.4454736114,
0.020418562,
0.1405424327,
-0.2529484034,
0.1526876688,
-0.0644536465,
-0.2822868824,
-0.0892290547,
0.0156453792,
0.1498266608,
0.1354312748,
0.1219885871,
0.1407381743,
0.2157316804,
0.2066383809,
0.0054098899,
-0.0171900317,
0.3492209613,
-0.7237768769,
-0.0792932883,
0.7125211954,
0.1285498291,
0.1623681486,
-0.1726223975,
-0.1767227054,
0.1247088239,
-0.4916467071,
-0.0423813201,
0.5084097981,
-0.565615654,
-0.0027760314,
-0.6391008496,
-0.5820967555,
-0.1727647632,
0.1160462722,
-0.0537559614,
-0.0337663591,
0.080180198,
0.0538338982,
0.2881833315,
0.1955109835,
0.0965854451,
0.1249822155,
-0.1501689851,
0.1346163303,
-0.2485610396,
-0.4248794913,
-0.29505229,
-0.1588330567,
0.2999624312,
0.0453288108,
-0.0710311458,
0.0286632702,
0.0723698288,
-0.1054557785,
0.4089218974,
0.1076539233,
0.284154892,
0.2317723781,
0.0504683666,
0.0211561061,
0.0802842677,
0.1652098149,
-0.0076860706,
-0.0758912191,
-0.6195680499,
0.0124149183,
-0.0180407874,
-0.4316452444,
0.0045177541,
-0.1753554344,
-0.1591522098,
-0.1118604019,
-0.186851725,
0.1990063339,
0.0409795083,
0.0766246915,
-0.2971261442,
0.2975177765,
-0.2782461941,
-0.8463839293,
-0.1588614285,
0.0120071052,
0.0453220941,
0.1391308159,
0.318924427,
0.1616570503,
0.2113090307,
-0.2638458014,
0.0016601506,
-0.0189120695,
0.3986709416,
-0.0074117882,
0.0302928779,
0.3964283168,
0.0998831764,
0.1514959633,
-0.1389228553,
0.3128342032,
-0.4387753308,
0.2237685472,
-0.0319212452,
-0.3537500501,
0.2378725111,
0.0444738567,
-0.0815991312,
0.0902850926,
-0.0688422471,
0.2779452503,
-0.0511245318,
-0.1465737075,
-0.0953016877,
-0.1845465302,
-0.2540003359,
-0.051065024,
0.3700122237,
-0.0547665134,
-0.3172945082,
-0.21801956,
-0.0503769889,
-0.1873558164,
0.2057103664,
0.3892887533,
-0.1953088343,
0.2749292552,
-0.1282556206,
0.0419044532,
0.6039462686,
0.0634195432,
-0.1607679278,
0.4452086091,
-0.0958242938,
-0.3545048833,
-0.0886768624,
0.254034102,
0.1982444525,
-0.0106192064,
-0.3353325725,
0.7256405354,
-0.1832429767,
-0.2423430085,
-0.0794680491,
-0.5672935843,
0.2943887115,
0.1072141677,
0.233466953,
0.1547668427,
-0.1318540573,
-0.164445594,
0.2280088812,
0.0481452197,
-0.0218948144,
0.019562427,
-0.0771091059,
-0.4434764981,
-0.1948781759,
-0.1264060587,
-0.4273957312,
0.2192074955,
-0.6686816812,
-0.2727110386,
0.4337012768,
-0.0741638094,
-0.0856536329,
-0.2160949856,
0.2276452333,
-0.3765789568,
-0.08974538,
-0.0897620916,
0.2328124046,
0.1345526427,
-0.3531810343,
-0.0775734931,
-0.0844801515,
0.1200895309,
-0.1485578269,
-0.1885525137,
0.1947612166,
0.1635545492,
0.313690424,
-0.0682018399,
-0.1422622055,
0.0293510016,
0.1174351275,
0.1840602458,
-0.0653511137,
0.067931138,
0.1901081353,
-0.003538698,
0.0262002889,
-0.0636295527,
-0.0851446912,
0.0705616027,
-0.2034727186,
0.0601700619,
-0.173262015,
0.4890032113,
-0.2501839995,
0.2387618273,
-0.0243578479,
0.0712085739,
0.115085341,
-0.1953157037,
0.042203255,
-0.1012482047,
0.2621364594,
0.0794928595,
0.0874666795,
-0.0781056732,
-0.1392308921,
0.0596787632,
0.3397411108,
-0.1995897442,
-0.1290845424,
-0.0971143991,
-0.0654710084,
-0.1062470824,
0.2073574066,
0.3562304974,
0.2953767776,
0.1393584609,
0.514903903,
0.0771055445,
0.1494973749,
-0.2519966364,
0.1438815147,
0.0286945291,
-0.2033510357,
-0.0611339957,
-0.0969163477,
-0.1329972744,
-0.2284998447,
0.5298208594,
0.1884368509,
-0.0437838361,
-0.0721284002,
-0.1056222394,
-0.4070443213,
-0.1369894147,
-0.0033694955,
-0.0215591658,
-0.15911524,
-0.1997401565,
0.3900651336,
-0.1750446111,
-0.224631384,
0.1717159152,
0.1362398565,
0.462574929,
-0.156874463,
-0.2329501808,
0.1639210433,
0.0432776287,
-0.0902829021,
0.0886401311,
0.0859902203,
0.3979049921,
0.4500080943,
-0.1003728509,
-0.1956561208,
0.0405309759,
0.0862389058,
0.0650638863,
0.2300627381,
0.4814371467,
-0.0224952716,
0.4113824964,
-0.0127602573,
0.1447872221,
-0.3928008378,
-0.1107229143,
-0.2695804536,
-0.109787412,
0.2999340296,
0.3856032193,
-0.2025088072,
-0.7505490184,
-0.2044205517,
-0.2655574679,
0.1911295503,
0.0078093703,
0.2178954631,
-0.1302042454,
-0.2237562984,
-0.0723755211,
-0.4191214442,
-0.0299894251,
-0.0546578802,
-0.0272560231,
0.2050246298,
-0.1796648353,
-0.1089263856,
0.1190534532,
-0.0054979371,
0.3167388737,
0.223402977,
-0.6580187678,
0.3405666053,
-0.0411546826,
0.1739108413,
-0.0416290537,
-0.1339777708,
0.4145454764,
-0.4879592359,
0.0344206803,
0.2119374573,
0.2159921676,
0.0893986002,
0.0918628871,
0.1538552791,
-0.0929385275,
0.322534889,
0.0503836796,
0.9196420312,
0.0844696537,
0.2862997949,
-0.0774068385,
0.0287649948,
0.2585729063,
-0.1073844805,
0.3119178712,
0.2791597545,
0.1978383213,
-0.2146598548,
0.2588630319,
0.0241553523,
-0.1635828763,
-0.1606381536,
-0.0481733978,
-0.0850324854,
-0.15819107,
0.143248871,
-0.0431429408,
0.1371498555,
0.2363633066,
0.1082576588,
0.2843376696,
-0.1966169178,
-0.0721739307,
-0.0845046192,
0.246800378,
0.0981273502,
-0.5428898931,
-0.0851745829,
-0.2477724999,
0.0057318495,
-0.1068634391,
0.1800316423,
-0.1453001052,
-0.0585733503,
0.1785815805,
0.1014821157,
0.6295845509,
0.0048302244,
-0.1356539726,
-0.0292936414,
-0.3415820003,
-0.1198016927,
-0.0477264784,
-0.0507909544,
-0.2233604193,
0.1544109136,
-0.1649311036,
-0.2447298765,
0.0283706635,
0.073449932,
0.425804168,
-0.2620769143,
0.1635082662,
0.062624447,
0.0756006539,
-0.1320588142,
0.3050741255,
-0.0568813458,
-0.0151060736,
-0.2590180635,
-0.1273941845,
-0.2318468988,
-0.1011640131,
0.203473106,
0.1448334605,
0.1429019272,
0.0512660369,
0.2887452245,
0.0686543137,
-0.2530814707,
-0.30486691,
0.1492016315,
0.0673601851,
0.0474094525,
-0.1193515509,
0.0078322692,
0.2520500124,
0.3751188815,
-0.1827661842,
-0.2367277145,
0.0274217837,
0.0550523847,
-0.0090605961,
0.4180618525,
-0.0186043661,
-0.3834147453,
-0.1481361538,
-0.1736946255,
0.3704394996,
0.2203922719,
-0.201837182,
0.2406018525,
0.0264363103,
0.0278726146,
-0.1864351779,
0.2639500201,
0.8607463241,
-0.2654821575,
0.2149349004,
0.164629966,
-0.363286823,
0.8256193399,
-0.3349284828,
0.1162395924,
-0.1972406209,
-0.1531569362,
-0.1065632701,
-0.2051375806,
-0.1102226526,
0.2792852819,
0.016420098,
0.4865502715,
0.1176098585,
-0.0718604177,
0.0547382385,
0.0452391282,
0.1444045901,
0.0758989826,
0.0172452834,
-0.0416717306,
-0.312159121,
0.1052949429,
-0.0429833531,
-0.0302204564,
0.1688418686,
0.0086278738,
-0.0195342619,
0.0852717161,
-0.123160243,
-0.2328205109,
-0.1784796119,
-0.1600670218,
-0.0935575217,
0.6345368624,
0.1503609568,
0.2026649415,
-0.3431532681,
0.2239544392,
-0.1167135313,
0.0065891733,
0.1394178718,
0.1315447539,
-0.148789227,
-0.2536193728,
0.0774620846,
0.1407611668,
-0.1852729172,
0.1381827891,
-0.3526149988,
0.2445801049,
0.1456681192,
-0.178881824,
-0.1581054777,
-0.0500046462,
0.2716681659,
-0.0119506139,
0.0293890256,
0.1175779998,
-0.2636387348,
0.0658611581,
0.1705255955,
-0.3241085708,
-0.1111444682,
0.1945013851,
0.428809613,
-0.17000027,
0.3327626586,
-0.140908435,
0.0136465216,
-0.3063536882,
-0.0172153711,
0.0022659649,
-0.3533317447,
0.2071451247,
-0.1468133032,
-0.1726896167,
-0.0795621425,
0.279150188,
-0.0207249671,
-0.1307425648,
0.0704070181,
-0.1994918138,
-0.0329444855,
0.2163629681,
-0.3628818095,
0.3788319528,
0.1354701519,
-0.2997674048,
-0.1634669304,
0.6286056638,
-0.1036683768,
0.0322006568,
-0.0944362208,
0.2511244118,
-0.3191686571,
0.2514470518,
0.0328676365,
0.1078877002,
-0.1501196921,
-0.0540228188,
-0.3074722886,
-0.0736826211,
-0.0204960257,
0.1999012232,
-0.0562042221,
0.1895475686,
0.3652931154,
0.0124284308,
-0.1579036564,
0.0946148187,
0.0829908028,
-0.4526725113,
0.2468919754,
0.2111491561,
0.5735399127,
0.1258860528,
-0.5383150578,
0.4397479296,
-0.1780576259,
0.4297508895,
-0.0310197696,
0.2363820821,
0.0711544976,
-0.2082405686,
-0.4042149484,
-0.1488282084,
0.277896136,
-0.0559301898,
-0.1306244135,
0.1122289374,
-0.0010715118,
-0.3463712037,
0.1391667575,
0.7270388007,
-0.1468433738,
0.0861140192,
0.3228086233,
0.0782290399,
-0.0484982952,
-0.0131454179,
0.200435847,
-0.035687007,
-0.2499094903,
0.3352947235,
0.0642418116,
-0.2685917318,
0.41629076,
-0.0460427478,
-0.1537011713,
-0.198364377,
0.0161410607,
0.5277787447,
-0.2210382372,
-0.2766155005,
-0.1627863646,
0.1033719927,
0.0404638574,
0.2024608999,
-0.2855543494,
0.2845877409,
0.4057112932,
0.1913777739,
0.0336733945,
-0.1473400593,
-0.3288442194,
0.4491600096,
0.1161429361,
0.0889779702,
-0.0207236167,
0.2700834274,
0.1414739192,
-0.2981549799,
-0.3012731373,
0.2144740969,
0.203471899,
-0.0285609588,
-0.2557725906,
-0.0071109366,
-0.1221089959,
0.3441335559,
-0.0058770673,
-0.4594330788,
-0.08456067,
0.2982450724,
-0.1821533889,
-0.0693450645,
0.3256306946,
-0.0325852521,
-0.1284436136,
-0.2529567182,
0.1698728055,
-0.1750003397,
0.1404656917,
0.4270241857,
0.015474787,
-0.2307577878,
-0.1206713021,
-0.4186614156,
-0.1668029428,
0.314417094,
0.1680989563,
-0.1549811065,
0.1549418569,
0.2139955312,
0.5466294289,
0.4048593044,
-0.014750517,
0.0428885631,
0.171037361,
0.0891627073,
0.1824763119,
-0.4049275517,
0.4496500194,
0.226956442,
0.2072747648,
-0.1210862398,
-0.0541491136,
-0.2880186141,
0.0611568168,
-0.3377893865,
-0.2357201725,
0.0404667184,
0.1949314475,
-0.0027504768,
-0.5021930933,
0.5036777258,
0.0489066169,
0.2614567876,
-0.3123844266,
-0.1567742974,
-0.2423514575,
-0.0338427499,
-0.0923614874,
0.1479974985,
0.0521387272,
0.2573347986,
0.0968044326,
0.5066361427,
-0.4359942079,
0.2668400109,
-0.3112772107,
0.295091033,
-0.2862003744,
-0.12776573,
-0.336053282,
0.4263561368,
0.0000958011,
-0.2176022679,
0.4132006168,
-0.3228464425,
-0.2708883286,
0.6675410271,
-0.1453435421,
0.3749164939,
0.2538485825,
0.2959194481,
0.255387485,
0.1831920743,
0.0493686274,
-0.1062302813,
-0.0990052819,
0.0672194436,
-0.3648919463,
-0.0909855664,
-0.0493930317,
0.130652383,
-0.2727120221,
0.5207659602,
0.0134380087,
0.1782701313,
-0.0694670156,
0.3151215911,
0.1213392541,
-0.2395363003,
0.068481192,
0.3522230685,
0.4145165682,
0.3370568752,
-0.2478995174,
-0.2640330195,
-0.2773192227,
0.0865657553,
0.4922344685,
-0.0528937206,
0.0804802626,
0.0453802645,
0.219126597,
0.3004135191,
-0.1477043927,
-0.3465881944,
-0.0207596812,
0.2700822651,
-0.3474006057,
0.0100168791,
0.3292184174,
0.1928596795,
-0.2000580281,
-0.1234650835,
0.2232591361,
0.2461212426,
-0.2174124569,
-0.2893903255,
-0.3939068019
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others.
For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets.
However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 70 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others.
For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets.
However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this. | [
-0.3837679923,
0.2108080089,
-0.0951718763,
0.1044240221,
-0.092063874,
-0.0907708704,
-0.2257678211,
0.6605115533,
-0.0418678485,
0.2795562148,
-0.3325554729,
0.0646843165,
-0.2607530653,
0.5805524588,
0.4200991094,
-0.1612844318,
-0.1143593714,
0.4430702329,
-0.072536625,
0.0320938826,
-0.1458451152,
0.2355460674,
-0.0852555111,
0.0845533982,
0.3158823848,
-0.2681671381,
0.1613006741,
0.0003770468,
-0.4130051434,
-0.2256505191,
0.1046488509,
0.231877014,
0.2737073004,
-0.3151412308,
-0.0001247978,
-0.1767544448,
-0.0492416993,
-0.1076974198,
-0.1048341617,
0.0290609896,
-0.0316628627,
-0.134509787,
0.1448413879,
-0.0146084614,
-0.0661740676,
-0.2787025869,
0.180222407,
-0.0877976567,
0.2828412354,
0.3137019575,
0.0347506069,
0.0575812533,
-0.1785817593,
0.1744212359,
0.0454846062,
-0.1572281569,
-0.1496081352,
0.0710524544,
0.2409634441,
0.1739740521,
0.1371459216,
0.1628846824,
0.1711562872,
0.1461559683,
0.1041327864,
-0.0084158974,
0.2902479768,
-0.6779155731,
-0.1346675009,
0.7349891663,
0.2752512097,
0.1195651591,
-0.14532426,
-0.1751475632,
0.1211699247,
-0.4858598709,
-0.1015631258,
0.5020630956,
-0.5056435466,
0.0058690426,
-0.5925875306,
-0.595438242,
-0.228948459,
0.1964993775,
-0.0154540958,
-0.0786425993,
0.0763815343,
0.080804795,
0.3439537287,
0.1932832301,
0.1554149985,
0.1268599182,
-0.1199785545,
0.1305150539,
-0.26350227,
-0.4542860687,
-0.3151843846,
-0.1078781858,
0.2948120236,
0.1053656861,
-0.1306050867,
0.0311698448,
0.0303931516,
-0.1063593477,
0.5197605491,
0.0478785336,
0.2457873374,
0.2374640554,
0.1265534014,
0.0372285731,
0.0975350738,
0.1258990467,
-0.0222977158,
-0.0219958387,
-0.6431499124,
-0.0611067973,
-0.0561392941,
-0.4703983665,
0.1024761498,
-0.2125986367,
-0.1848107874,
-0.0741305724,
-0.076582022,
0.2119110376,
0.0375510715,
0.0674564093,
-0.2454404235,
0.28340289,
-0.2661135793,
-0.7744128108,
-0.1252470315,
-0.0079065915,
-0.0679523274,
0.0619682334,
0.3375360072,
0.0844027698,
0.1490257233,
-0.1850016862,
0.0073811333,
0.0263685621,
0.3335589767,
-0.0166187342,
-0.009726312,
0.3612704873,
0.0033702992,
0.163841337,
-0.1632595956,
0.2585631013,
-0.4758755267,
0.2490356266,
-0.0942888483,
-0.3748085499,
0.0877635479,
0.0242969003,
-0.0430559963,
0.055895675,
-0.08282388,
0.2786796987,
-0.0765087605,
-0.2345641255,
-0.0444731116,
-0.1747214496,
-0.2233386338,
-0.0668756291,
0.2855821848,
-0.078079097,
-0.2522702813,
-0.1871513575,
-0.0746145099,
-0.1785930693,
0.2108700126,
0.3680128455,
-0.2529714704,
0.1583966911,
-0.1155179068,
0.0218368247,
0.6580269337,
0.0789995864,
-0.2337392867,
0.4908336997,
-0.052650854,
-0.3138020933,
-0.1015426219,
0.3563975692,
0.1839403659,
-0.0589392409,
-0.3391220868,
0.7834393978,
-0.137980625,
-0.2503324151,
-0.0784130096,
-0.5916571021,
0.3074537218,
0.1783097684,
0.2205726653,
0.1342015564,
-0.0495588928,
-0.1202785447,
0.2245158106,
0.0300308391,
0.0112633929,
-0.008810956,
0.0123788686,
-0.3818090558,
-0.1711748242,
-0.1530350447,
-0.4459683895,
0.1846544296,
-0.6536505818,
-0.1945619136,
0.4189760387,
-0.0865711793,
0.0073982012,
-0.234100312,
0.2203125209,
-0.4121866524,
-0.1198644787,
-0.1790968031,
0.1835348159,
0.1684641242,
-0.3527588546,
-0.1195262596,
-0.1414877921,
0.1672489494,
-0.1817323416,
-0.1216655895,
0.1836250722,
0.2101252079,
0.2229201794,
-0.0013608733,
-0.1546614319,
0.0601965711,
0.1264697611,
0.1464357823,
-0.1569621563,
0.0748498663,
0.1380547434,
0.0602236316,
0.1468371749,
-0.0621343404,
-0.0106386244,
0.027823763,
-0.1594228148,
0.0359752961,
-0.184162274,
0.4670123756,
-0.2941004932,
0.2273009121,
-0.0432110019,
0.0427762307,
0.0677792504,
-0.1987800449,
0.0702118054,
-0.0314570814,
0.2993671596,
0.0751125664,
0.089366883,
-0.0684215277,
-0.1516071111,
0.0916003957,
0.3092693686,
-0.1839173734,
-0.1773817092,
-0.0365722068,
-0.0742198676,
-0.0707325041,
0.2380768061,
0.4090533853,
0.3239272535,
0.1457185447,
0.5053700209,
0.0464160889,
0.1550114155,
-0.2461327314,
0.1222541407,
-0.0016358594,
-0.2593738437,
-0.0784982964,
-0.1056859121,
-0.068361856,
-0.2644270957,
0.4836117923,
0.1211463809,
-0.0516694151,
-0.0108916806,
-0.0918669626,
-0.4039867222,
-0.1954007447,
-0.0059841303,
-0.0668178722,
-0.2175914496,
-0.1385279149,
0.3773463964,
-0.1401187927,
-0.1859868765,
0.141948998,
0.2079996318,
0.4611383975,
-0.2285573184,
-0.3333145678,
0.1294852346,
0.0648882315,
-0.0823555067,
0.0876158327,
0.1210080534,
0.3232125938,
0.4368118346,
-0.0148645071,
-0.1111294925,
-0.0220285039,
-0.0312480927,
0.0310646482,
0.2105917633,
0.4511544108,
0.0031830366,
0.3574376702,
-0.0207836814,
0.1039656401,
-0.3731695116,
-0.2048399448,
-0.2044689804,
-0.1332654357,
0.3195648789,
0.3701704144,
-0.2776897252,
-0.7098517418,
-0.2263510078,
-0.2926573455,
0.2092169523,
0.0054043843,
0.1874392927,
-0.0258353408,
-0.2257737219,
-0.0712636709,
-0.3463263512,
-0.0302543603,
-0.0538275465,
-0.0661435351,
0.2306488305,
-0.173641935,
-0.0774060711,
0.1423440874,
0.009330296,
0.2786384821,
0.2440710515,
-0.731284976,
0.3878255486,
-0.0149216186,
0.1793182343,
0.0124044549,
-0.0316707566,
0.3906843662,
-0.4956601858,
0.0461907424,
0.2226557285,
0.1801549047,
0.0473612398,
0.1463138312,
0.264214009,
-0.0505628735,
0.2984304428,
0.0042139585,
0.9026040435,
-0.0219016355,
0.2770243287,
-0.0279033836,
0.1159626469,
0.3132762313,
-0.1179409176,
0.2958509028,
0.3645721972,
0.1598806679,
-0.2335768789,
0.2932391763,
0.123942107,
-0.2589544356,
-0.214453578,
-0.0696261078,
-0.0567027256,
-0.12731646,
0.1541204154,
-0.0097610839,
0.0421915911,
0.2184979022,
0.072013028,
0.329357326,
-0.1914977878,
-0.0961924195,
0.0322570205,
0.2623872161,
0.0922152326,
-0.5549852848,
-0.069148846,
-0.2553254962,
-0.0045989654,
-0.0989545658,
0.0317615084,
-0.1204399541,
-0.0082691535,
0.2318600267,
0.1683474928,
0.5909478068,
0.0614551082,
-0.2426662147,
-0.0883284509,
-0.3295907676,
-0.0227919128,
-0.0294510163,
0.0524411052,
-0.1857877672,
0.0847242847,
-0.162515223,
-0.2776080072,
-0.0038194011,
0.1067297682,
0.3743972778,
-0.1717573851,
0.0683405474,
0.1319335848,
0.0820217282,
-0.1553022265,
0.2775470912,
-0.0711867139,
0.0161297228,
-0.2766102254,
-0.1321994513,
-0.1908851862,
-0.0520374961,
0.2010484338,
0.0611883849,
0.1420812011,
0.0450428948,
0.25174281,
0.045652885,
-0.1849999577,
-0.2596504986,
0.2126801759,
0.0181568582,
0.0519400239,
-0.0969630182,
0.0326506719,
0.2234613299,
0.3854718506,
-0.1590270996,
-0.1818449795,
-0.0089871911,
0.0372517966,
-0.0170686822,
0.3170142174,
-0.0053070965,
-0.3997893631,
-0.2267179936,
-0.2269950807,
0.4494841993,
0.1634717882,
-0.1413419694,
0.3220738471,
0.0655717328,
0.0499738492,
-0.2421554625,
0.2685818076,
0.9881718755,
-0.2815468013,
0.2548357844,
0.1280250698,
-0.4641487598,
0.9363812804,
-0.3721266985,
0.0934712514,
-0.2408128232,
-0.1261503547,
-0.1237549782,
-0.1851520389,
-0.0779527128,
0.2559378743,
0.0302194264,
0.4426489174,
0.1611511707,
-0.0513372272,
0.0561254174,
0.0560336597,
0.1520566046,
0.0439574718,
-0.0281065237,
-0.044349324,
-0.2746136487,
0.111141257,
-0.05412044,
-0.1022004262,
0.1529757828,
-0.0006278869,
-0.018722089,
0.0444306694,
-0.0127264727,
-0.2662274539,
-0.0623794682,
-0.2185969353,
0.0143781807,
0.615301311,
0.1269197762,
0.1762398928,
-0.3800660074,
0.2230015099,
-0.1217523888,
0.0153690679,
0.1590144038,
0.1044136658,
-0.1401655376,
-0.2097870111,
0.1296271384,
0.087140128,
-0.2226063758,
0.0513723344,
-0.3873911798,
0.2717067599,
0.2484140843,
-0.1653219759,
-0.1095159799,
-0.0347580165,
0.2807543278,
-0.007119047,
0.0276636481,
0.1707448512,
-0.2003897429,
0.006211088,
0.1212963462,
-0.296604991,
-0.178413257,
0.2170601934,
0.4410694838,
-0.2956876457,
0.2311336696,
-0.1447518021,
-0.0406471416,
-0.2397846133,
0.0104830349,
-0.0299260244,
-0.4008364975,
0.1358234733,
-0.1106702387,
-0.1830233783,
-0.0245857686,
0.2750996649,
-0.0994584262,
-0.0941784903,
0.0773351043,
-0.2116997987,
-0.0717723519,
0.2115343958,
-0.4958393872,
0.3922186792,
0.1611789912,
-0.3440657556,
-0.0800408572,
0.5380373597,
-0.0875144526,
0.1143822521,
-0.0327158682,
0.2392186373,
-0.3301361501,
0.2376049459,
-0.0335433409,
0.0713957325,
-0.1780044436,
-0.021545155,
-0.3189707398,
-0.0447277352,
-0.0830529556,
0.2208545208,
-0.0200915746,
0.1732334048,
0.2979395688,
-0.0526754186,
-0.1839698255,
0.1012203544,
0.1039200723,
-0.3889255524,
0.2401883155,
0.157495454,
0.5783494115,
0.1097844541,
-0.5913112164,
0.5145000219,
-0.1677047014,
0.4666443169,
0.0472617969,
0.151260972,
-0.0127695082,
-0.2139867097,
-0.4592821002,
-0.1276163012,
0.2890672088,
-0.0764443725,
-0.001402815,
0.1141810641,
0.0653454736,
-0.2780646086,
0.2255567014,
0.7534221411,
-0.133977741,
0.0620856769,
0.3673752248,
0.0649304762,
-0.0093421508,
-0.0571748167,
0.0890806168,
-0.0138781974,
-0.2894070148,
0.312928021,
0.0575323962,
-0.3034369946,
0.4116077125,
-0.1116232798,
-0.0943762586,
-0.1530002952,
0.0425378866,
0.5735349059,
-0.2732245028,
-0.3262378573,
-0.1394720078,
0.1508862525,
0.0221971143,
0.2271663994,
-0.3691069782,
0.2177572995,
0.4459452033,
0.237032637,
0.0058743544,
-0.1344824135,
-0.3252526522,
0.5056000352,
0.2182756066,
0.0406727865,
-0.0696752965,
0.3011368215,
0.1572869122,
-0.2912784815,
-0.1980878562,
0.24192442,
0.1974515766,
0.0166678485,
-0.2028537095,
-0.0496809296,
-0.1826838106,
0.3123770058,
-0.1010724381,
-0.4574674964,
-0.1391305625,
0.3240171075,
-0.1236164421,
-0.1569908112,
0.330721885,
-0.0419630297,
-0.1021292582,
-0.2556850612,
0.1795629561,
-0.177001819,
0.0958304405,
0.4640853703,
-0.0459359363,
-0.2596223056,
-0.025789896,
-0.3653517663,
-0.2095391005,
0.2498317957,
0.2034851909,
-0.1096156985,
0.1557311565,
0.2807764411,
0.5663049221,
0.3942399323,
-0.0472348742,
0.0324699059,
0.2881228626,
0.0807331353,
0.2034659088,
-0.4621669948,
0.4283204675,
0.2240884602,
0.2149146646,
-0.0970674455,
-0.0631547049,
-0.2014008611,
-0.0163570344,
-0.3748484552,
-0.2838506103,
0.0123093463,
0.1459267735,
-0.011200781,
-0.4772578776,
0.501583457,
0.1012592465,
0.2848774791,
-0.3360570669,
-0.189314872,
-0.2721228898,
-0.0261169691,
-0.0678441152,
0.2251155674,
0.0602587424,
0.2284605205,
0.1323883533,
0.5546504259,
-0.4826954603,
0.2411872149,
-0.2426614761,
0.2789436579,
-0.2555554211,
-0.1002762541,
-0.3028170168,
0.4092624784,
-0.0069009126,
-0.1917093247,
0.3745424449,
-0.3308826089,
-0.295568049,
0.6019466519,
-0.1075992584,
0.3654634356,
0.2640300095,
0.3025879562,
0.2152696848,
0.113311775,
0.1121459454,
-0.1622614861,
-0.0897888914,
0.0291143954,
-0.3479006886,
-0.1157477722,
-0.0441380702,
0.1511318386,
-0.2918075919,
0.5623226762,
-0.0307909884,
0.189849332,
-0.0388919972,
0.3846497238,
0.0302898753,
-0.2880813181,
0.0488306321,
0.3543289304,
0.3404437304,
0.355958581,
-0.2089969516,
-0.2918728888,
-0.2775609195,
0.1047598049,
0.4886986315,
-0.0419334397,
0.1118403599,
0.145421192,
0.1829406619,
0.3227470219,
-0.1110479608,
-0.4189256132,
-0.0283909123,
0.2660477161,
-0.3359091878,
0.0608075485,
0.32845065,
0.1726680249,
-0.2116775811,
-0.1320113689,
0.1879141182,
0.2639766932,
-0.1589773595,
-0.1981962174,
-0.4046053588
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 50 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate. | [
-0.4887263179,
0.2052325308,
-0.0939359367,
0.1260941029,
-0.0418884009,
-0.108756043,
-0.2285953015,
0.6617497802,
0.0076491567,
0.266990304,
-0.2714675367,
0.0445385911,
-0.2082809061,
0.5945591331,
0.4444688857,
-0.0646662414,
-0.1271422207,
0.4709188342,
-0.1361079514,
-0.0069542713,
-0.1744409502,
0.156428203,
-0.0427494012,
0.0399177,
0.2861557603,
-0.243535012,
0.181463331,
0.0041283048,
-0.3567371964,
-0.2835049629,
0.0866330862,
0.2757029533,
0.2166979313,
-0.3432946503,
-0.0001268621,
-0.1054657921,
0.0004294216,
-0.1328521967,
-0.2147212327,
0.0927826017,
-0.0724056214,
-0.1583820581,
0.160932973,
0.0109027028,
-0.0843145028,
-0.3348848522,
0.2662493885,
-0.1632024497,
0.3774254024,
0.4012564719,
-0.0041164909,
0.0548434593,
-0.2272784561,
0.174574554,
0.0175519343,
-0.1025494188,
-0.1552434415,
0.0558353066,
0.1900916249,
0.0763690993,
0.0393829383,
0.0963232145,
0.2445640117,
0.2181497514,
0.1171688884,
-0.0001177685,
0.3439488411,
-0.7146773934,
-0.1467894316,
0.7247011662,
0.2575413585,
0.0835116729,
-0.1220390573,
-0.2418497503,
0.1380848438,
-0.4262856245,
-0.0425271057,
0.4883488417,
-0.6017987728,
0.0279396866,
-0.5949162841,
-0.543631196,
-0.1921220124,
0.2189566642,
-0.0272632949,
-0.0606631041,
0.0457838103,
0.0554196052,
0.2680760026,
0.1433386505,
0.1559550464,
0.0705501512,
-0.0610099994,
0.1489269435,
-0.1999876946,
-0.4450474679,
-0.2982935607,
-0.0994832441,
0.3308860064,
0.1128259376,
-0.0295025147,
0.0462544151,
0.0011221179,
-0.0876057148,
0.4969103336,
0.0745898709,
0.2353422046,
0.2745426297,
0.1146285683,
0.111265488,
0.0898416564,
0.1389094591,
0.0243524108,
-0.0688006729,
-0.6210038662,
0.003677296,
0.077088438,
-0.3594806492,
-0.0306121185,
-0.2182727009,
-0.0773648545,
-0.101004228,
-0.1445731819,
0.1883689016,
0.0624619573,
0.0796578079,
-0.3489789665,
0.3237818778,
-0.2918670774,
-0.7594263554,
-0.141937688,
-0.0309814084,
-0.0322256461,
0.1305489689,
0.4035457075,
0.177743271,
0.1623428464,
-0.1546228081,
-0.0081778103,
0.0228776354,
0.3501371145,
-0.0447860397,
0.0521628447,
0.3954902291,
0.0708256364,
0.1198438331,
-0.0991975665,
0.2762238681,
-0.4767388105,
0.2121436149,
-0.0814639181,
-0.3039793372,
0.2000149339,
0.0312734656,
-0.0611731485,
0.061908409,
-0.0824498534,
0.2958790362,
-0.0218026973,
-0.261738658,
-0.0780140087,
-0.1849836856,
-0.2660311162,
-0.0194636378,
0.2815349102,
0.0521523356,
-0.2876963019,
-0.194380343,
-0.0426555388,
-0.195380196,
0.240943417,
0.3353287876,
-0.2221540362,
0.2208238542,
-0.1777200997,
0.0727048367,
0.6215862632,
0.0408352911,
-0.2153272927,
0.5189723969,
-0.1252592206,
-0.2580467165,
0.0099430894,
0.2915626764,
0.2015534788,
-0.0975812525,
-0.3081537187,
0.7577164769,
-0.1381887048,
-0.2085579485,
-0.0468732342,
-0.5798709393,
0.2178358734,
0.1311501414,
0.1677618772,
0.1886197329,
-0.0218463317,
-0.1770364642,
0.2302629054,
0.0760408789,
0.0210763682,
-0.0027038534,
-0.0927264765,
-0.4067582488,
-0.231443584,
-0.1624526381,
-0.586648643,
0.1941295713,
-0.5578172207,
-0.2835438848,
0.384806931,
-0.1371847093,
-0.0203151293,
-0.2599236965,
0.1540473104,
-0.3446827531,
-0.1026778221,
-0.0458075814,
0.1526651382,
0.1315485239,
-0.3660290837,
-0.0622351505,
-0.060410399,
0.2207046747,
-0.1313728839,
-0.1769901365,
0.2260778546,
0.1880298257,
0.2558662295,
-0.0725523904,
-0.1099504456,
0.0467789993,
0.1513630152,
0.1734099984,
-0.0262590926,
0.0936715379,
0.2082290202,
-0.0001848096,
0.0592573695,
-0.0196035057,
-0.0299161449,
0.0918958262,
-0.2208607644,
0.004964503,
-0.2566195428,
0.4621087313,
-0.2703953385,
0.2382684499,
-0.0310357604,
0.0220023431,
0.1374267191,
-0.2340874076,
0.0234777499,
-0.1472926885,
0.2413587719,
0.123805441,
0.1553203911,
-0.0023000438,
-0.1333711445,
0.0855034441,
0.4147885144,
-0.2111365944,
-0.1127043888,
-0.013723636,
-0.0557622127,
-0.0984779075,
0.1594363898,
0.4292444885,
0.3710597456,
0.1735152453,
0.5662350059,
0.048326835,
0.1430452913,
-0.3168495297,
0.111215733,
-0.0117881857,
-0.2532928288,
0.0380241536,
-0.1188152358,
-0.1213263944,
-0.2932133079,
0.47361058,
0.1529058516,
-0.0682680383,
-0.0972217098,
-0.1410442293,
-0.4016959667,
-0.1507291049,
-0.0715244859,
0.0242200699,
-0.1566215903,
-0.2005380094,
0.3691398203,
-0.1295190454,
-0.2382729053,
0.1708693206,
0.129008919,
0.4911542237,
-0.207162559,
-0.3213883638,
0.1032971889,
0.0876334906,
-0.0775728524,
0.0606638715,
0.1547176093,
0.3283342123,
0.4007339478,
-0.112011008,
-0.1641483009,
0.0141162239,
0.1065449044,
0.0587566309,
0.2443142533,
0.4849342108,
-0.0601025149,
0.4556982815,
0.0552121252,
0.1288234293,
-0.406231463,
-0.047339242,
-0.2428159714,
-0.1148088202,
0.2974047959,
0.3979505301,
-0.2779553533,
-0.7279382348,
-0.192511797,
-0.3107815087,
0.1971548051,
0.0362024456,
0.166070804,
-0.0209892392,
-0.1801548451,
-0.1689497381,
-0.4117170274,
0.0302723236,
-0.0424680971,
-0.0558415614,
0.2495704442,
-0.1656604111,
-0.0818885043,
0.0985906273,
-0.0002207412,
0.1828831136,
0.30648157,
-0.7142481804,
0.3078975677,
-0.0837082267,
0.17056337,
-0.0621972047,
-0.0692709163,
0.4284793139,
-0.4704176784,
0.0272307731,
0.2099205554,
0.2742369473,
0.1153620109,
0.0321403816,
0.1345499456,
-0.0440303385,
0.3096980453,
0.0385461748,
0.8778752089,
0.0845527947,
0.2853831649,
0.0053809606,
0.0823159292,
0.3701723516,
-0.1114832163,
0.344776392,
0.3482343853,
0.1952169836,
-0.1944241375,
0.3263474405,
0.0774826035,
-0.1878177077,
-0.1526003182,
-0.0101806764,
-0.0675126165,
-0.1857350618,
0.19856745,
-0.0588746704,
0.0681100041,
0.2273649722,
0.1045214534,
0.296030432,
-0.176845625,
-0.1366891861,
0.0278592817,
0.2456604093,
0.1218134239,
-0.573131144,
-0.008216829,
-0.2568286955,
-0.0231647193,
-0.1184410453,
0.0914424285,
-0.2068184018,
-0.0856495053,
0.2234113812,
0.2078452408,
0.6067394018,
0.0300899278,
-0.1100326777,
-0.1166497096,
-0.2653927207,
-0.0457315445,
-0.0447134264,
0.0103012929,
-0.1716823429,
0.1064631268,
-0.0470433198,
-0.2884471714,
-0.0024440349,
0.078677237,
0.3771258295,
-0.1641007513,
0.0801433772,
0.1451833993,
0.066426985,
-0.1432053149,
0.2743828893,
0.0222197715,
-0.0582526959,
-0.2841443717,
-0.174689889,
-0.2178648859,
-0.0764279142,
0.1868625283,
0.0768215507,
0.0833540708,
0.0766532794,
0.2259191871,
0.0786205828,
-0.2055819631,
-0.2046729326,
0.2767517865,
-0.0017923673,
-0.0984970033,
-0.139534682,
-0.0281245131,
0.1536061168,
0.4546098113,
-0.1922066212,
-0.2828115225,
-0.0167310201,
0.0893428698,
-0.0223379359,
0.4292798638,
0.0398143046,
-0.4462183714,
-0.2101214677,
-0.2589494884,
0.37324211,
0.194597885,
-0.2055405229,
0.2144981474,
0.0013384892,
-0.0282610897,
-0.24728778,
0.2591444254,
0.91184026,
-0.2326833308,
0.267170459,
0.1472860873,
-0.3779021502,
0.8221445084,
-0.4244486094,
0.078025423,
-0.1748120487,
-0.1513872445,
-0.1384527832,
-0.2045549303,
-0.1035989597,
0.3686383367,
0.0392802693,
0.4770531058,
0.0891528055,
-0.0144780586,
0.0720811188,
0.0688488409,
0.0940320119,
0.0331120975,
0.0610825978,
-0.0643873587,
-0.3221388757,
0.1072012931,
-0.0213542301,
-0.07482218,
0.185185194,
-0.0554801635,
-0.0290842354,
0.0574599542,
-0.1575430483,
-0.2827275693,
-0.2014379203,
-0.2388132513,
-0.0415567793,
0.7085376382,
0.1310727149,
0.1403220296,
-0.3597533703,
0.2176436037,
-0.1332637817,
0.0653970912,
0.0704184249,
0.052559834,
-0.1054473594,
-0.1683650166,
0.1406694651,
0.0120318448,
-0.1634981036,
0.1378881931,
-0.3886713684,
0.2521443367,
0.1531345546,
-0.2198174447,
-0.1275341809,
-0.122900404,
0.329539448,
-0.0046905559,
0.0095538693,
0.0961326361,
-0.1693179458,
0.0130121913,
0.1482702941,
-0.3236747086,
-0.1380087286,
0.2522519529,
0.386166662,
-0.2282226384,
0.3095296919,
-0.190615505,
-0.0504055731,
-0.2935266495,
0.0322296545,
-0.0071939188,
-0.3725095391,
0.1485248506,
-0.0461406335,
-0.1984892935,
-0.0560622178,
0.2099428922,
-0.0773584023,
-0.121321559,
0.0820885673,
-0.1997181028,
-0.0244312268,
0.1956809461,
-0.4095668495,
0.4032940865,
0.1959793121,
-0.3230588734,
-0.1145843938,
0.5872231722,
-0.0853211731,
0.0332794562,
0.0169557277,
0.2204614282,
-0.267064184,
0.2823041677,
0.029355837,
0.1078802943,
-0.1735433787,
-0.0970690399,
-0.2927985489,
-0.0551037639,
-0.0235797223,
0.211191684,
-0.0421671085,
0.1556612849,
0.2824376523,
-0.0781592727,
-0.1579773128,
0.0044937772,
0.1034575105,
-0.4241892099,
0.2448602021,
0.1957986802,
0.5968703628,
0.2148341835,
-0.4498147964,
0.4909952879,
-0.2002985924,
0.4467796683,
-0.012261779,
0.1721562892,
0.0115226014,
-0.1901784539,
-0.4182383716,
-0.1043045521,
0.3986246288,
0.0369057469,
-0.1261123568,
0.0897481292,
0.0416333266,
-0.3117084205,
0.1528306603,
0.720867455,
-0.1670780033,
0.0277368426,
0.3030210435,
0.0733281374,
-0.0116283987,
-0.0867306739,
0.2075520605,
-0.0328285433,
-0.2175639421,
0.3294562399,
-0.0068046097,
-0.2957663536,
0.4166150689,
-0.0636667758,
-0.0969541445,
-0.116689004,
0.0263304822,
0.5689671636,
-0.2224676013,
-0.280253619,
-0.1525287032,
0.1486293674,
0.0431912877,
0.3451727331,
-0.3122249544,
0.2479104251,
0.4005115628,
0.2087183297,
-0.0269347373,
-0.2441417873,
-0.2748733759,
0.5230000019,
0.1104308292,
0.0336666964,
-0.0003101738,
0.243836686,
0.1401624531,
-0.2416858822,
-0.3140127063,
0.138470158,
0.1926988363,
0.0025465987,
-0.2052246034,
-0.0280449446,
-0.0956044197,
0.3212981522,
-0.1187283769,
-0.4251153171,
-0.1308766603,
0.302572459,
-0.1611566693,
-0.0812013224,
0.3739449382,
-0.0712850019,
-0.1348885745,
-0.2602089643,
0.1898049563,
-0.184838891,
0.1720394492,
0.4114940166,
-0.0462578423,
-0.2266837806,
-0.0455703363,
-0.3624217212,
-0.2169679999,
0.2848594487,
0.1728209704,
-0.2372647971,
0.1584549248,
0.2072386444,
0.5742636323,
0.4248837531,
-0.0192974117,
0.0464588515,
0.2571293116,
0.1105092093,
0.1029169038,
-0.4459002316,
0.4196877778,
0.2157386541,
0.2236369848,
-0.077501677,
-0.0779942721,
-0.2616134286,
-0.0133581795,
-0.3012206852,
-0.2348339707,
0.0605700985,
0.1134693921,
-0.0178121012,
-0.4746330082,
0.4637053013,
0.0473074876,
0.1785971373,
-0.3177025318,
-0.1525583416,
-0.2793527246,
-0.0210685637,
-0.1326093823,
0.1412639916,
-0.0114481729,
0.2095392346,
0.1240262091,
0.5167966485,
-0.4997383058,
0.2142001837,
-0.2274487168,
0.3636534214,
-0.2333957702,
-0.167256102,
-0.3186059296,
0.4481710196,
0.00792435,
-0.2858370245,
0.3640496135,
-0.2809881568,
-0.2817652225,
0.6151067615,
-0.0763220116,
0.3583167195,
0.2011262625,
0.263414979,
0.248133257,
0.1929303259,
0.0672080144,
-0.1127577573,
-0.0985039771,
0.1025805622,
-0.4266869724,
-0.1189947575,
-0.0869916826,
0.1052412316,
-0.3675813079,
0.5479369164,
0.015567488,
0.1099902466,
-0.0931465328,
0.4020737708,
0.0751658231,
-0.2500084937,
0.0830963254,
0.3318132162,
0.3681014478,
0.333972156,
-0.1986511946,
-0.3193084598,
-0.2046660483,
0.0301670041,
0.4539538324,
0.0250947308,
0.0854399726,
0.0698470995,
0.251193881,
0.2723047733,
-0.0705251098,
-0.2877126336,
0.0154355038,
0.2493829131,
-0.380371958,
0.0441295467,
0.3894334435,
0.1632054895,
-0.2141719609,
-0.1160928607,
0.226522401,
0.3127983212,
-0.2167778015,
-0.2701512873,
-0.4153766334
] |
https://github.com/huggingface/datasets/issues/412 | Unable to load XTREME dataset from disk | Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..` | Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
``` | 16 | Unable to load XTREME dataset from disk
Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..` | [
-0.2940952182,
-0.3835184574,
-0.0021736298,
0.6607134342,
0.1483452022,
0.1238795891,
-0.1730882674,
0.1085545942,
0.1807118058,
0.0440969318,
-0.1427523047,
-0.0003446619,
0.1383353621,
-0.0291911401,
0.1631223261,
-0.1389355659,
-0.0050913496,
-0.1092640981,
-0.045573771,
0.0021924437,
-0.3334751427,
0.3826160729,
-0.1232327893,
-0.0158362761,
-0.3343700469,
0.0152690709,
0.0525249131,
0.610396862,
-0.2204438895,
-0.0490747951,
0.4548051953,
-0.1380423307,
0.4193027914,
0.7166675925,
-0.0001206809,
0.0362721495,
0.1372579783,
-0.1804517657,
-0.1188216433,
-0.5258253813,
-0.3079935312,
-0.1304578036,
-0.0578953326,
-0.1272685528,
-0.0723706111,
0.0013967459,
0.13070108,
-0.5407080054,
0.4081202745,
0.1079235449,
0.105806604,
0.2785436511,
0.0526134111,
-0.0774004459,
0.2205449492,
0.1630187333,
-0.3261562288,
0.0098360796,
0.3490778506,
0.1568440199,
0.0890087634,
0.3036376834,
0.002881018,
0.0416490845,
0.4682086408,
-0.0255382787,
0.1632108539,
-0.2858411074,
0.0740047917,
0.3027316928,
0.5413937569,
-0.176610738,
-0.4551270008,
-0.1600850821,
-0.0877793208,
-0.2420939356,
0.3571465313,
0.2817615271,
-0.1429190338,
-0.0044438732,
-0.2909397185,
-0.1955346614,
-0.165093258,
0.1610515714,
-0.0667802244,
0.162371099,
-0.2162121385,
0.0020341089,
0.3741414249,
0.0450922959,
0.2139799297,
-0.0631331727,
-0.1090404764,
0.1156977639,
-0.2318341434,
0.2371386737,
-0.1404140741,
-0.0313961543,
0.237890929,
0.1972275227,
0.0231546611,
0.1833640933,
-0.0200087037,
0.1590582579,
0.2242521644,
0.2844461501,
0.2408591956,
-0.0752442032,
0.0127867777,
0.1807837337,
0.0062319119,
-0.1993153989,
-0.155943349,
-0.2016489059,
-0.1380642802,
-0.0938203707,
0.1176366806,
-0.34263888,
-0.5313284397,
-0.0701546893,
-0.0944775417,
0.0107488008,
0.2356745452,
0.2389830649,
0.0993807688,
0.0076574534,
0.0823180601,
0.366546452,
-0.318561703,
-0.0045815161,
-0.2031152248,
0.2044392824,
-0.3886570334,
0.2901447117,
0.1603100747,
-0.0814565271,
0.3730146885,
-0.1143650264,
0.3260143101,
-0.367095679,
0.0424610972,
-0.0647063479,
-0.0382351764,
0.0822850615,
0.2362202555,
0.1614244431,
0.1086065248,
-0.0067187324,
-0.1187784076,
0.1436628252,
-0.4055757225,
-0.1271427721,
-0.0795445293,
0.0333359167,
-0.4040100574,
0.018243501,
-0.6510796547,
-0.168332994,
-0.270290494,
0.033224564,
-0.0252170432,
0.0418412983,
-0.1289655417,
-0.0762085319,
0.2826336324,
0.4870433509,
-0.1808570921,
-0.0352132954,
-0.2090552747,
-0.1099212915,
0.0813189372,
0.1574322432,
-0.2371749431,
0.0877059922,
-0.4471828938,
0.3432356119,
0.2603811026,
-0.6826910973,
-0.2903498411,
0.3264545798,
-0.294093132,
0.2417881638,
0.0807780698,
0.0621067993,
-0.2141916901,
-0.0856751427,
0.1738438904,
0.1770912111,
0.1379901469,
-0.0998019129,
-0.2131122053,
-0.1681566387,
-0.1904785931,
0.3321938813,
-0.0132527621,
-0.0898940712,
0.1114542633,
-0.0186506975,
0.1093090326,
-0.1374857128,
-0.1267778873,
0.5887781382,
0.074264206,
-0.0401528291,
-0.1889095306,
0.0607480928,
-0.691290915,
0.3157784343,
-0.2630388439,
-0.2366461903,
-0.0897766799,
0.1072432771,
-0.3324466348,
-0.0907504633,
-0.3421750665,
-0.1773632318,
-0.0320939161,
0.1423978359,
-0.0039516641,
-0.1507631838,
-0.2373914421,
0.3739415407,
0.0338049196,
0.1004236042,
-0.5817270279,
0.2664696574,
0.1891719699,
-0.0366893224,
-0.0080808634,
0.0295069329,
0.2449403405,
-0.3018718064,
0.0110718003,
0.515093565,
0.0157893561,
0.3034423292,
0.3414363563,
0.0678831115,
0.2183351666,
-0.4746906161,
0.1706379801,
0.1261684,
-0.0502251796,
-0.000838799,
-0.3532589972,
0.4718579352,
-0.1958650202,
-0.0360134207,
-0.0729342848,
-0.1564883441,
0.1472136974,
-0.1102163121,
-0.1181399897,
-0.1023720056,
0.3790089488,
0.1971786767,
0.2383923978,
-0.1636101753,
-0.1151506901,
-0.1355716884,
-0.0787748322,
0.0191709083,
0.001240641,
0.0319230519,
-0.2628385425,
0.1123144776,
-0.0349361375,
0.4033970237,
0.4151168168,
0.1524641365,
0.0233506225,
-0.027328793,
-0.0414360575,
-0.076489605,
0.031866461,
0.0110487714,
0.1094328016,
0.1649199426,
-0.3268106282,
-0.0543200448,
-0.3668629229,
-0.1084011793,
0.1083224118,
0.0949981213,
-0.3544783592,
0.0258564353,
-0.1741150469,
-0.3895708621,
-0.1025008857,
0.1597322375,
-0.2119823098,
-0.2974931598,
-0.1224299744,
0.5138396621,
0.243961513,
-0.0332371034,
-0.3228705525,
0.0551575162,
-0.1608923227,
-0.5349488258,
-0.2296062261,
0.2254982442,
-0.0298480857,
-0.0379259959,
0.3940606117,
0.1775507182,
0.0634689778,
-0.3751936853,
0.4378795624,
-0.5723702312,
-0.1013893783,
0.1536197364,
-0.1776453853,
0.470073998,
-0.1234334037,
0.1739170551,
-0.4125460386,
0.0737453178,
0.26227054,
-0.1435981542,
-0.0725759491,
-0.010824563,
0.058266677,
-0.1717713028,
0.1029992476,
-0.1550430059,
-0.0834874958,
-0.228558287,
-0.0605193712,
0.0269687735,
0.0039470294,
0.1430414617,
0.0121733211,
0.0526412912,
0.0021119902,
-0.2169024795,
-0.2150437087,
-0.9191763401,
0.4821292162,
-0.1535040289,
-0.2848582268,
0.3715454042,
0.1730706245,
0.246355623,
0.2914633751,
-0.4455311596,
-0.1748441458,
0.1003423631,
0.1766919792,
0.0796542764,
0.0285436492,
0.2198374867,
-0.2039553076,
0.0781378523,
-0.1340863854,
-0.3067452908,
-0.0713056847,
0.1857061088,
0.6754623055,
-0.0910097286,
0.0155380601,
0.0305088796,
0.48123914,
0.0822566003,
0.2168376446,
0.4140935242,
-0.105378516,
0.3446896374,
-0.0847819224,
-0.1683692634,
-0.2016595602,
-0.1253788769,
0.0345999561,
0.038845513,
0.3197813928,
0.108999595,
-0.2826606035,
0.2524105012,
-0.3590716422,
-0.2499759346,
0.0791106001,
0.1507035196,
0.1439125389,
-0.0271687414,
0.2944027483,
-0.1495239735,
-0.1423309296,
0.0472168885,
0.346493423,
0.4332348704,
0.2016249746,
-0.3357109725,
0.2821693122,
-0.2268445939,
0.4784918427,
0.0736238509,
0.1718678325,
-0.0929100811,
0.0414225385,
0.1955890357,
-0.0877943188,
0.3791088164,
-0.0812443569,
0.1548494399,
0.0090513602,
-0.373888284,
-0.3268097043,
0.0235854425,
0.0402893461,
0.1563168317,
-0.0153822564,
0.5480800271,
-0.2565804422,
-0.3150651455,
-0.2097482383,
0.1390485913,
-0.0742262453,
-0.134029597,
-0.2735158503,
-0.5143995285,
-0.071838364,
-0.2955914736,
0.1968689412,
0.2673868537,
0.3172520995,
0.2283359766,
-0.1042354479,
-0.0428408682,
0.3793027103,
0.0042144405,
0.6529353261,
-0.1743392646,
0.0354926251,
0.4252308309,
-0.1178238541,
0.2531487644,
0.6561619043,
0.1108207405,
-0.129716143,
0.2663336694,
-0.0517167822,
-0.1295133531,
0.3273470998,
0.0207966901,
-0.3362398148,
-0.0526033528,
-0.029921487,
-0.1372975111,
0.0104176728,
0.3201183677,
-0.0367612243,
-0.1670836806,
-0.0699458569,
0.5326875448,
0.2755138278,
0.1686855704,
0.3096195757,
0.0979350805,
-0.1516372412,
-0.2330197692,
0.1875226796,
1.036370635,
-0.1817587018,
0.1348759532,
0.2365764678,
0.1435465813,
-0.0295469631,
-0.2570064366,
0.3308093548,
-0.2593761683,
-0.3965884447,
-0.2539667487,
-0.14133735,
0.2486443073,
0.092112869,
0.318685174,
0.2940899134,
0.1441645473,
0.0109185558,
0.0423501059,
-0.0192195997,
-0.2817931473,
-0.3109999597,
-0.5007691979,
0.0626074821,
-0.0410944596,
0.5804381371,
-0.1612380892,
-0.1279451251,
-0.1890366524,
-0.0302868169,
-0.0370581634,
0.3009274602,
-0.2347045988,
0.1349930912,
-0.0442410558,
-0.4934230149,
-0.1455711126,
0.4456168115,
0.0857498869,
-0.2637138367,
-0.2606283724,
0.3505086005,
-0.0731192082,
-0.1928685904,
0.017975742,
-0.1091079041,
-0.1411272138,
-0.1512779295,
0.1349851042,
-0.0841430128,
-0.1423195601,
-0.3568322062,
-0.27012375,
-0.0669966862,
-0.2799679339,
-0.0454850271,
-0.2646588087,
0.0523821414,
0.0430447049,
-0.0202294718,
0.0439685248,
0.1505743414,
-0.1182799712,
0.0264786072,
0.1194933876,
-0.4309365153,
-0.0279017128,
0.5984719992,
-0.3182872534,
-0.2164821625,
0.2697503269,
0.1841866076,
0.0473578423,
-0.1390714198,
0.3956480324,
0.3742913306,
-0.5853355527,
0.0172141846,
-0.1310363412,
0.2062303126,
0.0936492383,
0.2869621515,
0.4050014913,
-0.4055060148,
0.2294515669,
-0.4906131625,
-0.022133043,
0.3766584396,
-0.0306951553,
0.2828480005,
-0.0257448629,
-0.2261559814,
0.1318862736,
-0.3666864634,
-0.2243920118,
0.3964022398,
-0.0309918914,
-0.0513415188,
0.2765412033,
0.1092200279,
0.5288568139,
0.0609974638,
0.0577791631,
0.2188752443,
-0.2673531175,
-0.042208977,
0.0702692717,
0.1751425117,
0.0311536584,
-0.1865858585,
0.0188072864,
-0.1455455422,
-0.0865159556,
-0.0247350279,
0.1848337501,
0.3872472644,
0.0307886209,
-0.147480011,
-0.1098291203,
0.1663480401,
-0.470926702,
0.1061930284,
0.1898029149,
0.4924297929,
0.0212686546,
-0.0236133616,
-0.0951870084,
-0.0887793005,
-0.3238078952,
-0.084396027,
0.2894158661,
0.2882058918,
0.3363096416,
-0.3605223298,
0.3339119554,
0.1849842221,
0.2267096341,
0.3662360311,
-0.2820649147,
0.110819228,
0.0315922163,
0.1250389069,
-0.026920598,
-0.1127348542,
0.1083494276,
-0.0816021189,
-0.1020233035,
0.3889036775,
0.1993317455,
0.2852788568,
0.206814602,
-0.0222181622,
0.7002962232,
-0.0479071103,
0.2296519578,
0.4015398026,
-0.0840390995,
0.1403926313,
0.2540920675,
0.3396312594,
0.1165549085,
0.407264173,
-0.2131436914,
0.5099996924,
-0.0704317093,
0.4083868563,
-0.3891382217,
-0.4278743863,
-0.2259722203,
0.279941231,
0.1763959229,
0.1806115508,
-0.2744501829,
0.2971870005,
-0.4949180782,
-0.0147486655,
-0.4205286503,
0.1546147317,
-0.066889219,
0.0183837619,
-0.2635990679,
-0.3721786141,
-0.1487562656,
0.048796691,
-0.1414866596,
-0.1530176401,
-0.0398864336,
0.0794362947,
-0.0456203632,
0.0826281458,
-0.1365237236,
0.217889294,
-0.049419269,
-0.1700529456,
0.4847479165,
0.0723633617,
-0.0143224746,
0.2167025656,
0.2018680274,
0.1844723374,
0.0698764175,
-0.1004492715,
-0.1165881529,
0.2017821968,
-0.046735514,
0.1467269808,
0.0984195247,
-0.0198984388,
0.0405204259,
0.2966164052,
0.1619621366,
-0.0573880896,
0.1973587424,
-0.0739959106,
0.3093758225,
-0.0460790955,
0.0277055129,
-0.4094929695,
0.1580154896,
-0.1510886252,
-0.2176135927,
-0.105106391,
-0.1655070633,
0.0924881399,
-0.1326873153,
0.0062669548,
0.245657593,
0.0179533679,
0.0025497936,
0.2727975845,
0.491894722,
-0.2644322515,
-0.5227891207,
-0.2552604675,
-0.7857860923,
0.1571287811,
-0.0327614062,
-0.2347465754,
0.0456144735,
0.1628716886,
-0.0656048954,
0.2150095403,
0.3023923039,
-0.0805269629,
0.3330070674,
0.3020876944,
-0.2846807241,
-0.0318464525,
0.2175108492,
0.0961925015,
-0.0552846305,
-0.2977227569,
-0.0097985798,
0.1965633482,
-0.072098285,
-0.0004322265,
0.0005191941,
-0.3038449287,
-0.2595978975,
0.3466370404,
-0.1283625662,
0.2355114371,
0.0069284192,
-0.3553111851,
-0.2619484365,
-0.2585628033,
0.1081848815,
0.0817583129,
0.0971928984,
0.4771676958,
-0.0876284391,
0.1216641143,
-0.5112357736,
0.2954389155,
0.1425304711,
-0.001640836,
-0.3504884541,
0.1002616435,
-0.2921203971,
0.0513204262,
0.2885355055,
0.3758067191,
0.0382823385,
0.3379184902,
-0.1413764507,
-0.1874237508,
0.4719302356,
0.0057809381,
-0.1403843462,
0.2902037799,
0.0600749068,
0.234275654,
-0.1433010548,
-0.3426623642,
0.2560198307,
0.0822850317,
0.024347743,
-0.0055717239,
-0.015755171,
-0.2069307119,
-0.1993101239,
0.1498199105,
0.2356416285,
0.1080833897,
-0.1697506756,
0.1547189951,
0.04828633
] |
https://github.com/huggingface/datasets/issues/412 | Unable to load XTREME dataset from disk | I was able to repro. Opening a PR to fix that.
Thanks for reporting this issue ! | Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
``` | 17 | Unable to load XTREME dataset from disk
Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
I was able to repro. Opening a PR to fix that.
Thanks for reporting this issue ! | [
-0.2940952182,
-0.3835184574,
-0.0021736298,
0.6607134342,
0.1483452022,
0.1238795891,
-0.1730882674,
0.1085545942,
0.1807118058,
0.0440969318,
-0.1427523047,
-0.0003446619,
0.1383353621,
-0.0291911401,
0.1631223261,
-0.1389355659,
-0.0050913496,
-0.1092640981,
-0.045573771,
0.0021924437,
-0.3334751427,
0.3826160729,
-0.1232327893,
-0.0158362761,
-0.3343700469,
0.0152690709,
0.0525249131,
0.610396862,
-0.2204438895,
-0.0490747951,
0.4548051953,
-0.1380423307,
0.4193027914,
0.7166675925,
-0.0001206809,
0.0362721495,
0.1372579783,
-0.1804517657,
-0.1188216433,
-0.5258253813,
-0.3079935312,
-0.1304578036,
-0.0578953326,
-0.1272685528,
-0.0723706111,
0.0013967459,
0.13070108,
-0.5407080054,
0.4081202745,
0.1079235449,
0.105806604,
0.2785436511,
0.0526134111,
-0.0774004459,
0.2205449492,
0.1630187333,
-0.3261562288,
0.0098360796,
0.3490778506,
0.1568440199,
0.0890087634,
0.3036376834,
0.002881018,
0.0416490845,
0.4682086408,
-0.0255382787,
0.1632108539,
-0.2858411074,
0.0740047917,
0.3027316928,
0.5413937569,
-0.176610738,
-0.4551270008,
-0.1600850821,
-0.0877793208,
-0.2420939356,
0.3571465313,
0.2817615271,
-0.1429190338,
-0.0044438732,
-0.2909397185,
-0.1955346614,
-0.165093258,
0.1610515714,
-0.0667802244,
0.162371099,
-0.2162121385,
0.0020341089,
0.3741414249,
0.0450922959,
0.2139799297,
-0.0631331727,
-0.1090404764,
0.1156977639,
-0.2318341434,
0.2371386737,
-0.1404140741,
-0.0313961543,
0.237890929,
0.1972275227,
0.0231546611,
0.1833640933,
-0.0200087037,
0.1590582579,
0.2242521644,
0.2844461501,
0.2408591956,
-0.0752442032,
0.0127867777,
0.1807837337,
0.0062319119,
-0.1993153989,
-0.155943349,
-0.2016489059,
-0.1380642802,
-0.0938203707,
0.1176366806,
-0.34263888,
-0.5313284397,
-0.0701546893,
-0.0944775417,
0.0107488008,
0.2356745452,
0.2389830649,
0.0993807688,
0.0076574534,
0.0823180601,
0.366546452,
-0.318561703,
-0.0045815161,
-0.2031152248,
0.2044392824,
-0.3886570334,
0.2901447117,
0.1603100747,
-0.0814565271,
0.3730146885,
-0.1143650264,
0.3260143101,
-0.367095679,
0.0424610972,
-0.0647063479,
-0.0382351764,
0.0822850615,
0.2362202555,
0.1614244431,
0.1086065248,
-0.0067187324,
-0.1187784076,
0.1436628252,
-0.4055757225,
-0.1271427721,
-0.0795445293,
0.0333359167,
-0.4040100574,
0.018243501,
-0.6510796547,
-0.168332994,
-0.270290494,
0.033224564,
-0.0252170432,
0.0418412983,
-0.1289655417,
-0.0762085319,
0.2826336324,
0.4870433509,
-0.1808570921,
-0.0352132954,
-0.2090552747,
-0.1099212915,
0.0813189372,
0.1574322432,
-0.2371749431,
0.0877059922,
-0.4471828938,
0.3432356119,
0.2603811026,
-0.6826910973,
-0.2903498411,
0.3264545798,
-0.294093132,
0.2417881638,
0.0807780698,
0.0621067993,
-0.2141916901,
-0.0856751427,
0.1738438904,
0.1770912111,
0.1379901469,
-0.0998019129,
-0.2131122053,
-0.1681566387,
-0.1904785931,
0.3321938813,
-0.0132527621,
-0.0898940712,
0.1114542633,
-0.0186506975,
0.1093090326,
-0.1374857128,
-0.1267778873,
0.5887781382,
0.074264206,
-0.0401528291,
-0.1889095306,
0.0607480928,
-0.691290915,
0.3157784343,
-0.2630388439,
-0.2366461903,
-0.0897766799,
0.1072432771,
-0.3324466348,
-0.0907504633,
-0.3421750665,
-0.1773632318,
-0.0320939161,
0.1423978359,
-0.0039516641,
-0.1507631838,
-0.2373914421,
0.3739415407,
0.0338049196,
0.1004236042,
-0.5817270279,
0.2664696574,
0.1891719699,
-0.0366893224,
-0.0080808634,
0.0295069329,
0.2449403405,
-0.3018718064,
0.0110718003,
0.515093565,
0.0157893561,
0.3034423292,
0.3414363563,
0.0678831115,
0.2183351666,
-0.4746906161,
0.1706379801,
0.1261684,
-0.0502251796,
-0.000838799,
-0.3532589972,
0.4718579352,
-0.1958650202,
-0.0360134207,
-0.0729342848,
-0.1564883441,
0.1472136974,
-0.1102163121,
-0.1181399897,
-0.1023720056,
0.3790089488,
0.1971786767,
0.2383923978,
-0.1636101753,
-0.1151506901,
-0.1355716884,
-0.0787748322,
0.0191709083,
0.001240641,
0.0319230519,
-0.2628385425,
0.1123144776,
-0.0349361375,
0.4033970237,
0.4151168168,
0.1524641365,
0.0233506225,
-0.027328793,
-0.0414360575,
-0.076489605,
0.031866461,
0.0110487714,
0.1094328016,
0.1649199426,
-0.3268106282,
-0.0543200448,
-0.3668629229,
-0.1084011793,
0.1083224118,
0.0949981213,
-0.3544783592,
0.0258564353,
-0.1741150469,
-0.3895708621,
-0.1025008857,
0.1597322375,
-0.2119823098,
-0.2974931598,
-0.1224299744,
0.5138396621,
0.243961513,
-0.0332371034,
-0.3228705525,
0.0551575162,
-0.1608923227,
-0.5349488258,
-0.2296062261,
0.2254982442,
-0.0298480857,
-0.0379259959,
0.3940606117,
0.1775507182,
0.0634689778,
-0.3751936853,
0.4378795624,
-0.5723702312,
-0.1013893783,
0.1536197364,
-0.1776453853,
0.470073998,
-0.1234334037,
0.1739170551,
-0.4125460386,
0.0737453178,
0.26227054,
-0.1435981542,
-0.0725759491,
-0.010824563,
0.058266677,
-0.1717713028,
0.1029992476,
-0.1550430059,
-0.0834874958,
-0.228558287,
-0.0605193712,
0.0269687735,
0.0039470294,
0.1430414617,
0.0121733211,
0.0526412912,
0.0021119902,
-0.2169024795,
-0.2150437087,
-0.9191763401,
0.4821292162,
-0.1535040289,
-0.2848582268,
0.3715454042,
0.1730706245,
0.246355623,
0.2914633751,
-0.4455311596,
-0.1748441458,
0.1003423631,
0.1766919792,
0.0796542764,
0.0285436492,
0.2198374867,
-0.2039553076,
0.0781378523,
-0.1340863854,
-0.3067452908,
-0.0713056847,
0.1857061088,
0.6754623055,
-0.0910097286,
0.0155380601,
0.0305088796,
0.48123914,
0.0822566003,
0.2168376446,
0.4140935242,
-0.105378516,
0.3446896374,
-0.0847819224,
-0.1683692634,
-0.2016595602,
-0.1253788769,
0.0345999561,
0.038845513,
0.3197813928,
0.108999595,
-0.2826606035,
0.2524105012,
-0.3590716422,
-0.2499759346,
0.0791106001,
0.1507035196,
0.1439125389,
-0.0271687414,
0.2944027483,
-0.1495239735,
-0.1423309296,
0.0472168885,
0.346493423,
0.4332348704,
0.2016249746,
-0.3357109725,
0.2821693122,
-0.2268445939,
0.4784918427,
0.0736238509,
0.1718678325,
-0.0929100811,
0.0414225385,
0.1955890357,
-0.0877943188,
0.3791088164,
-0.0812443569,
0.1548494399,
0.0090513602,
-0.373888284,
-0.3268097043,
0.0235854425,
0.0402893461,
0.1563168317,
-0.0153822564,
0.5480800271,
-0.2565804422,
-0.3150651455,
-0.2097482383,
0.1390485913,
-0.0742262453,
-0.134029597,
-0.2735158503,
-0.5143995285,
-0.071838364,
-0.2955914736,
0.1968689412,
0.2673868537,
0.3172520995,
0.2283359766,
-0.1042354479,
-0.0428408682,
0.3793027103,
0.0042144405,
0.6529353261,
-0.1743392646,
0.0354926251,
0.4252308309,
-0.1178238541,
0.2531487644,
0.6561619043,
0.1108207405,
-0.129716143,
0.2663336694,
-0.0517167822,
-0.1295133531,
0.3273470998,
0.0207966901,
-0.3362398148,
-0.0526033528,
-0.029921487,
-0.1372975111,
0.0104176728,
0.3201183677,
-0.0367612243,
-0.1670836806,
-0.0699458569,
0.5326875448,
0.2755138278,
0.1686855704,
0.3096195757,
0.0979350805,
-0.1516372412,
-0.2330197692,
0.1875226796,
1.036370635,
-0.1817587018,
0.1348759532,
0.2365764678,
0.1435465813,
-0.0295469631,
-0.2570064366,
0.3308093548,
-0.2593761683,
-0.3965884447,
-0.2539667487,
-0.14133735,
0.2486443073,
0.092112869,
0.318685174,
0.2940899134,
0.1441645473,
0.0109185558,
0.0423501059,
-0.0192195997,
-0.2817931473,
-0.3109999597,
-0.5007691979,
0.0626074821,
-0.0410944596,
0.5804381371,
-0.1612380892,
-0.1279451251,
-0.1890366524,
-0.0302868169,
-0.0370581634,
0.3009274602,
-0.2347045988,
0.1349930912,
-0.0442410558,
-0.4934230149,
-0.1455711126,
0.4456168115,
0.0857498869,
-0.2637138367,
-0.2606283724,
0.3505086005,
-0.0731192082,
-0.1928685904,
0.017975742,
-0.1091079041,
-0.1411272138,
-0.1512779295,
0.1349851042,
-0.0841430128,
-0.1423195601,
-0.3568322062,
-0.27012375,
-0.0669966862,
-0.2799679339,
-0.0454850271,
-0.2646588087,
0.0523821414,
0.0430447049,
-0.0202294718,
0.0439685248,
0.1505743414,
-0.1182799712,
0.0264786072,
0.1194933876,
-0.4309365153,
-0.0279017128,
0.5984719992,
-0.3182872534,
-0.2164821625,
0.2697503269,
0.1841866076,
0.0473578423,
-0.1390714198,
0.3956480324,
0.3742913306,
-0.5853355527,
0.0172141846,
-0.1310363412,
0.2062303126,
0.0936492383,
0.2869621515,
0.4050014913,
-0.4055060148,
0.2294515669,
-0.4906131625,
-0.022133043,
0.3766584396,
-0.0306951553,
0.2828480005,
-0.0257448629,
-0.2261559814,
0.1318862736,
-0.3666864634,
-0.2243920118,
0.3964022398,
-0.0309918914,
-0.0513415188,
0.2765412033,
0.1092200279,
0.5288568139,
0.0609974638,
0.0577791631,
0.2188752443,
-0.2673531175,
-0.042208977,
0.0702692717,
0.1751425117,
0.0311536584,
-0.1865858585,
0.0188072864,
-0.1455455422,
-0.0865159556,
-0.0247350279,
0.1848337501,
0.3872472644,
0.0307886209,
-0.147480011,
-0.1098291203,
0.1663480401,
-0.470926702,
0.1061930284,
0.1898029149,
0.4924297929,
0.0212686546,
-0.0236133616,
-0.0951870084,
-0.0887793005,
-0.3238078952,
-0.084396027,
0.2894158661,
0.2882058918,
0.3363096416,
-0.3605223298,
0.3339119554,
0.1849842221,
0.2267096341,
0.3662360311,
-0.2820649147,
0.110819228,
0.0315922163,
0.1250389069,
-0.026920598,
-0.1127348542,
0.1083494276,
-0.0816021189,
-0.1020233035,
0.3889036775,
0.1993317455,
0.2852788568,
0.206814602,
-0.0222181622,
0.7002962232,
-0.0479071103,
0.2296519578,
0.4015398026,
-0.0840390995,
0.1403926313,
0.2540920675,
0.3396312594,
0.1165549085,
0.407264173,
-0.2131436914,
0.5099996924,
-0.0704317093,
0.4083868563,
-0.3891382217,
-0.4278743863,
-0.2259722203,
0.279941231,
0.1763959229,
0.1806115508,
-0.2744501829,
0.2971870005,
-0.4949180782,
-0.0147486655,
-0.4205286503,
0.1546147317,
-0.066889219,
0.0183837619,
-0.2635990679,
-0.3721786141,
-0.1487562656,
0.048796691,
-0.1414866596,
-0.1530176401,
-0.0398864336,
0.0794362947,
-0.0456203632,
0.0826281458,
-0.1365237236,
0.217889294,
-0.049419269,
-0.1700529456,
0.4847479165,
0.0723633617,
-0.0143224746,
0.2167025656,
0.2018680274,
0.1844723374,
0.0698764175,
-0.1004492715,
-0.1165881529,
0.2017821968,
-0.046735514,
0.1467269808,
0.0984195247,
-0.0198984388,
0.0405204259,
0.2966164052,
0.1619621366,
-0.0573880896,
0.1973587424,
-0.0739959106,
0.3093758225,
-0.0460790955,
0.0277055129,
-0.4094929695,
0.1580154896,
-0.1510886252,
-0.2176135927,
-0.105106391,
-0.1655070633,
0.0924881399,
-0.1326873153,
0.0062669548,
0.245657593,
0.0179533679,
0.0025497936,
0.2727975845,
0.491894722,
-0.2644322515,
-0.5227891207,
-0.2552604675,
-0.7857860923,
0.1571287811,
-0.0327614062,
-0.2347465754,
0.0456144735,
0.1628716886,
-0.0656048954,
0.2150095403,
0.3023923039,
-0.0805269629,
0.3330070674,
0.3020876944,
-0.2846807241,
-0.0318464525,
0.2175108492,
0.0961925015,
-0.0552846305,
-0.2977227569,
-0.0097985798,
0.1965633482,
-0.072098285,
-0.0004322265,
0.0005191941,
-0.3038449287,
-0.2595978975,
0.3466370404,
-0.1283625662,
0.2355114371,
0.0069284192,
-0.3553111851,
-0.2619484365,
-0.2585628033,
0.1081848815,
0.0817583129,
0.0971928984,
0.4771676958,
-0.0876284391,
0.1216641143,
-0.5112357736,
0.2954389155,
0.1425304711,
-0.001640836,
-0.3504884541,
0.1002616435,
-0.2921203971,
0.0513204262,
0.2885355055,
0.3758067191,
0.0382823385,
0.3379184902,
-0.1413764507,
-0.1874237508,
0.4719302356,
0.0057809381,
-0.1403843462,
0.2902037799,
0.0600749068,
0.234275654,
-0.1433010548,
-0.3426623642,
0.2560198307,
0.0822850317,
0.024347743,
-0.0055717239,
-0.015755171,
-0.2069307119,
-0.1993101239,
0.1498199105,
0.2356416285,
0.1080833897,
-0.1697506756,
0.1547189951,
0.04828633
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | Fixed. Could you try again @mitchellgordon95 ?
It was due a file not being updated on S3.
We need to make sure all the datasets scripts get updated properly @julien-c | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
``` | 30 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
```
Fixed. Could you try again @mitchellgordon95 ?
It was due a file not being updated on S3.
We need to make sure all the datasets scripts get updated properly @julien-c | [
0.0666168258,
0.1266757697,
-0.0205122642,
-0.0542329811,
0.1996192485,
0.1526874155,
0.1799743474,
0.3656728566,
-0.022208862,
-0.0814261287,
0.1489360183,
0.2753816545,
-0.0917267129,
-0.168423295,
0.2434722185,
-0.3058639467,
0.1455035061,
0.1239024401,
-0.3501990139,
-0.1286827922,
-0.0025927091,
0.4125899971,
-0.2114286125,
-0.1782555133,
-0.5298824906,
0.0631539896,
-0.1315194219,
0.1428048015,
-0.0437919125,
-0.2499872297,
0.2779206932,
0.0593031012,
-0.0827243626,
0.1222383156,
-0.000114308,
0.0776106864,
0.6222486496,
-0.2239052951,
-0.5686739087,
0.0119778989,
0.1299999803,
-0.3336534202,
0.3843443394,
-0.2550981641,
-0.2759363949,
-0.1181294695,
0.114119418,
-0.0585302971,
0.3938060105,
-0.0109364502,
0.2136251926,
0.2360558361,
0.2972978652,
-0.1291413903,
0.6020241976,
0.0674149692,
-0.166256398,
0.0793359876,
-0.1638743728,
-0.0564771108,
-0.271040827,
0.4797947109,
0.1387169808,
-0.1370010525,
0.5526376963,
-0.2816210687,
0.0226212144,
-0.2574211061,
0.0174537916,
0.1826508641,
0.4940167964,
-0.0229840018,
-0.10636805,
-0.3746719062,
0.0446043648,
0.1787302196,
0.2480828017,
0.017208036,
-0.1532898098,
-0.0672088563,
0.0512101948,
-0.2295792252,
-0.0332926586,
0.288751781,
-0.0673935413,
0.420291841,
-0.028906431,
0.0214704629,
0.1668535024,
0.0496227033,
-0.31337291,
0.0365185663,
0.0982152596,
0.235016197,
-0.216512844,
0.0636978,
0.2868847251,
0.2705270648,
0.0620145127,
0.1695945561,
-0.279399991,
0.1912726015,
0.0204297397,
-0.0470915064,
0.2198940665,
0.2408220917,
-0.0418656506,
-0.3533207774,
0.2516729832,
0.3364217579,
-0.0628022254,
0.1384648681,
0.1992914528,
-0.1387364715,
-0.2713562548,
0.1334019452,
0.0091172056,
-0.1717025638,
0.1072277054,
0.0534084551,
-0.2777939439,
-0.1483330429,
-0.2378236949,
0.31988886,
-0.0257742852,
0.4086241722,
0.2018826306,
0.1185924038,
-0.2835620344,
-0.2737650573,
-0.1957248449,
0.0212341417,
-0.4779030085,
0.0258823559,
0.3871369362,
-0.2097048312,
0.5165666342,
0.0758559331,
-0.0362860113,
0.0592925996,
-0.0301979128,
0.2644247115,
-0.0725837052,
0.1810247749,
0.1212262958,
0.292780906,
0.2036838382,
0.0199424624,
-0.0530856363,
-0.3294442296,
0.0704848245,
-0.2763871849,
-0.2597137094,
0.1677169353,
-0.3119882941,
0.1547896117,
0.04750745,
0.1872280985,
-0.0253878906,
-0.1822033226,
-0.096726656,
-0.1229706407,
-0.0582914948,
-0.1482738554,
0.5051083565,
0.4033137858,
0.0298877265,
-0.3304647207,
-0.0621767715,
0.1041164771,
-0.1011981815,
0.0117210457,
-0.1564820856,
0.5247725248,
-0.2857877314,
-0.1501882821,
0.2243131697,
0.0519687086,
-0.2112270296,
0.1486304402,
-0.01265785,
0.270898968,
0.0975892469,
-0.0528357029,
-0.0672803447,
0.0518001355,
0.0919753909,
0.2184603661,
0.1131942719,
0.0529396236,
-0.3270510435,
-0.087788403,
-0.0076872231,
0.0795482993,
0.3505392671,
-0.050554961,
0.0635948405,
0.5883687735,
0.2980857491,
-0.1387827098,
0.2244143635,
0.45005247,
-0.2889427543,
0.1368469,
0.2453725785,
-0.0598619841,
-0.4651871622,
0.1208008081,
-0.1401828527,
0.4367899895,
-0.1831933856,
-0.0022148835,
-0.3467134535,
-0.1367146522,
-0.1968163252,
-0.5165297389,
0.2065131217,
0.2034475952,
-0.0185764357,
0.3046472967,
0.0254302435,
0.1162026152,
-0.0404419117,
0.0568884872,
-0.7796522975,
0.2145269513,
-0.3115578592,
-0.1411180943,
-0.0192292705,
0.3081660271,
0.1150459722,
-0.1935399622,
-0.1284949929,
0.2234227806,
-0.0789243802,
0.1341898441,
0.0148868356,
-0.0550870113,
0.2404268682,
-0.3211013079,
0.0984829441,
0.3122579157,
-0.0463056415,
-0.1272408664,
-0.3034786582,
0.2799142301,
0.0182235558,
0.3226443529,
0.0334035233,
0.091932267,
0.1548368037,
0.0725831687,
-0.2331330776,
-0.2026533633,
0.3785169721,
0.2176059335,
0.1366422027,
-0.0235247146,
0.1149624437,
0.0045692208,
0.171902284,
0.0660794005,
0.01125996,
-0.0809154138,
-0.451001972,
-0.2482420206,
0.350930661,
-0.0857895538,
0.0816845745,
0.2645477057,
0.0524948984,
-0.0169570949,
-0.1228682846,
-0.209578231,
0.197487697,
0.1140876785,
0.3243004978,
0.0876459852,
0.1405430287,
0.1975444257,
-0.3815243542,
0.1906592399,
-0.1774683893,
0.087133728,
-0.2838542461,
-0.0979880095,
-0.3540600836,
-0.4514618814,
-0.1052415818,
0.2488118261,
-0.3974129558,
-0.5874938369,
-0.0569578856,
0.1890995353,
-0.1633749753,
0.3057293892,
-0.0293643381,
-0.1303645223,
0.074192889,
0.0197917651,
-0.3342634737,
-0.3922386765,
-0.2000676543,
0.0861517861,
0.1043603718,
-0.0021497689,
0.2901447117,
-0.002974214,
-0.027192045,
-0.4731691778,
-0.5758977532,
0.3161933124,
-0.2838525772,
0.1902674735,
0.1779287905,
0.0881578699,
-0.2256867588,
-0.0587335154,
0.4069476724,
-0.1701156944,
-0.1504671574,
-0.0161599442,
-0.1277896017,
0.1010058597,
-0.1923411936,
-0.2217374891,
0.0953755751,
-0.3692915142,
0.0153443404,
0.0921728984,
-0.1812784076,
0.4691085517,
-0.1002497524,
-0.0062876707,
0.100527361,
0.1722678542,
-0.2448797971,
0.083574675,
0.3416596055,
-0.3003979027,
-0.4568086565,
0.0295676198,
-0.1735530198,
0.0571713559,
0.3189316094,
-0.4997885525,
-0.0496771224,
0.0941227227,
0.0024681515,
-0.1354264021,
0.0942455381,
0.5044305325,
0.0114220781,
-0.0168616753,
-0.2326326668,
-0.1519110799,
-0.1495186985,
-0.3148490787,
0.426984936,
-0.1923687905,
0.3235902786,
-0.0036708456,
1.0987776518,
-0.0326621495,
0.0656039342,
0.4224381149,
0.0933039039,
0.452100724,
-0.2759512067,
-0.296728462,
0.2323564887,
-0.1486650407,
0.3013338149,
0.3919002712,
-0.0147325052,
-0.2050668001,
-0.365370959,
0.0091434158,
-0.2090857029,
-0.3228647113,
0.0901107937,
-0.3193499446,
0.291395992,
0.1660910994,
0.2335971743,
-0.0019369402,
-0.1577164531,
0.2441103607,
0.1709191352,
0.2070370167,
0.0695517957,
0.1379285008,
-0.056092035,
-0.4986759126,
0.0409602933,
0.0189634636,
-0.0030057959,
0.0389502309,
-0.1371269375,
0.202036351,
0.0453859977,
0.5689495802,
-0.1977419555,
-0.0263440162,
0.2490572482,
0.034780629,
-0.7107806802,
-0.0275658667,
-0.0550744422,
0.1947838068,
0.2862174511,
0.1784343719,
-0.3835531771,
-0.2234923691,
0.3125833273,
0.0610996485,
-0.0469832718,
-0.0261745919,
-0.2916180789,
0.0066377991,
-0.4207643867,
-0.130903706,
-0.1549674869,
0.1455960125,
0.0774428844,
0.1687314659,
0.0894144475,
0.0287989471,
-0.1335078329,
0.1053508297,
0.2781824172,
0.2502245903,
-0.111485593,
0.1409599781,
0.6523585916,
-0.3377572596,
0.2628808618,
0.1982282251,
0.0455497205,
0.2173915654,
-0.0400634147,
-0.0590367503,
0.3987362981,
0.0289377868,
-0.048762925,
-0.2030526996,
0.0094223088,
0.0940537751,
0.2291372567,
0.3506716192,
-0.2690445781,
-0.136277318,
-0.2736849785,
0.5236554742,
-0.0176690035,
-0.011371023,
0.0692945868,
0.0670142174,
-0.3365370333,
0.3461084366,
0.2415180057,
0.7413404584,
0.0380277075,
0.3953181505,
0.2077925056,
0.3027877808,
0.8601718545,
-0.3698053658,
0.1897516102,
-0.1742744595,
0.2201999128,
0.04168671,
0.0354326069,
-0.1920434386,
-0.1310456097,
-0.0968420357,
0.3844060004,
0.3848446012,
0.4188906252,
0.0760008544,
0.2999128997,
0.0761644542,
-0.3209705949,
-0.1950530708,
0.1271082312,
-0.2076166123,
0.5865811706,
-0.3765699565,
-0.1308689564,
-0.2108010501,
-0.1166528091,
-0.2505492866,
0.1885519922,
-0.2747045457,
0.5069426894,
-0.1782884598,
-0.5959974527,
0.0212481935,
0.1127755269,
0.1474467069,
0.0883107111,
-0.4008173943,
0.3684975803,
-0.1940895021,
-0.2362576872,
-0.1085617393,
0.2097143531,
0.4952665269,
-0.170849815,
-0.0616779551,
-0.0610722266,
-0.2416675985,
-0.2755624354,
-0.2949696183,
-0.0613052361,
0.0028359191,
0.1048691422,
-0.0824530274,
0.1037250385,
-0.014028904,
-0.2572486103,
0.1487521231,
-0.1144914255,
0.0374178849,
-0.1460709721,
0.1024445444,
-0.1043076292,
-0.070397839,
0.499397099,
-0.0020985829,
-0.128984794,
0.5953384638,
0.3426302671,
-0.1198805124,
-0.1146729141,
-0.0902573392,
-0.1393834651,
-0.4722254574,
-0.1296564937,
0.0124801984,
-0.0530011505,
-0.0521328859,
0.2447202802,
0.1844116002,
-0.1626241505,
0.0780862644,
-0.1943453103,
-0.2954601049,
0.2547386885,
-0.3494715691,
-0.0420393497,
0.1390183717,
0.101366587,
0.3333051503,
0.014814835,
-0.2964566648,
-0.215464741,
0.0540282391,
0.2008091211,
0.3083449304,
-0.1186883152,
-0.0500543565,
-0.1276488602,
0.1212445349,
0.021271307,
-0.1894852072,
-0.2302406132,
-0.031567663,
0.1042666882,
0.0467172228,
0.0865675882,
-0.0781771019,
0.1114093289,
-0.0371294804,
-0.2535361648,
0.0528713316,
-0.2281831652,
0.1240537092,
0.1823163182,
0.1191578284,
0.1763536632,
-0.1209523901,
0.0150984181,
0.0482738353,
0.1423760653,
0.053263288,
0.0129568493,
0.2215798646,
-0.0117940595,
-0.1690641046,
0.1042754054,
-0.185499683,
0.2854599655,
0.2926936746,
-0.0773174018,
-0.2990313768,
-0.0270366706,
0.2942743301,
-0.0326082259,
-0.0528618731,
-0.0485747717,
0.0103592891,
0.1906128377,
-0.2196089178,
0.2674605548,
0.5279878974,
0.1143723056,
0.055378288,
-0.0702126697,
0.374345541,
-0.0246606357,
0.3387499154,
0.1726606488,
0.121752575,
-0.1183100417,
0.2426420301,
0.2166144848,
0.3510866463,
0.0566905849,
0.0239127502,
-0.0307097808,
0.2304616421,
0.2397228628,
0.1288084537,
0.2786284983,
-0.0882290229,
0.0975497738,
0.0309133139,
-0.0629838631,
0.1639132649,
0.3340352774,
0.1803872138,
0.1440522969,
-0.1291937679,
0.5687987804,
0.1001942828,
-0.3893401623,
-0.2345819175,
0.240231365,
-0.1169962361,
0.0740318671,
-0.3172837198,
-0.1861779541,
-0.2391942292,
0.1574649662,
-0.1074406356,
-0.1232670322,
-0.0504304022,
0.2156559229,
-0.1900828481,
-0.4732025564,
0.2101698667,
-0.0363385156,
0.3338374794,
-0.0730824769,
0.1706404835,
-0.0616372563,
-0.2775771022,
-0.0798458159,
0.2877349555,
0.2786317468,
0.10541673,
-0.390992105,
-0.1218867972,
0.1556938887,
-0.0640751049,
-0.1527652442,
0.0842842385,
0.2606303394,
-0.1013037041,
0.2616634965,
0.0972531885,
-0.2740937471,
-0.1220371723,
0.0980754122,
-0.0550221317,
-0.1236005276,
0.0130105456,
-0.3181713521,
-0.1982581615,
-0.1200945303,
0.0065361694,
-0.4909360707,
0.1610681564,
-0.008207039,
0.1992535889,
-0.0541201122,
-0.2968484461,
0.085665822,
-0.1368456036,
0.5973787308,
0.3424453139,
0.1117993817,
-0.146999836,
-0.5365693569,
-0.5853411555,
0.2090298831,
-0.0629924834,
-0.0486577712,
0.0740430132,
0.1942422241,
0.2390605509,
0.1642807871,
0.0020999482,
-0.1792952418,
0.0889604539,
-0.0662597418,
-0.4647615552,
-0.0645496547,
-0.1904875934,
-0.2589037418,
-0.1246324852,
0.0241007674,
-0.0880487412,
0.1057776585,
0.0488001555,
-0.0199225266,
-0.2640576065,
0.06166289,
-0.0682744682,
0.2982192934,
-0.0519034564,
0.3681994081,
-0.1012711078,
-0.2203566879,
-0.2901727557,
-0.1561025083,
-0.0462986417,
0.3026446104,
-0.1934382021,
0.521027565,
-0.0083601978,
-0.1002060547,
-0.3288209438,
0.6905267239,
0.1733902246,
0.1175567955,
-0.3923233449,
0.0239076335,
-0.3116732836,
0.1622991562,
0.0910176784,
0.3411853909,
-0.2714784741,
0.1741355956,
-0.4668041766,
-0.4499903321,
0.2498715371,
-0.4550740421,
-0.0926978961,
-0.0041838996,
0.1153391823,
-0.004739291,
-0.0571004972,
-0.5571915507,
0.0335966833,
0.1637206674,
0.0543100387,
-0.0907493904,
0.1095090434,
-0.0455885753,
-0.1208940372,
-0.1041853055,
-0.1784143597,
0.1156886145,
-0.1695554703,
-0.0898756012,
-0.2151400894
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again? | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
``` | 26 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
```
I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again? | [
0.0666168258,
0.1266757697,
-0.0205122642,
-0.0542329811,
0.1996192485,
0.1526874155,
0.1799743474,
0.3656728566,
-0.022208862,
-0.0814261287,
0.1489360183,
0.2753816545,
-0.0917267129,
-0.168423295,
0.2434722185,
-0.3058639467,
0.1455035061,
0.1239024401,
-0.3501990139,
-0.1286827922,
-0.0025927091,
0.4125899971,
-0.2114286125,
-0.1782555133,
-0.5298824906,
0.0631539896,
-0.1315194219,
0.1428048015,
-0.0437919125,
-0.2499872297,
0.2779206932,
0.0593031012,
-0.0827243626,
0.1222383156,
-0.000114308,
0.0776106864,
0.6222486496,
-0.2239052951,
-0.5686739087,
0.0119778989,
0.1299999803,
-0.3336534202,
0.3843443394,
-0.2550981641,
-0.2759363949,
-0.1181294695,
0.114119418,
-0.0585302971,
0.3938060105,
-0.0109364502,
0.2136251926,
0.2360558361,
0.2972978652,
-0.1291413903,
0.6020241976,
0.0674149692,
-0.166256398,
0.0793359876,
-0.1638743728,
-0.0564771108,
-0.271040827,
0.4797947109,
0.1387169808,
-0.1370010525,
0.5526376963,
-0.2816210687,
0.0226212144,
-0.2574211061,
0.0174537916,
0.1826508641,
0.4940167964,
-0.0229840018,
-0.10636805,
-0.3746719062,
0.0446043648,
0.1787302196,
0.2480828017,
0.017208036,
-0.1532898098,
-0.0672088563,
0.0512101948,
-0.2295792252,
-0.0332926586,
0.288751781,
-0.0673935413,
0.420291841,
-0.028906431,
0.0214704629,
0.1668535024,
0.0496227033,
-0.31337291,
0.0365185663,
0.0982152596,
0.235016197,
-0.216512844,
0.0636978,
0.2868847251,
0.2705270648,
0.0620145127,
0.1695945561,
-0.279399991,
0.1912726015,
0.0204297397,
-0.0470915064,
0.2198940665,
0.2408220917,
-0.0418656506,
-0.3533207774,
0.2516729832,
0.3364217579,
-0.0628022254,
0.1384648681,
0.1992914528,
-0.1387364715,
-0.2713562548,
0.1334019452,
0.0091172056,
-0.1717025638,
0.1072277054,
0.0534084551,
-0.2777939439,
-0.1483330429,
-0.2378236949,
0.31988886,
-0.0257742852,
0.4086241722,
0.2018826306,
0.1185924038,
-0.2835620344,
-0.2737650573,
-0.1957248449,
0.0212341417,
-0.4779030085,
0.0258823559,
0.3871369362,
-0.2097048312,
0.5165666342,
0.0758559331,
-0.0362860113,
0.0592925996,
-0.0301979128,
0.2644247115,
-0.0725837052,
0.1810247749,
0.1212262958,
0.292780906,
0.2036838382,
0.0199424624,
-0.0530856363,
-0.3294442296,
0.0704848245,
-0.2763871849,
-0.2597137094,
0.1677169353,
-0.3119882941,
0.1547896117,
0.04750745,
0.1872280985,
-0.0253878906,
-0.1822033226,
-0.096726656,
-0.1229706407,
-0.0582914948,
-0.1482738554,
0.5051083565,
0.4033137858,
0.0298877265,
-0.3304647207,
-0.0621767715,
0.1041164771,
-0.1011981815,
0.0117210457,
-0.1564820856,
0.5247725248,
-0.2857877314,
-0.1501882821,
0.2243131697,
0.0519687086,
-0.2112270296,
0.1486304402,
-0.01265785,
0.270898968,
0.0975892469,
-0.0528357029,
-0.0672803447,
0.0518001355,
0.0919753909,
0.2184603661,
0.1131942719,
0.0529396236,
-0.3270510435,
-0.087788403,
-0.0076872231,
0.0795482993,
0.3505392671,
-0.050554961,
0.0635948405,
0.5883687735,
0.2980857491,
-0.1387827098,
0.2244143635,
0.45005247,
-0.2889427543,
0.1368469,
0.2453725785,
-0.0598619841,
-0.4651871622,
0.1208008081,
-0.1401828527,
0.4367899895,
-0.1831933856,
-0.0022148835,
-0.3467134535,
-0.1367146522,
-0.1968163252,
-0.5165297389,
0.2065131217,
0.2034475952,
-0.0185764357,
0.3046472967,
0.0254302435,
0.1162026152,
-0.0404419117,
0.0568884872,
-0.7796522975,
0.2145269513,
-0.3115578592,
-0.1411180943,
-0.0192292705,
0.3081660271,
0.1150459722,
-0.1935399622,
-0.1284949929,
0.2234227806,
-0.0789243802,
0.1341898441,
0.0148868356,
-0.0550870113,
0.2404268682,
-0.3211013079,
0.0984829441,
0.3122579157,
-0.0463056415,
-0.1272408664,
-0.3034786582,
0.2799142301,
0.0182235558,
0.3226443529,
0.0334035233,
0.091932267,
0.1548368037,
0.0725831687,
-0.2331330776,
-0.2026533633,
0.3785169721,
0.2176059335,
0.1366422027,
-0.0235247146,
0.1149624437,
0.0045692208,
0.171902284,
0.0660794005,
0.01125996,
-0.0809154138,
-0.451001972,
-0.2482420206,
0.350930661,
-0.0857895538,
0.0816845745,
0.2645477057,
0.0524948984,
-0.0169570949,
-0.1228682846,
-0.209578231,
0.197487697,
0.1140876785,
0.3243004978,
0.0876459852,
0.1405430287,
0.1975444257,
-0.3815243542,
0.1906592399,
-0.1774683893,
0.087133728,
-0.2838542461,
-0.0979880095,
-0.3540600836,
-0.4514618814,
-0.1052415818,
0.2488118261,
-0.3974129558,
-0.5874938369,
-0.0569578856,
0.1890995353,
-0.1633749753,
0.3057293892,
-0.0293643381,
-0.1303645223,
0.074192889,
0.0197917651,
-0.3342634737,
-0.3922386765,
-0.2000676543,
0.0861517861,
0.1043603718,
-0.0021497689,
0.2901447117,
-0.002974214,
-0.027192045,
-0.4731691778,
-0.5758977532,
0.3161933124,
-0.2838525772,
0.1902674735,
0.1779287905,
0.0881578699,
-0.2256867588,
-0.0587335154,
0.4069476724,
-0.1701156944,
-0.1504671574,
-0.0161599442,
-0.1277896017,
0.1010058597,
-0.1923411936,
-0.2217374891,
0.0953755751,
-0.3692915142,
0.0153443404,
0.0921728984,
-0.1812784076,
0.4691085517,
-0.1002497524,
-0.0062876707,
0.100527361,
0.1722678542,
-0.2448797971,
0.083574675,
0.3416596055,
-0.3003979027,
-0.4568086565,
0.0295676198,
-0.1735530198,
0.0571713559,
0.3189316094,
-0.4997885525,
-0.0496771224,
0.0941227227,
0.0024681515,
-0.1354264021,
0.0942455381,
0.5044305325,
0.0114220781,
-0.0168616753,
-0.2326326668,
-0.1519110799,
-0.1495186985,
-0.3148490787,
0.426984936,
-0.1923687905,
0.3235902786,
-0.0036708456,
1.0987776518,
-0.0326621495,
0.0656039342,
0.4224381149,
0.0933039039,
0.452100724,
-0.2759512067,
-0.296728462,
0.2323564887,
-0.1486650407,
0.3013338149,
0.3919002712,
-0.0147325052,
-0.2050668001,
-0.365370959,
0.0091434158,
-0.2090857029,
-0.3228647113,
0.0901107937,
-0.3193499446,
0.291395992,
0.1660910994,
0.2335971743,
-0.0019369402,
-0.1577164531,
0.2441103607,
0.1709191352,
0.2070370167,
0.0695517957,
0.1379285008,
-0.056092035,
-0.4986759126,
0.0409602933,
0.0189634636,
-0.0030057959,
0.0389502309,
-0.1371269375,
0.202036351,
0.0453859977,
0.5689495802,
-0.1977419555,
-0.0263440162,
0.2490572482,
0.034780629,
-0.7107806802,
-0.0275658667,
-0.0550744422,
0.1947838068,
0.2862174511,
0.1784343719,
-0.3835531771,
-0.2234923691,
0.3125833273,
0.0610996485,
-0.0469832718,
-0.0261745919,
-0.2916180789,
0.0066377991,
-0.4207643867,
-0.130903706,
-0.1549674869,
0.1455960125,
0.0774428844,
0.1687314659,
0.0894144475,
0.0287989471,
-0.1335078329,
0.1053508297,
0.2781824172,
0.2502245903,
-0.111485593,
0.1409599781,
0.6523585916,
-0.3377572596,
0.2628808618,
0.1982282251,
0.0455497205,
0.2173915654,
-0.0400634147,
-0.0590367503,
0.3987362981,
0.0289377868,
-0.048762925,
-0.2030526996,
0.0094223088,
0.0940537751,
0.2291372567,
0.3506716192,
-0.2690445781,
-0.136277318,
-0.2736849785,
0.5236554742,
-0.0176690035,
-0.011371023,
0.0692945868,
0.0670142174,
-0.3365370333,
0.3461084366,
0.2415180057,
0.7413404584,
0.0380277075,
0.3953181505,
0.2077925056,
0.3027877808,
0.8601718545,
-0.3698053658,
0.1897516102,
-0.1742744595,
0.2201999128,
0.04168671,
0.0354326069,
-0.1920434386,
-0.1310456097,
-0.0968420357,
0.3844060004,
0.3848446012,
0.4188906252,
0.0760008544,
0.2999128997,
0.0761644542,
-0.3209705949,
-0.1950530708,
0.1271082312,
-0.2076166123,
0.5865811706,
-0.3765699565,
-0.1308689564,
-0.2108010501,
-0.1166528091,
-0.2505492866,
0.1885519922,
-0.2747045457,
0.5069426894,
-0.1782884598,
-0.5959974527,
0.0212481935,
0.1127755269,
0.1474467069,
0.0883107111,
-0.4008173943,
0.3684975803,
-0.1940895021,
-0.2362576872,
-0.1085617393,
0.2097143531,
0.4952665269,
-0.170849815,
-0.0616779551,
-0.0610722266,
-0.2416675985,
-0.2755624354,
-0.2949696183,
-0.0613052361,
0.0028359191,
0.1048691422,
-0.0824530274,
0.1037250385,
-0.014028904,
-0.2572486103,
0.1487521231,
-0.1144914255,
0.0374178849,
-0.1460709721,
0.1024445444,
-0.1043076292,
-0.070397839,
0.499397099,
-0.0020985829,
-0.128984794,
0.5953384638,
0.3426302671,
-0.1198805124,
-0.1146729141,
-0.0902573392,
-0.1393834651,
-0.4722254574,
-0.1296564937,
0.0124801984,
-0.0530011505,
-0.0521328859,
0.2447202802,
0.1844116002,
-0.1626241505,
0.0780862644,
-0.1943453103,
-0.2954601049,
0.2547386885,
-0.3494715691,
-0.0420393497,
0.1390183717,
0.101366587,
0.3333051503,
0.014814835,
-0.2964566648,
-0.215464741,
0.0540282391,
0.2008091211,
0.3083449304,
-0.1186883152,
-0.0500543565,
-0.1276488602,
0.1212445349,
0.021271307,
-0.1894852072,
-0.2302406132,
-0.031567663,
0.1042666882,
0.0467172228,
0.0865675882,
-0.0781771019,
0.1114093289,
-0.0371294804,
-0.2535361648,
0.0528713316,
-0.2281831652,
0.1240537092,
0.1823163182,
0.1191578284,
0.1763536632,
-0.1209523901,
0.0150984181,
0.0482738353,
0.1423760653,
0.053263288,
0.0129568493,
0.2215798646,
-0.0117940595,
-0.1690641046,
0.1042754054,
-0.185499683,
0.2854599655,
0.2926936746,
-0.0773174018,
-0.2990313768,
-0.0270366706,
0.2942743301,
-0.0326082259,
-0.0528618731,
-0.0485747717,
0.0103592891,
0.1906128377,
-0.2196089178,
0.2674605548,
0.5279878974,
0.1143723056,
0.055378288,
-0.0702126697,
0.374345541,
-0.0246606357,
0.3387499154,
0.1726606488,
0.121752575,
-0.1183100417,
0.2426420301,
0.2166144848,
0.3510866463,
0.0566905849,
0.0239127502,
-0.0307097808,
0.2304616421,
0.2397228628,
0.1288084537,
0.2786284983,
-0.0882290229,
0.0975497738,
0.0309133139,
-0.0629838631,
0.1639132649,
0.3340352774,
0.1803872138,
0.1440522969,
-0.1291937679,
0.5687987804,
0.1001942828,
-0.3893401623,
-0.2345819175,
0.240231365,
-0.1169962361,
0.0740318671,
-0.3172837198,
-0.1861779541,
-0.2391942292,
0.1574649662,
-0.1074406356,
-0.1232670322,
-0.0504304022,
0.2156559229,
-0.1900828481,
-0.4732025564,
0.2101698667,
-0.0363385156,
0.3338374794,
-0.0730824769,
0.1706404835,
-0.0616372563,
-0.2775771022,
-0.0798458159,
0.2877349555,
0.2786317468,
0.10541673,
-0.390992105,
-0.1218867972,
0.1556938887,
-0.0640751049,
-0.1527652442,
0.0842842385,
0.2606303394,
-0.1013037041,
0.2616634965,
0.0972531885,
-0.2740937471,
-0.1220371723,
0.0980754122,
-0.0550221317,
-0.1236005276,
0.0130105456,
-0.3181713521,
-0.1982581615,
-0.1200945303,
0.0065361694,
-0.4909360707,
0.1610681564,
-0.008207039,
0.1992535889,
-0.0541201122,
-0.2968484461,
0.085665822,
-0.1368456036,
0.5973787308,
0.3424453139,
0.1117993817,
-0.146999836,
-0.5365693569,
-0.5853411555,
0.2090298831,
-0.0629924834,
-0.0486577712,
0.0740430132,
0.1942422241,
0.2390605509,
0.1642807871,
0.0020999482,
-0.1792952418,
0.0889604539,
-0.0662597418,
-0.4647615552,
-0.0645496547,
-0.1904875934,
-0.2589037418,
-0.1246324852,
0.0241007674,
-0.0880487412,
0.1057776585,
0.0488001555,
-0.0199225266,
-0.2640576065,
0.06166289,
-0.0682744682,
0.2982192934,
-0.0519034564,
0.3681994081,
-0.1012711078,
-0.2203566879,
-0.2901727557,
-0.1561025083,
-0.0462986417,
0.3026446104,
-0.1934382021,
0.521027565,
-0.0083601978,
-0.1002060547,
-0.3288209438,
0.6905267239,
0.1733902246,
0.1175567955,
-0.3923233449,
0.0239076335,
-0.3116732836,
0.1622991562,
0.0910176784,
0.3411853909,
-0.2714784741,
0.1741355956,
-0.4668041766,
-0.4499903321,
0.2498715371,
-0.4550740421,
-0.0926978961,
-0.0041838996,
0.1153391823,
-0.004739291,
-0.0571004972,
-0.5571915507,
0.0335966833,
0.1637206674,
0.0543100387,
-0.0907493904,
0.1095090434,
-0.0455885753,
-0.1208940372,
-0.1041853055,
-0.1784143597,
0.1156886145,
-0.1695554703,
-0.0898756012,
-0.2151400894
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage.
We plan to have a systematic way to preprocess more wikipedia languages in the future.
For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner. | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
``` | 58 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S
park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')`
```
This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage.
We plan to have a systematic way to preprocess more wikipedia languages in the future.
For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner. | [
0.0666168258,
0.1266757697,
-0.0205122642,
-0.0542329811,
0.1996192485,
0.1526874155,
0.1799743474,
0.3656728566,
-0.022208862,
-0.0814261287,
0.1489360183,
0.2753816545,
-0.0917267129,
-0.168423295,
0.2434722185,
-0.3058639467,
0.1455035061,
0.1239024401,
-0.3501990139,
-0.1286827922,
-0.0025927091,
0.4125899971,
-0.2114286125,
-0.1782555133,
-0.5298824906,
0.0631539896,
-0.1315194219,
0.1428048015,
-0.0437919125,
-0.2499872297,
0.2779206932,
0.0593031012,
-0.0827243626,
0.1222383156,
-0.000114308,
0.0776106864,
0.6222486496,
-0.2239052951,
-0.5686739087,
0.0119778989,
0.1299999803,
-0.3336534202,
0.3843443394,
-0.2550981641,
-0.2759363949,
-0.1181294695,
0.114119418,
-0.0585302971,
0.3938060105,
-0.0109364502,
0.2136251926,
0.2360558361,
0.2972978652,
-0.1291413903,
0.6020241976,
0.0674149692,
-0.166256398,
0.0793359876,
-0.1638743728,
-0.0564771108,
-0.271040827,
0.4797947109,
0.1387169808,
-0.1370010525,
0.5526376963,
-0.2816210687,
0.0226212144,
-0.2574211061,
0.0174537916,
0.1826508641,
0.4940167964,
-0.0229840018,
-0.10636805,
-0.3746719062,
0.0446043648,
0.1787302196,
0.2480828017,
0.017208036,
-0.1532898098,
-0.0672088563,
0.0512101948,
-0.2295792252,
-0.0332926586,
0.288751781,
-0.0673935413,
0.420291841,
-0.028906431,
0.0214704629,
0.1668535024,
0.0496227033,
-0.31337291,
0.0365185663,
0.0982152596,
0.235016197,
-0.216512844,
0.0636978,
0.2868847251,
0.2705270648,
0.0620145127,
0.1695945561,
-0.279399991,
0.1912726015,
0.0204297397,
-0.0470915064,
0.2198940665,
0.2408220917,
-0.0418656506,
-0.3533207774,
0.2516729832,
0.3364217579,
-0.0628022254,
0.1384648681,
0.1992914528,
-0.1387364715,
-0.2713562548,
0.1334019452,
0.0091172056,
-0.1717025638,
0.1072277054,
0.0534084551,
-0.2777939439,
-0.1483330429,
-0.2378236949,
0.31988886,
-0.0257742852,
0.4086241722,
0.2018826306,
0.1185924038,
-0.2835620344,
-0.2737650573,
-0.1957248449,
0.0212341417,
-0.4779030085,
0.0258823559,
0.3871369362,
-0.2097048312,
0.5165666342,
0.0758559331,
-0.0362860113,
0.0592925996,
-0.0301979128,
0.2644247115,
-0.0725837052,
0.1810247749,
0.1212262958,
0.292780906,
0.2036838382,
0.0199424624,
-0.0530856363,
-0.3294442296,
0.0704848245,
-0.2763871849,
-0.2597137094,
0.1677169353,
-0.3119882941,
0.1547896117,
0.04750745,
0.1872280985,
-0.0253878906,
-0.1822033226,
-0.096726656,
-0.1229706407,
-0.0582914948,
-0.1482738554,
0.5051083565,
0.4033137858,
0.0298877265,
-0.3304647207,
-0.0621767715,
0.1041164771,
-0.1011981815,
0.0117210457,
-0.1564820856,
0.5247725248,
-0.2857877314,
-0.1501882821,
0.2243131697,
0.0519687086,
-0.2112270296,
0.1486304402,
-0.01265785,
0.270898968,
0.0975892469,
-0.0528357029,
-0.0672803447,
0.0518001355,
0.0919753909,
0.2184603661,
0.1131942719,
0.0529396236,
-0.3270510435,
-0.087788403,
-0.0076872231,
0.0795482993,
0.3505392671,
-0.050554961,
0.0635948405,
0.5883687735,
0.2980857491,
-0.1387827098,
0.2244143635,
0.45005247,
-0.2889427543,
0.1368469,
0.2453725785,
-0.0598619841,
-0.4651871622,
0.1208008081,
-0.1401828527,
0.4367899895,
-0.1831933856,
-0.0022148835,
-0.3467134535,
-0.1367146522,
-0.1968163252,
-0.5165297389,
0.2065131217,
0.2034475952,
-0.0185764357,
0.3046472967,
0.0254302435,
0.1162026152,
-0.0404419117,
0.0568884872,
-0.7796522975,
0.2145269513,
-0.3115578592,
-0.1411180943,
-0.0192292705,
0.3081660271,
0.1150459722,
-0.1935399622,
-0.1284949929,
0.2234227806,
-0.0789243802,
0.1341898441,
0.0148868356,
-0.0550870113,
0.2404268682,
-0.3211013079,
0.0984829441,
0.3122579157,
-0.0463056415,
-0.1272408664,
-0.3034786582,
0.2799142301,
0.0182235558,
0.3226443529,
0.0334035233,
0.091932267,
0.1548368037,
0.0725831687,
-0.2331330776,
-0.2026533633,
0.3785169721,
0.2176059335,
0.1366422027,
-0.0235247146,
0.1149624437,
0.0045692208,
0.171902284,
0.0660794005,
0.01125996,
-0.0809154138,
-0.451001972,
-0.2482420206,
0.350930661,
-0.0857895538,
0.0816845745,
0.2645477057,
0.0524948984,
-0.0169570949,
-0.1228682846,
-0.209578231,
0.197487697,
0.1140876785,
0.3243004978,
0.0876459852,
0.1405430287,
0.1975444257,
-0.3815243542,
0.1906592399,
-0.1774683893,
0.087133728,
-0.2838542461,
-0.0979880095,
-0.3540600836,
-0.4514618814,
-0.1052415818,
0.2488118261,
-0.3974129558,
-0.5874938369,
-0.0569578856,
0.1890995353,
-0.1633749753,
0.3057293892,
-0.0293643381,
-0.1303645223,
0.074192889,
0.0197917651,
-0.3342634737,
-0.3922386765,
-0.2000676543,
0.0861517861,
0.1043603718,
-0.0021497689,
0.2901447117,
-0.002974214,
-0.027192045,
-0.4731691778,
-0.5758977532,
0.3161933124,
-0.2838525772,
0.1902674735,
0.1779287905,
0.0881578699,
-0.2256867588,
-0.0587335154,
0.4069476724,
-0.1701156944,
-0.1504671574,
-0.0161599442,
-0.1277896017,
0.1010058597,
-0.1923411936,
-0.2217374891,
0.0953755751,
-0.3692915142,
0.0153443404,
0.0921728984,
-0.1812784076,
0.4691085517,
-0.1002497524,
-0.0062876707,
0.100527361,
0.1722678542,
-0.2448797971,
0.083574675,
0.3416596055,
-0.3003979027,
-0.4568086565,
0.0295676198,
-0.1735530198,
0.0571713559,
0.3189316094,
-0.4997885525,
-0.0496771224,
0.0941227227,
0.0024681515,
-0.1354264021,
0.0942455381,
0.5044305325,
0.0114220781,
-0.0168616753,
-0.2326326668,
-0.1519110799,
-0.1495186985,
-0.3148490787,
0.426984936,
-0.1923687905,
0.3235902786,
-0.0036708456,
1.0987776518,
-0.0326621495,
0.0656039342,
0.4224381149,
0.0933039039,
0.452100724,
-0.2759512067,
-0.296728462,
0.2323564887,
-0.1486650407,
0.3013338149,
0.3919002712,
-0.0147325052,
-0.2050668001,
-0.365370959,
0.0091434158,
-0.2090857029,
-0.3228647113,
0.0901107937,
-0.3193499446,
0.291395992,
0.1660910994,
0.2335971743,
-0.0019369402,
-0.1577164531,
0.2441103607,
0.1709191352,
0.2070370167,
0.0695517957,
0.1379285008,
-0.056092035,
-0.4986759126,
0.0409602933,
0.0189634636,
-0.0030057959,
0.0389502309,
-0.1371269375,
0.202036351,
0.0453859977,
0.5689495802,
-0.1977419555,
-0.0263440162,
0.2490572482,
0.034780629,
-0.7107806802,
-0.0275658667,
-0.0550744422,
0.1947838068,
0.2862174511,
0.1784343719,
-0.3835531771,
-0.2234923691,
0.3125833273,
0.0610996485,
-0.0469832718,
-0.0261745919,
-0.2916180789,
0.0066377991,
-0.4207643867,
-0.130903706,
-0.1549674869,
0.1455960125,
0.0774428844,
0.1687314659,
0.0894144475,
0.0287989471,
-0.1335078329,
0.1053508297,
0.2781824172,
0.2502245903,
-0.111485593,
0.1409599781,
0.6523585916,
-0.3377572596,
0.2628808618,
0.1982282251,
0.0455497205,
0.2173915654,
-0.0400634147,
-0.0590367503,
0.3987362981,
0.0289377868,
-0.048762925,
-0.2030526996,
0.0094223088,
0.0940537751,
0.2291372567,
0.3506716192,
-0.2690445781,
-0.136277318,
-0.2736849785,
0.5236554742,
-0.0176690035,
-0.011371023,
0.0692945868,
0.0670142174,
-0.3365370333,
0.3461084366,
0.2415180057,
0.7413404584,
0.0380277075,
0.3953181505,
0.2077925056,
0.3027877808,
0.8601718545,
-0.3698053658,
0.1897516102,
-0.1742744595,
0.2201999128,
0.04168671,
0.0354326069,
-0.1920434386,
-0.1310456097,
-0.0968420357,
0.3844060004,
0.3848446012,
0.4188906252,
0.0760008544,
0.2999128997,
0.0761644542,
-0.3209705949,
-0.1950530708,
0.1271082312,
-0.2076166123,
0.5865811706,
-0.3765699565,
-0.1308689564,
-0.2108010501,
-0.1166528091,
-0.2505492866,
0.1885519922,
-0.2747045457,
0.5069426894,
-0.1782884598,
-0.5959974527,
0.0212481935,
0.1127755269,
0.1474467069,
0.0883107111,
-0.4008173943,
0.3684975803,
-0.1940895021,
-0.2362576872,
-0.1085617393,
0.2097143531,
0.4952665269,
-0.170849815,
-0.0616779551,
-0.0610722266,
-0.2416675985,
-0.2755624354,
-0.2949696183,
-0.0613052361,
0.0028359191,
0.1048691422,
-0.0824530274,
0.1037250385,
-0.014028904,
-0.2572486103,
0.1487521231,
-0.1144914255,
0.0374178849,
-0.1460709721,
0.1024445444,
-0.1043076292,
-0.070397839,
0.499397099,
-0.0020985829,
-0.128984794,
0.5953384638,
0.3426302671,
-0.1198805124,
-0.1146729141,
-0.0902573392,
-0.1393834651,
-0.4722254574,
-0.1296564937,
0.0124801984,
-0.0530011505,
-0.0521328859,
0.2447202802,
0.1844116002,
-0.1626241505,
0.0780862644,
-0.1943453103,
-0.2954601049,
0.2547386885,
-0.3494715691,
-0.0420393497,
0.1390183717,
0.101366587,
0.3333051503,
0.014814835,
-0.2964566648,
-0.215464741,
0.0540282391,
0.2008091211,
0.3083449304,
-0.1186883152,
-0.0500543565,
-0.1276488602,
0.1212445349,
0.021271307,
-0.1894852072,
-0.2302406132,
-0.031567663,
0.1042666882,
0.0467172228,
0.0865675882,
-0.0781771019,
0.1114093289,
-0.0371294804,
-0.2535361648,
0.0528713316,
-0.2281831652,
0.1240537092,
0.1823163182,
0.1191578284,
0.1763536632,
-0.1209523901,
0.0150984181,
0.0482738353,
0.1423760653,
0.053263288,
0.0129568493,
0.2215798646,
-0.0117940595,
-0.1690641046,
0.1042754054,
-0.185499683,
0.2854599655,
0.2926936746,
-0.0773174018,
-0.2990313768,
-0.0270366706,
0.2942743301,
-0.0326082259,
-0.0528618731,
-0.0485747717,
0.0103592891,
0.1906128377,
-0.2196089178,
0.2674605548,
0.5279878974,
0.1143723056,
0.055378288,
-0.0702126697,
0.374345541,
-0.0246606357,
0.3387499154,
0.1726606488,
0.121752575,
-0.1183100417,
0.2426420301,
0.2166144848,
0.3510866463,
0.0566905849,
0.0239127502,
-0.0307097808,
0.2304616421,
0.2397228628,
0.1288084537,
0.2786284983,
-0.0882290229,
0.0975497738,
0.0309133139,
-0.0629838631,
0.1639132649,
0.3340352774,
0.1803872138,
0.1440522969,
-0.1291937679,
0.5687987804,
0.1001942828,
-0.3893401623,
-0.2345819175,
0.240231365,
-0.1169962361,
0.0740318671,
-0.3172837198,
-0.1861779541,
-0.2391942292,
0.1574649662,
-0.1074406356,
-0.1232670322,
-0.0504304022,
0.2156559229,
-0.1900828481,
-0.4732025564,
0.2101698667,
-0.0363385156,
0.3338374794,
-0.0730824769,
0.1706404835,
-0.0616372563,
-0.2775771022,
-0.0798458159,
0.2877349555,
0.2786317468,
0.10541673,
-0.390992105,
-0.1218867972,
0.1556938887,
-0.0640751049,
-0.1527652442,
0.0842842385,
0.2606303394,
-0.1013037041,
0.2616634965,
0.0972531885,
-0.2740937471,
-0.1220371723,
0.0980754122,
-0.0550221317,
-0.1236005276,
0.0130105456,
-0.3181713521,
-0.1982581615,
-0.1200945303,
0.0065361694,
-0.4909360707,
0.1610681564,
-0.008207039,
0.1992535889,
-0.0541201122,
-0.2968484461,
0.085665822,
-0.1368456036,
0.5973787308,
0.3424453139,
0.1117993817,
-0.146999836,
-0.5365693569,
-0.5853411555,
0.2090298831,
-0.0629924834,
-0.0486577712,
0.0740430132,
0.1942422241,
0.2390605509,
0.1642807871,
0.0020999482,
-0.1792952418,
0.0889604539,
-0.0662597418,
-0.4647615552,
-0.0645496547,
-0.1904875934,
-0.2589037418,
-0.1246324852,
0.0241007674,
-0.0880487412,
0.1057776585,
0.0488001555,
-0.0199225266,
-0.2640576065,
0.06166289,
-0.0682744682,
0.2982192934,
-0.0519034564,
0.3681994081,
-0.1012711078,
-0.2203566879,
-0.2901727557,
-0.1561025083,
-0.0462986417,
0.3026446104,
-0.1934382021,
0.521027565,
-0.0083601978,
-0.1002060547,
-0.3288209438,
0.6905267239,
0.1733902246,
0.1175567955,
-0.3923233449,
0.0239076335,
-0.3116732836,
0.1622991562,
0.0910176784,
0.3411853909,
-0.2714784741,
0.1741355956,
-0.4668041766,
-0.4499903321,
0.2498715371,
-0.4550740421,
-0.0926978961,
-0.0041838996,
0.1153391823,
-0.004739291,
-0.0571004972,
-0.5571915507,
0.0335966833,
0.1637206674,
0.0543100387,
-0.0907493904,
0.1095090434,
-0.0455885753,
-0.1208940372,
-0.1041853055,
-0.1784143597,
0.1156886145,
-0.1695554703,
-0.0898756012,
-0.2151400894
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | I think the slowness here probably come from the fact that we are copying from and to python.
@lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 51 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
I think the slowness here probably come from the fact that we are copying from and to python.
@lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? | [
-0.1038480252,
0.0485301763,
-0.0324605852,
-0.1238690019,
-0.0787097886,
-0.1393205822,
0.1168375835,
0.5494185686,
-0.2944582105,
0.0831829011,
-0.0154473772,
0.5307008624,
-0.1336493641,
-0.2611564398,
0.1678624302,
-0.0926035419,
0.0606322028,
-0.0731457993,
-0.2566207647,
-0.091127947,
-0.1002620906,
-0.3960592151,
-0.210781157,
-0.2046842128,
-0.0074308305,
-0.2436169088,
-0.2369047403,
0.1180210784,
-0.1844844967,
0.0845986009,
-0.1934025735,
0.2316127717,
-0.1237934083,
0.2456134409,
-0.0001148454,
-0.1855445802,
0.0773181394,
0.1337085366,
-0.3280708194,
0.1574876755,
0.4777602553,
-0.0623346716,
-0.1090690494,
-0.2044636905,
0.162459448,
-0.3435192108,
0.1161518469,
-0.0758223012,
-0.0899130553,
-0.0375097282,
0.1314270645,
0.3801161945,
-0.1988960207,
0.2204273492,
0.481752336,
0.2134929597,
-0.3580770791,
0.3437612653,
0.3956696391,
-0.0749700293,
-0.1464883834,
0.2646942437,
-0.1878203005,
-0.0394973643,
0.2072632015,
0.1342579871,
0.1285514683,
0.3230401874,
0.1072726846,
0.3726661801,
0.3013323247,
-0.2000201195,
-0.3548538685,
-0.2874729335,
0.203556478,
-0.0308124218,
0.0791786686,
0.2857198417,
-0.2808452547,
-0.1876986623,
-0.1240445524,
0.1041605026,
0.2330210656,
-0.2302716821,
0.3201216459,
0.4178145528,
0.2373139262,
-0.0998315141,
0.6690921783,
-0.0953147113,
0.5340385437,
-0.1793562025,
0.0701038986,
0.4054663479,
-0.2878311574,
-0.2892365456,
-0.1990917325,
-0.0882901996,
-0.1359458715,
0.1803568006,
0.6696807146,
0.2038073987,
0.2009964734,
-0.0543012433,
0.0821902677,
-0.0159301609,
-0.3168697059,
0.1569918394,
-0.0950160548,
0.0842373371,
0.2574742138,
0.0918950513,
-0.0717735216,
-0.3007596731,
-0.0448231101,
-0.2145743817,
-0.4414108992,
0.1036589295,
0.0323504284,
-0.2918609679,
-0.0960135832,
-0.0679454952,
0.012575875,
0.2145959735,
-0.1745275259,
0.2548383772,
-0.0650104061,
-0.1067525521,
-0.1531512737,
0.0528995469,
-0.0397012644,
0.1025035158,
-0.0759028792,
0.0010087339,
0.019384155,
0.3855783045,
-0.2566694021,
0.0715124309,
0.198361367,
0.3333364427,
0.0390318483,
-0.137104854,
0.0812001973,
0.1164645776,
-0.1295930296,
-0.1626017988,
-0.1090415195,
0.056350071,
-0.328253597,
0.3956876099,
-0.0282885097,
-0.1497775912,
0.1397401094,
0.1568018347,
0.2815751731,
-0.2844119072,
-0.4706707597,
-0.0742616206,
0.0032805982,
-0.0329055861,
0.0783747509,
-0.107717514,
0.1294040978,
-0.146109283,
0.0069921641,
-0.2068298161,
-0.0313834175,
0.118672803,
0.0181321278,
0.5336565375,
0.4336854219,
0.6766945124,
-0.0835652202,
0.088808544,
0.1313967556,
-0.0325664058,
0.7245672345,
0.1752951443,
-0.1763673425,
0.0303566102,
-0.0777413249,
0.0723706782,
0.4168793857,
0.1878636181,
0.0499967262,
-0.1446710825,
0.4556991458,
0.2858865559,
0.0005490949,
0.279518187,
-0.5462659597,
-0.1266949475,
0.2373046726,
0.4326202571,
-0.4991609156,
-0.317917794,
-0.0106279468,
-0.3204745054,
0.3234400153,
-0.2063716054,
-0.1109220013,
0.051992815,
-0.0280236304,
0.0888929889,
-0.1518576443,
0.0710442737,
-0.1989397407,
-0.057111036,
-0.0291538034,
-0.0216978975,
0.2426877618,
-0.3557790518,
0.1991187483,
-0.1732144803,
0.1194693744,
0.1699104458,
-0.002422634,
-0.2069247961,
0.3986495733,
-0.1000551879,
-0.0798936635,
-0.0160999838,
-0.2569806576,
0.0842133835,
-0.1689043939,
-0.1116963997,
0.0451898538,
-0.2143690884,
0.1580178738,
0.3718036413,
-0.2997277975,
0.0496765822,
0.1027157158,
0.2142710835,
-0.0766529664,
-0.1232787669,
0.0910351127,
0.1982082427,
-0.0637711957,
0.2575585842,
0.1842213124,
-0.1660939902,
0.1514940709,
-0.0345028713,
-0.3289417326,
0.5347303748,
-0.4930260479,
0.3141447306,
0.1985872686,
-0.2543617487,
-0.1408234686,
0.2990077436,
-0.0973585322,
0.4259061515,
0.6466960907,
0.1116911396,
0.1135968491,
0.4000863731,
-0.3382673562,
0.0998385698,
0.5146842599,
-0.0320699327,
-0.1510278732,
0.101440832,
0.0868233144,
-0.1578638703,
-0.133907184,
0.0724574625,
0.2643631101,
0.2578003407,
0.1068168059,
-0.0220652539,
-0.0651487559,
-0.2313472778,
0.2150714248,
-0.0015313029,
0.0961963683,
-0.1439816356,
0.1075775176,
-0.0137521233,
-0.1625157446,
-0.1773953289,
0.01970727,
0.1639558226,
0.0767695382,
0.0736186281,
-0.0629529208,
-0.1240022555,
-0.1818030477,
-0.036517933,
-0.0409477726,
-0.1341001093,
0.1759617329,
0.2394406497,
-0.2295585275,
-0.2709873915,
-0.1023019254,
0.2744617462,
-0.1486408263,
-0.1649522632,
-0.1873629242,
0.0778130963,
-0.1182080656,
0.0518479906,
0.2363511622,
0.2894333601,
0.3592743874,
0.0621869341,
-0.2367978543,
0.051827468,
0.0315155014,
-0.2365831137,
0.0247278493,
-0.2823908031,
-0.0512629747,
-0.1843824834,
-0.3590668738,
-0.3232360184,
0.0791546926,
-0.1600938439,
-0.1007139757,
0.3606928587,
0.2180087119,
-0.2246399075,
-0.1231468469,
-0.0707203001,
-0.1353551894,
-0.3641656637,
0.2947728634,
-0.073534295,
0.1561613381,
-0.0280664321,
-0.1540988088,
-0.0747500733,
-0.4670973718,
-0.0291596334,
0.1779473275,
-0.1603416651,
0.2665254772,
0.0757240653,
-0.1876382977,
-0.4554569125,
-0.0309031103,
-0.0455954857,
0.4398035705,
-0.0504293069,
0.1585070193,
-0.40902704,
-0.0185445491,
-0.0691038668,
0.2417527139,
0.4783866405,
-0.1012294739,
-0.1137258857,
0.3343473375,
0.1900076717,
-0.0072765667,
0.281583488,
0.093992807,
0.0873349234,
0.145313561,
0.1917295903,
0.5485806465,
-0.0089886356,
0.4024248719,
-0.1678858995,
0.1251713932,
-0.0263603386,
-0.3092455566,
0.0191648565,
0.1545820683,
-0.0148899732,
-0.2202122658,
0.2860587239,
-0.1322849542,
-0.216705814,
-0.1457932293,
0.4429794848,
0.0978027955,
-0.3071258068,
0.5698949695,
-0.243990615,
0.0114952018,
0.0262770746,
0.2426936924,
-0.1146335602,
-0.1829119921,
0.039373409,
-0.0735244974,
-0.073650606,
-0.0306379423,
-0.6124541163,
-0.1522423178,
-0.8054003119,
0.2165991664,
0.2030179054,
0.3697019517,
0.2696366906,
-0.3206878603,
0.4373372495,
-0.13145262,
0.2683982551,
0.1939318329,
-0.3236967623,
0.2640224695,
-0.1401330531,
-0.4568903148,
-0.0840425491,
-0.3802315891,
-0.4031208456,
0.145110786,
0.1813234091,
-0.3581776917,
-0.0427723266,
-0.0153322378,
-0.0565103553,
-0.0170649718,
0.012958182,
-0.3901495039,
-0.2344475538,
0.0323272571,
0.2596324682,
-0.0461358503,
0.0254314877,
-0.0565665737,
0.2224268019,
0.158954367,
0.0007251767,
0.1433287859,
-0.1042862907,
-0.0540573597,
-0.0540806316,
0.1584061831,
0.1658080965,
0.0621215105,
-0.0909936056,
0.0022126376,
0.1231653616,
0.0416770428,
-0.157635957,
-0.1893505007,
0.4593551159,
0.3867465854,
0.207952857,
0.2129655927,
-0.0241839942,
0.3218663931,
-0.005993647,
-0.5208618641,
0.1308052838,
-0.2954316139,
-0.1013391167,
-0.7717425227,
0.2592332661,
0.2543682158,
0.1491474807,
0.2281625569,
-0.1963315159,
0.2470768839,
0.4275333583,
0.1410058141,
1.0107345581,
-0.3745576143,
0.4948282242,
0.3026474714,
-0.2127191573,
0.0632099882,
-0.1288544387,
0.3773983717,
-0.1711560041,
-0.1408918351,
0.218242541,
-0.1835125387,
0.0028821437,
0.0469280444,
-0.0376596749,
0.201011911,
-0.0023708923,
-0.3239127994,
-0.3013597131,
-0.037096899,
-0.4331662953,
-0.3865849078,
-0.1619997621,
0.0026142399,
-0.0321728662,
-0.1597067863,
0.1417668164,
0.0812448561,
-0.4642914236,
0.1138686314,
-0.1251076907,
-0.0129026193,
0.0488076322,
-0.006456621,
0.2049919963,
-0.28612414,
-0.0617327839,
-0.1386677623,
-0.1246640831,
0.1100129783,
0.1806343496,
0.1125105843,
0.25732705,
0.3945131898,
0.3727913797,
-0.2835697532,
0.2877429724,
-0.0632586926,
0.250033915,
0.0561996587,
-0.0084812269,
-0.735534966,
-0.301851958,
0.086043708,
0.568118155,
-0.028694544,
-0.1409673691,
0.2391035259,
-0.3686724007,
-0.0958729461,
0.1014308035,
0.0573843941,
0.1053931564,
0.4705395997,
0.1320168972,
-0.1886121631,
-0.0110093877,
0.2801900208,
0.106009014,
0.1396580487,
0.3078071177,
0.0161022879,
-0.4802678227,
-0.2216251343,
0.1815693378,
0.0415751785,
-0.3499684334,
0.2590774,
0.0156889074,
-0.0785717368,
0.1282120347,
0.2876177728,
-0.0295778513,
-0.0591707714,
-0.3001866043,
-0.0149932103,
0.1073985323,
0.4669550061,
0.5261850953,
0.0099294353,
0.0050602495,
0.3379234672,
-0.3852916062,
-0.1506510675,
-0.2425631881,
-0.1853695363,
0.0913325772,
0.1223527491,
-0.1389974803,
-0.2877806723,
-0.1926411539,
0.1505215466,
0.1307436377,
0.1484172642,
0.0329905041,
-0.1907642335,
0.0702230856,
0.0341221467,
0.0276608746,
-0.0140177347,
0.0477782227,
-0.3899277449,
-0.3449160457,
-0.2392158657,
-0.2736591995,
0.0012198377,
-0.0083561921,
-0.2712942958,
0.2088959664,
0.1324303001,
-0.0776069686,
0.5249647498,
-0.4731837809,
-0.2732438743,
-0.2208497077,
-0.006398865,
-0.0190973729,
-0.0999409035,
-0.111033015,
0.1236866191,
0.0560271479,
0.0054032044,
0.2663469315,
-0.1399292797,
0.0574537441,
-0.1029638499,
0.1943245381,
0.6351502538,
0.2898966968,
-0.4409422874,
0.4520810544,
0.1157827675,
-0.1129199266,
-0.2333064824,
-0.3544196784,
0.2145792544,
-0.0045310603,
0.1025648043,
-0.271802187,
-0.1124615222,
-0.3286371529,
-0.0594901145,
-0.1369458586,
-0.4206713736,
-0.2316711396,
0.3065517843,
0.3698607385,
-0.2523021102,
0.1801476777,
-0.0040582111,
-0.0467773303,
0.1294295192,
0.2270887196,
0.4077350795,
0.6244721413,
0.3014622629,
-0.3874135017,
-0.1106973514,
-0.0040115896,
0.4378825724,
0.1801593006,
0.308616817,
0.3406615853,
0.134514302,
0.0066036982,
0.079689458,
-0.0219778735,
-0.0928383991,
-0.0370788835,
0.0731731057,
0.0725146383,
-0.0947209522,
-0.2181288302,
0.2042515129,
-0.319491148,
0.3458897769,
0.2264338583,
0.103625685,
0.4627437294,
-0.3930014074,
0.1452660114,
-0.2250460088,
0.4474723339,
-0.3134241998,
-0.161229074,
-0.0375009403,
0.1031906083,
0.2538506389,
0.0662698522,
-0.0725486279,
0.2728682458,
-0.0790480226,
0.0622296222,
-0.5087031126,
-0.014967069,
-0.1064289808,
0.2163715363,
0.4450425208,
-0.0854283944,
0.2795485258,
0.0122325178,
-0.1925520599,
-0.1656650156,
-0.0980604365,
-0.0690087005,
-0.1779289842,
0.1612358689,
0.2084820569,
-0.4335986376,
-0.044525478,
0.1502263546,
-0.2526211739,
-0.096148558,
-0.5036643147,
-0.2149575651,
-0.1091824695,
0.0238640886,
0.0551286414,
0.1901284754,
0.6890668273,
0.4244920313,
-0.0805728808,
0.1032525748,
-0.2726461589,
-0.2619597316,
-0.3324976265,
-0.2798490226,
-0.0097645493,
0.2360471785,
0.4841255248,
0.2455259115,
0.2714176476,
-0.0475972332,
0.1512842625,
-0.3728962541,
0.3568666279,
-0.1409447938,
0.2074207366,
0.1653528661,
-0.0630148128,
-0.2124657035,
-0.600489676,
0.2104822397,
0.140949443,
-0.0027431878,
-0.0707926974,
0.0825923085,
0.2068641633,
0.3266089857,
-0.1694669873,
-0.0374939293,
-0.1736766845,
0.2170683295,
-0.205933705,
-0.190614149,
0.1858601868,
-0.0227929261,
0.0193884764,
0.0742552876,
0.1204366609,
0.0634018928,
0.0078345053,
0.1306757778,
0.5502993464,
-0.2406555861,
0.1733044535,
-0.2645806968,
0.0541517511,
0.2109875679,
0.2993127406,
-0.1580786705,
0.1426503807,
-0.0488656275,
-0.1984008104,
-0.2610490024,
0.0039235749,
0.3909658492,
-0.1595079303,
-0.2572921515,
-0.126607433,
0.1781400144,
0.2004369646,
0.3141002059,
0.0848383158,
-0.2719455957,
-0.0420418791,
-0.0028394549,
0.3295639455,
0.2699496448,
-0.1165977269,
-0.0616494566,
-0.1546361595,
0.3200796247,
-0.4524776638,
0.0876658186,
-0.2333868593,
-0.302048564
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | > @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405
On my side (select 10 000 examples):
- Original implementation: 12s
- Batched solution: 100ms
- solution using arrow tables: 350ms
I'll try with arrays and record batches to see if we can make it work. | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 88 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
> @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405
On my side (select 10 000 examples):
- Original implementation: 12s
- Batched solution: 100ms
- solution using arrow tables: 350ms
I'll try with arrays and record batches to see if we can make it work. | [
-0.1645008624,
0.1181397215,
-0.0444607846,
-0.1049748436,
-0.0814411119,
-0.1731708199,
0.1477241069,
0.5459221601,
-0.2346830964,
0.0624632128,
-0.0000816883,
0.5998945832,
-0.1947995722,
-0.2284019291,
0.2151888907,
-0.0612117089,
0.0476635806,
-0.0043828962,
-0.2822354734,
-0.0438993499,
-0.0562191978,
-0.4137575328,
-0.1994886398,
-0.1997069418,
-0.0257708579,
-0.293866992,
-0.1878561974,
0.0697671399,
-0.1976448148,
0.0757235736,
-0.2173386663,
0.2811860442,
-0.0521544181,
0.2584168017,
-0.0001122204,
-0.1701221019,
0.0425051413,
0.1037313491,
-0.3138455153,
0.1286936551,
0.3800332546,
-0.0521175861,
-0.1779634356,
-0.2150925696,
0.1908935457,
-0.3175553679,
0.1569266766,
-0.0784632638,
-0.1330257058,
-0.0641255602,
0.15371117,
0.2656770647,
-0.1589047015,
0.2145539224,
0.5277473927,
0.2444076389,
-0.3638018966,
0.2725056708,
0.3779152632,
-0.1275761873,
-0.2558321059,
0.2600161433,
-0.1540906578,
-0.0505699702,
0.2140826732,
0.1419370621,
0.0656320006,
0.3851957917,
0.0977454036,
0.3810899854,
0.2966606021,
-0.1960283667,
-0.2890030146,
-0.2553758323,
0.1719615757,
-0.0369445682,
0.0981173292,
0.2776350677,
-0.276034534,
-0.216648683,
-0.1713002473,
0.0930574611,
0.2021474391,
-0.2257492691,
0.3682126701,
0.3595199883,
0.1895430535,
-0.0979152843,
0.6719357967,
-0.1242223009,
0.5510311723,
-0.1262993366,
-0.0047990885,
0.4045134783,
-0.3214241862,
-0.3182564378,
-0.2337397933,
-0.1205971763,
-0.0468582623,
0.1339881122,
0.6908425689,
0.235114783,
0.2440863997,
-0.0330901258,
0.0294749495,
0.0050702048,
-0.1881673634,
0.0786934868,
-0.1245697886,
0.1490847617,
0.2544290423,
0.1171048284,
-0.0766193196,
-0.3060933948,
-0.1184601933,
-0.2209762484,
-0.5335652828,
0.136085704,
0.0855467469,
-0.2906820178,
-0.0308559649,
-0.0727870464,
0.0191449393,
0.2176075131,
-0.1134598926,
0.2636507154,
-0.0390848666,
-0.1840488166,
-0.0767866448,
-0.0296165105,
-0.021316262,
0.0395331867,
-0.1393528134,
0.0402011424,
0.117330268,
0.4005282223,
-0.2564072907,
0.0705070719,
0.1031446084,
0.3123988211,
0.023626525,
-0.1334683001,
0.0955934748,
0.0091466596,
-0.1462746859,
-0.2022950053,
-0.1624470651,
0.0748471022,
-0.2686471045,
0.4047933221,
0.0084073069,
-0.1314477473,
0.1649597883,
0.1682451814,
0.2920648456,
-0.2565490603,
-0.5357549191,
0.0282089766,
0.0150800468,
-0.0602180324,
0.065467149,
-0.023868585,
0.0673621893,
-0.1401838362,
0.0244526621,
-0.2616639137,
-0.0000498925,
0.150228098,
-0.006720311,
0.5517873168,
0.4012798965,
0.6005730629,
-0.0661776513,
0.0918937549,
0.1528078914,
-0.0147358449,
0.6540019512,
0.2467101663,
-0.2185636312,
0.0435642414,
-0.0482170098,
-0.0262143165,
0.389470607,
0.2075694799,
0.1455647498,
-0.1148247421,
0.4333438575,
0.2368699014,
-0.0020241383,
0.304875344,
-0.543797791,
-0.1804256141,
0.2548130453,
0.4310247302,
-0.5073712468,
-0.3955105841,
0.0435989313,
-0.3157791197,
0.3072642088,
-0.192980513,
-0.0006520011,
0.048138015,
-0.0866358578,
0.0819224417,
-0.1807376146,
0.0500818081,
-0.2162791491,
-0.0749926046,
-0.0966447964,
-0.0121547179,
0.2877599895,
-0.3427283168,
0.2107426673,
-0.2337401062,
0.2078987658,
0.1907052994,
0.0213447418,
-0.2241520286,
0.3385128081,
-0.1749181896,
-0.1115132049,
-0.0718108341,
-0.2885774672,
0.0425321572,
-0.181886375,
-0.1339043528,
0.049344074,
-0.2068352997,
0.1409367323,
0.3582651019,
-0.330620259,
0.057180807,
0.1285651028,
0.2276867032,
-0.1215711385,
-0.2004283816,
0.1078857258,
0.1838665158,
-0.0722616613,
0.2219086736,
0.1093333885,
-0.2368924171,
0.1598073244,
-0.0240701884,
-0.3439083099,
0.5287791491,
-0.4670104682,
0.3060244322,
0.1508339196,
-0.2817952633,
-0.1983254552,
0.3005361557,
-0.0364964195,
0.4161670804,
0.6197939515,
0.0703197271,
-0.0085375588,
0.382840693,
-0.2867331803,
0.1110055819,
0.4442732036,
0.0354823023,
-0.0874340534,
0.076364696,
0.1151950136,
-0.1434494257,
-0.1449115425,
0.0289841555,
0.2201104015,
0.2666476369,
0.0663309097,
-0.0658481866,
-0.0587903969,
-0.2190837264,
0.1854217947,
-0.0540742502,
0.1081662998,
-0.1161491275,
0.1254768819,
-0.0036939168,
-0.151749298,
-0.1532519162,
0.1124857292,
0.1517270207,
0.1317406446,
0.0266395658,
-0.0931465477,
-0.1624273211,
-0.1187380776,
-0.0148243895,
-0.0479761474,
-0.0085714562,
0.2399176359,
0.2391573489,
-0.2472816408,
-0.2346794903,
-0.0368508622,
0.3515052795,
-0.1599137485,
-0.0430692397,
-0.1856268793,
0.0427750982,
-0.0941627324,
0.0918408707,
0.2291273922,
0.274120301,
0.3628979325,
0.0987989977,
-0.2361451685,
0.046398595,
0.0200848561,
-0.2806489766,
0.0375687405,
-0.2801629901,
-0.050635118,
-0.1814998686,
-0.4017319977,
-0.2940493822,
0.0484575331,
-0.213687703,
-0.1209500059,
0.3594200909,
0.2213587016,
-0.1924252659,
-0.1647048593,
-0.141242221,
-0.0271902699,
-0.4196076989,
0.3166357577,
-0.1018240079,
0.2229261547,
-0.0784573928,
-0.1216173917,
-0.0703327656,
-0.5059905648,
-0.0254838113,
0.1991566718,
-0.1796477139,
0.2476859093,
0.0956991613,
-0.1881330609,
-0.4313290119,
-0.0367177948,
-0.082013078,
0.4609701037,
-0.0559887774,
0.2647231221,
-0.3275970221,
-0.0486323722,
-0.0881515965,
0.1640729755,
0.4675887227,
-0.1230989099,
-0.1321260035,
0.2906355858,
0.1878258735,
0.0932342261,
0.2486407757,
0.1484414786,
0.1078998744,
0.1583168507,
0.2577735782,
0.4758410752,
-0.0132599873,
0.3537455797,
-0.1806489676,
0.1811614633,
-0.0629274845,
-0.3044176996,
0.0902217999,
0.1761184931,
-0.0104922382,
-0.1328269094,
0.3145888746,
-0.1303448677,
-0.2358283699,
-0.1519665122,
0.4087904692,
0.1406181157,
-0.2767400146,
0.6161749363,
-0.2175594568,
0.0669739544,
0.0130957467,
0.1989496946,
-0.0729397684,
-0.2581876516,
0.0346684903,
-0.077194795,
-0.0035628574,
0.0157667734,
-0.6201171279,
-0.1037963405,
-0.7348018289,
0.1945826709,
0.2546138167,
0.4203132689,
0.2630218863,
-0.2731859684,
0.4100110233,
-0.1316806376,
0.2454738319,
0.184700653,
-0.3379395604,
0.2078163177,
-0.0334036611,
-0.3991727233,
-0.03829531,
-0.3553334475,
-0.3880004287,
0.093405284,
0.2187520415,
-0.3698851168,
-0.0151681229,
-0.0648523048,
-0.0963633731,
-0.0208884422,
-0.0213155951,
-0.3431763053,
-0.1563173085,
0.0247231405,
0.3189599812,
-0.041946087,
0.0636188537,
-0.0365340523,
0.2075861245,
0.1854451746,
0.005204381,
0.0925568938,
-0.1126060933,
-0.0189585332,
-0.0445403457,
0.1609745324,
0.144907549,
0.0884859115,
-0.0016812923,
-0.0676055476,
0.1565769315,
0.1307451576,
-0.0775162429,
-0.2168564647,
0.4103650153,
0.354431659,
0.2132842839,
0.286486119,
0.0318824276,
0.2609133124,
-0.0044945185,
-0.4609470069,
0.0524825528,
-0.3368799984,
-0.1111987531,
-0.7022079229,
0.2207271457,
0.2098456323,
0.129148528,
0.2435237169,
-0.1922958791,
0.1943426579,
0.3990999758,
0.1793602705,
0.9543702602,
-0.3425574303,
0.4395094812,
0.2005536407,
-0.2498931885,
0.0421651155,
-0.1718839854,
0.4339768887,
-0.186942786,
-0.1428172439,
0.220991239,
-0.1602592766,
-0.003897035,
0.1749669462,
0.0103840763,
0.1408390403,
0.0545832366,
-0.2724599838,
-0.2982907891,
-0.0769250169,
-0.3973248601,
-0.4000495374,
-0.0812606439,
0.0079908324,
-0.0912703425,
-0.261639446,
0.1299061179,
0.0397279598,
-0.4066442847,
0.1374417841,
-0.1283327043,
-0.0339102037,
0.0252637491,
-0.0187811665,
0.2313006967,
-0.2472966909,
-0.0118320221,
-0.1389428228,
-0.165471077,
0.1175364405,
0.1782704592,
0.0876708254,
0.2732320726,
0.3476552665,
0.3208280504,
-0.2797982097,
0.245040372,
-0.0386297666,
0.2470982224,
0.0269271545,
-0.0094230548,
-0.7398141623,
-0.2770710289,
0.0814100727,
0.57652843,
-0.0462442599,
-0.0412512086,
0.2288647592,
-0.3677732646,
-0.0874120668,
0.1226013303,
0.0234581344,
0.1255804449,
0.4317754507,
0.1474375427,
-0.17110084,
-0.0032448126,
0.3074450195,
0.1008309275,
0.1374732256,
0.2142407447,
0.051202856,
-0.4982790053,
-0.2763269246,
0.1729940325,
0.056096565,
-0.423696667,
0.2555828094,
0.0346918963,
-0.0998303294,
0.198374629,
0.2802020311,
-0.0444327816,
-0.0701618791,
-0.2347718477,
-0.0422127321,
0.0778444037,
0.4823130369,
0.4376078248,
-0.0092768129,
0.0434513092,
0.2773645222,
-0.4098942876,
-0.1012691259,
-0.2635427415,
-0.1706923842,
0.1031139791,
0.1917158663,
-0.1570942998,
-0.248582229,
-0.2314545661,
0.1217742413,
0.1095127314,
0.1856372207,
0.0099596614,
-0.2204294801,
0.0652233139,
0.0268535018,
0.0692744553,
-0.0124050574,
-0.0442202352,
-0.4056584835,
-0.4026626348,
-0.2240932286,
-0.2556390762,
-0.0581010915,
-0.0186285004,
-0.2951929271,
0.1893865913,
0.1526643783,
-0.1454208046,
0.504412055,
-0.440568924,
-0.2880323231,
-0.2536026835,
-0.0390552469,
-0.0204366278,
-0.1000388041,
-0.123727195,
0.1322375387,
0.0891374424,
-0.0098006399,
0.2713644207,
-0.1450659931,
0.0326849185,
-0.0542568304,
0.1430613101,
0.5390292406,
0.2918038964,
-0.4942596257,
0.4230968654,
0.1387187093,
-0.0685575753,
-0.205118522,
-0.4018737078,
0.2666894495,
0.015881842,
0.073649928,
-0.2112589329,
-0.228680566,
-0.3007592559,
-0.0467094816,
-0.198590368,
-0.4065413773,
-0.2695236504,
0.3000279963,
0.3499611914,
-0.2810373306,
0.1548968405,
-0.0209226757,
-0.0263044294,
0.126772359,
0.2693785727,
0.3928056955,
0.7060082555,
0.3252282441,
-0.4333922267,
-0.0891521424,
-0.0549953543,
0.4373287261,
0.2419594675,
0.2988148332,
0.3137168884,
0.1732143909,
0.0510274731,
0.0750978589,
0.0485929064,
-0.1860372722,
-0.0548711233,
0.083010748,
-0.0129105803,
-0.1432314813,
-0.2376495004,
0.1842692643,
-0.3152510524,
0.3856135905,
0.1862424165,
0.0794779584,
0.4294983745,
-0.4428105056,
0.1762867123,
-0.0807409137,
0.456721127,
-0.2809704542,
-0.0646833554,
-0.0432206988,
0.1053425372,
0.3080559671,
0.0901570097,
-0.1798042655,
0.2704426348,
-0.0519988425,
0.078825213,
-0.4874313772,
0.0217131358,
-0.1057704389,
0.2321116179,
0.4933179021,
-0.1453858316,
0.2571784854,
0.026448546,
-0.1935742944,
-0.1281038821,
-0.0667100847,
-0.0381671526,
-0.0670602545,
0.0632708743,
0.2352298051,
-0.4257182777,
0.0281728916,
0.1450077891,
-0.2164348066,
-0.0908325911,
-0.4721775353,
-0.2413536161,
-0.095917128,
-0.0337369405,
0.0694230944,
0.1823058575,
0.6906644106,
0.3652187586,
-0.136485219,
0.1033620387,
-0.3405783176,
-0.17632173,
-0.3086301982,
-0.2202322036,
0.0691795796,
0.2312631756,
0.4550163746,
0.2721433938,
0.2278193384,
-0.0682940632,
0.1393441856,
-0.3666185141,
0.3984473348,
-0.1806869358,
0.285648495,
0.2190857977,
-0.0290677845,
-0.1811083555,
-0.6279545426,
0.2281727195,
0.1717590243,
0.0131297084,
-0.0495903715,
0.1054145768,
0.1774186492,
0.3426144123,
-0.2193612158,
-0.0282704774,
-0.2209175825,
0.2068754882,
-0.1463596225,
-0.2218936831,
0.148094818,
-0.0441628061,
-0.0158979259,
0.1630413532,
0.1358189732,
0.0746880695,
0.0321717449,
0.1745644361,
0.4784032702,
-0.2635799348,
0.2802174687,
-0.2502788007,
0.0017437312,
0.1643894017,
0.2768269479,
-0.1753017008,
0.1120074466,
-0.0119546503,
-0.3055000901,
-0.247716859,
-0.0073182317,
0.3155240119,
-0.1459382176,
-0.2534734607,
-0.0785354376,
0.1924699247,
0.2831952572,
0.3042108417,
0.0231903065,
-0.3225079775,
-0.0537123121,
0.0298331939,
0.3315559328,
0.248920083,
-0.1983090937,
-0.0402147137,
-0.1452148706,
0.3150455952,
-0.4208283424,
0.1110671014,
-0.2892518044,
-0.3250941038
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much:
```python
import nlp
import numpy as np
dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512}
indices = np.random.randint(0, 100_000, 1000_000)
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)])
batch = table.to_pydict()
writer.write_batch(batch)
writer.finalize()
# 9.12s
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
batch_indices = indices[i : min(len(indices), i + batch_size)]
# First, extract only the indices that we need with a mask
mask = [False] * len(dset)
for k in batch_indices:
mask[k] = True
t_batch = dset._data.filter(pa.array(mask))
# Second, build the list of indices for the filtered table, and taking care of duplicates
rev_positions = {}
duplicates = 0
for i, j in enumerate(sorted(batch_indices)):
if j in rev_positions:
duplicates += 1
else:
rev_positions[j] = i - duplicates
rev_map = [rev_positions[j] for j in batch_indices]
# Third, use `.take` from the combined recordbatch
t_combined = t_batch.combine_chunks() # load in memory
recordbatch = t_combined.to_batches()[0]
table = pa.Table.from_arrays(
[recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))],
schema=writer.schema
)
writer.write_table(table)
writer.finalize()
# 3.2s
```
| Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 210 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much:
```python
import nlp
import numpy as np
dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512}
indices = np.random.randint(0, 100_000, 1000_000)
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)])
batch = table.to_pydict()
writer.write_batch(batch)
writer.finalize()
# 9.12s
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
batch_indices = indices[i : min(len(indices), i + batch_size)]
# First, extract only the indices that we need with a mask
mask = [False] * len(dset)
for k in batch_indices:
mask[k] = True
t_batch = dset._data.filter(pa.array(mask))
# Second, build the list of indices for the filtered table, and taking care of duplicates
rev_positions = {}
duplicates = 0
for i, j in enumerate(sorted(batch_indices)):
if j in rev_positions:
duplicates += 1
else:
rev_positions[j] = i - duplicates
rev_map = [rev_positions[j] for j in batch_indices]
# Third, use `.take` from the combined recordbatch
t_combined = t_batch.combine_chunks() # load in memory
recordbatch = t_combined.to_batches()[0]
table = pa.Table.from_arrays(
[recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))],
schema=writer.schema
)
writer.write_table(table)
writer.finalize()
# 3.2s
```
| [
-0.2073034048,
0.1424285024,
-0.0256031621,
-0.1453502178,
-0.1025904566,
-0.1113142669,
0.1211354807,
0.5408861041,
-0.2365825027,
0.019071741,
-0.0381173864,
0.5862333775,
-0.1683036089,
-0.2764603794,
0.2058222741,
-0.0411370732,
0.0331521966,
-0.0362086594,
-0.2147116661,
-0.0471257605,
-0.0500187576,
-0.4499436021,
-0.2384401709,
-0.2234772146,
-0.0126472423,
-0.2257244438,
-0.1654448509,
0.0786909163,
-0.165457502,
0.0551609918,
-0.1150208041,
0.2012873143,
-0.1080076993,
0.1667571962,
-0.0001167829,
-0.1386465579,
0.0993147418,
0.1305752695,
-0.3299334645,
0.1783210635,
0.4515008926,
-0.0504891388,
-0.1290058047,
-0.1908956021,
0.1902826577,
-0.4143749475,
0.0865718201,
-0.1146505624,
-0.1485531479,
-0.0229182281,
0.1140141711,
0.3141122162,
-0.1818510592,
0.2556700408,
0.4748250246,
0.2703823447,
-0.3750653863,
0.3879558444,
0.258672446,
-0.021415567,
-0.1545353532,
0.2556576729,
-0.194923684,
0.0181235485,
0.1430735737,
0.1754682362,
0.1023448631,
0.4606058002,
0.1073969901,
0.4037256241,
0.2905987203,
-0.2549731433,
-0.2978286445,
-0.294187516,
0.2330024242,
-0.0797463208,
0.0570258312,
0.301626116,
-0.2735319734,
-0.2154008597,
-0.0974205211,
0.1640345156,
0.2480154037,
-0.2000269145,
0.3221797049,
0.3900921643,
0.2021175027,
-0.0607311502,
0.701834321,
-0.105781436,
0.4943526387,
-0.171297431,
0.0219093785,
0.4116857052,
-0.3191823065,
-0.2636018097,
-0.3010388315,
-0.1255466342,
-0.071155712,
0.1603336036,
0.6939637065,
0.2144634277,
0.1904993355,
-0.0473997071,
0.0462989099,
0.0036277692,
-0.3000271916,
0.0714232773,
-0.1324051619,
0.0648486763,
0.3124971092,
0.1253008842,
-0.077710852,
-0.3089743257,
-0.0426211879,
-0.2280755788,
-0.4801683128,
0.1160599887,
0.0091324989,
-0.3454588056,
-0.1375003457,
-0.0533411652,
0.0066610868,
0.152072221,
-0.1462169141,
0.2534677386,
-0.0821312964,
-0.1687267125,
-0.1135872528,
0.0287621357,
-0.0324032456,
0.0895733312,
-0.1062909737,
0.0718558878,
0.0299967658,
0.4717018008,
-0.2529066205,
0.0169552453,
0.0952401236,
0.3210923374,
0.043310456,
-0.1136180907,
0.0830292851,
0.1123676077,
-0.0979958624,
-0.1490405947,
-0.1326774508,
0.0459325649,
-0.3395206928,
0.3854328692,
0.025913626,
-0.1179541573,
0.0696306825,
0.1244064346,
0.2436411232,
-0.288732022,
-0.523055315,
-0.0648375303,
-0.0311093926,
-0.1096797958,
0.0887991786,
-0.0550133437,
0.0886197314,
-0.128846392,
0.0646334216,
-0.2630296052,
-0.0793605968,
0.1027544737,
-0.0587743446,
0.5555561185,
0.4522923827,
0.6798376441,
-0.0710056573,
0.0568024926,
0.1080943868,
0.0309064947,
0.6843825579,
0.1945418715,
-0.253213197,
-0.0193486623,
-0.1120894477,
0.0253336057,
0.3429555595,
0.2405737191,
0.0689611137,
-0.0779746994,
0.3746803701,
0.2942914069,
0.0483492911,
0.2648987472,
-0.487197727,
-0.1362498254,
0.2310034335,
0.4312669933,
-0.6047840118,
-0.3673206866,
0.0409885608,
-0.2627367079,
0.3437723517,
-0.1634199321,
-0.0241477918,
-0.0028756876,
-0.0728362426,
0.0040967185,
-0.1673829556,
0.1009120196,
-0.2770053446,
-0.0851028711,
-0.0123085901,
-0.0934437364,
0.2220734507,
-0.360988766,
0.1847949624,
-0.19152008,
0.1916127652,
0.2072873712,
-0.0104970541,
-0.1980128735,
0.4299574196,
-0.1024159342,
-0.0807145461,
-0.0310384352,
-0.297562778,
0.0371089615,
-0.1596857905,
-0.1389844865,
0.1140310243,
-0.2169332653,
0.1356178373,
0.3588958979,
-0.2914269865,
0.0721103325,
0.0999831408,
0.2370677441,
-0.0914404839,
-0.1885744333,
0.0344023667,
0.240128696,
-0.0574308075,
0.2263468951,
0.1186936498,
-0.2045535147,
0.1560781747,
-0.0530228578,
-0.4021675885,
0.5432927608,
-0.4847530127,
0.3439685106,
0.1877930909,
-0.242019996,
-0.1256661862,
0.2605872452,
-0.0751948953,
0.4508636892,
0.5965421796,
0.0635082796,
0.0748016611,
0.4007711709,
-0.2726922929,
0.0491740927,
0.447817117,
-0.047484424,
-0.0537610017,
0.0778427199,
-0.0244942885,
-0.2125132531,
-0.0856435075,
0.026968943,
0.2142338604,
0.2641349435,
0.1126311272,
-0.0479864143,
-0.0872230977,
-0.2304074168,
0.1614469737,
-0.0465983599,
0.0837043077,
-0.0975088626,
0.1120568961,
-0.030385362,
-0.2148164064,
-0.183016941,
0.0966956615,
0.1835554391,
0.1354514062,
0.0691548213,
-0.1409348547,
-0.1086598337,
-0.126320377,
-0.0809583813,
0.028073702,
-0.1020173728,
0.1147610024,
0.2489229739,
-0.2036471367,
-0.2030912191,
-0.1168931425,
0.3352034092,
-0.1054507867,
-0.1940309256,
-0.1823443323,
-0.0091364728,
-0.1343152374,
0.0485687815,
0.19787471,
0.3558700979,
0.3271755576,
0.1494712979,
-0.2200953215,
0.0215611253,
0.0938110128,
-0.2209095359,
0.096947521,
-0.3778562844,
-0.081289202,
-0.1770183295,
-0.426355511,
-0.2799152136,
0.0594400726,
-0.1173178032,
-0.090879865,
0.3733410835,
0.1376004666,
-0.206449762,
-0.1201335192,
-0.0493218414,
-0.0749144703,
-0.3606601357,
0.3090264499,
-0.1253743023,
0.1422899961,
-0.0030995524,
-0.1096467227,
-0.0249078292,
-0.5705386996,
-0.0554802343,
0.158188656,
-0.1193131283,
0.2787478864,
0.1174006164,
-0.1336580366,
-0.4510356784,
-0.0693097785,
-0.0896493942,
0.4983680546,
-0.0774880275,
0.2212918401,
-0.3810477257,
-0.0344087966,
-0.1012931764,
0.1404464245,
0.4684355259,
-0.1875356883,
-0.1023728848,
0.3078250885,
0.1736065894,
0.0701604709,
0.2383756489,
0.1195239127,
0.1213329956,
0.1363345534,
0.2258581221,
0.4733496606,
-0.047022488,
0.2490292937,
-0.2466055751,
0.0461115278,
-0.030770259,
-0.3000229895,
0.1443731338,
0.1948065013,
0.0175132286,
-0.1204535216,
0.2602733374,
-0.108793743,
-0.252651155,
-0.0579941496,
0.4636725485,
0.1634531319,
-0.2731418312,
0.5276742578,
-0.2075199485,
0.0069012763,
-0.0099867918,
0.2193981558,
-0.0758059174,
-0.2332173288,
0.086559996,
-0.0811879113,
-0.0393812619,
-0.0054833973,
-0.5912704468,
-0.093920432,
-0.6903492808,
0.2243588269,
0.203342095,
0.4551718235,
0.2934634984,
-0.3032827079,
0.4281887114,
-0.1267067641,
0.2624977231,
0.1844919622,
-0.2910937667,
0.2060335726,
0.0062209629,
-0.4882082045,
-0.0744893551,
-0.3385717571,
-0.3702447116,
0.0964808464,
0.2184394449,
-0.3918660581,
0.0253926292,
0.0135673117,
-0.0772424266,
-0.0157021545,
0.0119208703,
-0.3758604527,
-0.2466709167,
0.0783743709,
0.2998022139,
-0.0535791256,
0.0080257896,
0.1029723212,
0.2369660139,
0.1267011017,
-0.0103697116,
0.0648300946,
-0.0899242535,
-0.0197219756,
-0.0000943189,
0.1376553476,
0.1903958023,
0.0832222775,
-0.1275292933,
-0.0508881286,
0.2487169206,
0.0248965472,
-0.107637912,
-0.1637825072,
0.3971325159,
0.3331100643,
0.2223040462,
0.2512412071,
0.0435299501,
0.2704717815,
0.0193485804,
-0.4496093392,
0.0902748853,
-0.3458967209,
-0.0779213756,
-0.6981349587,
0.3353743255,
0.3034200072,
0.1467079073,
0.2382646948,
-0.1312589943,
0.2584006786,
0.3906692863,
0.186815992,
0.9388630986,
-0.3655800521,
0.4324248135,
0.317466259,
-0.2735366523,
0.0770979896,
-0.0952979848,
0.3620699644,
-0.1664984822,
-0.0615008809,
0.2290954888,
-0.2028223872,
-0.0359410271,
0.0739554986,
0.0364176817,
0.1265506446,
-0.0108729387,
-0.2703079879,
-0.2791454196,
-0.0251853801,
-0.3461185098,
-0.4222582281,
-0.064960964,
0.0090784859,
-0.1261394322,
-0.1887586415,
0.1764242649,
0.1053681523,
-0.3683367074,
0.1437903196,
-0.1949705034,
-0.0230598077,
0.1270229071,
-0.0127136279,
0.2234881669,
-0.2524958551,
-0.1077336818,
-0.1966213733,
-0.1868240535,
0.0435280204,
0.1743921489,
0.1419889331,
0.2909939587,
0.3207318485,
0.3545376956,
-0.3061875403,
0.2015722543,
0.0204856545,
0.2604016662,
0.0838743523,
0.0118565662,
-0.7292292714,
-0.250243783,
0.0936562866,
0.6161046028,
0.03013248,
-0.0538852401,
0.1784059405,
-0.365387857,
-0.0951614082,
0.0847701952,
0.0038556738,
0.1426537335,
0.3974074423,
0.2168786675,
-0.1787639111,
-0.0021241345,
0.338583529,
0.091630511,
0.1737975925,
0.2557826042,
0.0044424767,
-0.478767544,
-0.2208831608,
0.119575344,
0.0927254334,
-0.399561435,
0.25782758,
0.0304931086,
-0.0647595376,
0.143738851,
0.2030364126,
-0.0384069197,
-0.0316658616,
-0.3079480529,
-0.08399757,
0.1671337187,
0.488053292,
0.4494495988,
0.0407271497,
0.0059982208,
0.2657169402,
-0.4514321685,
-0.1856049895,
-0.2125833929,
-0.1643109173,
0.1183734089,
0.1486976743,
-0.1962723136,
-0.2467673123,
-0.2014065385,
0.1216195971,
0.1083657891,
0.2122838944,
0.0690099299,
-0.1696733683,
0.0784121901,
0.0565264896,
0.0680003092,
-0.0296170469,
0.0130020613,
-0.4090907276,
-0.3787910342,
-0.2591434121,
-0.2203104943,
-0.0359104648,
-0.0143614411,
-0.3235986233,
0.1757280976,
0.1370864213,
-0.1018622816,
0.5023978353,
-0.4558428228,
-0.282243669,
-0.2124385387,
-0.0117255496,
0.0002808532,
-0.0607920624,
-0.1332334876,
0.080844678,
0.1220133379,
-0.0661131665,
0.2327343225,
-0.176027298,
0.0310676116,
-0.1178011596,
0.2123599052,
0.5724337697,
0.2858692408,
-0.5049551129,
0.4132999182,
0.0761313289,
-0.1094661579,
-0.2035360783,
-0.3783609569,
0.2629653811,
0.0307832081,
0.0544829816,
-0.2800428867,
-0.1498419344,
-0.4016995132,
-0.1037763208,
-0.1208234727,
-0.4394891262,
-0.3144517243,
0.344271332,
0.3613232374,
-0.2875059843,
0.1918438822,
-0.026815569,
0.0144084068,
0.1336645633,
0.2126208097,
0.3895175755,
0.7033468485,
0.2981708944,
-0.4683303237,
-0.0908864886,
-0.0182530712,
0.5345422029,
0.2181617469,
0.3152850568,
0.3625563085,
0.1196433529,
0.0600797348,
0.1762860715,
-0.0175820701,
-0.142612502,
0.0021405655,
0.0642028227,
-0.0033143759,
-0.0859617591,
-0.2722112536,
0.181903854,
-0.3435495794,
0.3356222808,
0.236692518,
0.0677236393,
0.4312195778,
-0.4143012166,
0.1808574349,
-0.1028551385,
0.4148303866,
-0.2638714314,
-0.1417442858,
-0.0495334901,
0.1888810098,
0.2471140474,
0.0517047904,
-0.1387278289,
0.2436003387,
-0.0785280243,
0.0411724895,
-0.500312686,
-0.0093054026,
-0.0582352355,
0.2283152193,
0.4879379869,
-0.1585579067,
0.2480303943,
0.0245643593,
-0.1947029084,
-0.1007221788,
-0.0872061402,
-0.0288396012,
-0.1066077575,
0.1006261632,
0.1622858644,
-0.3728923798,
-0.0478511527,
0.1560518593,
-0.1136875078,
-0.1456871778,
-0.5345342755,
-0.1929797977,
-0.1256037652,
0.0831799507,
0.0428383239,
0.0916243419,
0.703435421,
0.4074105322,
-0.1263745427,
0.1671240777,
-0.2396189868,
-0.2513003945,
-0.2989161909,
-0.3349250853,
-0.1049491987,
0.2417287529,
0.5042906404,
0.284442544,
0.3205118775,
-0.0640758052,
0.1768755466,
-0.3291894794,
0.3407905102,
-0.1731744558,
0.2252850384,
0.2525815964,
-0.0485382527,
-0.217092663,
-0.6656163335,
0.1990624666,
0.2431152612,
-0.005819472,
0.0005774114,
0.0327275842,
0.156554684,
0.3020458519,
-0.1743310392,
-0.0529878661,
-0.1665407866,
0.2265947759,
-0.1683643162,
-0.2666844428,
0.2494228035,
0.0240984056,
0.0117010418,
0.0665722042,
0.1200325117,
0.0621144213,
0.0830297619,
0.1514192522,
0.5137016177,
-0.2719225883,
0.2024234235,
-0.2667109668,
0.0697063282,
0.1493950784,
0.3052286208,
-0.226048708,
0.0448298939,
-0.0256068911,
-0.2617835999,
-0.198085323,
0.0609433427,
0.438295126,
-0.1793804467,
-0.213215217,
-0.0514392331,
0.2328603268,
0.2575274706,
0.316108793,
0.1360978484,
-0.2586582899,
-0.0449452661,
-0.0011649743,
0.3642783761,
0.1605045944,
-0.1450718194,
-0.0107186399,
-0.1453754157,
0.3728182614,
-0.4335768521,
0.0835621133,
-0.3130491674,
-0.3294511139
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | Shuffling is now significantly faster thanks to #513
Feel free to play with it now :)
Closing this one, but feel free to re-open if you have other questions | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 29 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
Shuffling is now significantly faster thanks to #513
Feel free to play with it now :)
Closing this one, but feel free to re-open if you have other questions | [
-0.1669749618,
0.075892657,
-0.0756694898,
-0.1069155037,
-0.0451759957,
-0.1096985489,
0.1049449816,
0.5459723473,
-0.2224260569,
0.1107433066,
-0.0171533525,
0.5978964567,
-0.1472125351,
-0.2247788906,
0.1525784582,
-0.0917221904,
0.019747531,
-0.0066346466,
-0.2984015346,
-0.0681978539,
-0.1076797321,
-0.3407295942,
-0.1966791153,
-0.2414293289,
-0.0211046524,
-0.2671127021,
-0.1641610712,
0.1271980405,
-0.1086057872,
0.0356098227,
-0.18164666,
0.2036722749,
-0.1019433364,
0.2518036366,
-0.0001064402,
-0.1878171861,
-0.0013785405,
0.1245127916,
-0.3185118735,
0.1700074077,
0.4203976095,
-0.0366483666,
-0.1810669303,
-0.2470212132,
0.1335790753,
-0.2439092249,
0.1669649482,
-0.0882611647,
-0.0787348524,
-0.0348337963,
0.1946195066,
0.3067125082,
-0.1423861831,
0.131712079,
0.5130020976,
0.0983548239,
-0.333455354,
0.2333614528,
0.2945884168,
-0.0863216668,
-0.1773553938,
0.2387267947,
-0.0959550589,
-0.0672892258,
0.1371428072,
0.1144753546,
0.0959916338,
0.3252633512,
0.0591606088,
0.4156249762,
0.2406329066,
-0.2018207461,
-0.2674719393,
-0.2720341384,
0.202228874,
-0.0449450277,
0.1043061018,
0.2704423964,
-0.2393937856,
-0.159527719,
-0.0910152122,
0.1850959361,
0.2104176283,
-0.1917833537,
0.272406131,
0.4423380494,
0.2230267078,
-0.134795621,
0.6850681305,
-0.1429264694,
0.3533964753,
-0.0897840858,
0.0236880668,
0.4135656357,
-0.2834292054,
-0.3294467032,
-0.2499972135,
-0.1825530529,
-0.1107688546,
0.1838968545,
0.7327416539,
0.2453477979,
0.2195363194,
-0.0025336139,
0.0044260374,
0.0172558986,
-0.3033532798,
0.067669332,
-0.0833192468,
0.1741635054,
0.1895967722,
0.1265305877,
-0.0875516981,
-0.31225425,
-0.1035777554,
-0.1677164435,
-0.4825844765,
0.1387094259,
0.0155341141,
-0.2844126225,
-0.0667902753,
-0.0099284612,
0.0018035988,
0.2151008248,
-0.1538621485,
0.2751543224,
-0.0306299478,
-0.2389083058,
-0.1474361271,
-0.0921698436,
-0.0841054916,
0.0927618071,
-0.1854153275,
0.0111724008,
0.1070570424,
0.4471132159,
-0.1813145131,
0.0750130415,
0.0932676196,
0.3140339553,
0.0747543648,
-0.1450025141,
0.052906137,
0.0301001314,
-0.153879866,
-0.1871064901,
-0.1639689952,
0.1298395991,
-0.2964134812,
0.3371616006,
0.0634576306,
-0.1148028076,
0.1358176619,
0.2419949472,
0.2536458671,
-0.278349191,
-0.3240196109,
0.0042143194,
-0.0300783664,
-0.0588061251,
0.0889039636,
0.0079697873,
0.055805441,
-0.1506491899,
0.0332125574,
-0.2832565308,
-0.0301033165,
0.1387461126,
-0.0630682632,
0.4716359973,
0.378451705,
0.5905824304,
-0.0927201882,
0.0524725281,
0.151807785,
0.1000736207,
0.6754480004,
0.1847669184,
-0.2222538441,
0.0069721835,
-0.1234955341,
0.0189204216,
0.3299835324,
0.2190208435,
0.1064445004,
-0.0470621549,
0.4243717492,
0.3086517751,
0.0576072745,
0.2672396004,
-0.5271470547,
-0.1680125594,
0.2397634685,
0.4268018603,
-0.4836195111,
-0.3931615949,
0.0215594061,
-0.2457870394,
0.335241437,
-0.2223269194,
0.0048056208,
0.0780971497,
-0.0988783166,
0.0684456304,
-0.1722118407,
-0.0461622477,
-0.2284312844,
-0.0307573546,
-0.0511140078,
-0.0219240859,
0.2823065817,
-0.3760942519,
0.1389163285,
-0.2351230383,
0.2231093943,
0.1523119062,
0.1031892002,
-0.1222535521,
0.3160508871,
-0.1441679299,
-0.1249850765,
-0.0329153314,
-0.285846144,
0.0602336675,
-0.1428825259,
-0.1032398716,
0.0414223298,
-0.174318701,
0.1801925451,
0.4312620461,
-0.3207769096,
0.085142605,
0.153229624,
0.2604212761,
-0.1293295026,
-0.1546772122,
0.1511732638,
0.1778824031,
-0.0839823857,
0.2608782947,
0.0671198592,
-0.09817072,
0.1191635206,
0.0282845348,
-0.3607949317,
0.5761178136,
-0.4362379313,
0.2577604651,
0.1505966187,
-0.2896024585,
-0.1527444869,
0.1924868077,
-0.0689205974,
0.3874967992,
0.6559897065,
0.093346186,
0.0408646539,
0.4048005044,
-0.3637100756,
0.1366248131,
0.5051816702,
0.0175942816,
-0.0612065196,
0.0454889014,
0.0998163521,
-0.0828499049,
-0.1516594738,
0.0592622459,
0.1986664236,
0.3086874783,
0.1105104089,
-0.042908784,
-0.1522373259,
-0.225377202,
0.1467135996,
-0.081067875,
0.1443347186,
-0.046175424,
0.1731484532,
0.0282910205,
-0.2468808144,
-0.1958764344,
0.1010338366,
0.157845825,
0.1300911456,
0.0456535406,
-0.1185929552,
-0.1928806305,
-0.1469247341,
-0.0087563209,
-0.041058708,
-0.0655924976,
0.2203762531,
0.2674483359,
-0.2967944443,
-0.2441505194,
-0.0966950282,
0.3949588537,
-0.0981086865,
-0.0882320106,
-0.2022631317,
0.0434114039,
-0.1129606441,
0.1577926576,
0.209346354,
0.2783981264,
0.4065814018,
0.1497821212,
-0.2056584805,
0.1125962138,
-0.0035844906,
-0.2856873274,
0.0597444735,
-0.2784017622,
-0.0796291009,
-0.1288377643,
-0.3703229427,
-0.3678689897,
0.0662481263,
-0.1745668501,
-0.1471476108,
0.2800328732,
0.2361858785,
-0.1627960801,
-0.2388629168,
-0.224132061,
-0.0004680699,
-0.4718467891,
0.331335634,
-0.0771485716,
0.2015342563,
-0.0852284431,
-0.1230720356,
-0.0027070208,
-0.4613554478,
-0.0153977983,
0.1507294923,
-0.1685830951,
0.2793679237,
0.015095247,
-0.1759363562,
-0.4089840949,
-0.079742685,
-0.0427272432,
0.4191711247,
-0.1128402203,
0.2114581168,
-0.3544737399,
-0.0188406911,
-0.1047079638,
0.0991763249,
0.4139262438,
-0.1405699402,
-0.2141786814,
0.2670765221,
0.1871364862,
0.0565987006,
0.2416380495,
0.1690845042,
0.0107140616,
0.116399087,
0.260144949,
0.4409125149,
-0.0831342787,
0.3029328883,
-0.1711634248,
0.1169436499,
-0.0787568167,
-0.2479392439,
0.0979944989,
0.1595519483,
0.0225041732,
-0.1101272181,
0.3593632281,
-0.0794384927,
-0.2885240018,
-0.0989053398,
0.3730285764,
0.1068890914,
-0.2913453877,
0.56820333,
-0.1953886151,
0.0134632261,
-0.0165439732,
0.1917996258,
-0.0891629234,
-0.202738151,
0.0412722118,
-0.1133086607,
-0.0761410445,
0.0043632761,
-0.5783768892,
-0.1198520958,
-0.7263135314,
0.155349955,
0.2316436917,
0.3683965504,
0.2024151534,
-0.3260194957,
0.3546541035,
-0.1572314203,
0.3486218452,
0.1606162488,
-0.3252027333,
0.2688459754,
-0.0398485735,
-0.4078156352,
-0.0648061633,
-0.3783378899,
-0.3934671879,
0.1685017645,
0.2311155945,
-0.3417012393,
-0.0323170163,
-0.0146006234,
-0.1042357311,
-0.0056248293,
-0.0057703312,
-0.3624523878,
-0.2114627808,
-0.0571438894,
0.308336556,
-0.0509892516,
0.1128476933,
-0.0503515974,
0.1073437482,
0.1902980059,
-0.0195576977,
0.1275954545,
-0.0592936836,
0.0056248396,
0.0301181581,
0.1298809797,
0.1527163535,
0.1490028054,
-0.1030580774,
-0.0561413541,
0.1591080725,
0.1278183311,
-0.1362478584,
-0.2232070714,
0.4086348414,
0.3234089017,
0.2304272354,
0.2706475854,
0.0015276163,
0.3054818511,
0.0099504283,
-0.3429879248,
0.1012384817,
-0.3108820617,
-0.1403184384,
-0.6326966882,
0.2537316084,
0.2337564975,
0.1193954647,
0.2409455776,
-0.2747866511,
0.1304341257,
0.3508599401,
0.1714957803,
0.9784497619,
-0.3513527513,
0.4275634289,
0.2920377553,
-0.159937039,
0.1142090708,
-0.2114715874,
0.4349346161,
-0.1626184583,
-0.0779477507,
0.2206715047,
-0.1078559905,
-0.0328956284,
0.1291022003,
-0.0351384282,
0.1118036062,
0.024085762,
-0.2238419801,
-0.3050849438,
-0.0248685442,
-0.3679128885,
-0.4044307172,
-0.1523009092,
0.0756225511,
-0.0353099369,
-0.2183145583,
0.0845696479,
0.0569173358,
-0.3565788865,
0.1671096981,
-0.1411595792,
-0.0466480404,
0.0424328223,
-0.0049427859,
0.1969113946,
-0.219866097,
-0.0890042931,
-0.1474566758,
-0.1571684331,
0.129410699,
0.1665557176,
0.1377654225,
0.2241070867,
0.3170352578,
0.2754783928,
-0.2594662309,
0.2806793749,
-0.0948649198,
0.1715534478,
0.0587381534,
0.0107995514,
-0.7354447842,
-0.2590074837,
0.062895678,
0.4252833128,
-0.0435124487,
0.0112037295,
0.2331182957,
-0.4184879959,
-0.1625943631,
0.1803778708,
-0.0564529002,
0.0677823946,
0.4045179486,
0.2591699064,
-0.2443017364,
-0.0556295849,
0.3341699243,
0.0881199986,
0.192171827,
0.2500742376,
0.0357506759,
-0.4441969693,
-0.3494408429,
0.0937157348,
0.0310788937,
-0.285161227,
0.2599406838,
0.0369749106,
-0.1273553073,
0.1988563389,
0.2838095129,
-0.0391923226,
-0.0405679196,
-0.2472267598,
-0.0956169814,
0.0702370256,
0.4469085634,
0.4409601092,
0.0791368559,
-0.0008867784,
0.368152827,
-0.3891653121,
-0.129937619,
-0.333552897,
-0.1338437498,
-0.0133703966,
0.1615584642,
-0.1246139407,
-0.2722465098,
-0.1843120158,
0.2149249911,
0.1929068565,
0.226962775,
-0.0056596301,
-0.2980474532,
0.0635205656,
-0.0011384354,
-0.0246390626,
0.0445705429,
0.0134923588,
-0.3567685783,
-0.3619441986,
-0.2215155959,
-0.2338104993,
-0.1148811206,
-0.0143769775,
-0.1896768063,
0.2071965635,
0.1564918905,
-0.0573201776,
0.4489631951,
-0.402782321,
-0.3101199567,
-0.2046224028,
-0.0101117725,
-0.0348245054,
-0.0576542504,
-0.0612211749,
0.071566008,
0.1007818356,
-0.0398186445,
0.2357550412,
-0.1027976274,
-0.0396682769,
-0.0157077909,
0.174631238,
0.5327723622,
0.239319548,
-0.4209708571,
0.3680212796,
0.2163216472,
-0.1668010056,
-0.1690333188,
-0.3094879985,
0.162650615,
0.0659177825,
0.0296355467,
-0.2250951827,
-0.1986941248,
-0.3012600541,
-0.0637250021,
-0.1909378469,
-0.3947407305,
-0.1797789037,
0.3211911619,
0.3621632159,
-0.300388217,
0.1553272158,
-0.031640783,
0.0585021414,
0.1827101409,
0.2390764058,
0.368366152,
0.6607503891,
0.3610319197,
-0.472435236,
-0.114783518,
-0.015102203,
0.5250040889,
0.230385974,
0.2822841704,
0.3461495042,
0.1851512343,
0.0884338841,
0.0645426437,
-0.0455437861,
-0.091430977,
-0.0940986946,
0.0419208594,
-0.0113568902,
-0.1790164411,
-0.2583904266,
0.1940493286,
-0.2067514658,
0.3013901711,
0.2567063868,
0.0706088319,
0.4215823412,
-0.4581940472,
0.2092619836,
-0.1324178427,
0.4662487507,
-0.3132483661,
-0.0837446302,
0.0033859846,
0.0879183933,
0.2972173095,
0.0233024135,
-0.1268872619,
0.2161460668,
-0.159712553,
0.0817432851,
-0.5459905863,
0.0270188954,
-0.1925854832,
0.2017215341,
0.536264658,
-0.1407138407,
0.3526444435,
0.094116129,
-0.255708307,
-0.1196411029,
-0.0964166299,
-0.0493318439,
-0.1389131099,
0.1064431071,
0.2326950729,
-0.3602102995,
-0.053647723,
0.1026570052,
-0.2391815633,
-0.1113289744,
-0.4861655533,
-0.2253014445,
-0.1179694608,
0.0232421365,
0.1024109125,
0.1478253603,
0.7567031384,
0.342925638,
-0.1528653353,
0.1661729813,
-0.3669347763,
-0.3012740314,
-0.2292391956,
-0.2744219601,
0.0347885713,
0.1922418773,
0.4784705639,
0.2030565739,
0.1948629916,
-0.0333127603,
0.097869575,
-0.3102419078,
0.335552752,
-0.2313392758,
0.3123430014,
0.1673238277,
-0.0707293004,
-0.152050063,
-0.6242112517,
0.1967943609,
0.1044085175,
0.0960790291,
0.0145559795,
0.0407964326,
0.1834351271,
0.3243215978,
-0.1760914475,
-0.0734484494,
-0.2031286508,
0.1617669761,
-0.1379483193,
-0.2202109545,
0.1556530893,
-0.012902678,
-0.033217337,
0.1238513887,
0.1579963118,
0.0604771934,
0.1138710231,
0.1917483062,
0.474563688,
-0.1944720149,
0.2417830378,
-0.2040428966,
0.0080960887,
0.1869806498,
0.2431638837,
-0.2253530622,
0.2110218406,
0.0181422569,
-0.2957252264,
-0.2494244426,
-0.068808943,
0.3604047894,
-0.1840325296,
-0.2736570239,
-0.1092585027,
0.1635108143,
0.2349599898,
0.3031382859,
0.0220222045,
-0.2748111486,
-0.0233340915,
0.0324436016,
0.2525330484,
0.2655860186,
-0.1720366329,
-0.080896005,
-0.1346877068,
0.2549240589,
-0.4111461341,
0.0948214158,
-0.2713312805,
-0.3557109237
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en')
`
Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s]
Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s]
Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s]
`
Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? | 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 38 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en')
`
Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s]
Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s]
Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s]
`
Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? | [
-0.2754461169,
-0.1981759965,
-0.0195055529,
0.4694989026,
0.0656868517,
0.1942016482,
0.0270851701,
0.2684628069,
0.0861186385,
-0.0311720315,
-0.2506633103,
-0.0679128245,
0.2125767022,
0.0307872295,
-0.0628227592,
-0.1890517175,
-0.1460021585,
0.1014119536,
-0.2369926721,
-0.0269571338,
-0.2904828489,
0.2036182135,
-0.0906959549,
0.1271256506,
0.2401778102,
0.0780036375,
-0.0501666181,
-0.1968959719,
-0.1596405059,
-0.2748229802,
0.5160508752,
0.3601160347,
0.0586538874,
0.1450446248,
-0.0001219386,
0.0825735554,
0.1835664064,
-0.1369363964,
-0.363604635,
-0.1387349814,
-0.5023858547,
-0.3797952831,
-0.0570707135,
-0.0451344959,
-0.028694557,
-0.4139440954,
0.2948007286,
-0.1618005335,
0.2084504813,
0.3149535358,
0.1214061677,
0.1912998557,
-0.184295997,
0.0588120334,
0.2260122895,
-0.2973446846,
-0.1599633694,
0.1628722548,
0.091137059,
-0.0998704955,
0.1882560402,
0.0394496471,
0.1054433957,
0.4685545564,
0.088175185,
0.1837194115,
0.0343795829,
-0.3379811049,
0.130381912,
0.467702657,
0.7240513563,
0.0134220915,
-0.5606609583,
0.1094952524,
-0.1864444315,
-0.1793484539,
0.1590448171,
0.2385326624,
-0.3889275193,
-0.0097061377,
-0.2580253184,
0.154127121,
-0.2150072157,
0.5520459414,
-0.153866604,
0.6958839893,
0.2310097069,
0.1035005376,
0.2030014545,
-0.0791505426,
-0.0816327035,
-0.1097037047,
0.0649883002,
0.1140194014,
-0.4582260847,
-0.1419680119,
-0.2928100526,
-0.056524165,
0.0961093828,
0.0370482393,
0.2588018477,
0.3004490733,
0.0732927546,
-0.0901718661,
0.2149015367,
-0.0372555517,
-0.1363030374,
-0.1615837514,
0.3071224689,
0.0234270636,
0.1086893827,
0.1278398037,
-0.0146291908,
-0.0734967589,
-0.3333624899,
0.0429437347,
-0.0641036779,
0.0900535882,
-0.4714157581,
-0.1830094606,
-0.1725572199,
-0.3095320761,
-0.2633672953,
0.2749700248,
-0.1472435594,
0.2098656893,
0.0350210704,
0.164162755,
-0.0373850204,
-0.2366257608,
-0.0851307288,
-0.0776007101,
-0.1194324791,
0.0852762461,
0.3873593807,
0.2008734345,
0.1021283045,
-0.1979429424,
-0.4624218345,
0.17575562,
0.0462519787,
-0.1504184753,
-0.3103295267,
0.21442388,
0.0229125861,
0.5044224262,
0.0043040663,
0.2673936784,
-0.2623715997,
-0.0306957699,
0.047463458,
0.1335315704,
0.1591809094,
0.0375398211,
-0.1781827062,
-0.0758743435,
-0.411655277,
0.1583165824,
-0.1979247928,
0.0384487659,
-0.3133223653,
-0.0542283207,
-0.443659097,
-0.0637915507,
0.2325397283,
0.37268278,
-0.2943879366,
-0.1404790729,
-0.3939939141,
-0.0772319734,
0.2761008143,
0.4165424705,
-0.0116093336,
0.0389963165,
-0.1322286129,
0.013520631,
0.6128703952,
-0.0660048574,
-0.5310537815,
0.4080591798,
-0.352997005,
0.094989188,
0.2438892424,
0.2227176726,
0.0412157439,
-0.038121663,
0.1125602201,
0.5967072845,
-0.0655450821,
0.0432799943,
0.0339887068,
-0.39139992,
0.488846004,
0.1582464427,
-0.0716147199,
0.1904319823,
0.0406711884,
0.2375050634,
0.4658764303,
0.001644894,
0.1256797016,
-0.0367694758,
-0.0768178776,
-0.1869158596,
0.037169192,
0.0805692822,
-0.8039491177,
0.3596591353,
-0.0426548608,
-0.0757529661,
0.0591387339,
0.0498418733,
-0.1687220186,
-0.3384788334,
0.1157401428,
0.1946619898,
0.0570867658,
0.424905628,
-0.0243317764,
-0.0735513121,
0.0306159053,
0.2424017936,
0.1400819868,
0.0745666102,
0.0931104347,
0.0142261339,
0.0210616849,
0.1914709955,
0.5240713954,
-0.2323474437,
0.1202667579,
-0.1981445551,
-0.0477990285,
0.0404799283,
-0.13486588,
0.3278015256,
0.047276441,
-0.1049359068,
0.0062304442,
-0.3015389442,
-0.0232193489,
0.5032981634,
0.092562966,
-0.212978974,
-0.0748015121,
0.2086765766,
0.3825478554,
0.3309426308,
0.3173203468,
0.1293126643,
0.3910720944,
-0.1069187298,
0.1999787539,
-0.1739578694,
0.218221426,
0.1208613366,
-0.0325229689,
-0.0482301861,
-0.1440730095,
0.4479545057,
0.4699534476,
-0.0467508435,
0.0359254964,
0.2993103266,
0.0086815795,
-0.0588147193,
-0.211462602,
0.4395288527,
0.4815128148,
0.0023184095,
0.3339685202,
-0.0354883224,
0.2888123095,
-0.4605614245,
0.2112390548,
0.1993151307,
-0.3576087356,
0.1509038657,
0.0544255264,
-0.06240822,
-0.1587809473,
0.0544618145,
0.3649359345,
0.3378578424,
-0.1209442839,
0.107522428,
-0.6640238166,
-0.5608866215,
-0.1469940245,
-0.1450153291,
-0.1277521998,
-0.2961665988,
-0.0341591947,
0.3210786879,
-0.1442074627,
0.0491754897,
-0.0051480844,
0.1736541688,
-0.0359970294,
0.08244396,
-0.3095358014,
-0.0627546236,
-0.2631095052,
0.0413991958,
0.3632285893,
0.2588677108,
0.3428499401,
-0.3035114706,
-0.2165749222,
-0.2507109642,
-0.0878895149,
-0.1628998071,
-0.1206063628,
0.0440181457,
-0.0509420112,
0.6214649677,
0.0594322234,
-0.2801194489,
0.0967659503,
0.0080836676,
-0.1996394396,
-0.0294787362,
-0.0728670806,
0.0812950879,
-0.0819146484,
-0.4950374067,
-0.5639945865,
-0.4488961697,
0.3042041659,
-0.0260780063,
0.4307360649,
0.1804792434,
-0.4492823184,
-0.0245242342,
0.2001231909,
0.1783766598,
-0.099399291,
0.2111730874,
0.5299038291,
0.0487382598,
-0.3680869341,
0.132400617,
0.1844146997,
0.1965641081,
0.5387356877,
-0.5226666927,
0.1722507775,
-0.196816206,
-0.3020075858,
0.2634519041,
-0.2586894631,
0.1561907828,
-0.2869670987,
-0.1237123236,
-0.0530794598,
-0.1602718383,
0.0036501891,
0.1923753172,
0.2642641068,
0.105842419,
0.2024155259,
0.0867902711,
0.3931769729,
0.2769284546,
-0.012825653,
0.410654366,
0.0292586908,
-0.1475885212,
0.1673335582,
-0.2676241994,
0.0524179563,
-0.1229719669,
0.3658305109,
0.4481180906,
-0.2541320324,
-0.1831544936,
-0.3033002019,
0.0940264463,
-0.0100965668,
-0.3930919468,
0.0041978876,
0.012255894,
0.0525958724,
0.2146440446,
-0.0400629453,
-0.033200331,
-0.3105882108,
0.0108706914,
0.2935234308,
-0.0451612957,
0.185049355,
-0.028055856,
-0.0978084356,
-0.5492728949,
0.2894974351,
0.0763229802,
0.7073533535,
-0.1326803863,
0.1520881206,
0.07236702,
-0.0145368921,
0.3030672371,
-0.1729929149,
0.4643155038,
0.1467849016,
-0.1720147133,
-0.3408594429,
-0.1419170201,
-0.1690537035,
-0.1852250695,
0.3035876453,
0.3525134623,
-0.5763118863,
-0.3394090235,
0.0019276654,
0.1817183942,
-0.156326741,
0.0998174027,
-0.1148845777,
-0.4248750508,
-0.0797264576,
-0.1973153651,
-0.1418590695,
0.1513554752,
-0.0258546248,
-0.1020519361,
0.1112805009,
-0.1125813425,
0.100893423,
0.0968137756,
0.0111810649,
0.4100052714,
0.2851956189,
0.1245304123,
0.1230276525,
0.1208341196,
0.4883977175,
0.2290774137,
0.0528074391,
0.2032565325,
-0.0611123517,
-0.1043683812,
0.5792753696,
0.0183538962,
0.2489415854,
-0.0697892383,
0.1338157505,
-0.0625193343,
0.1462150216,
0.2862615585,
-0.3440870643,
-0.2097565234,
-0.326593399,
0.4035039842,
0.0848556086,
-0.1049615368,
0.3273224533,
-0.083392106,
-0.2306992412,
-0.0298584551,
0.123799786,
0.9365189672,
-0.1632585227,
0.1926653087,
-0.0968297794,
0.0193082057,
0.3620096743,
-0.0062119286,
0.1284437776,
-0.0610414445,
-0.3517691493,
-0.0668427721,
0.1129167303,
-0.0246469397,
0.3345566988,
-0.2419378459,
0.4412823617,
0.1158211082,
0.3251465559,
0.428950578,
0.1513630897,
0.0347835645,
-0.040363878,
-0.2547501922,
0.0458969176,
-0.1982331276,
0.4878912866,
-0.0211247411,
-0.3443233073,
-0.1988644004,
-0.0988530815,
-0.4196379185,
0.041586481,
-0.3956825137,
0.0358495079,
-0.3102167249,
-0.0945119262,
0.1591802239,
0.0962362587,
0.2075096369,
0.076822944,
-0.456687063,
0.0620990545,
-0.6321642399,
-0.0321622603,
0.0685847476,
-0.1318037808,
-0.1424509585,
-0.1964862645,
-0.1143296733,
-0.169612512,
0.1090630442,
-0.2224172354,
-0.0756762549,
-0.1023715585,
-0.4478808343,
0.2547481358,
-0.1786807925,
-0.1608709693,
-0.2535404861,
-0.1225442067,
0.0466517732,
-0.164588362,
-0.039700795,
0.2860146463,
0.1273249835,
-0.1963329166,
-0.0019030641,
0.6198268533,
0.00290961,
0.105477497,
0.3953413963,
0.0506548397,
-0.1604820043,
-0.2704817057,
-0.3811042905,
-0.1060792357,
-0.1625467092,
-0.0781913027,
-0.2101413757,
0.0140311709,
-0.0060378578,
0.4558544457,
-0.0392553098,
0.1682027429,
0.0280108079,
-0.6202652454,
-0.1609708518,
0.1318266988,
-0.176539883,
0.1199001148,
-0.5219162107,
0.1192381978,
0.1135822609,
0.4160391986,
-0.209212929,
0.0565697066,
-0.3388038278,
0.0471050255,
0.2880388796,
-0.070682548,
0.2289940864,
0.1886252314,
-0.0341754816,
0.025163535,
-0.3593530655,
-0.0542406775,
-0.0218978524,
0.2447006106,
0.1939215958,
-0.3757941127,
0.2078463584,
-0.2565252483,
-0.0859251171,
-0.0188447405,
0.0220741127,
-0.1119567528,
0.0593066104,
0.0382558033,
0.2219019681,
0.1416695118,
-0.2665586472,
0.1743683517,
0.0305274185,
0.3759010434,
0.1019112542,
0.2991653979,
0.046889618,
-0.084833473,
-0.4554963112,
-0.2001156062,
0.1027136445,
0.110480316,
0.3243235648,
0.0250200201,
-0.0200867504,
0.0019962182,
0.197902441,
0.5765165091,
0.0147555759,
-0.0014472732,
0.1004848182,
0.0253084656,
-0.2922024131,
-0.1287102252,
0.4113743007,
-0.0201067198,
-0.0409841686,
0.0618021078,
0.1289478391,
-0.2663395703,
-0.0094034262,
-0.2022635043,
0.4215307832,
-0.0747955889,
0.0920513719,
0.3748521209,
0.1693939716,
0.0775662363,
-0.0218251906,
0.0485170893,
0.1603423357,
0.2448491156,
-0.2588812411,
0.2283002883,
-0.1019000411,
0.0528461039,
-0.1000814512,
-0.3135135472,
-0.1546794325,
0.628254354,
-0.0257668849,
0.0091526546,
0.2310028672,
0.0964127555,
-0.0531195141,
-0.2443244159,
-0.3528071046,
0.1790960133,
0.25874421,
-0.1399998069,
-0.2276781499,
-0.0766247734,
-0.4428304136,
0.1516769528,
-0.1457246691,
-0.4017062485,
0.269056201,
0.2768546939,
0.0600420572,
-0.2822738588,
-0.3852899671,
-0.1095985323,
-0.0400091894,
-0.3327304423,
0.1910598427,
0.011470506,
-0.1317569613,
0.1907148659,
0.1674358994,
-0.0386509821,
0.1761792749,
0.0461454578,
0.1767431349,
-0.0575562343,
-0.0859022066,
-0.0975408331,
0.2834542692,
0.2556300759,
-0.1936447173,
0.4711661935,
-0.01744828,
-0.053640034,
0.18638587,
0.1968055665,
-0.2136812955,
-0.1679443866,
0.4751256406,
-0.1047999039,
0.0741504729,
-0.0653726533,
-0.1176450476,
-0.2411351949,
-0.1365991086,
-0.0488954224,
-0.107115373,
0.3333058357,
0.0484648682,
0.0064600981,
-0.1535180062,
0.9997261167,
-0.0436171144,
0.2473962158,
-0.2425630689,
-0.3746013641,
-0.6246225834,
0.0966062769,
-0.2321972698,
0.089879781,
0.2122485042,
0.1397722661,
0.101681605,
0.2786850035,
0.0979445577,
0.5578717589,
-0.2036717087,
0.2489027381,
-0.4591289461,
-0.303642571,
0.0157663599,
0.4082071185,
-0.2625908256,
-0.4670157433,
0.481346637,
-0.3863251805,
-0.0498684831,
-0.0533832237,
-0.0902344808,
0.243676275,
0.3555134237,
0.3386852741,
0.0117223319,
0.635293901,
0.0285194479,
-0.1947277635,
-0.3011881113,
-0.0414865762,
-0.1197320372,
-0.0060223886,
0.1648762077,
0.1999555081,
0.0487305075,
0.4505468607,
-0.2935017049,
0.2260507494,
-0.2680615485,
0.288716048,
0.1474457085,
0.1920250356,
-0.1904370934,
0.0886309594,
0.1265806854,
-0.0310887657,
-0.0599887744,
-0.1564523727,
-0.5516495705,
-0.2328880876,
0.5788880587,
-0.2664409876,
-0.2547084391,
-0.1597996056,
0.3558369279,
-0.0425941646,
0.3084101379,
-0.0320452712,
0.2063067108,
0.1983069181,
-0.0943487212,
-0.3142536879,
0.2210626751,
0.0923451856,
-0.3264965415,
0.0395810306,
0.0355665684,
0.1923962086,
-0.4283828139,
-0.2856142521,
-0.2166662365
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | > The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18
The original source for the files may provide slow download speeds.
We can probably host these files ourselves.
> When trying to download wmt17 zh-en, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that
> Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
| 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 97 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
> The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18
The original source for the files may provide slow download speeds.
We can probably host these files ourselves.
> When trying to download wmt17 zh-en, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that
> Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
| [
-0.2686091363,
-0.140475288,
-0.0071865297,
0.5020002127,
-0.0168406349,
0.2251575142,
-0.0530772321,
0.2993670702,
0.0911351666,
-0.0368140303,
-0.2252268344,
-0.0799275711,
0.1161911562,
0.0058767851,
0.0343050174,
-0.2081656456,
-0.1193281114,
0.0341801792,
-0.3183063865,
0.0080130054,
-0.3116198182,
0.1468858421,
-0.0868214741,
0.0733701661,
0.224064827,
-0.0069651157,
-0.2052784562,
-0.0254713092,
-0.1000095308,
-0.3394286335,
0.4278952181,
0.2947576344,
0.0844036192,
0.2282150835,
-0.0001149252,
0.0709942579,
0.1664439589,
-0.1815564781,
-0.3427715898,
-0.0916525424,
-0.5097864866,
-0.4445600212,
-0.1338346899,
-0.0916889533,
-0.0498922057,
-0.4900561571,
0.2561154366,
-0.1568860561,
0.3314899206,
0.3418520391,
0.1644344628,
0.2418353558,
-0.1462136805,
-0.008507695,
0.2681644559,
-0.2418028414,
-0.1191279069,
0.176872611,
0.0858173743,
-0.0647065192,
0.2019877881,
0.0539439321,
0.0507231131,
0.4143848121,
0.0648013875,
0.1147263274,
-0.0066976808,
-0.2883558571,
0.0657298639,
0.4004979432,
0.7070286274,
0.0280686449,
-0.5350029469,
0.0941140875,
-0.0312397201,
-0.1249268949,
0.1994023919,
0.2483090758,
-0.2839076817,
0.023874836,
-0.2142185718,
0.048521094,
-0.1946801394,
0.5462663174,
-0.033570312,
0.6662646532,
0.2300116271,
0.0512684025,
0.0850211903,
-0.0345221236,
0.0830067918,
-0.1274169832,
0.0934070721,
0.0012820301,
-0.3166340292,
-0.0942260176,
-0.2909421921,
-0.0173592642,
0.0405310839,
0.0083771786,
0.2951496243,
0.2358807027,
0.0183147173,
-0.0712850541,
0.1781583279,
-0.1028663442,
-0.1670799851,
-0.2394864112,
0.3152792156,
0.1925611794,
0.1304365247,
0.140772298,
-0.0634533241,
-0.1405705661,
-0.4265269637,
0.1794081628,
0.0678063631,
0.0819200724,
-0.3032383919,
-0.2359867394,
-0.0952851996,
-0.2585287392,
-0.2333589792,
0.2315389216,
-0.2232053131,
0.3033595085,
-0.0140737547,
0.0879308656,
-0.0782802925,
-0.3754114211,
-0.1115829572,
-0.0619360693,
-0.0947365537,
0.137595132,
0.4606333971,
0.2327837199,
0.2125829011,
-0.1855625659,
-0.3248115182,
0.1220187917,
0.0827297866,
-0.0089066681,
-0.2034356147,
0.2094961554,
0.038903188,
0.5146358013,
-0.0152601246,
0.2459965944,
-0.2595427036,
-0.0184405129,
-0.0653083175,
-0.0278567411,
0.1655281484,
0.0922636539,
-0.1611422896,
-0.1466825753,
-0.3369726539,
0.0296971947,
-0.1942424923,
-0.0796275437,
-0.3151358366,
-0.0935670435,
-0.3342670798,
-0.1286200434,
0.2433602661,
0.4242477119,
-0.3487029374,
-0.0085136686,
-0.3759480417,
-0.0351441726,
0.2923085093,
0.3570437431,
-0.079597868,
0.0716934055,
-0.1589743644,
-0.1769258082,
0.5281012654,
-0.1343884319,
-0.4725865722,
0.2704167962,
-0.3284673691,
0.1723009497,
0.2460232973,
0.1870342195,
0.0267484058,
-0.0835052654,
0.1047137305,
0.6350846887,
0.0012760161,
0.0515117384,
-0.0706807077,
-0.3561584651,
0.3798071146,
0.1910877228,
-0.0478559434,
0.1234173924,
-0.0262467526,
0.2235043943,
0.429949075,
-0.006066164,
0.2387934178,
-0.0190675315,
-0.1557719409,
-0.1321374327,
0.0291817244,
0.0744896531,
-0.7336919308,
0.3186696768,
-0.1053292304,
-0.1652561277,
0.0810761377,
-0.0034323297,
-0.275120616,
-0.3440808654,
0.0790602416,
0.0972763449,
0.1050883532,
0.5249678493,
-0.0412879251,
-0.0831202269,
0.0002134353,
0.1862973124,
0.1373163164,
0.0402249731,
-0.0418930389,
0.05326657,
-0.0445457436,
0.1713177711,
0.5440143347,
-0.2567560673,
0.171738416,
-0.2130447924,
-0.0371352844,
0.1358811259,
-0.1739645153,
0.3611806929,
0.1119713113,
-0.1792989075,
0.0926526785,
-0.3793900907,
0.0370960645,
0.5412628055,
0.0641172007,
-0.1362141222,
-0.07269416,
0.1897851527,
0.1448701024,
0.2603431046,
0.2921272218,
0.1436412632,
0.4012098312,
-0.1410464793,
0.1060653776,
-0.0886812955,
0.1613161415,
0.1243792176,
-0.1367562115,
-0.0958057791,
-0.1503303945,
0.410687089,
0.4148619771,
-0.0372205153,
0.0187884495,
0.2357937098,
-0.0668034405,
-0.0749669001,
-0.2241238803,
0.5326932073,
0.4717301726,
0.0562895201,
0.3155215979,
0.027367847,
0.2627881765,
-0.4930696785,
0.25849998,
0.2068520486,
-0.3441701531,
0.2035881728,
0.0771227032,
-0.137841031,
-0.1374784112,
0.0716201663,
0.3822634518,
0.2573138773,
-0.1986297369,
0.0536605678,
-0.6793519258,
-0.5351994634,
-0.3434390724,
-0.2511227131,
-0.148251608,
-0.3052470982,
0.1282155216,
0.2785875797,
-0.2804344296,
0.12026795,
0.0317885838,
0.2259988934,
-0.1738285869,
0.1984795928,
-0.2139066011,
-0.135635525,
-0.2548263371,
0.0976744294,
0.3586399555,
0.3376230299,
0.2934270203,
-0.3645832539,
-0.1957136095,
-0.3108947873,
-0.0325512961,
-0.159915626,
-0.0036146112,
0.137274459,
-0.0390130877,
0.5934832692,
0.1324962378,
-0.3987887502,
0.1563428938,
-0.0093736174,
-0.0448997356,
-0.0634621009,
-0.0964997634,
0.0993849337,
-0.0341017991,
-0.6237546206,
-0.5904381871,
-0.5234639049,
0.1860347539,
-0.0353249907,
0.4430013597,
0.1396967173,
-0.3087504804,
-0.0415652543,
0.1024816409,
0.1844174266,
-0.0566677824,
-0.0280262008,
0.5375438333,
-0.1619545817,
-0.3553984165,
0.1727953553,
0.2059613764,
0.2009566724,
0.4632633328,
-0.5046479106,
0.0646779165,
-0.1197667271,
-0.2729348242,
0.1870684773,
-0.1981200576,
0.1420207918,
-0.1899033487,
-0.1756812185,
-0.0921619236,
-0.1102057472,
-0.0474178344,
0.1542585194,
0.3609260023,
0.1070158333,
0.0580695421,
0.0540271886,
0.5281319618,
0.2144056708,
0.028845109,
0.3825374842,
0.069856137,
-0.0967575312,
0.2006233186,
-0.2211505473,
0.0559332259,
-0.149336502,
0.3521568179,
0.4451559782,
-0.1774460226,
-0.1599804312,
-0.332405448,
0.0135208415,
-0.1174127981,
-0.4121014178,
0.0676091835,
0.0765769407,
0.084815979,
0.2502113581,
-0.0907303616,
-0.1047706157,
-0.2486216426,
0.1401178539,
0.2866022587,
-0.0554876849,
0.2225296199,
-0.1112921908,
-0.0839064941,
-0.4219072461,
0.327236563,
0.0696535632,
0.666690886,
-0.0727572292,
0.0959879905,
0.0811179876,
-0.0427733473,
0.3269476891,
-0.2589516938,
0.3664773703,
0.1476516873,
-0.0270379186,
-0.3202749789,
-0.1805519462,
-0.1551138759,
-0.1363300085,
0.2854501605,
0.2413644195,
-0.5075768828,
-0.2647192776,
-0.01201146,
0.3046758771,
-0.2263694853,
0.1271535158,
-0.0926807597,
-0.4546774924,
-0.1686351448,
-0.248386547,
-0.1952326745,
0.0476713069,
-0.0636225268,
-0.1080400497,
0.1206830814,
0.0130326748,
-0.0089068124,
0.1007080823,
0.1134607866,
0.47041291,
0.2650996149,
0.1576222181,
0.2695898414,
0.2070242316,
0.4462998211,
0.1590934843,
0.0876424238,
0.111257337,
-0.0822959766,
-0.0150391497,
0.5899686217,
0.0758287311,
0.1944027692,
0.0797458664,
0.1139243841,
-0.1158551499,
0.1670591533,
0.3086412549,
-0.4566769302,
-0.1548494697,
-0.394379288,
0.3080307245,
0.051821474,
-0.1139826477,
0.3615952432,
-0.0987037495,
-0.2175687253,
0.0566776544,
0.1134929135,
1.0516226292,
-0.0584438816,
0.1815831214,
-0.1388887167,
-0.0930827409,
0.4372520149,
0.0056294305,
0.2301349193,
-0.0400012322,
-0.3949955106,
-0.0398701504,
0.1387973577,
0.0006316971,
0.3304264545,
-0.3092354834,
0.4790841341,
0.1480705142,
0.2751790583,
0.2732683122,
0.0889243856,
0.0763863698,
-0.098235555,
-0.3572639525,
0.0540135838,
-0.2071112394,
0.4592019916,
-0.1164931878,
-0.3337392509,
-0.1740610152,
-0.0624476969,
-0.3034552038,
0.0511227138,
-0.2851751149,
0.056032937,
-0.3349588811,
-0.0503589362,
0.1038980559,
0.0765500292,
0.2055123895,
0.128427431,
-0.4939319193,
0.1827995777,
-0.5684785843,
-0.0973136574,
0.015014871,
-0.0919858813,
-0.1524520069,
-0.2483957857,
-0.1820304096,
-0.1257841885,
0.0838260949,
-0.1685778648,
-0.0482179262,
-0.1796244085,
-0.289865315,
0.2355901301,
-0.1408682913,
-0.1040884778,
-0.1262221634,
-0.2186392099,
0.1043440402,
-0.2395487279,
-0.1040245667,
0.2727040052,
0.1063077226,
-0.1749787927,
-0.0320205726,
0.6141954064,
-0.0027178752,
0.1257404387,
0.5313012004,
0.1820044667,
-0.1084020063,
-0.2623314261,
-0.3209677935,
-0.2857598066,
-0.3247818351,
-0.0723347068,
-0.1397092491,
0.0443738364,
-0.0148888314,
0.4144519567,
0.093948774,
0.1857426167,
-0.0060854447,
-0.5259037018,
-0.133453235,
0.1294776648,
0.0421939567,
0.092000857,
-0.4193425179,
0.0345063359,
0.1674446762,
0.386277616,
-0.288970381,
0.0907667801,
-0.3084711134,
0.1050014645,
0.1838264763,
-0.0147715658,
0.1369226128,
0.218616724,
-0.0207850095,
-0.0205850191,
-0.2606440485,
-0.0791364759,
-0.0208681058,
0.2387755364,
0.0886691287,
-0.3916058242,
0.1831959337,
-0.2471768707,
-0.0604223795,
0.0526069924,
-0.0663638562,
-0.1141840145,
0.0583756492,
0.0471803322,
0.1464036405,
0.0883580893,
-0.2555854917,
0.2022086829,
0.0496771559,
0.3802537024,
0.0688228458,
0.265239805,
0.0698114112,
-0.1944235414,
-0.3725170493,
-0.2481486648,
0.0905402079,
0.2064655274,
0.3934917152,
0.0517014898,
-0.0551673658,
0.1035649255,
0.2066736519,
0.6060749292,
0.0949703157,
-0.0037310887,
0.1826517135,
0.0850053653,
-0.3482971191,
-0.1051262319,
0.426874131,
-0.0493984856,
-0.1335230172,
-0.0182770323,
0.1604173928,
-0.2951154113,
-0.0482874103,
-0.1061279476,
0.3336082697,
-0.0446987189,
0.1348263323,
0.3830812573,
0.1318677217,
-0.0223075729,
-0.1458289325,
-0.0114108622,
0.1830570847,
0.2075383514,
-0.2937129736,
0.2960050702,
0.0022072012,
0.0512286201,
-0.0633128881,
-0.3241366446,
-0.064950414,
0.5230965018,
0.1908029169,
0.0568312854,
0.2189501077,
0.162700206,
-0.0995307416,
-0.1670858264,
-0.433570385,
0.351162374,
0.3017349541,
-0.1393081248,
-0.3634733856,
-0.1048656628,
-0.4123686254,
0.1891583353,
-0.1128331721,
-0.3035285175,
0.3537465036,
0.2533997893,
0.0291212313,
-0.4037007093,
-0.3220402002,
-0.1665657461,
0.010588523,
-0.362824291,
0.1755480468,
0.2881410718,
-0.1696109325,
0.2712333202,
0.2734299898,
0.0342608094,
0.1940802634,
0.051492475,
0.2307003736,
-0.0529658459,
-0.0396348536,
-0.1296419799,
0.3255561292,
0.2726576924,
-0.1567444205,
0.4806821942,
0.0442804955,
-0.1215063781,
0.1598028541,
0.072495155,
-0.255920887,
-0.174318105,
0.4113017619,
-0.0269314647,
0.0457283445,
-0.0965428278,
-0.1521426588,
-0.2968740463,
-0.1195235699,
0.0169868451,
-0.0918756649,
0.2861555815,
-0.0004836725,
0.0248234831,
-0.1885652691,
1.0825709105,
0.0145789422,
0.1532883048,
-0.2088086605,
-0.4053681195,
-0.6960796714,
0.1433442682,
-0.2470805645,
0.092423819,
0.1040163264,
0.1266987622,
0.0964723304,
0.2451936007,
0.0724122673,
0.4204582274,
-0.149784416,
0.306248337,
-0.50244838,
-0.2226485312,
0.0942268744,
0.4402627647,
-0.2074292153,
-0.4251110554,
0.470115602,
-0.2363034189,
-0.0323652625,
0.0643197969,
-0.1571583897,
0.2465580553,
0.2980616689,
0.318275243,
0.0408843532,
0.5406655073,
-0.0545892604,
-0.2572306097,
-0.4410834312,
-0.1929124296,
-0.0798033029,
0.0345673412,
0.1539821476,
0.2596018314,
0.0195874609,
0.409236908,
-0.3668288291,
0.2018213719,
-0.2354793251,
0.3416226804,
0.0719433948,
0.0303545333,
-0.2026436478,
0.077683717,
0.2446888536,
-0.0529657155,
-0.1159354597,
-0.179853633,
-0.5251287222,
-0.2719209194,
0.6197152138,
-0.2890967727,
-0.2216445655,
-0.2276802659,
0.3758020103,
-0.0810562447,
0.3304468989,
0.0215583723,
0.2301205844,
0.2397796512,
0.0174538959,
-0.1903074086,
0.2094179541,
-0.0343331546,
-0.271836549,
0.0291397441,
0.0931024253,
0.1694596261,
-0.457590133,
-0.2863953114,
-0.1042824537
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | Yeah, the download speed is sadly always extremely slow :-/.
I will try to check out the `wmt17 zh-en` bug :-) | 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 21 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Yeah, the download speed is sadly always extremely slow :-/.
I will try to check out the `wmt17 zh-en` bug :-) | [
-0.3693390787,
-0.2487272471,
0.021656666,
0.3820066452,
0.148018688,
0.0315843783,
0.0206153039,
0.1097692624,
0.1508652717,
-0.0224936754,
-0.1192295998,
0.0813111439,
0.2570132017,
0.0221289117,
-0.0504058786,
-0.1498071402,
-0.0636183918,
-0.0127319517,
-0.3244121075,
-0.0993772447,
-0.3538654149,
0.200957641,
-0.2064668387,
0.0905934796,
0.2752311826,
0.0833001807,
-0.131360814,
-0.1531073898,
-0.2954228222,
-0.2548480034,
0.3610233366,
0.3276957572,
-0.05598538,
0.2809770703,
-0.0001131215,
-0.0560207106,
0.2967318296,
-0.0383983031,
-0.2685243785,
-0.2018244267,
-0.5110462308,
-0.3942412138,
-0.079406634,
0.0854354277,
-0.0184096284,
-0.2966768444,
0.2496934384,
-0.0439677946,
0.0649199486,
0.2494041771,
0.1683284491,
0.2879309058,
-0.0686754882,
-0.145519793,
0.2407015115,
-0.2033242583,
-0.3107455373,
0.0399784856,
0.0785969421,
-0.1796047986,
0.1557219923,
0.0584836826,
0.0875244588,
0.3362599015,
0.17600815,
0.0942739397,
0.0510469899,
-0.2017598301,
0.0827954486,
0.4504012167,
0.7103350759,
0.0851509869,
-0.495749712,
0.281917572,
-0.0918946564,
-0.2350522131,
0.3443363309,
0.313575685,
-0.2158723623,
-0.0734717026,
-0.4669172168,
0.2572804093,
-0.1383327693,
0.4892609119,
-0.0957623497,
0.7104788423,
0.1332416981,
0.1434032321,
0.3129827082,
-0.1106799766,
-0.08162117,
-0.2723141909,
0.000188553,
0.033490967,
-0.4814955294,
-0.0322297998,
-0.0658685938,
0.0954646468,
0.0754288882,
0.1016092971,
0.285010457,
0.2121491581,
0.021025667,
-0.0517257825,
0.2097492218,
-0.0219043996,
-0.2130882293,
-0.1640499979,
0.4323972166,
0.245024085,
0.1523038894,
0.1677439511,
0.1467082947,
-0.048800543,
-0.2299162894,
0.0242733415,
-0.0505106412,
0.0019588417,
-0.40011096,
-0.1665736139,
-0.1238349825,
-0.245339483,
-0.1645409614,
0.3225752413,
-0.2840415239,
0.1698941141,
-0.1212052405,
0.1779887527,
-0.0842855945,
-0.241766721,
-0.1613669693,
-0.1574996114,
-0.2656622529,
0.0487128235,
0.5434922576,
0.2756901979,
0.1349683106,
-0.0276945792,
-0.4596244395,
0.1299182773,
0.1053120792,
-0.1755293161,
-0.1506621093,
0.30813393,
0.041403193,
0.4511935413,
-0.1181477681,
0.2141902298,
-0.2180139124,
-0.0147894388,
-0.1912533641,
0.068316713,
0.1833387911,
0.1696571708,
-0.1521885395,
-0.1954451203,
-0.184202373,
0.074272342,
-0.254424572,
0.0659199655,
-0.2866136134,
-0.1090284884,
-0.3650815189,
-0.1189391911,
0.1813004762,
0.3788801134,
-0.3131742477,
-0.0457644016,
-0.3016704023,
-0.105663985,
0.3926261663,
0.4808876514,
-0.0214604959,
-0.069082737,
-0.2611771822,
-0.1133299619,
0.479339689,
-0.0569394529,
-0.5938490629,
0.4285424352,
-0.1727690399,
0.0856165513,
0.1779769659,
0.1772714406,
-0.0855823457,
-0.0825826004,
0.1270340383,
0.7016553283,
0.0059171068,
0.0621071681,
-0.0823498368,
-0.3496221304,
0.4960256219,
0.0793751255,
-0.1310660094,
0.0629868507,
0.0774701759,
0.2308817506,
0.4280624092,
-0.0492954589,
0.1207071543,
0.2119651437,
0.0061045378,
-0.2326265872,
0.1675236672,
0.2613880336,
-0.8036825061,
0.327198714,
-0.1731811315,
0.0420760363,
0.0533727296,
0.098674126,
-0.0930991098,
-0.2325117588,
-0.1148577854,
0.1196191758,
0.099233672,
0.4008772075,
-0.0808942094,
0.0385469049,
0.2440877706,
0.1637263745,
0.186014533,
0.0721244812,
0.0375177637,
0.0890049562,
-0.1497061402,
0.1078927666,
0.4190079272,
-0.2034529597,
0.0905701518,
-0.2255450338,
-0.1061335281,
0.0301305763,
-0.118764326,
0.3457846344,
0.0342663154,
0.0129583078,
0.1846441776,
-0.3644965589,
0.0430601202,
0.5446995497,
0.1592684388,
-0.2901196182,
-0.2831046283,
0.1604015082,
0.2294864804,
0.2556653619,
0.2638522685,
-0.0287950747,
0.3943086863,
-0.0271756202,
0.0697235987,
-0.0704721734,
0.3118415177,
0.1041932255,
-0.1764555871,
-0.1047058702,
-0.1786278635,
0.3837150335,
0.7334496975,
-0.027373895,
0.0445227399,
0.2151576728,
-0.0097009661,
-0.2793851197,
-0.1021256223,
0.2419558614,
0.5307392478,
-0.0184568577,
0.318231672,
-0.0075912718,
0.0528219976,
-0.4657368958,
0.2658327818,
0.0323505737,
-0.2632794976,
0.2083517909,
0.1461828053,
-0.1172624826,
-0.2702292502,
-0.0391780436,
0.3722789884,
0.3183623254,
-0.1137541234,
0.0215990487,
-0.5688726306,
-0.4337560534,
-0.0417045467,
-0.0972282588,
-0.2328408509,
-0.4373253882,
-0.0106161525,
0.3592895567,
-0.1175310388,
0.0834659934,
0.0112376967,
0.0518176556,
0.0321938731,
0.1122512892,
-0.2232307792,
-0.0508838929,
-0.2936742902,
0.0506420098,
0.2501956522,
-0.0048259567,
0.3465152085,
-0.2549163401,
0.0043226322,
-0.248476848,
-0.1828158349,
-0.0734227002,
-0.1328427345,
-0.0097920951,
0.0210056975,
0.3756833076,
-0.0484724045,
0.0197904687,
0.267724514,
-0.1306687295,
-0.0933632925,
0.1500163525,
-0.147516489,
-0.1163983494,
-0.1455317438,
-0.4618679881,
-0.4196473658,
-0.3909377456,
0.2283407003,
0.0177121144,
0.2647220492,
0.2665109038,
-0.2433956116,
-0.0090893004,
0.1340952963,
0.1358191818,
-0.2116517127,
0.1096786186,
0.5519048572,
-0.0122116208,
-0.4962174594,
0.2889940441,
0.3083996475,
0.1282168925,
0.4666346312,
-0.505053997,
0.0814788714,
-0.2245029062,
-0.08681871,
0.2105650902,
-0.0806290284,
0.1803442091,
-0.2014332265,
-0.1320721805,
-0.0635465607,
-0.2266351879,
0.0003428884,
0.3354969621,
0.2945869267,
0.057516247,
0.0751545131,
0.1130235046,
0.2551251948,
0.3227808475,
0.0355761945,
0.4502716064,
0.0570785664,
-0.0395573527,
0.0555570088,
-0.1616864055,
0.086498104,
-0.1508362442,
0.4195182323,
0.3306364715,
-0.1776616275,
-0.2543929815,
-0.2211969495,
0.2076509446,
0.1560288966,
-0.303263545,
-0.0362837836,
0.0926283821,
-0.024728192,
0.258234024,
0.0545315295,
0.0281000473,
-0.4963299632,
0.1535633951,
0.2811172903,
-0.1159658208,
0.1709709167,
-0.054291755,
-0.025125578,
-0.5100094676,
0.2622945011,
-0.086937584,
0.69252491,
-0.2452952564,
0.1321939379,
0.1541799009,
-0.1334350705,
0.379563719,
-0.3355476856,
0.408590436,
0.2441133559,
-0.0998250544,
-0.3103893697,
-0.2699893117,
-0.3074088693,
-0.29783988,
0.2070447206,
0.4671503007,
-0.4036860764,
-0.2595311701,
-0.0028818427,
0.2527554929,
-0.0834333897,
0.0329961628,
-0.1655884385,
-0.4258915186,
-0.0759302899,
-0.1960380524,
-0.2923614085,
0.0790406615,
-0.2044108212,
-0.0717163235,
0.1685201228,
0.0046440065,
-0.03877474,
0.0195357166,
0.0290738307,
0.2013509274,
0.3527792394,
0.0411569588,
0.2088114917,
-0.0041827033,
0.488117516,
0.1826083362,
-0.0191793367,
0.2027256638,
-0.1937299967,
-0.1419256181,
0.448238045,
0.0616980605,
0.1161124036,
-0.0197455585,
0.1926820129,
-0.1204139665,
-0.0646364763,
0.4672898054,
-0.3162603974,
-0.2791849971,
-0.2282620817,
0.2917949259,
0.0922987238,
-0.0632304102,
0.3406108618,
-0.0752303824,
-0.1006243154,
0.0542613454,
-0.0727055147,
0.8992090821,
-0.0750667974,
0.1676118225,
0.0284453221,
-0.012026269,
0.3487122357,
-0.078798607,
0.2581681311,
-0.1769598275,
-0.2249811292,
-0.0033694115,
0.031114921,
0.027460089,
0.2101257145,
-0.4092716873,
0.5043520331,
0.2017359436,
0.2596512139,
0.2110847533,
0.091604203,
-0.0027355242,
-0.0822544843,
-0.0691424832,
0.1338375062,
-0.1257577986,
0.593008101,
-0.0115370797,
-0.3399749994,
-0.0633043423,
-0.0504250862,
-0.3375659585,
0.2289009243,
-0.2211632729,
0.1064880192,
-0.2780905366,
-0.0289231855,
0.1129967049,
-0.1082200482,
0.1168984324,
0.1473508775,
-0.4352406859,
0.1044977754,
-0.5686906576,
0.1226675361,
0.0455062129,
-0.0656877831,
-0.0766176432,
-0.2632238269,
-0.1547882259,
-0.1998170614,
-0.0494097359,
-0.0731024668,
-0.0469886065,
-0.1141856983,
-0.2927277386,
0.2307781875,
-0.0337504111,
-0.1279280633,
-0.2546487451,
-0.0952033326,
0.1239214316,
-0.027990697,
0.0628986582,
0.4031953514,
0.1070543826,
-0.2656991184,
-0.1343063861,
0.6130914688,
-0.1519091725,
0.150120452,
0.3498306572,
0.1883086413,
-0.2084123641,
-0.3143334389,
-0.3719795346,
-0.0897527114,
-0.4002478421,
-0.0692307055,
-0.1440847963,
0.1001697257,
0.1170556918,
0.4755738378,
-0.049025435,
0.0558666773,
0.05622622,
-0.5779902935,
-0.0762094706,
-0.0173786264,
-0.0752178878,
0.0603908077,
-0.3815559149,
-0.0613973849,
0.3596578538,
0.0912111849,
-0.297277391,
0.0841397271,
-0.2831426561,
-0.0205843709,
0.2991086543,
-0.1970582753,
0.1398497671,
0.1217768863,
0.0317453817,
-0.1153989136,
-0.5138580799,
-0.1349561363,
-0.0126885269,
0.1968261898,
0.2312013209,
-0.399867624,
0.101337865,
-0.2693148851,
-0.1387001574,
-0.0299087744,
0.0238058269,
-0.0697163194,
-0.113499485,
0.0155442357,
0.01598683,
0.1784757972,
-0.052268073,
0.1789714098,
0.0810708627,
0.3983920217,
-0.0322971791,
0.2166853845,
0.1420233846,
-0.1306734979,
-0.4640182257,
-0.1250665188,
0.0042285896,
0.1668860018,
0.4557458162,
-0.1503378004,
0.1145968288,
-0.1903167069,
0.2894704044,
0.5473508239,
-0.0197062884,
-0.1659723669,
0.0818415284,
0.1417398155,
-0.2528589964,
-0.3240986764,
0.2707702518,
0.2660079002,
-0.0896601379,
-0.1165640876,
0.2668007612,
-0.2275667638,
0.0049268641,
-0.1171081215,
0.5208179355,
-0.1662728786,
-0.0732542574,
0.3250983059,
0.0912305191,
0.191471681,
-0.0457196459,
-0.0515023507,
0.0135424985,
0.1461064667,
-0.1071901023,
0.1941189021,
0.1337239444,
0.1880326718,
-0.006420617,
-0.4491777718,
-0.134198457,
0.4470542669,
-0.1082415879,
0.0837217718,
0.2773936093,
0.0468394272,
-0.1860200912,
-0.2336350381,
-0.5212222338,
0.2492411286,
0.1441929787,
-0.2176208645,
-0.1578580737,
-0.0406398065,
-0.3839212656,
0.3018142283,
-0.2011138648,
-0.104484275,
0.3324411809,
0.1468765885,
0.0592011437,
-0.4044609964,
-0.2451430559,
-0.1018607989,
-0.0117121721,
-0.2720141709,
0.1310621351,
0.0434970856,
-0.1083543003,
0.0509571992,
0.1166169867,
0.1323672682,
0.2466510683,
0.044189956,
0.1514763385,
-0.0550389402,
-0.0769833326,
-0.1267120838,
0.5055841804,
0.3176568747,
-0.3132897615,
0.3788609505,
0.0105592497,
-0.1253321916,
0.1614062488,
0.0476470627,
-0.1173020825,
-0.0278119799,
0.4096530974,
-0.1731016934,
0.0070707281,
-0.0808529854,
-0.0291832946,
-0.2272977978,
-0.0489759743,
0.2235088497,
-0.0314474627,
0.3116572201,
-0.197249189,
0.0626759231,
-0.1403966397,
0.963214159,
0.1747049838,
0.0081980322,
-0.1843709201,
-0.2348640859,
-0.6164386868,
0.1030560508,
-0.2522726655,
0.1988193989,
0.0616460033,
0.274851799,
-0.0309102982,
0.2128813267,
0.1794092506,
0.4960562587,
-0.0012602701,
0.3387595713,
-0.3486461341,
-0.1576449126,
0.067123957,
0.2313784212,
-0.3162714541,
-0.5026993752,
0.5336248875,
-0.4530444741,
0.0299826805,
-0.1813534796,
-0.0418836214,
0.1448134333,
0.359547466,
0.3521799743,
0.1409447938,
0.5347115397,
0.1001046821,
-0.236606881,
-0.4052691162,
-0.0648828223,
0.087277174,
-0.0066200965,
0.0628528297,
0.0696176216,
0.1808974445,
0.4258292019,
-0.3366210759,
0.2417769134,
-0.3410273194,
0.3019997478,
0.1489571631,
0.2037632912,
-0.1593162268,
0.0825898275,
0.1561183035,
-0.0960130617,
-0.0475369059,
-0.2808299065,
-0.4668973982,
-0.270858705,
0.3842183053,
-0.1362173557,
-0.2359122485,
-0.316231817,
0.257932663,
-0.1017072648,
0.2079434693,
-0.0433062166,
0.2353960723,
0.1794018596,
-0.1781785786,
-0.2937730849,
0.2973268032,
-0.0095809242,
-0.1704112142,
0.0426896587,
0.102600947,
0.1412754208,
-0.4580464661,
-0.1470394135,
-0.0394967161
] |
https://github.com/huggingface/datasets/issues/387 | Conversion through to_pandas output numpy arrays for lists instead of python objects | To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist.
- to_numpy and to_pandas return numpy arrays instead of lists but are very fast.
- to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists.
Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas' | In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects.
Here is an example:
```python
>>> dataset._data.slice(key, 1).to_pandas().to_dict("list")
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292,
1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938,
4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1])]}
>>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0])
<class 'numpy.ndarray'>
>>> dataset._data.slice(key, 1).to_pydict()
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]}
``` | 69 | Conversion through to_pandas output numpy arrays for lists instead of python objects
In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects.
Here is an example:
```python
>>> dataset._data.slice(key, 1).to_pandas().to_dict("list")
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292,
1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938,
4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1])]}
>>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0])
<class 'numpy.ndarray'>
>>> dataset._data.slice(key, 1).to_pydict()
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]}
```
To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist.
- to_numpy and to_pandas return numpy arrays instead of lists but are very fast.
- to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists.
Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas' | [
0.2560276389,
-0.0724572912,
-0.2367635965,
-0.0092356093,
0.26258865,
0.0842920989,
0.6678313017,
0.321013242,
0.0850156471,
0.1096883193,
-0.2230845094,
0.6318756938,
0.0461788028,
-0.0179827586,
0.0116416225,
-0.174750641,
0.0956745148,
0.254740119,
-0.2903570533,
-0.0689311475,
-0.2830669582,
0.015639944,
-0.0143754175,
0.0470165461,
-0.0316809788,
-0.12294361,
-0.2430114895,
-0.0669653714,
-0.0099637145,
-0.2817723453,
-0.1102733463,
-0.0522085801,
-0.1565472633,
0.1077478379,
-0.0000965855,
0.0117590018,
0.1007465124,
0.128448844,
-0.2778983414,
0.0988122448,
0.2208988667,
-0.4964868724,
0.1283212751,
-0.3898863792,
0.0194245726,
-0.3709514141,
-0.0011585453,
-0.2352721542,
0.2233629227,
0.2378044873,
0.3248372376,
0.0824997723,
0.0406746455,
-0.0091813868,
-0.1530111283,
-0.0536510907,
-0.1116733402,
-0.0968054533,
0.0740233883,
-0.0003449191,
0.0224827752,
0.1968284547,
-0.2312168479,
-0.0540921502,
-0.120284386,
0.0783431232,
0.1750870347,
-0.2016627043,
-0.059109617,
0.1322263181,
0.0710337013,
-0.218108654,
-0.2725657225,
-0.3579936028,
0.0110659413,
-0.104440853,
-0.2819867134,
0.1497366577,
-0.0419389307,
0.3047569394,
-0.0567266457,
0.1415920109,
-0.1975572109,
0.1329679042,
-0.2234632522,
0.1334752887,
-0.0038775236,
-0.026997434,
0.1181256697,
-0.2326644361,
0.2993661463,
-0.1540307254,
0.2643842995,
0.0086974064,
-0.071557112,
-0.1338415891,
0.1959290355,
-0.3873058856,
-0.03227235,
-0.3329616189,
0.1830254793,
-0.0538948923,
-0.0235339608,
0.1319849342,
0.12480326,
0.2315274179,
-0.0103133796,
0.1086455956,
-0.0331915133,
-0.0222175326,
0.1428206861,
0.1067358404,
0.0208145492,
0.0476763546,
0.103929162,
0.0543528944,
0.2067092359,
0.0948467106,
-0.3995522559,
0.021492064,
-0.4321009219,
0.3727927208,
-0.1416668147,
0.0871334746,
-0.0056861127,
0.5033516288,
0.0570946671,
0.0784098879,
0.012077068,
0.3128521144,
-0.2222591788,
0.2659429908,
0.0089576887,
-0.2215346396,
-0.0210267119,
0.3906453848,
0.0046085753,
0.0056061628,
0.272451371,
0.0529519133,
0.0090366993,
-0.0570252873,
0.398491621,
0.1581864208,
-0.0183217376,
0.1029568166,
0.3305058181,
-0.2735714614,
-0.0734088123,
0.3235861659,
0.0897549912,
0.0980033353,
-0.0730488747,
0.3501081467,
0.0267444309,
-0.1353609562,
0.1204928979,
0.1960565448,
0.0979915261,
0.0391965918,
-0.0627016425,
-0.3927683532,
0.1285287142,
-0.2342426032,
-0.0258013383,
0.0015651986,
-0.4275615811,
0.1042091995,
0.0402692892,
-0.0326842703,
0.2190033048,
0.3847591877,
-0.0153800426,
-0.0311416388,
-0.1035961807,
0.1959887147,
-0.0700906888,
-0.2117770463,
-0.143139407,
0.0259644501,
0.1356393397,
0.321323663,
0.2309162021,
0.1676853001,
0.1878184229,
0.0333487988,
0.1708782464,
0.0854334906,
0.0253944863,
0.1654041559,
-0.2166430652,
-0.2008067816,
0.2175687701,
-0.0501667112,
-0.0277145188,
0.3013141751,
-0.1478918791,
-0.0752381757,
0.2646341622,
-0.3522583246,
-0.0863962471,
-0.1085293517,
0.1263148189,
-0.1856981516,
-0.0706584603,
-0.0009579666,
0.0929222405,
0.0091782017,
-0.1311027557,
0.3257481456,
-0.2217813879,
-0.4243863225,
-0.3495081365,
0.0457586236,
-0.0132235698,
0.0276820809,
0.4024395049,
0.0568416901,
0.0981630385,
-0.0829145089,
0.1711255759,
0.0485422313,
-0.1781453937,
-0.0365343876,
-0.2771190107,
0.0510208532,
-0.1610231251,
-0.0616615154,
-0.0102374796,
0.2658475041,
0.0410775505,
0.1367580146,
0.2536704242,
0.1568621248,
0.225348115,
-0.1363912523,
0.0789509937,
0.173140496,
0.1421354413,
-0.0107404022,
0.3149238229,
0.503995657,
0.1378077418,
0.0506745242,
-0.0394133814,
0.5265208483,
0.1004746482,
0.0673766509,
0.1498182714,
0.2438426018,
0.2283338755,
0.2267896086,
-0.0221839026,
-0.1647675484,
-0.2045824975,
0.0883949026,
-0.0372100547,
0.0783450827,
-0.5608401299,
0.3296600878,
0.3871722221,
-0.1254361719,
0.2982020676,
-0.0429480821,
-0.11709252,
-0.1296838373,
0.0092824483,
-0.085497424,
0.0647057518,
0.3047471642,
0.1346230656,
-0.1011198759,
-0.2463524938,
-0.1573567837,
0.1716032773,
0.140388459,
0.1497249603,
-0.051928591,
0.2285128236,
-0.212198332,
-0.2140842974,
0.0572396144,
-0.2752455473,
0.1016198322,
-0.2288697213,
0.2389463335,
-0.3486659527,
-0.2187672853,
-0.0047961515,
-0.1646868587,
0.236777395,
-0.4387481511,
0.1186252385,
0.0831531882,
-0.0962845609,
0.0275755115,
0.3894482255,
-0.0102328146,
0.3071250916,
0.1124023497,
-0.1375091076,
-0.2112654895,
0.0176344588,
0.3510563076,
-0.0325057134,
0.1101428866,
0.1001262143,
-0.0634948462,
-0.0570032634,
-0.1335254312,
-0.2751379311,
0.0031088756,
-0.2275831252,
0.1885088682,
0.2113187164,
0.2826877534,
-0.2487781644,
-0.0493520051,
-0.0717224032,
-0.0535935126,
-0.0864408836,
0.1011065915,
0.0296369288,
-0.0127769606,
-0.1391561031,
-0.273807317,
-0.3708684146,
-0.2461612523,
0.2457756251,
0.1972574592,
0.1448779851,
0.0419271588,
0.3720466495,
0.3241766393,
0.2355497926,
0.2128997296,
-0.1252492368,
0.1298518628,
0.2862128317,
-0.1785427928,
-0.324775219,
-0.3495490551,
-0.0403355956,
-0.0918325186,
-0.2265649885,
-0.0471110605,
-0.4609470367,
-0.1354732811,
-0.0125895524,
0.1935324669,
-0.0326644145,
0.1490451396,
0.2680901289,
-0.3067964911,
-0.0502040498,
0.0971966386,
-0.0428385846,
0.0432681069,
-0.0840691999,
-0.0630860552,
0.0501082726,
0.1526055932,
0.2194742411,
0.0977591574,
-0.1959164143,
-0.1312121302,
-0.0152706495,
0.328045398,
-0.1606307328,
-0.1010644287,
-0.2410318255,
-0.1682166755,
-0.0981953517,
0.124830246,
-0.1472045481,
-0.3451810777,
0.0037210267,
0.237668395,
-0.3825840652,
-0.0968593135,
0.1131862774,
-0.2335440367,
-0.0478622802,
0.0416292213,
0.2179596275,
-0.2125125229,
0.0127614401,
-0.176596716,
-0.0360397622,
0.2504290938,
-0.1270269006,
-0.3720670044,
-0.2742795348,
-0.3555975854,
0.3058630228,
0.200674668,
0.1969305724,
0.1245524213,
-0.4118639231,
-0.0682601705,
0.019074427,
0.4703342915,
0.0821755454,
-0.3371400833,
0.3646310568,
0.0205651261,
-0.0961634964,
0.1042671874,
-0.5635348558,
0.0093349312,
0.1641108692,
0.109012194,
-0.2452835888,
-0.0595850274,
0.0811373368,
0.2119964063,
0.0118748015,
0.1769614071,
-0.1113035679,
-0.3024592102,
-0.2614576221,
0.0198082346,
0.1983463168,
0.1258125305,
-0.4265236259,
-0.274820298,
-0.1618731618,
-0.2216852307,
0.3759465814,
0.177493453,
0.0346638933,
-0.0405342989,
-0.1933380067,
-0.2015724927,
0.2310632616,
0.1565952003,
-0.0567224324,
-0.2254028022,
-0.1200211793,
-0.0981598422,
-0.0551370382,
0.1993044466,
0.2418477237,
-0.0896881595,
-0.0564581044,
-0.2413828671,
-0.0663807467,
0.1501809657,
-0.1460462362,
0.2211690694,
0.0700616315,
-0.0276512466,
-0.3291968107,
0.1209774092,
0.0463760979,
-0.1051248536,
-0.0222851858,
-0.1152671203,
-0.2081454843,
0.2638190985,
0.0325121023,
0.8158715367,
-0.1056178808,
0.3005524874,
0.4592901766,
-0.1977165639,
0.4725379944,
0.2285955548,
0.1159962565,
-0.2518949807,
-0.0576712526,
-0.0594798289,
-0.0100463405,
0.2043708712,
0.2532419264,
-0.2561310232,
0.1157733649,
-0.2948709428,
0.1316440403,
0.0482266545,
-0.0555578247,
0.0385021307,
-0.1773588061,
-0.5897297263,
0.3352951705,
0.0547800548,
-0.4174697697,
-0.0300409906,
-0.1306803674,
-0.3652650714,
0.1664578319,
0.1722038686,
0.0149755385,
0.2371015847,
0.2857073545,
0.1130525991,
-0.397370398,
-0.3194504976,
0.2990203798,
0.0782360807,
0.1430561692,
0.0597054474,
-0.1594385803,
0.1249622107,
0.1096463352,
0.2293773592,
-0.0577199422,
0.4965388179,
0.1031076089,
-0.0500581488,
0.1760501117,
0.0092718862,
-0.2180435956,
-0.1885131896,
-0.027195733,
0.0076898448,
-0.3465357721,
-0.1482535005,
-0.0516146608,
-0.419620961,
-0.1843436062,
0.2770850658,
-0.0314754024,
-0.0995997787,
0.3277485967,
0.0246171504,
-0.0796906129,
-0.0120316688,
0.1132594123,
0.413778007,
0.0345140919,
0.059179578,
0.0701440051,
-0.3847638667,
-0.2387194484,
0.0825424045,
-0.1526094675,
0.0703603327,
0.4293038845,
-0.1121815816,
-0.1417978406,
-0.1393556893,
-0.1004746631,
-0.1253195405,
0.3728620708,
-0.4571975172,
-0.2046310157,
-0.2589764893,
0.1818987578,
0.0911657214,
0.3353268504,
0.2383171022,
0.1342772692,
-0.209355548,
-0.2403192371,
-0.5028529167,
-0.1735637039,
-0.3184006214,
0.1316961348,
0.0348732322,
-0.2332933545,
-0.1063105613,
0.0622405149,
0.3776397705,
0.1625670642,
-0.0079253512,
-0.4519947171,
0.2044613659,
0.0235303137,
-0.01021602,
-0.163257286,
0.2116342336,
-0.0201327894,
-0.2478334308,
-0.2464577407,
0.0121445572,
0.0365634337,
-0.0795863494,
0.2235228568,
0.065387018,
0.3287333548,
0.3674659133,
-0.1215729266,
-0.2407363355,
-0.0627780706,
-0.0520086326,
0.1585794091,
-0.00307591,
-0.0591702759,
0.0468247272,
0.2976480424,
-0.0031875984,
0.0774446651,
0.4809100926,
-0.0406187363,
-0.1691296101,
-0.0404673889,
0.3440822363,
0.0845604241,
-0.2110835463,
-0.0958569124,
0.0081234956,
0.4007232785,
-0.3073298633,
-0.1081484407,
0.1571557373,
-0.3483891487,
0.2309494317,
0.4312077761,
0.0835089013,
-0.0116920667,
0.1095965505,
-0.0501531474,
0.0815823004,
-0.266210258,
-0.1164511666,
0.5820598006,
0.0066452371,
-0.1017888412,
0.071121864,
-0.116268374,
0.166523993,
0.4918718338,
0.0209925901,
0.4034591019,
0.1135592088,
0.0254196972,
0.2546973526,
0.3929943442,
0.0771281123,
0.075887464,
-0.1733086407,
0.2135417461,
0.2939057648,
0.0692911297,
-0.209372133,
0.1442485452,
-0.0291087702,
0.3133696616,
-0.2688258886,
-0.1292010844,
-0.1011276767,
-0.0936125964,
0.0145506011,
-0.3355529904,
-0.0351878703,
-0.2210866809,
0.2059137672,
-0.1674289107,
0.0402284786,
-0.0685613975,
0.2408028543,
-0.1409085542,
0.3462825418,
-0.0516201742,
-0.2799860537,
0.2119688541,
0.2059757411,
-0.0634926707,
0.2458055913,
0.441347599,
0.0201790202,
-0.2248957902,
-0.0034791804,
-0.2018449306,
-0.4503283501,
-0.0309195835,
-0.0265624989,
0.0975787491,
0.140842244,
0.1832570583,
0.306881696,
-0.2546873689,
-0.0303885769,
0.1522460878,
-0.125520587,
-0.0353383012,
0.3983752131,
-0.0006992511,
-0.4177679718,
-0.0795595869,
0.0275206864,
-0.4694456458,
-0.3235494196,
0.2452063709,
0.0198498722,
0.2174039334,
0.0547990911,
0.2119051218,
-0.0290132388,
0.266105026,
-0.0585663244,
0.1766676903,
0.0587321632,
0.199170813,
-0.1691033691,
0.1327243894,
0.2316051126,
-0.168692112,
-0.1482951641,
0.0618928187,
0.1804656535,
0.2957517803,
-0.3197846413,
0.0363378897,
-0.003256815,
0.0950063094,
-0.153221637,
0.0503704734,
-0.082219556,
-0.0826201513,
0.0740318149,
-0.1644275784,
0.0799146146,
-0.1453085691,
0.320546031,
-0.1464014202,
0.0949232727,
-0.0931243226,
0.4012174308,
-0.1292185187,
0.3858844638,
0.2196270972,
-0.1814617962,
-0.0560146384,
0.2221429497,
-0.0839764848,
-0.1339957863,
0.5022016168,
-0.060177628,
0.0746877119,
-0.0050452962,
-0.1248677447,
0.2421614528,
0.2362212241,
0.2632470727,
-0.3227279484,
-0.2985232174,
0.2755731046,
-0.2742533088,
0.1119610295,
-0.1134267226,
0.2221008986,
0.1778131574,
0.0509322397,
-0.140301615,
-0.4273497462,
0.1870023012,
-0.0968571976,
-0.4538886845,
-0.078967236,
-0.0686431229,
-0.1896491051,
0.0528112315,
-0.3690464497,
-0.1206935942,
0.2917224169,
-0.2359174341,
-0.058658056,
0.1337467879,
-0.0355447493,
0.1161898524,
-0.2565560639,
-0.1335963607,
0.0595043674,
0.0598586611,
-0.2248077989,
-0.3436230421
] |
https://github.com/huggingface/datasets/issues/378 | [dataset] Structure of MLQA seems unecessary nested | Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py
Should we scan all the datasets to remove this pattern of un-necessary nesting? | The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97
Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds?
```python
features=nlp.Features(
{
"context": nlp.Value("string"),
"questions": nlp.features.Sequence({"question": nlp.Value("string")}),
"answers": nlp.features.Sequence(
{"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),}
),
"ids": nlp.features.Sequence({"idx": nlp.Value("string")})
``` | 19 | [dataset] Structure of MLQA seems unecessary nested
The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97
Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds?
```python
features=nlp.Features(
{
"context": nlp.Value("string"),
"questions": nlp.features.Sequence({"question": nlp.Value("string")}),
"answers": nlp.features.Sequence(
{"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),}
),
"ids": nlp.features.Sequence({"idx": nlp.Value("string")})
```
Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py
Should we scan all the datasets to remove this pattern of un-necessary nesting? | [
-0.1161427051,
-0.0593215637,
-0.0939640626,
0.3199594021,
-0.0490285829,
0.2495958209,
0.0876120478,
0.2466988862,
-0.1752907038,
-0.1441372186,
0.0130558452,
0.1971593797,
0.0584652089,
0.6652590036,
-0.037603762,
-0.0648572296,
0.2087633759,
-0.0377441235,
-0.0563617498,
0.1263813972,
-0.2246388644,
0.1446328312,
-0.220671922,
0.0209033135,
-0.098392114,
-0.1649564505,
-0.3148608506,
0.1034775972,
0.0523193143,
-0.2634041607,
0.1510074288,
0.240365684,
-0.1195747331,
-0.044326894,
-0.0001109657,
-0.0709206685,
0.1456369609,
-0.0216373485,
-0.0548773557,
0.0413487256,
0.0320792422,
-0.1099432781,
0.0695011392,
-0.2508449256,
-0.098976098,
-0.2140040845,
0.0711580962,
-0.3372648358,
0.2594274879,
-0.0382844545,
0.2054677755,
-0.0469219126,
-0.1306342334,
0.3519124389,
-0.1220628694,
0.1027289182,
0.0172571968,
-0.0262117386,
0.2594555318,
-0.1247475073,
-0.0430971943,
0.4153562784,
-0.119358629,
-0.1493014395,
0.2905676961,
0.0684560388,
0.1848946512,
-0.5962707996,
-0.0432920456,
0.4557467401,
0.2367851585,
-0.2617448866,
-0.1849274635,
-0.4822609723,
-0.025991708,
-0.2272673547,
0.1633030772,
0.1675076932,
0.0069015389,
0.234760195,
0.1263679862,
-0.1401168853,
0.0433412716,
0.0321895257,
-0.2222628593,
0.4312474728,
0.112389572,
0.055798877,
-0.1916795224,
-0.1940624863,
0.3292735815,
-0.2776328921,
-0.1152413338,
-0.0648506656,
-0.2658902407,
-0.2681447864,
0.1458914131,
0.054067228,
0.0904282033,
-0.0091618104,
-0.1017990857,
-0.1273287237,
0.0415135548,
-0.1156787127,
0.4433223903,
0.0349121541,
0.0427643955,
-0.3553721905,
-0.018607581,
-0.1110639051,
0.0128495181,
0.0441052802,
0.1379092783,
0.1818006188,
-0.550295949,
0.0230322201,
0.4006923139,
0.1182037219,
-0.3591924906,
-0.1037038639,
-0.6785642505,
-0.1690201014,
0.0719345883,
0.1372534633,
0.191088438,
0.24389036,
-0.0796463713,
0.09010683,
-0.1095337272,
-0.1471689939,
-0.1280268282,
0.026189955,
-0.0045819981,
-0.1100144982,
-0.1038461104,
0.2253593802,
0.0583132282,
0.0152874263,
0.0062834756,
0.2510585189,
0.1159463301,
-0.1665659994,
0.2065869421,
0.2225803137,
-0.0297142789,
0.0133785559,
-0.0154653015,
-0.0512963794,
-0.2058116645,
0.2050145119,
-0.0776298344,
-0.218625471,
0.0134884799,
0.2043150067,
-0.1696725786,
-0.1015768126,
0.1816951483,
0.7562409639,
0.3734681308,
-0.0927801132,
0.091126509,
0.0090465955,
-0.4748316705,
-0.2003760785,
-0.0313519798,
0.3942877352,
-0.3361499012,
0.0484467745,
-0.3053277135,
0.0333993547,
-0.0127933305,
0.3472165167,
-0.066552408,
0.3393944204,
-0.2069299817,
0.2875931263,
-0.0089720394,
-0.3737545907,
-0.2423266321,
0.2417009771,
0.0202055592,
0.2551003695,
0.2007428855,
0.092687279,
-0.1373988241,
-0.1837863326,
0.1889772415,
0.3555286825,
-0.1046040282,
-0.0923253968,
-0.0993933752,
-0.1669278294,
0.634880662,
-0.0364634171,
-0.4140781164,
-0.2391841412,
-0.343290478,
-0.0578939207,
0.3980113566,
-0.0094856657,
-0.1960018277,
-0.1509509236,
0.1513851434,
-0.1476748139,
-0.0829643756,
-0.1501870304,
-0.5748466849,
0.0441734008,
-0.2565097511,
0.1166456938,
-0.1293930411,
-0.413435936,
0.3103052676,
-0.0182230379,
-0.3776369989,
-0.1487939507,
0.2231585234,
-0.2980284095,
-0.1173888296,
0.0568265282,
-0.2501929104,
0.0233593509,
0.0178600978,
0.0614121854,
-0.3382733166,
0.2788206339,
-0.16053693,
0.3084010184,
0.3650188148,
0.6932075024,
-0.0535363629,
-0.1911391616,
0.2040140629,
0.1118070707,
-0.0075119664,
-0.1424809843,
0.045408614,
0.2737965584,
0.3954082727,
-0.2320895791,
0.0044341134,
0.351169765,
0.015922429,
-0.2095696479,
-0.2848927379,
0.4127982259,
0.0557213537,
0.3499275744,
0.0185292233,
0.2035997361,
-0.0105991084,
-0.1132054031,
-0.0705682188,
-0.3927460909,
0.1088529155,
0.1086644158,
0.0308570322,
0.4261076152,
-0.2589324117,
0.8457379341,
0.4656238556,
-0.0576034971,
0.0363926664,
0.0054507451,
0.1375108659,
-0.4387932718,
0.2027045339,
0.1513314843,
0.2826482058,
0.1742970794,
0.0417095833,
0.2460759282,
0.2267718315,
-0.2295658141,
0.3983789086,
0.0990007967,
-0.0684939474,
0.1255249828,
0.3096333742,
0.1429218352,
-0.4244998991,
-0.234942764,
-0.0185274202,
0.0328289755,
-0.2017997205,
0.2663801312,
-0.3401316404,
-0.8277875185,
0.0951262265,
-0.159563452,
-0.3452223539,
-0.4143365026,
0.1041774005,
-0.1909130812,
-0.1400654018,
0.2615066469,
0.3718317449,
0.3114878237,
0.0528239794,
0.153545022,
-0.074902162,
-0.0934206918,
-0.1512104273,
0.1434289962,
0.1969041824,
0.1803006679,
0.2717165649,
0.2582634389,
-0.0109018479,
-0.172499761,
-0.6402465701,
0.2058470547,
-0.4038881958,
0.3266704977,
0.1748289615,
-0.0207618251,
-0.2076146454,
-0.2606466115,
-0.0391049981,
0.6991738081,
-0.2577946782,
-0.0002875623,
-0.0311220661,
-0.1765298992,
-0.1504605412,
-0.3982407749,
-0.4945944846,
-0.2323881686,
0.2652855814,
-0.2008560747,
0.4566140771,
0.2072580904,
-0.3831200898,
-0.2453194559,
0.0288473349,
-0.1344177574,
-0.1962101609,
0.1302181929,
0.1351570785,
-0.0603555031,
-0.1612295061,
-0.3660829365,
-0.2903487384,
0.3013530076,
-0.2624472678,
-0.438018322,
-0.2253846079,
-0.1168081686,
0.1511101425,
0.2265045792,
-0.088056393,
0.2082460374,
0.3800464272,
0.0148181831,
0.2296254635,
-0.062010996,
0.1058310792,
0.1495169997,
0.3227381408,
0.0125865908,
0.4372129738,
0.1064925194,
0.2702865601,
0.6254134178,
0.1969487667,
0.0795068443,
0.1210873276,
0.2560326159,
-0.242604062,
-0.2051138431,
0.4185651541,
0.1404145509,
-0.0588465147,
0.3224636316,
-0.1500506401,
-0.0727329329,
0.1247330531,
0.1506256312,
0.1947641969,
-0.2797319293,
0.0122809634,
-0.5949556828,
0.2844959497,
0.0216041263,
-0.0077413344,
0.1875218153,
-0.2130338252,
-0.0691158921,
0.1293259114,
0.1560500711,
-0.0014970613,
-0.7965766191,
-0.6033444405,
-0.5060998797,
0.0577496588,
-0.0378531627,
0.1418633908,
-0.0846332014,
0.0658482611,
0.0711493492,
-0.0676312596,
0.518967092,
-0.2795133293,
-0.2345724106,
0.2563897073,
0.0427501425,
-0.1570790261,
0.0150378533,
-0.0129218604,
0.4084732533,
0.2966898978,
-0.0276697017,
-0.3415411115,
-0.242008701,
0.1911636591,
0.1286139786,
-0.4076523483,
-0.3557876348,
-0.1688464284,
-0.2850782573,
-0.0315503143,
-0.1503401101,
0.2285673916,
0.1309166253,
0.0849863589,
-0.2012484521,
-0.0813322961,
-0.3202264011,
0.4161019623,
0.2294742167,
0.1594104767,
0.0948701277,
0.2396361083,
-0.1131374612,
0.2765874863,
-0.0831344426,
0.4926629961,
0.1150820181,
-0.0733319521,
-0.2357821018,
-0.1626847386,
0.4998655915,
0.2208081335,
-0.1301796883,
0.2457041442,
-0.145917818,
-0.1141958609,
-0.4050399363,
-0.1108212546,
0.1224457547,
0.0407715179,
-0.0692754015,
-0.338265717,
0.3429748118,
0.0266007371,
-0.2418071032,
-0.1507672071,
0.0275090579,
-0.3063728213,
0.4966259897,
0.0495938435,
0.7502146363,
0.0802693143,
0.2257986069,
0.4995681643,
0.1529822499,
0.4479937255,
-0.019674195,
0.1059957072,
-0.2297644913,
-0.0201862101,
-0.0801833868,
-0.0772078112,
-0.0326403752,
0.2269546539,
-0.2821181118,
0.3359481096,
-0.0033662315,
-0.3440561891,
-0.0055838227,
0.2839401066,
0.2938862145,
-0.125546962,
-0.2925031185,
0.0554174595,
-0.0217531919,
0.0426058769,
-0.1231043935,
-0.1098691002,
0.2133319676,
0.019409962,
-0.1174661517,
-0.1151945665,
-0.322474122,
0.2670017183,
0.1172657683,
-0.1685049534,
0.447298795,
0.2850086987,
0.1239577159,
0.0077961595,
-0.0711962134,
0.0781342238,
0.2080247402,
-0.0823078603,
0.1668946445,
-0.0428409427,
0.1570524424,
-0.0013510175,
-0.0025433411,
-0.0050384477,
0.2122475207,
0.1522622705,
-0.4720566273,
-0.0966369286,
-0.0523437485,
-0.1472114623,
-0.2569826841,
0.262807548,
-0.0819590688,
0.0326914378,
0.0766985789,
0.0239618663,
-0.0052397111,
0.1885454208,
-0.1153897569,
-0.0173724685,
-0.0250453204,
0.1201426089,
0.402279377,
0.2349774539,
0.3080206513,
0.3002695143,
-0.06817168,
-0.1803525984,
0.1713417619,
-0.122077696,
0.2909732461,
0.1756086797,
0.1464814246,
-0.2375951558,
-0.3044599295,
0.118050769,
0.0134801762,
0.0669711232,
-0.0260010213,
-0.1837907284,
-0.2354145497,
0.4425733984,
-0.1116056517,
-0.0637497529,
-0.1207009405,
0.3430423141,
-0.0111435354,
0.2345220447,
-0.3226072192,
-0.0901740715,
-0.0342496522,
-0.0006584048,
-0.0721487254,
-0.3950371742,
0.0485447049,
0.056266319,
0.1170468479,
-0.3386165798,
-0.1039807573,
-0.2011163384,
0.0163676701,
0.0918513387,
0.1450990438,
-0.0100539885,
0.0832845643,
-0.0046012374,
-0.1219008788,
-0.126310423,
0.0334955864,
-0.2133260518,
0.2303094864,
0.2241818756,
-0.2433051914,
-0.3525441885,
-0.1441265494,
0.04647002,
0.1212241575,
-0.1529880017,
0.1883774996,
0.1076350436,
-0.1870584488,
-0.0602205247,
0.0611153021,
0.0929597765,
-0.2350380421,
0.0220597833,
0.2609617412,
0.213564977,
-0.2092925459,
0.19506751,
0.0953017175,
0.5737606287,
-0.362169981,
-0.1237956285,
-0.1961312592,
0.1801469773,
-0.3975522816,
0.1067784503,
-0.0357702672,
0.2692306936,
0.1508830339,
0.3243775368,
0.3548032045,
0.1190223321,
-0.2247093618,
-0.0045980988,
0.2842541635,
0.0008048868,
0.0646136254,
0.0652470589,
-0.0418842509,
0.0952358469,
0.4795924723,
0.0568915494,
0.2737269104,
0.5982524753,
0.1881873906,
0.1339506209,
0.5289388895,
0.015870383,
0.4654015601,
0.0724636167,
-0.0744095147,
0.1654359549,
0.1665527225,
-0.1509916037,
0.2589282691,
-0.0840419158,
-0.0470686108,
-0.503869772,
0.061820101,
0.1850281805,
-0.1930897683,
-0.3244962692,
0.1354411542,
0.0958600491,
-0.0190274101,
-0.1349737197,
-0.2654224038,
-0.3414900601,
0.1372230649,
-0.1111055166,
-0.0186734013,
-0.2364370376,
0.3297954202,
0.1804777682,
0.2503116131,
0.0762812644,
0.3437649012,
0.3048166335,
-0.1078617424,
-0.0460154228,
0.4059792161,
0.2508129179,
0.1334401369,
-0.7279349566,
0.0768472925,
-0.314324528,
-0.1537241191,
-0.1712711006,
0.0198040809,
-0.1110551581,
0.2067067325,
0.4055158496,
0.0355420336,
0.0332214758,
0.0554629937,
0.4479644597,
0.0331938788,
-0.2274222076,
0.3062974215,
-0.1743713319,
0.0557489842,
0.1576089859,
0.1194695309,
-0.4857298732,
-0.2708648741,
0.6146503091,
-0.0230259467,
0.1486743838,
-0.1452289373,
0.0934865847,
0.0028620237,
0.6333819628,
0.1780221909,
0.0357496291,
-0.1303563416,
0.0039923843,
-0.5874859691,
-0.2055068463,
-0.0397072434,
-0.0746477544,
0.1376371682,
0.2864625156,
-0.0014387008,
0.2262899131,
-0.407738775,
0.1404839754,
-0.3960297704,
-0.2935958803,
-0.6176456809,
0.039235808,
-0.2511718571,
0.2211209238,
-0.1902273148,
0.015904529,
0.2776587903,
0.1377041638,
-0.0955406949,
-0.0318646245,
-0.0550690591,
-0.0857346505,
0.1362802833,
-0.0336262546,
0.4873385131,
-0.0316749066,
0.0028377562,
0.0123232566,
-0.1042631641,
0.003174647,
-0.1777554899,
0.5362422466,
0.1062276214,
0.1782299429,
-0.1864856482,
0.1219008341,
0.1441921592,
0.1180163175,
0.1954145432,
-0.2649312317,
-0.4106275737,
0.3911325037,
0.1150141507,
0.4158946574,
-0.0828975141,
0.514179945,
-0.145231992,
0.1062403247,
-0.1097333655,
-0.3697823882,
0.4228873253,
-0.1451589912,
0.043437846,
0.1298260242,
0.0635664687,
0.1955456436,
0.0920951888,
-0.4175348878,
-0.3561802208,
0.3726508617,
-0.4296785295,
-0.3153372109,
0.255931139,
0.0254585147,
-0.4772299528,
-0.2210825086,
-0.0440043919,
-0.0213686172,
-0.4149128795,
0.0735890567,
-0.0863084495
] |
https://github.com/huggingface/datasets/issues/376 | to_pandas conversion doesn't always work | Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug
Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that).
It can cause issues when using dataset transforms like `filter` for example | For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible.
Here is an example using the official SQUAD v2 JSON file.
This example was found while investigating #373.
```python
>>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data')
>>> squad['train']
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442)
>>> squad['train'][0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__
format_kwargs=self._format_kwargs,
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
```
cc @lhoestq would we have a way to detect this from the schema maybe?
Here is the schema for this pretty complex JSON:
```python
>>> squad['train'].schema
title: string
paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>
child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>
child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>
child 0, question: string
child 1, id: string
child 2, answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 3, is_impossible: bool
child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 1, context: string
``` | 47 | to_pandas conversion doesn't always work
For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible.
Here is an example using the official SQUAD v2 JSON file.
This example was found while investigating #373.
```python
>>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data')
>>> squad['train']
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442)
>>> squad['train'][0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__
format_kwargs=self._format_kwargs,
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
```
cc @lhoestq would we have a way to detect this from the schema maybe?
Here is the schema for this pretty complex JSON:
```python
>>> squad['train'].schema
title: string
paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>
child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>
child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>
child 0, question: string
child 1, id: string
child 2, answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 3, is_impossible: bool
child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 1, context: string
```
Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug
Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that).
It can cause issues when using dataset transforms like `filter` for example | [
0.034681838,
0.1334794909,
-0.1031352505,
0.0542144962,
0.2966338098,
-0.0923534781,
0.3753248155,
0.4698342085,
-0.1327774227,
-0.2164527178,
-0.2198515534,
0.8954614401,
0.1729376912,
0.0701540634,
-0.0751236901,
-0.0060987961,
0.1450799853,
0.1565448493,
0.0088702673,
-0.0708983913,
-0.0599107295,
0.253130883,
-0.3004131913,
0.1826228201,
-0.0905479491,
-0.2454893291,
-0.0693990886,
0.2031732053,
-0.0372754261,
-0.4164662361,
0.3161965311,
-0.2416544408,
-0.0060524438,
0.3274360299,
-0.0001048727,
0.1640706062,
0.2705141604,
-0.0000033295,
-0.3173806369,
0.0224589091,
0.2117265016,
-0.2963275909,
0.3813582957,
-0.3474823236,
0.0869459361,
-0.3566199243,
0.0171470623,
-0.0835765973,
0.7314296365,
0.4084216058,
0.2785182595,
0.2500537336,
0.2212230116,
0.1054730862,
0.0283312965,
0.0175163206,
-0.1275165677,
0.0906669348,
0.0750307813,
-0.1102542654,
-0.0946215689,
-0.0678510517,
0.0189647079,
-0.125645563,
-0.0272466931,
0.0404621884,
-0.09317334,
-0.2096055746,
-0.0769633651,
0.2726134658,
0.093959406,
-0.387383461,
-0.3478513658,
-0.3279163837,
0.062939018,
-0.000963807,
-0.0402867086,
0.0938735381,
-0.1286567897,
0.115121752,
0.3740178645,
0.2121661156,
-0.1918033063,
0.0442611203,
-0.1055230945,
0.2287070751,
-0.1356021166,
0.0541746318,
-0.0578799583,
-0.3256852329,
0.0986951888,
-0.0277543571,
0.1278437078,
0.1253151447,
-0.3464332521,
-0.2328876108,
-0.0223376434,
-0.5411041379,
0.0283723809,
-0.0601906069,
0.425827533,
0.0907198414,
0.1717901379,
0.2311956733,
0.3668311238,
-0.0149528077,
0.0346244015,
0.1606028527,
0.112255618,
0.0811907053,
-0.1864198893,
0.1348261684,
-0.1662885845,
-0.2421691865,
-0.0859450623,
-0.1153010949,
0.3311737478,
0.0254375655,
-0.4399409294,
-0.0537531562,
-0.5590519905,
0.2023045123,
0.0710936934,
0.1338672191,
-0.0746624544,
0.3300738335,
0.0325632617,
0.3296061158,
-0.1141768321,
0.2582936287,
-0.1887710094,
0.1703866124,
-0.0874277055,
-0.2365325242,
0.0982108489,
0.3039861023,
0.0466022827,
0.0504976884,
0.0918959454,
-0.0839025527,
-0.1096948162,
-0.0015052366,
0.1392650753,
0.0685772523,
0.0357964449,
-0.0865216255,
0.1393049508,
-0.5467722416,
-0.1163139045,
0.0084969373,
-0.1911561489,
0.0046369727,
-0.1746990532,
0.2353433371,
-0.2089505494,
-0.209429726,
-0.2487308085,
0.3075788617,
0.2559836209,
-0.1344773918,
0.0554897971,
-0.2134830952,
0.108043544,
-0.3103168607,
0.0428102836,
0.0812462717,
-0.5389331579,
-0.0203243904,
0.0307999216,
0.0184503477,
0.0858013034,
0.3102586865,
-0.1158487499,
0.1331135929,
-0.0083086556,
0.3600108922,
0.4705029726,
-0.5010072589,
-0.2272088826,
0.1233953238,
-0.1028219163,
0.0469568186,
-0.009413152,
-0.0619987361,
0.1139435992,
-0.0847895071,
0.0009974111,
0.4146360755,
0.0844547749,
-0.0295384973,
-0.3178602755,
-0.042588152,
0.1657473594,
-0.0479368046,
-0.2070494592,
-0.0420342162,
0.1097066179,
0.1532748193,
0.25028795,
-0.0173268691,
0.1595970392,
0.0532888547,
0.109375827,
-0.1778445095,
0.1243777573,
-0.1607410014,
-0.4700013101,
0.0486027189,
-0.4537338316,
0.0608940534,
-0.4144338071,
-0.2232549936,
-0.2128349394,
0.1473478228,
-0.1878430396,
0.0255584046,
0.3575514257,
-0.167949751,
-0.0512809977,
-0.0964461267,
-0.1266189814,
-0.1882030666,
-0.2063401937,
0.1719736457,
-0.1708502769,
0.2271745801,
-0.1129680052,
-0.1993496269,
0.2624521852,
0.4142283499,
0.1086487547,
0.0614259914,
0.0796472132,
0.2213225961,
-0.0544629805,
-0.0317884013,
0.3201678395,
-0.2909971178,
-0.0313172638,
-0.2659504116,
0.0141431289,
0.3197632134,
0.150641188,
-0.1804137826,
-0.3506356478,
0.5115054846,
-0.00594514,
0.3427324295,
-0.0489867777,
0.2725568712,
0.2093357891,
0.0373881981,
-0.2711518705,
-0.071770139,
-0.4835419357,
0.3345215023,
-0.0204404555,
-0.0447024927,
-0.2443451285,
0.3678493798,
0.5505481958,
-0.0689330772,
0.1616615653,
0.0775091052,
0.0161992926,
-0.2619676888,
0.0648875087,
0.0690607652,
0.2639737725,
0.2140439153,
0.2403579801,
-0.1615493894,
-0.2850792408,
-0.0713732317,
0.2082886994,
0.097463198,
0.5278185606,
0.0792272985,
0.5001674294,
-0.0341707952,
-0.3575004041,
-0.1992800683,
-0.0516331829,
0.068685472,
-0.2854182124,
0.2564878464,
-0.3057739437,
0.0477435961,
-0.0250570495,
-0.1595955342,
-0.0184887517,
-0.3592123985,
-0.0316123739,
-0.1378119141,
-0.1378918141,
0.2406538129,
0.026621623,
0.0844946951,
0.2327082604,
-0.2775380015,
-0.1527977735,
-0.235208109,
-0.261693269,
0.2177620083,
0.3379374146,
0.0411353037,
-0.0485281609,
0.2794271708,
-0.0604335107,
-0.0615332387,
-0.3725873232,
-0.0082612718,
-0.335912317,
0.0715325996,
0.2027656883,
0.1623568982,
-0.262019664,
-0.1655700952,
0.2315653712,
-0.0164052714,
-0.2091491818,
0.0947050974,
-0.1275329441,
-0.0346239172,
-0.1428411752,
-0.2469443232,
-0.2260990292,
-0.3014287055,
0.5213176608,
0.1887673438,
0.2219527513,
0.1249704361,
0.332610935,
0.3914608955,
0.1052843556,
0.042373497,
-0.0694773644,
0.0976861343,
0.2977074385,
-0.169694066,
-0.3797700405,
-0.0698822588,
-0.1876224577,
0.240764007,
-0.3310916424,
-0.1938590258,
-0.150385797,
-0.085665293,
0.206667468,
-0.0267160721,
-0.0419330746,
0.2467583716,
0.2092577219,
-0.2028105855,
-0.2000724226,
-0.0342849866,
0.1739809066,
0.1710570455,
0.0377095789,
-0.1712382436,
0.3040520847,
0.2585916221,
0.4388799071,
0.2099827081,
-0.1460918337,
0.0409788564,
-0.0747579932,
0.1780076772,
-0.0446519032,
-0.1240198091,
0.0583533496,
-0.282769978,
0.2170440704,
0.0208705775,
-0.0480451696,
-0.4201209843,
0.0662789121,
0.2097395509,
-0.2522657812,
-0.2328828424,
0.1130293831,
-0.2635751367,
-0.2586222589,
0.0600230657,
0.0072317217,
-0.2038666308,
0.0052684289,
-0.1134462357,
-0.1282092482,
-0.0791152716,
0.0545388944,
-0.4279320836,
-0.2682370842,
-0.2955732048,
0.1940232366,
-0.0274752658,
0.3233993948,
0.2389303744,
-0.3229116499,
0.1085107848,
-0.2627047002,
0.3716487288,
0.0132564204,
-0.0600723065,
0.3629274964,
0.330150485,
-0.7625820041,
-0.0459957905,
-0.3256264925,
0.4142329991,
0.2585712373,
0.1136589572,
-0.3738937974,
-0.2970245779,
0.1337301433,
-0.0611589067,
0.0308415145,
0.1280532032,
-0.2378215343,
-0.3379613459,
-0.2001911849,
0.2259794921,
0.3510625064,
0.2922062278,
-0.2115908116,
-0.4218182266,
-0.1945054531,
-0.1939958334,
0.1717281193,
0.2185316235,
0.1352572292,
0.0284804348,
-0.0527352132,
-0.1477458477,
0.2658389509,
0.0832411721,
0.4682662487,
-0.0706396997,
-0.1046357751,
0.1021995768,
0.0393764935,
0.318695426,
0.2960725427,
-0.1890680939,
0.0780215934,
-0.1481002718,
0.0111734215,
0.2016935349,
-0.2384644747,
0.3859430552,
-0.0168807916,
0.0025900919,
-0.1516292542,
0.4655603766,
-0.0203572847,
-0.0327581465,
0.0383432396,
0.1135957614,
-0.1131091118,
0.4639158547,
0.2065854967,
0.8790788054,
0.0262421779,
0.3171675503,
0.5428174138,
-0.1710010469,
0.530421555,
-0.0539956465,
0.1478678584,
-0.2938595116,
0.5065791607,
0.064517729,
-0.1425771117,
-0.0863092691,
0.2681826353,
-0.2327598929,
0.0258357376,
-0.1960619837,
0.2170090377,
0.2107066065,
0.2751068175,
-0.0305992346,
-0.2755973637,
-0.6548109055,
0.2362294048,
0.116592221,
-0.2514947653,
0.1502363235,
-0.4565241933,
-0.4458028376,
-0.1074713841,
-0.0148462486,
0.2622072995,
-0.1795084476,
0.3122817576,
0.3167702556,
-0.3436286747,
0.1971016526,
0.5936034322,
-0.1254544854,
-0.2281091511,
-0.0550538413,
0.0861301273,
0.0346790999,
-0.0109293852,
0.1019863635,
-0.0854180008,
0.3436596394,
-0.061800044,
-0.1343173832,
0.0810632035,
-0.0348945707,
-0.1304961294,
0.0797432512,
0.4892712533,
-0.161846444,
-0.3484072387,
-0.0983697399,
-0.0384710021,
-0.3954728246,
-0.2417124659,
0.2116262019,
-0.0092252893,
-0.1125635728,
0.4255144,
0.2137940973,
-0.0839788243,
0.1484847367,
0.2626098692,
0.0930734351,
0.3781288266,
0.5176311135,
0.0884296224,
-0.1763882786,
-0.2753967345,
0.1769766659,
0.1379490048,
-0.1889904886,
0.280777216,
-0.1882598996,
-0.3576728404,
0.0459902808,
0.0207597036,
-0.0589366481,
0.1955638379,
-0.2597551644,
-0.4056971371,
-0.2798855007,
0.2288466394,
-0.0408817716,
-0.0069537777,
-0.0486402735,
0.3339014351,
-0.0145015595,
-0.0963488892,
-0.3843575418,
0.2725993693,
-0.3716555834,
0.0740753487,
-0.3814617395,
-0.3459909856,
0.2668172121,
0.0308049396,
0.2160769254,
0.1098611653,
0.0036860311,
-0.3170912862,
-0.0461045243,
0.0781309977,
0.1460113674,
0.1028929725,
-0.015235954,
0.0452593416,
-0.3004338145,
-0.1509354562,
-0.1212889552,
-0.055539947,
-0.0096377013,
0.1606694907,
0.0099006956,
0.0740237385,
0.2094492167,
-0.1554740816,
-0.0692408532,
0.0523919798,
-0.0738825575,
0.2532298267,
-0.0490230061,
0.0039505549,
0.1122217253,
0.2262327373,
-0.0058488413,
0.1865203977,
0.2958052158,
-0.1624652445,
-0.4413197339,
-0.2184997946,
0.3224138021,
0.5740978718,
-0.1763644218,
0.0570710264,
-0.2007496953,
0.2156661898,
-0.4009671211,
0.0981799439,
0.2420494109,
-0.1563888937,
0.1629414856,
0.1809740067,
0.0274455342,
-0.1156515926,
-0.0125559065,
0.0659360215,
0.2097217292,
-0.0765960813,
-0.0596348755,
0.2138530612,
-0.0161440652,
0.0193220153,
0.40707165,
-0.0857662857,
0.2633346319,
0.332968235,
0.0312269013,
0.0426283106,
0.2017090321,
0.0390785225,
0.3710513413,
0.1623592973,
-0.0544954017,
0.173710227,
0.2876288593,
-0.0220837835,
0.1096090153,
0.7406486273,
-0.099369742,
-0.1496198773,
-0.0029149808,
0.0964953601,
-0.1920406073,
-0.2609265745,
-0.3624967635,
-0.1506778151,
-0.1066599488,
-0.3490464091,
-0.0708512366,
-0.2164482772,
-0.089156352,
-0.0799687207,
0.1176132783,
-0.1278522164,
0.1915340126,
0.0721955523,
0.25208956,
-0.0163426716,
0.1791753918,
0.1918962896,
-0.007400678,
-0.1781457216,
0.1820496768,
0.5045113564,
0.1560385227,
-0.4481222928,
-0.0124124205,
0.0752603188,
-0.3575071692,
0.0184036698,
0.1065765545,
0.1137406081,
-0.2378426343,
0.3356723189,
0.2290235013,
-0.1850778013,
-0.2165261954,
0.222421661,
-0.0761558339,
0.1127023548,
0.2996038198,
-0.3052107096,
-0.3296505809,
-0.0944685489,
-0.0046700905,
-0.2677339911,
-0.2765891254,
0.1584851742,
0.0071124528,
0.2048695832,
-0.2126355916,
0.1546743512,
0.06932576,
0.5761983991,
-0.0310886651,
0.0948053896,
0.0794110522,
0.2102881223,
-0.4790939093,
0.1391237974,
-0.1064217016,
-0.1181198731,
0.0687157363,
0.4990249872,
0.0630583018,
0.1504906416,
0.1508840621,
0.0104322787,
-0.1435123831,
0.0968664587,
-0.3981227279,
0.0104692308,
0.18291834,
0.0597026721,
0.1628820896,
-0.2981539667,
0.0647492632,
-0.1292551607,
0.1347408146,
-0.0217994824,
-0.2169079334,
-0.0270210765,
-0.1069160402,
0.2247481495,
0.1091793999,
0.1795613468,
-0.0586219765,
-0.2362982035,
-0.1898045242,
-0.1666765809,
-0.2485949397,
0.4792467356,
-0.1454411894,
0.2362555116,
-0.0857736245,
0.0941276625,
0.1562324613,
-0.026811704,
0.1147977412,
-0.1340169311,
-0.326020509,
0.335285455,
-0.0969311893,
0.2485345155,
-0.259483248,
0.3689164519,
-0.1254215389,
0.220335573,
-0.3546591401,
-0.5474947691,
0.5134510994,
-0.344206214,
-0.3539213836,
0.2588497996,
0.1708126515,
0.2654416859,
0.1027441695,
-0.1676396877,
-0.1582753956,
0.2111675143,
-0.1707343012,
-0.3202187121,
-0.0052575897,
-0.1648397297,
0.100931257,
-0.263669163,
-0.0430937372,
0.0050744568,
0.1069144905,
-0.2034541219,
-0.3928065598
] |
https://github.com/huggingface/datasets/issues/375 | TypeError when computing bertscore | I am not able to reproduce this issue on my side.
Could you give us more details about the inputs you used ?
I do get another error though:
```
~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers)
371 return sorted(list(set(l)), key=lambda x: len(x.split(" ")))
372
--> 373 sentences = dedup_and_sort(refs + hyps)
374 embs = []
375 iter_range = range(0, len(sentences), batch_size)
ValueError: operands could not be broadcast together with shapes (0,) (2,)
```
That's because it gets numpy arrays as input and not lists. See #387 | Hi,
I installed nlp 0.3.0 via pip, and my python version is 3.7.
When I tried to compute bertscore with the code:
```
import nlp
bertscore = nlp.load_metric('bertscore')
# load hyps and refs
...
print (bertscore.compute(hyps, refs, lang='en'))
```
I got the following error.
```
Traceback (most recent call last):
File "bert_score_evaluate.py", line 16, in <module>
print (bertscore.compute(hyps, refs, lang='en'))
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute
output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() takes 3 positional arguments but 4 were given
```
It seems like there is something wrong with get_hash() function? | 91 | TypeError when computing bertscore
Hi,
I installed nlp 0.3.0 via pip, and my python version is 3.7.
When I tried to compute bertscore with the code:
```
import nlp
bertscore = nlp.load_metric('bertscore')
# load hyps and refs
...
print (bertscore.compute(hyps, refs, lang='en'))
```
I got the following error.
```
Traceback (most recent call last):
File "bert_score_evaluate.py", line 16, in <module>
print (bertscore.compute(hyps, refs, lang='en'))
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute
output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() takes 3 positional arguments but 4 were given
```
It seems like there is something wrong with get_hash() function?
I am not able to reproduce this issue on my side.
Could you give us more details about the inputs you used ?
I do get another error though:
```
~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers)
371 return sorted(list(set(l)), key=lambda x: len(x.split(" ")))
372
--> 373 sentences = dedup_and_sort(refs + hyps)
374 embs = []
375 iter_range = range(0, len(sentences), batch_size)
ValueError: operands could not be broadcast together with shapes (0,) (2,)
```
That's because it gets numpy arrays as input and not lists. See #387 | [
0.2761251628,
-0.1318785548,
0.0756906718,
0.5165116787,
0.0988566577,
-0.0892143846,
0.1624637097,
0.4776292145,
-0.0689700991,
0.178064391,
0.1973378807,
0.4109015465,
-0.2279065251,
-0.2859782577,
-0.0107828518,
-0.489137888,
-0.0108124651,
0.2576288283,
0.0752304941,
-0.1934443116,
-0.4337229133,
0.0454931557,
-0.3053168356,
0.2282248139,
0.2554679215,
0.088628754,
-0.2604390383,
0.1348605603,
-0.2278599441,
-0.4158532321,
0.3323251307,
-0.1785543859,
0.0079619233,
0.2735726237,
-0.0001196758,
-0.1642265916,
0.342283994,
-0.0503760092,
0.1353787333,
-0.2967057526,
-0.5725342631,
-0.3105909824,
-0.0319616906,
-0.3177138865,
0.2614755929,
0.1489252746,
-0.135434255,
-0.0481010191,
0.0123423701,
0.1812463552,
0.1339588463,
0.0254177041,
-0.2118636072,
0.0177610852,
0.2604247928,
0.0071907826,
0.0185496286,
0.3635785282,
-0.4025582373,
-0.3008162379,
0.0149123939,
0.3288398385,
0.0135538531,
0.0823643804,
0.2077830732,
0.2061750293,
0.0641867071,
0.1880903989,
-0.099902153,
0.0908539891,
-0.3608178198,
0.083635509,
-0.3250643909,
0.2343546003,
0.0563024208,
-0.4785048962,
0.2022825181,
-0.1153280437,
-0.0014470164,
-0.5615648627,
-0.2783879042,
-0.1005957276,
-0.316791445,
0.1922529489,
0.3359631896,
-0.1287994534,
-0.1018861607,
0.1736431867,
0.4988453686,
-0.1260610074,
-0.1148240715,
-0.135713011,
0.131662637,
0.4445533752,
-0.0911608264,
0.1092809364,
0.1363415271,
0.1133347973,
-0.0303325541,
-0.521954298,
0.0719115287,
-0.0270392559,
-0.3086431324,
0.2734445035,
0.0143343834,
0.4041199982,
0.0988547802,
0.213806197,
-0.1712891161,
0.0942790955,
0.129412815,
-0.1019418687,
0.0056879236,
-0.1329762042,
0.2726548612,
0.4165841043,
-0.236331284,
-0.1184179857,
0.1208982542,
-0.0305104144,
-0.5161260366,
-0.0156842489,
0.2908792794,
0.3036074936,
-0.0318062119,
0.3757748008,
0.0542506762,
0.1252968758,
-0.2185619771,
0.0710506365,
-0.165114671,
0.4736359715,
-0.410400182,
-0.0963291451,
0.2049659044,
-0.2787079811,
0.2501210272,
0.0212144386,
0.1306795776,
0.0555526726,
-0.2320174873,
-0.2523789406,
0.1263786703,
-0.1410633922,
0.0272898637,
-0.0139504885,
0.2995967567,
0.2706361413,
-0.13691172,
0.0181664173,
-0.4476972818,
-0.3143447638,
0.155960992,
0.099113822,
0.1796131283,
0.1577753574,
-0.2132611424,
-0.0983941406,
0.2718787789,
-0.2792686224,
-0.2460838556,
-0.3767073452,
-0.1823873669,
-0.2621821463,
0.1168282032,
0.2059367597,
-0.1212450415,
0.0793726146,
-0.3344720304,
0.3835711181,
0.4181893766,
0.2574717999,
-0.2473277748,
0.045204524,
-0.0492057912,
0.3692494631,
0.5125997066,
-0.5257790685,
-0.0867503956,
-0.1490115672,
0.3625637889,
-0.3087706268,
-0.0399737917,
-0.0240803715,
-0.3384363949,
0.024521742,
0.0581528991,
-0.1452071518,
-0.1038013846,
0.013366011,
-0.2070169598,
0.0359149314,
0.2369989604,
0.0171720441,
0.2854470611,
-0.0981566012,
-0.0882566422,
0.3454073966,
-0.1192731559,
-0.1363749504,
0.0345536023,
0.0504768193,
0.3094349205,
-0.2021871805,
0.2588392198,
-0.1655932218,
0.109283112,
0.0673470125,
-0.4491258264,
0.2856456935,
-0.0311462693,
0.2148449719,
-0.1701607853,
-0.101670675,
-0.0813260153,
0.0045045582,
0.0332286581,
0.0805322081,
0.2835665941,
0.0595617034,
-0.137404874,
-0.3083926439,
-0.0790307373,
-0.251103133,
-0.2863685191,
0.0399267301,
-0.3576809466,
-0.1113913357,
0.252958566,
0.4223968983,
0.4608675539,
0.2282652408,
-0.1752713472,
0.1923550516,
0.0128555242,
-0.2530879676,
0.252843231,
0.0289124697,
-0.0318939798,
-0.2653278112,
0.1053086147,
-0.0803647116,
0.3789340556,
-0.0778164119,
0.170015797,
0.3666506708,
0.0215996746,
0.3864725232,
0.0584278889,
0.1290575564,
0.1458589286,
0.1078659743,
0.1775078475,
-0.1183462292,
0.3007713854,
0.0703478754,
-0.2067732662,
-0.2661766708,
0.2243999541,
-0.3974008262,
0.529651165,
0.1097303629,
-0.0443879031,
0.3107477129,
0.044751592,
-0.0797539055,
-0.3063564599,
-0.5760130882,
0.4189805984,
-0.1433950067,
-0.0812468529,
-0.0095234485,
-0.0576683916,
-0.0341160595,
0.1319586486,
0.145587489,
-0.1513840705,
-0.1614835411,
0.0986194164,
-0.0865079686,
0.0416443199,
-0.2019615918,
0.0317006595,
0.5163311362,
-0.3323077559,
0.4592030346,
-0.2828942537,
-0.2112264484,
-0.2713424861,
-0.6009110212,
-0.3930343688,
-0.4392987192,
-0.0611247197,
-0.0487506874,
0.1180297136,
0.211656034,
0.1126753315,
0.3243051767,
0.2135201097,
0.1973183006,
-0.1149034128,
-0.2264518291,
-0.4213556945,
-0.0705223531,
-0.1354673207,
0.0677992776,
0.1510774344,
-0.1498577446,
-0.1466469914,
-0.0514498092,
-0.2478655428,
0.0892847702,
-0.3712438643,
0.0114818616,
0.4287261963,
-0.2520734072,
-0.5686553121,
-0.1865829378,
0.411308229,
-0.2112158984,
-0.1362234354,
0.6053294539,
-0.1048113257,
0.0049572196,
-0.1419309676,
-0.232583195,
0.1631806344,
-0.0266356822,
0.2447890043,
0.1147987768,
0.3527391553,
0.0608622134,
-0.0426310115,
0.3670555651,
-0.2433393449,
-0.0545861013,
-0.2454432398,
-0.2338039279,
0.1739593893,
-0.1633548886,
-0.3638004661,
-0.2329205871,
-0.0839455202,
0.2205968499,
0.0326966532,
-0.0719918907,
-0.6988810897,
0.1609140188,
-0.0875735506,
-0.1130754501,
0.3430013359,
0.2070795447,
-0.0264376272,
-0.0185621735,
-0.2006422132,
-0.0735506043,
0.2997159362,
0.1567744762,
0.2876433432,
0.0552393124,
0.2681933939,
0.2105778158,
0.7750534415,
0.4110401571,
-0.1427955031,
0.4108363688,
0.0980711579,
-0.0665927306,
0.1418495327,
-0.4568255842,
0.0531859361,
0.0878208578,
0.2652166784,
0.1736511737,
-0.1130231842,
-0.0135814436,
-0.144609645,
-0.1400754601,
-0.4488292038,
-0.2586409748,
0.1118821725,
-0.2477545589,
0.5019534826,
0.0393710174,
0.0282556564,
-0.401120007,
-0.2987891138,
0.0437128916,
-0.1346628815,
0.1600888222,
-0.0850047842,
0.3199126124,
-0.4315064251,
-0.2609436512,
0.4325511754,
0.5315392613,
0.460239023,
-0.0440844484,
0.2140751779,
0.0286205616,
0.0435650349,
0.3916592896,
-0.2287543714,
0.1957284361,
0.1939030439,
0.0125677465,
-0.2409177721,
0.0994615182,
-0.4506720006,
0.0259020887,
0.2522267699,
0.1966552436,
-0.1824197769,
0.0829214305,
0.2392494828,
-0.1913162619,
-0.2168228626,
-0.1717545092,
-0.3922539353,
-0.1034559757,
0.1337932199,
0.0708656982,
-0.1848284155,
0.327814281,
0.1164415479,
0.342713505,
0.0810553208,
-0.0545406491,
0.1605661064,
0.0525475368,
-0.0157513134,
0.0007021161,
0.0075160759,
0.0105599146,
-0.0969672725,
0.1803431064,
0.075313203,
-0.0390518717,
-0.3406936228,
-0.0114940461,
0.1553642303,
0.5570815802,
0.0420727953,
-0.025938455,
0.0074094008,
0.0348686129,
0.0451921001,
-0.0971727222,
0.1141788289,
0.654345274,
-0.1623402089,
-0.2744380236,
-0.3511205316,
0.5985896587,
0.1391279846,
-0.0441229828,
-0.1602845937,
0.3554714918,
-0.1096791551,
0.2573423684,
0.4078998566,
0.9862607718,
0.0076942984,
0.0063672233,
0.395188719,
0.3146582544,
0.6596640944,
0.1578852087,
0.2431862056,
-0.4803034365,
0.0930511206,
-0.047033377,
-0.1843596846,
-0.0433023907,
-0.1433940083,
-0.1519217193,
0.5336700082,
-0.182240814,
-0.0090792673,
0.0595018789,
-0.0926758423,
0.1497075856,
-0.3648528755,
-0.2230274379,
0.0929771811,
-0.2057848722,
0.1314042211,
-0.1327212006,
-0.1358573437,
0.098619394,
-0.3095800579,
-0.3487918377,
0.220047757,
0.3045182824,
0.0868368447,
-0.066090472,
-0.0008574529,
0.1731228232,
-0.0144818993,
0.3831585646,
-0.030286286,
-0.1866535693,
-0.0229078457,
0.0708983094,
-0.0881786123,
0.1204803064,
0.266751498,
-0.1431594342,
-0.1279945821,
-0.0330288745,
0.1175678968,
-0.0159541294,
-0.2441242188,
-0.0770288408,
0.0197639577,
0.170729205,
-0.0075826072,
0.0523216538,
-0.0347123072,
0.001345669,
-0.0325208269,
0.0771799237,
0.0615726896,
-0.3198440075,
0.2046661824,
0.0610938407,
-0.1008356959,
0.2633227706,
0.3545154929,
0.1891111135,
0.0707342252,
0.433087796,
0.0131018711,
-0.2483196557,
-0.0143438363,
-0.295758307,
0.0910888985,
-0.3135704398,
0.0125329513,
0.1495845765,
0.2577355802,
0.0460845269,
0.3942523897,
0.0963944197,
0.0542416908,
0.011534241,
-0.3625419736,
0.0454561561,
0.0628630072,
-0.2470956147,
-0.2727505863,
0.0383835509,
0.1021152139,
-0.1322076023,
0.3776411414,
-0.2192404866,
0.0390756205,
-0.3728847504,
0.3584417701,
-0.1926398277,
-0.0827745646,
0.2540488243,
0.1947725713,
0.0388452113,
0.3014283776,
-0.1767052114,
-0.0731121376,
-0.2100670934,
0.1635114998,
0.1310477853,
-0.1000209451,
-0.1430185437,
-0.3009256124,
-0.2370303422,
-0.0528403856,
-0.5451622605,
0.0936053693,
-0.0505119562,
0.5203587413,
-0.0175808221,
0.2093587369,
0.258618474,
0.1882197261,
-0.0817685127,
0.3411984742,
-0.0502769575,
0.1644686162,
0.0733919665,
-0.1656045616,
-0.1188356504,
0.0411758497,
0.143289268,
-0.0187749751,
0.2660486698,
-0.0018670887,
0.3188217878,
-0.2743106484,
0.326965332,
0.1402778327,
-0.0391174294,
-0.0568726622,
0.3071948886,
0.0340562761,
-0.1577091366,
-0.0167014915,
-0.3050071597,
0.1646965295,
-0.2107363194,
0.1912525296,
-0.1915952563,
-0.0024429937,
0.0365469977,
-0.2161624134,
-0.0961603522,
-0.2499929667,
-0.105124414,
0.2406220436,
-0.1562425494,
0.0950379521,
0.3902394176,
0.1090635359,
0.1705679297,
0.2774474025,
-0.1277303845,
0.2209455818,
-0.3681938648,
-0.0341560952,
-0.1115671322,
-0.096221216,
-0.4266496599,
0.3289452195,
0.3853104711,
0.2180594802,
-0.2089059353,
0.6197127104,
-0.2494836897,
0.0003627663,
-0.4004911482,
0.4326593578,
0.1480335742,
-0.0509178862,
-0.2288654447,
-0.1270180047,
-0.2422430962,
0.024107134,
-0.0477324203,
0.1367578506,
0.4916249514,
0.4510844946,
-0.0505796,
-0.2604434788,
-0.325042963,
0.5483908057,
0.2560438216,
-0.3059967756,
-0.0033514095,
0.112979807,
0.001746804,
-0.0900231749,
0.3348163962,
0.2629608512,
0.4056597054,
-0.2561150193,
-0.2389256507,
0.000882301,
0.0525389947,
0.047951486,
0.2962494791,
0.3155492842,
0.3683303595,
0.1411132365,
-0.0089416904,
-0.0464184731,
0.1642612368,
-0.099521555,
0.5115289688,
0.0894531682,
0.8424607515,
-0.0701089576,
0.2200591415,
-0.0643103123,
0.0433488972,
-0.4138905406,
0.2294121534,
-0.0224555172,
0.4532648623,
0.1220005304,
-0.0497550257,
0.0311039928,
-0.0103858206,
0.5032483935,
0.3842635155,
-0.160347864,
-0.6217654347,
-0.0705338493,
-0.1833682656,
0.0825198963,
-0.0731540024,
0.1935970932,
-0.0136897601,
0.0601203442,
-0.1586879343,
0.1457275152,
-0.1382824481,
-0.1218955591,
-0.2110370845,
0.2093117386,
-0.2460126132,
-0.2201059014,
-0.2454260439,
-0.4443537295,
0.0382012017,
-0.0276740137,
-0.0358010009,
-0.2291759849,
0.0267047435,
-0.1150477305,
-0.223509416,
0.0858787224,
0.5075322986,
0.2599183023,
0.3871494532,
0.3245074153,
0.1401469409,
-0.2034893334,
0.0518976189,
-0.1327572465,
0.0878441632,
0.063876681,
-0.3981202245,
0.1798437089,
-0.1646803468,
0.0677558482,
-0.5098581314,
0.3263382614,
-0.1633459181,
-0.1433932185,
-0.3805131018,
0.1197049171,
0.0851335377,
-0.0169912186,
-0.1053536907,
0.0401985906,
-0.0319028497,
0.3425039351,
-0.4504335523,
-0.0074980315,
0.6227497458,
-0.5898157954,
-0.3655669689,
0.1650716066,
0.2566816211,
0.0099777868,
-0.1730732471,
-0.8751226664,
-0.1224637106,
0.3599116802,
0.1091387719,
-0.1743113548,
-0.1304670125,
-0.2308668494,
-0.0303228442,
0.0319111347,
-0.0329068042,
-0.0787345544,
-0.1470035166,
0.3145704567,
-0.0969068483
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step:
```python
import os
import pyarrow.json as paj
import nlp as hf_nlp
from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils
from nlp.arrow_writer import ArrowWriter
class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
``` | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 191 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step:
```python
import os
import pyarrow.json as paj
import nlp as hf_nlp
from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils
from nlp.arrow_writer import ArrowWriter
class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
``` | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Yes, deleting the directory solves the error whenever I try to rerun.
By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py`
When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 96 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Yes, deleting the directory solves the error whenever I try to rerun.
By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py`
When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory. | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | I see, diving in the JSON file for SQuAD it's a pretty complex structure.
The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can:
- copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset
- in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files`
- load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})`
This way you can reuse all the processing logic of the SQuAD loading script. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 117 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
I see, diving in the JSON file for SQuAD it's a pretty complex structure.
The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can:
- copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset
- in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files`
- load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})`
This way you can reuse all the processing logic of the SQuAD loading script. | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation.
Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 156 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation.
Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all. | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`.
I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
| The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 48 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`.
I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
| [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Could you try to update pyarrow to >=0.17.0 @vegarab ?
I don't have any segmentation fault with my version of pyarrow (0.17.1)
I tested with
```python
import nlp
s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train")
s[0]
# {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':...
``` | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 49 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Could you try to update pyarrow to >=0.17.0 @vegarab ?
I don't have any segmentation fault with my version of pyarrow (0.17.1)
I tested with
```python
import nlp
s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train")
s[0]
# {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':...
``` | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Also if you want to have your own dataset script, we now have a new documentation !
See here:
https://huggingface.co/nlp/add_dataset.html | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 20 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Also if you want to have your own dataset script, we now have a new documentation !
See here:
https://huggingface.co/nlp/add_dataset.html | [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | @lhoestq
For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file.
Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct:
```py
import nlp
>>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train")
Using custom data configuration default
>>> s[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
>>> s
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35)
```
Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
| The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 219 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
@lhoestq
For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file.
Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct:
```py
import nlp
>>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train")
Using custom data configuration default
>>> s[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
>>> s
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35)
```
Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
| [
-0.0172922947,
0.2893965542,
0.0609415695,
0.05787028,
0.2236097753,
-0.0165484808,
0.3200392425,
0.6101839542,
-0.4010096192,
-0.2130429149,
-0.2422537953,
0.7714079618,
0.1327872574,
-0.4265964627,
0.148923263,
-0.0715275556,
0.0462256074,
0.1267296225,
0.223941505,
0.0536699705,
-0.1744495928,
0.3416512609,
-0.2299686223,
0.1320415884,
-0.1667517126,
0.2660645545,
0.0065364414,
0.5419240594,
-0.0745722651,
-0.730202198,
0.2977763414,
-0.0093300687,
0.1517451555,
0.3450246155,
-0.0001186113,
0.1845318973,
0.3318485916,
-0.1096369624,
-0.3517016768,
0.0521293022,
0.280503124,
-0.2414648235,
0.338026613,
-0.1453837752,
0.0627315864,
-0.311979562,
0.0318319723,
0.0812747031,
0.6866552234,
0.1553965807,
0.0921011567,
0.1377256066,
0.0738055632,
0.0523658916,
0.0207763482,
0.0678777695,
0.0166038964,
0.7200932503,
0.5202920437,
-0.1260126531,
-0.3388991952,
-0.0720851049,
0.1212720051,
-0.0382685661,
0.2048572153,
-0.0635559559,
-0.0138486475,
-0.1832710803,
0.0524651669,
0.11702016,
0.2416467816,
-0.2380602509,
-0.2328485548,
-0.2157491595,
0.0747869462,
-0.2181085646,
0.377320528,
0.2772292793,
-0.1398607194,
0.1523422152,
-0.0569969565,
0.0344606899,
-0.1918931603,
0.0293105617,
-0.2142738551,
0.5192519426,
0.1215122044,
0.0416841879,
0.1051239818,
-0.1629455537,
-0.1519260556,
0.3172396719,
-0.2625277042,
0.3998278975,
-0.3908269107,
-0.1686173528,
0.1120528281,
-0.362651974,
0.2163050026,
0.0901771709,
0.1800891608,
0.1672050804,
0.2139121443,
0.1203704178,
0.4853106141,
0.0546771064,
0.1718356907,
0.2025325149,
0.1526309401,
-0.0196300391,
-0.0259742644,
0.2397750765,
-0.139881745,
-0.2250076979,
-0.2135158777,
0.0280674882,
-0.0268213842,
-0.109466739,
0.0148829371,
0.0695179179,
-0.3147708774,
-0.0120256906,
0.0509854928,
0.0848620981,
0.131286934,
0.1926079541,
-0.250028193,
0.2047612071,
-0.1014549956,
-0.1726951599,
-0.017575264,
-0.0268200282,
-0.3066567183,
-0.02066564,
0.4054742157,
-0.1225606948,
0.1185211688,
-0.0812496543,
-0.1116154864,
-0.2269219309,
-0.4334720671,
-0.0438978747,
0.0076664556,
0.1496734619,
0.0316800624,
-0.070486404,
-0.0367235355,
-0.2581102848,
-0.1803208292,
0.2121896893,
-0.3511876464,
-0.2851625979,
-0.5924192071,
0.1183916032,
-0.3227142692,
-0.0053095599,
0.1444022506,
0.2050791979,
0.0566593893,
-0.454326421,
-0.1377893984,
-0.0893591195,
-0.0031522892,
-0.2295425832,
0.146682784,
0.252378881,
-0.8450295329,
-0.2359818518,
0.1668373048,
-0.0015072479,
0.0830977485,
0.5275312066,
-0.3514190018,
0.2732031345,
-0.1530969143,
0.5261090994,
0.4013668895,
-0.2779784203,
-0.3369086385,
0.2427909672,
-0.3994485736,
-0.0413574874,
-0.237267524,
-0.065571852,
0.296705395,
0.0823336467,
0.3412531018,
0.4493862987,
-0.1155515239,
0.1483246088,
-0.3325650394,
-0.0804987475,
0.1726423502,
0.360140413,
-0.0674155653,
-0.1608242095,
-0.0298586898,
0.1449322104,
0.4040018618,
-0.1719319224,
-0.020753907,
0.1606730819,
0.1372899115,
-0.017320469,
0.1661420166,
-0.108080022,
-0.7758406997,
0.1020509675,
-0.2894928455,
0.0807942227,
-0.0411322005,
0.0060530747,
-0.2767828703,
-0.1135978475,
-0.2061314583,
-0.0540230684,
0.032117039,
-0.1604942232,
-0.0348592475,
-0.0682967082,
-0.4652941227,
-0.1567874551,
-0.1547567397,
0.3780494332,
-0.115378052,
0.403931886,
-0.1302651614,
-0.4008334279,
0.0927923098,
0.3672268391,
0.1282614022,
-0.2672617733,
-0.0068156174,
0.329567939,
-0.0804476142,
0.1338739097,
-0.1708228737,
-0.2979547083,
0.2476089895,
-0.0857613459,
-0.1292841583,
-0.0635813847,
-0.1022321209,
-0.088364698,
-0.3246677816,
0.3362675905,
0.0197259858,
-0.0326363929,
-0.0567733422,
-0.2471364439,
0.2981205583,
-0.0848112255,
-0.1274032146,
-0.0282972082,
0.0172862615,
0.1671072692,
-0.0124942008,
0.1766582727,
-0.1765218079,
-0.0144742383,
0.3694948554,
-0.0651190877,
0.035569746,
0.1873181015,
0.1008716375,
-0.2918989956,
-0.0247529317,
-0.0487227142,
0.3634797931,
-0.0076968609,
-0.1558918804,
-0.0039153765,
0.0336671211,
-0.018401932,
-0.01154547,
0.0482457913,
0.4226095378,
0.5049402714,
0.3639854789,
0.1684010327,
-0.2733653784,
-0.1548731625,
0.127622813,
0.0563045032,
-0.3743782043,
0.0602172986,
-0.2678272128,
-0.1445930153,
-0.2930879593,
-0.1426911056,
-0.3419748247,
-0.1941554099,
0.1088884622,
-0.0382638909,
-0.0867824629,
0.2005052567,
0.1665451527,
0.4000803828,
0.1002782434,
-0.1863680333,
0.0381458253,
-0.1772581041,
-0.2182416022,
-0.0453670397,
0.3783228099,
-0.0644289181,
-0.2067785263,
-0.1894415617,
-0.2709750831,
0.1097923368,
-0.4360964596,
0.168029353,
-0.0091555547,
0.1945904493,
0.0222651493,
0.23686333,
-0.1479674429,
-0.3669350147,
0.2814826071,
-0.0462121144,
-0.2511281669,
0.0004013508,
-0.1034958065,
0.1337919533,
-0.2878105938,
-0.3897340298,
-0.245311603,
-0.2271137834,
0.4359025359,
0.0752960145,
0.1372659802,
0.2004075795,
-0.2020681202,
0.0147432955,
-0.237059772,
-0.2110953927,
0.0494784005,
-0.1857465506,
0.2052339017,
-0.2988074422,
-0.1417260319,
-0.0219018441,
0.0942520574,
0.167004779,
-0.2243584543,
-0.1604167372,
0.1161187515,
0.1713583618,
0.2460082322,
-0.323441267,
-0.2597648501,
0.2524790466,
-0.2297297716,
0.0524283536,
0.1972102523,
-0.360209614,
-0.0937120914,
0.518563807,
0.1982488781,
-0.2657058239,
0.2363280505,
0.0597210117,
0.8267532587,
-0.1374403834,
-0.1625378281,
0.1258327067,
0.030380439,
0.1219490469,
-0.148912102,
-0.0352488309,
0.3921881616,
-0.0397977494,
-0.112941213,
0.2475956529,
0.162451908,
-0.5424822569,
-0.0059676464,
0.1580977738,
-0.5473145247,
-0.1683235019,
0.2632974684,
0.5551203489,
-0.0850873068,
-0.0429342687,
0.0294519775,
0.0029248125,
-0.231551066,
-0.0598369278,
0.2242512703,
0.2707134783,
0.0932332948,
-0.543425858,
-0.3422010243,
-0.0447595865,
-0.0204035453,
0.1243698746,
0.4645567536,
-0.0012729092,
-0.2062437981,
0.0272206534,
-0.2641846538,
0.3476615548,
0.2620742023,
0.3518283069,
0.3491416574,
0.3293302357,
-0.0743018016,
-0.3046777546,
0.1451893449,
0.4771128893,
0.6556541324,
0.4198310375,
-0.1016694233,
-0.1317108124,
0.2848742902,
0.0859611407,
-0.144780919,
-0.0733838677,
-0.2265140265,
-0.0794777051,
0.0030262533,
0.0393502116,
-0.0417611599,
0.3973937929,
0.0603223518,
0.1337607056,
0.4236766994,
-0.2695539296,
-0.2426750958,
0.3894137144,
0.1091236547,
0.0767816156,
0.046804551,
0.2670255601,
-0.0012029916,
0.3386415541,
0.4461457729,
0.2894242406,
-0.2029463798,
0.2748584747,
-0.0069875405,
0.2213012576,
0.4691967368,
0.2012592703,
-0.183090359,
-0.1404708177,
-0.1271871775,
0.0230223797,
-0.4001843631,
0.1378407627,
-0.3075537384,
-0.22677809,
0.2155748159,
0.2009167075,
-0.0955837891,
-0.0633856654,
-0.028997492,
-0.0604566894,
-0.0157038569,
0.5079241395,
0.1642164439,
0.773422122,
-0.0452005006,
0.1062065214,
0.2713398039,
-0.1177693829,
0.4012332261,
-0.6511294246,
0.3604260087,
-0.4377225041,
0.2696181834,
0.121425122,
-0.1291206032,
0.1680383831,
0.1842430532,
0.0067202966,
-0.0547788553,
-0.147625193,
0.2945114672,
-0.0257624295,
0.3388977945,
0.1799480468,
-0.3059539795,
-0.5036041737,
0.0607924424,
-0.3701075017,
0.0345582068,
-0.149078086,
-0.1694026887,
-0.0852132142,
-0.126562655,
-0.2838008106,
0.2769854963,
0.1298913658,
0.0143144578,
0.5128049254,
-0.2600142658,
0.1598158479,
0.3644194901,
-0.1501441896,
0.0535291433,
-0.002932539,
0.3615520895,
-0.1234305501,
0.1117695943,
0.2297598124,
0.0198838841,
0.2879818976,
-0.1601618081,
-0.0406817831,
-0.0503904521,
-0.0745754018,
-0.2796955407,
-0.0691922903,
0.3941940963,
0.1375080794,
-0.1656413525,
0.0129152834,
-0.1245391145,
0.1229192689,
-0.0493013039,
0.0542032942,
0.0106455563,
-0.1491624266,
-0.0271746684,
0.1586453021,
-0.0698154941,
0.0864369124,
0.6089108586,
-0.1084503531,
-0.3196198642,
0.3064622879,
0.3026754558,
0.0052801915,
-0.2204804868,
0.2212643772,
0.0504687466,
-0.3886024952,
-0.1376271397,
-0.1989231855,
-0.068424128,
0.0346807651,
0.1022281423,
0.217286706,
-0.1017907634,
0.0036824732,
-0.5508983135,
-0.3031088114,
0.1911866069,
-0.0767696947,
-0.1813700795,
0.1192315668,
0.338943094,
0.0155136995,
0.2547382116,
-0.2034854442,
0.325933218,
-0.3733078241,
0.1441615671,
-0.5635966063,
-0.2371916771,
-0.0035354197,
-0.2305134982,
0.0180749223,
0.2454897314,
0.0734466836,
-0.1074406952,
-0.0155516835,
0.159393698,
0.1383401603,
-0.0180855505,
-0.1694665998,
-0.0002067365,
0.1075090021,
0.1735596657,
0.1035000384,
-0.1377708912,
0.1467638165,
0.1609330028,
0.2953794897,
0.1064916402,
0.1960285753,
0.0935885757,
0.0295746513,
0.3905390799,
0.0588820092,
0.2412944734,
-0.2039605975,
0.0334326364,
-0.35546875,
0.1890604943,
0.0100136334,
0.2804845572,
0.0838275477,
-0.5798283815,
-0.0544028692,
-0.0720522106,
0.301358223,
0.5721241236,
-0.3665151,
0.1124068946,
0.1887701452,
0.1041741818,
-0.009935406,
-0.2594086528,
0.7478206754,
-0.0356646329,
-0.30246225,
0.0180358812,
0.1428467929,
-0.0983977839,
0.1315197647,
0.1389719397,
0.5670436025,
0.1919362843,
0.1983341277,
0.2170204967,
-0.2254351079,
-0.0237510987,
0.1397861689,
-0.079000026,
0.1816964447,
0.25413239,
-0.1939042509,
0.0633174032,
0.1178165153,
0.1037079468,
0.2329500467,
-0.3413435817,
-0.3557489216,
0.0997505486,
0.1379035115,
0.0106004663,
0.1785006076,
0.8641580939,
-0.190843299,
-0.4217525423,
-0.0853031576,
0.0879023969,
-0.3081799746,
0.0873617753,
-0.4969727695,
-0.1789304167,
-0.0405431464,
0.1543643326,
-0.3017128408,
-0.0329236798,
0.085599035,
0.0390481874,
-0.2745315433,
-0.1928051412,
-0.0414178409,
-0.2142162025,
0.0656097457,
-0.0752989501,
0.3355391324,
-0.1362098455,
0.0428799875,
0.2439542562,
-0.020817019,
0.3282358348,
0.3369993567,
-0.1919886619,
-0.1264549047,
-0.2578290403,
0.0216812342,
0.0744306222,
0.1027908102,
0.2146655172,
-0.1302481443,
0.2761431932,
0.1168200746,
-0.0468780249,
0.1349722296,
0.2768836319,
0.1607478112,
0.0973089337,
-0.0871052071,
-0.1949210018,
-0.2481788695,
-0.0677020401,
-0.1263932437,
0.0338319428,
-0.1226413697,
-0.1555689275,
0.5012948513,
0.1177109554,
-0.063064009,
0.0850426033,
0.1083315909,
0.5546956062,
0.2226144969,
-0.3615112603,
-0.0978454426,
-0.2026803195,
-0.2905749977,
0.2430061549,
-0.0448599197,
0.0714031011,
0.3016996682,
0.4403117001,
-0.1458825171,
0.284768194,
-0.2370340377,
-0.0482027009,
0.0044928831,
0.2456317246,
-0.4291108549,
0.1797167957,
0.0566488802,
0.1454110146,
-0.1059209555,
-0.1340215355,
0.2665148377,
-0.2023611516,
-0.0858604535,
0.0350696482,
-0.4277083278,
-0.0206915122,
0.0424794555,
0.2701973617,
-0.0820250362,
0.3326260149,
0.167679891,
-0.3741497099,
-0.4167829156,
-0.4191497266,
-0.1761029065,
0.1557715088,
-0.1276240945,
0.4238352776,
-0.0271940194,
0.2040139586,
-0.3149232268,
-0.0030214963,
-0.358796984,
0.345344007,
-0.3175051212,
0.0861750394,
0.0861123875,
0.1618040055,
0.0088498918,
0.3273945451,
-0.0774757564,
0.2494785786,
-0.5126639605,
-0.2689228058,
0.4422733486,
-0.6223309636,
-0.2002596408,
0.0687687322,
0.0811640173,
0.1981115043,
0.0035747986,
-0.2775662243,
-0.0704602525,
0.1616211236,
-0.1745933741,
-0.2950671017,
-0.1357095242,
-0.262544781,
-0.2551774681,
-0.0769581273,
-0.3599273264,
0.1837786287,
-0.0453098044,
-0.22119084,
-0.2330328673
] |
https://github.com/huggingface/datasets/issues/369 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries | I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/ | Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere. | 16 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/ | [
-0.2248248011,
0.2079817504,
0.0130987065,
0.1377786398,
0.2781037688,
-0.2597195208,
0.3169222176,
0.468768388,
-0.169140473,
-0.149011001,
0.0023774209,
0.4203415215,
0.0690720603,
-0.0172277614,
0.1122410372,
-0.1478202939,
-0.2049248666,
0.2665919662,
-0.0051437635,
-0.0658806711,
0.0004076182,
0.2411608845,
-0.1398992985,
0.263946414,
-0.1967165917,
-0.0133889401,
0.1871289611,
0.4891846776,
-0.2591639161,
-0.5631483197,
0.3153222203,
-0.2961510122,
0.0954628512,
0.1106009483,
-0.0001166556,
0.3696363866,
0.1890553087,
-0.0164391249,
-0.3757409453,
-0.3551531434,
0.2414885312,
-0.4904563427,
0.4686817229,
-0.1142358407,
-0.0764244422,
-0.3508143723,
-0.2223613262,
-0.0738730654,
0.480335027,
0.1195223257,
0.1514046341,
0.4681634903,
-0.1832388639,
0.1065227687,
0.1193087548,
0.1260323673,
-0.1624571532,
0.4610101581,
0.375977248,
-0.345017612,
-0.3874121904,
-0.1435601562,
-0.1003539488,
0.3243617713,
0.192945987,
0.0093746502,
-0.0391240083,
0.1259256601,
0.1254609227,
0.1766231209,
0.3256263435,
-0.3496562243,
-0.0632259697,
-0.0745450258,
0.0622527152,
-0.0295388717,
0.1810939163,
0.3203276396,
-0.3467208147,
0.1248236597,
-0.3060501218,
0.1964055598,
-0.1067043096,
0.3012483418,
-0.1913443804,
0.3296270072,
0.0628053844,
0.2973685563,
0.1061382517,
0.148105517,
0.1631399393,
0.2127095759,
-0.0343892239,
0.2124328315,
-0.2666903436,
0.2280092537,
0.101387091,
-0.1723195314,
0.2379255891,
0.1013731435,
0.2416798025,
0.0424476936,
0.2140953243,
0.2787177563,
0.3740186393,
-0.0143483281,
0.1454510391,
0.0765007958,
-0.0175956935,
0.0274801366,
-0.1041607261,
0.1215524822,
-0.1991191208,
-0.3780229092,
0.0324991718,
-0.1924576759,
0.2749886811,
-0.1871332675,
-0.2933091521,
0.0940952972,
-0.4935643077,
-0.0608110465,
0.1227077842,
0.2767897248,
0.2118470967,
0.2285740972,
-0.105211623,
0.2164440751,
-0.0928961188,
-0.1712169945,
-0.2024863213,
0.0592294522,
-0.3199092448,
-0.1551755965,
0.4050980508,
-0.2470355183,
0.2493387014,
-0.0130815953,
0.1818501204,
0.0097793099,
0.1716863215,
0.0250096843,
0.2165828347,
0.1760772914,
0.0181108452,
0.0982848927,
0.1713153422,
-0.230475381,
-0.354580164,
0.3259265125,
0.0253612325,
-0.3207992911,
-0.3150310516,
0.0986374766,
-0.1578409076,
0.0982588604,
0.1755227298,
0.0540475696,
0.1067284495,
-0.1062407792,
0.0962653235,
-0.1180268601,
-0.0711894631,
-0.2982013822,
0.3827489913,
0.2899154723,
-0.9532223344,
-0.1176797673,
0.1975103915,
-0.0724641383,
0.0969283283,
0.5727165341,
-0.5708693266,
0.1833848953,
-0.0560122617,
0.2390382886,
0.5799347162,
-0.3536812663,
-0.5187267065,
0.4949885607,
-0.3832626343,
-0.1650163829,
-0.1425091475,
-0.0413007811,
-0.0210621301,
0.2826714814,
0.0945463628,
0.6836752892,
-0.1377247721,
0.1846748143,
-0.330965519,
-0.1655490249,
0.2316760272,
0.4529771805,
0.0024092062,
-0.355371803,
0.0153146982,
0.1048195809,
0.0743057653,
-0.0041733161,
0.2683132887,
0.2235312164,
-0.1914621443,
-0.25161466,
0.0803216919,
-0.0126009211,
-0.7056601048,
0.0893203393,
-0.0640128404,
-0.0399809256,
-0.2193443924,
0.0276730098,
-0.3893591166,
0.2925415039,
-0.1446143687,
-0.0062231477,
0.0418266021,
-0.01054129,
0.0670852289,
-0.0903655738,
-0.3402932584,
-0.14903377,
0.0774710774,
-0.0015935667,
0.051443927,
0.4117664993,
-0.0129657174,
-0.2781398594,
0.0033557946,
0.3550057113,
-0.0173278488,
-0.1272228062,
-0.1079458073,
0.2835783958,
-0.1293053925,
0.1203494892,
-0.0040454115,
-0.3351644576,
0.2203941643,
-0.3095676005,
0.1677346975,
-0.020529706,
-0.0447346009,
-0.1287045777,
-0.2201544195,
0.4032674134,
-0.1909843534,
0.1956116557,
-0.0854580253,
-0.1480925679,
0.2147217095,
-0.1240262687,
-0.0586368032,
0.009711029,
0.1784369349,
0.2656929493,
0.520704031,
0.2706756592,
-0.2427759469,
0.0891447291,
0.3627481163,
-0.0371225514,
-0.0401581079,
0.0438288897,
-0.2223278731,
-0.1289469004,
0.1081066355,
-0.1066059321,
0.1868594736,
0.1889303774,
0.0756321773,
-0.1392151862,
-0.2522186339,
-0.2151124477,
-0.0319140442,
-0.0436208323,
0.1300843954,
0.4038741887,
0.448564291,
-0.1382345557,
-0.4100549817,
-0.0738446563,
0.2345909476,
0.2450696975,
-0.2443241179,
0.0373926461,
-0.3147733212,
-0.0499382503,
-0.1750923544,
-0.440191716,
-0.2645348907,
-0.1999678463,
-0.0551094897,
0.2310738862,
0.013170057,
0.1373817176,
-0.0116337752,
0.2456825972,
0.1008731499,
-0.4298437536,
-0.0119965225,
-0.5101563931,
-0.3695273697,
0.0328288712,
0.4673336148,
0.4385598302,
0.1786769181,
0.1814609915,
-0.0701136589,
0.0090802098,
-0.0991811976,
0.2115607262,
0.0304587893,
0.1755423844,
0.0036327417,
0.3344266117,
-0.4671180844,
-0.3113956153,
0.6026248932,
-0.0913661346,
-0.2721754014,
0.1993508786,
-0.3250696957,
-0.1124730185,
-0.2069629133,
-0.1498917043,
-0.2904260755,
-0.3914504647,
0.3365611434,
-0.0109003084,
0.0355999172,
-0.1289467663,
0.1338440776,
0.2838370204,
0.0949849412,
-0.2116738856,
-0.038375102,
-0.4520308077,
0.2738107443,
-0.1152424142,
-0.269482255,
-0.0710283071,
0.0409649163,
0.2816606462,
0.0627763346,
-0.3481173217,
0.0024617468,
0.0731169954,
0.5344301462,
-0.1907645464,
-0.187647745,
0.3679306805,
-0.0579306632,
0.0226894133,
0.0716026574,
-0.2526082098,
0.1822910905,
0.0439499728,
0.033740215,
-0.1755047739,
0.4175981879,
0.1020742655,
0.9232447147,
-0.2643371522,
-0.1505666524,
0.315528065,
-0.0246919878,
0.0868569762,
-0.1268962324,
-0.3084769249,
0.1649306118,
0.0774962604,
-0.0769028738,
0.1023015454,
0.0603704378,
-0.384514302,
-0.0449139327,
-0.021451667,
-0.2746351063,
-0.0994156748,
0.3585600555,
0.103440471,
-0.1083901599,
-0.0107013378,
-0.0802660733,
-0.1179672852,
-0.1918516457,
-0.1134533435,
0.0333905555,
-0.0317992754,
0.1877584755,
-0.4592273235,
-0.1170405671,
-0.0875758454,
-0.0683353543,
0.3628221452,
0.3158774376,
-0.014782167,
-0.1853870898,
0.340886116,
-0.3085047007,
0.5129213333,
0.2342293113,
0.1925600469,
0.2869600952,
0.0705934465,
-0.6148582101,
-0.1541522592,
0.1200241148,
0.4119719863,
0.4449227154,
0.324827373,
-0.1001518667,
-0.3170760274,
0.1256498396,
0.1735466421,
-0.0330997519,
-0.2027920783,
-0.3746901155,
-0.30732283,
-0.4436311126,
0.0817544609,
0.0238222294,
0.2499193996,
0.4211021662,
-0.0807259679,
0.2893456519,
-0.1060655266,
-0.2722728252,
0.2479825616,
0.1461408436,
-0.0633542463,
0.072681345,
0.2435627729,
0.3455854356,
0.0976915359,
0.6214668155,
0.1869538426,
-0.0988838747,
0.1482150704,
0.231001839,
0.3008663356,
0.2950564325,
0.1793145686,
-0.0573047362,
-0.1176060811,
-0.0166506339,
0.1620854586,
0.1781001836,
0.0401496999,
-0.2675120234,
0.1096058562,
0.1865430623,
0.2891852558,
-0.2739401162,
0.1674655527,
0.5299275517,
-0.0523519553,
0.0692545325,
0.4074671566,
0.1166573167,
0.7771915793,
-0.2644695044,
0.1479298025,
0.5714974403,
-0.2305464894,
0.3164288402,
-0.2754613161,
0.0059590954,
-0.5188854933,
0.2529406548,
0.0849902257,
-0.2398612946,
-0.0096129403,
0.3080280721,
0.0950920284,
-0.140942201,
-0.1081847399,
0.3453780413,
-0.002621029,
0.220746085,
0.0508504175,
-0.2714331746,
-0.2926777303,
0.0353431068,
-0.3116565347,
-0.0429679826,
-0.0649115816,
-0.1619159281,
-0.0969068334,
-0.1001790613,
-0.1564717889,
0.4074653089,
-0.0556707084,
0.2410967201,
0.3928503394,
-0.4113484919,
-0.0838278532,
0.0472863205,
-0.0223636851,
-0.1843993217,
-0.1851105243,
0.2453991026,
0.0351631194,
-0.0871743485,
-0.0076092556,
0.126725778,
0.2111590058,
-0.1905830503,
-0.3152865469,
-0.0097109247,
-0.1107604876,
-0.3773856759,
0.0098415054,
0.2698490918,
0.1093739271,
-0.0706363916,
-0.2126793265,
-0.1799738109,
0.1643074006,
0.0283879321,
0.0598793179,
-0.0270292535,
0.1562406719,
-0.2532793581,
0.3292661607,
-0.3607406914,
0.0462623723,
0.4963206351,
-0.1014332622,
0.1640531868,
0.522231698,
0.3958122432,
-0.1078454107,
-0.2344768047,
-0.0417829454,
0.5676161647,
-0.4813599885,
-0.0808528066,
-0.0654438436,
-0.0923314989,
0.1245622337,
0.2647165954,
0.3303149045,
0.0091077192,
-0.0937879905,
-0.5132706761,
-0.3523987234,
0.2194439769,
-0.1140955836,
-0.0998066217,
0.2764376998,
0.5523677468,
0.1198209003,
0.3457681239,
-0.2247913927,
0.1964669377,
-0.0767385513,
0.1733499467,
-0.2937339544,
-0.2949864566,
0.0617096983,
-0.0491166078,
0.0436313823,
0.0755813345,
-0.1114885211,
-0.2160478383,
-0.0542556904,
0.1099573225,
0.1158916578,
-0.1538788527,
-0.1924219429,
-0.1486535519,
0.0336091407,
-0.0341769569,
-0.0114129046,
-0.0316840857,
-0.063632898,
0.0092388494,
0.137573123,
-0.0495587178,
-0.1432163268,
0.0238067247,
-0.0251235627,
0.0513092056,
0.0436231494,
0.2476352602,
0.0279663578,
-0.0172809623,
-0.2315070927,
0.0654817373,
0.2410795838,
0.1861477792,
0.2242750674,
-0.2875193954,
-0.1363509446,
-0.1797352582,
0.1812481433,
0.3907134831,
-0.14776887,
-0.0057630762,
0.0170550719,
0.1338836402,
-0.1501572877,
-0.1573176533,
0.2622714341,
0.0530038998,
-0.0168353543,
-0.0100824405,
0.1297942847,
-0.2084885538,
-0.081117548,
0.1575098932,
0.3992907703,
0.0401901677,
-0.4732252657,
0.3453003764,
-0.207411781,
-0.1616268456,
0.1562597752,
0.0847399682,
0.3768483996,
-0.0452599004,
-0.1026148349,
0.1214386597,
-0.127878055,
0.2560076118,
-0.0429035835,
-0.4255732894,
-0.1164730713,
0.2421927452,
0.1526722461,
-0.3106536865,
0.2070242614,
0.7946993113,
0.227072075,
-0.3669970036,
0.0756443143,
0.1639968604,
-0.1651429236,
0.0323553495,
-0.7381468415,
-0.173894614,
-0.1725957245,
0.1801329255,
-0.1772890091,
-0.0201248638,
0.3450925648,
0.1026231647,
-0.0690097585,
-0.4073933959,
0.0018838727,
0.1002658755,
-0.3239279091,
-0.2377595156,
0.4012731314,
0.1469524354,
-0.1587481499,
-0.0346479639,
-0.1281300783,
0.3428945839,
0.295040369,
-0.3094571531,
-0.1638812125,
-0.0877757668,
-0.1351435781,
-0.2076942623,
0.1110964045,
0.1466931254,
0.1099855378,
0.3763886392,
0.1300737709,
-0.1291117072,
0.0981802717,
0.1858904958,
-0.129113391,
0.0844406039,
-0.0947917923,
-0.0002226523,
-0.2281883359,
-0.0361344852,
-0.2055172324,
-0.1976293027,
-0.2189732343,
0.1318593919,
0.1730564684,
0.1635760665,
-0.2263655663,
0.0502875932,
0.0127592683,
0.7020564675,
0.3510787189,
0.1076619625,
-0.2142922133,
-0.3235680163,
-0.5967865586,
0.3562066853,
-0.3159347177,
0.1146410406,
0.3648403585,
0.4121893644,
0.1482035816,
0.4271438122,
-0.143698439,
0.412066251,
-0.0402689166,
-0.1203152016,
-0.4084434807,
-0.0316563286,
0.0676875934,
-0.028870739,
-0.1615074575,
-0.4222982526,
0.2162655741,
-0.1609283835,
0.0273397136,
-0.1858119965,
-0.3727510273,
0.0986797884,
0.0545374267,
0.1093927026,
-0.0871365145,
0.3187763989,
0.0858082548,
0.0406497419,
-0.203997165,
-0.2124965042,
-0.2477273345,
0.3365736008,
0.0230687596,
0.3301461935,
-0.1964951158,
0.1363682896,
-0.1094117761,
0.197179839,
-0.338567704,
0.1788092405,
0.0149053345,
-0.1495161206,
-0.128183946,
0.2249829173,
-0.0945451632,
0.0897998363,
0.0397567973,
0.2163555473,
-0.4016822577,
-0.2031949461,
0.4354740679,
-0.5085449219,
-0.1987222284,
0.2857097685,
-0.0270963088,
0.4125854373,
-0.1164049432,
-0.431394875,
-0.0754463449,
0.2239831984,
-0.2346250862,
-0.1203472167,
0.0563719235,
-0.0145740127,
0.0830916017,
-0.1923094094,
-0.0018165538,
0.0800637379,
-0.2020303607,
-0.2691347301,
-0.3540153503
] |
https://github.com/huggingface/datasets/issues/369 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries | I am facing this issue in transformers library 3.0.2 while reading a csv using datasets.
Is this fixed in latest version?
I updated the latest version 4.0.1 but still getting this error. What could cause this error? | Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere. | 37 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
I am facing this issue in transformers library 3.0.2 while reading a csv using datasets.
Is this fixed in latest version?
I updated the latest version 4.0.1 but still getting this error. What could cause this error? | [
-0.2248248011,
0.2079817504,
0.0130987065,
0.1377786398,
0.2781037688,
-0.2597195208,
0.3169222176,
0.468768388,
-0.169140473,
-0.149011001,
0.0023774209,
0.4203415215,
0.0690720603,
-0.0172277614,
0.1122410372,
-0.1478202939,
-0.2049248666,
0.2665919662,
-0.0051437635,
-0.0658806711,
0.0004076182,
0.2411608845,
-0.1398992985,
0.263946414,
-0.1967165917,
-0.0133889401,
0.1871289611,
0.4891846776,
-0.2591639161,
-0.5631483197,
0.3153222203,
-0.2961510122,
0.0954628512,
0.1106009483,
-0.0001166556,
0.3696363866,
0.1890553087,
-0.0164391249,
-0.3757409453,
-0.3551531434,
0.2414885312,
-0.4904563427,
0.4686817229,
-0.1142358407,
-0.0764244422,
-0.3508143723,
-0.2223613262,
-0.0738730654,
0.480335027,
0.1195223257,
0.1514046341,
0.4681634903,
-0.1832388639,
0.1065227687,
0.1193087548,
0.1260323673,
-0.1624571532,
0.4610101581,
0.375977248,
-0.345017612,
-0.3874121904,
-0.1435601562,
-0.1003539488,
0.3243617713,
0.192945987,
0.0093746502,
-0.0391240083,
0.1259256601,
0.1254609227,
0.1766231209,
0.3256263435,
-0.3496562243,
-0.0632259697,
-0.0745450258,
0.0622527152,
-0.0295388717,
0.1810939163,
0.3203276396,
-0.3467208147,
0.1248236597,
-0.3060501218,
0.1964055598,
-0.1067043096,
0.3012483418,
-0.1913443804,
0.3296270072,
0.0628053844,
0.2973685563,
0.1061382517,
0.148105517,
0.1631399393,
0.2127095759,
-0.0343892239,
0.2124328315,
-0.2666903436,
0.2280092537,
0.101387091,
-0.1723195314,
0.2379255891,
0.1013731435,
0.2416798025,
0.0424476936,
0.2140953243,
0.2787177563,
0.3740186393,
-0.0143483281,
0.1454510391,
0.0765007958,
-0.0175956935,
0.0274801366,
-0.1041607261,
0.1215524822,
-0.1991191208,
-0.3780229092,
0.0324991718,
-0.1924576759,
0.2749886811,
-0.1871332675,
-0.2933091521,
0.0940952972,
-0.4935643077,
-0.0608110465,
0.1227077842,
0.2767897248,
0.2118470967,
0.2285740972,
-0.105211623,
0.2164440751,
-0.0928961188,
-0.1712169945,
-0.2024863213,
0.0592294522,
-0.3199092448,
-0.1551755965,
0.4050980508,
-0.2470355183,
0.2493387014,
-0.0130815953,
0.1818501204,
0.0097793099,
0.1716863215,
0.0250096843,
0.2165828347,
0.1760772914,
0.0181108452,
0.0982848927,
0.1713153422,
-0.230475381,
-0.354580164,
0.3259265125,
0.0253612325,
-0.3207992911,
-0.3150310516,
0.0986374766,
-0.1578409076,
0.0982588604,
0.1755227298,
0.0540475696,
0.1067284495,
-0.1062407792,
0.0962653235,
-0.1180268601,
-0.0711894631,
-0.2982013822,
0.3827489913,
0.2899154723,
-0.9532223344,
-0.1176797673,
0.1975103915,
-0.0724641383,
0.0969283283,
0.5727165341,
-0.5708693266,
0.1833848953,
-0.0560122617,
0.2390382886,
0.5799347162,
-0.3536812663,
-0.5187267065,
0.4949885607,
-0.3832626343,
-0.1650163829,
-0.1425091475,
-0.0413007811,
-0.0210621301,
0.2826714814,
0.0945463628,
0.6836752892,
-0.1377247721,
0.1846748143,
-0.330965519,
-0.1655490249,
0.2316760272,
0.4529771805,
0.0024092062,
-0.355371803,
0.0153146982,
0.1048195809,
0.0743057653,
-0.0041733161,
0.2683132887,
0.2235312164,
-0.1914621443,
-0.25161466,
0.0803216919,
-0.0126009211,
-0.7056601048,
0.0893203393,
-0.0640128404,
-0.0399809256,
-0.2193443924,
0.0276730098,
-0.3893591166,
0.2925415039,
-0.1446143687,
-0.0062231477,
0.0418266021,
-0.01054129,
0.0670852289,
-0.0903655738,
-0.3402932584,
-0.14903377,
0.0774710774,
-0.0015935667,
0.051443927,
0.4117664993,
-0.0129657174,
-0.2781398594,
0.0033557946,
0.3550057113,
-0.0173278488,
-0.1272228062,
-0.1079458073,
0.2835783958,
-0.1293053925,
0.1203494892,
-0.0040454115,
-0.3351644576,
0.2203941643,
-0.3095676005,
0.1677346975,
-0.020529706,
-0.0447346009,
-0.1287045777,
-0.2201544195,
0.4032674134,
-0.1909843534,
0.1956116557,
-0.0854580253,
-0.1480925679,
0.2147217095,
-0.1240262687,
-0.0586368032,
0.009711029,
0.1784369349,
0.2656929493,
0.520704031,
0.2706756592,
-0.2427759469,
0.0891447291,
0.3627481163,
-0.0371225514,
-0.0401581079,
0.0438288897,
-0.2223278731,
-0.1289469004,
0.1081066355,
-0.1066059321,
0.1868594736,
0.1889303774,
0.0756321773,
-0.1392151862,
-0.2522186339,
-0.2151124477,
-0.0319140442,
-0.0436208323,
0.1300843954,
0.4038741887,
0.448564291,
-0.1382345557,
-0.4100549817,
-0.0738446563,
0.2345909476,
0.2450696975,
-0.2443241179,
0.0373926461,
-0.3147733212,
-0.0499382503,
-0.1750923544,
-0.440191716,
-0.2645348907,
-0.1999678463,
-0.0551094897,
0.2310738862,
0.013170057,
0.1373817176,
-0.0116337752,
0.2456825972,
0.1008731499,
-0.4298437536,
-0.0119965225,
-0.5101563931,
-0.3695273697,
0.0328288712,
0.4673336148,
0.4385598302,
0.1786769181,
0.1814609915,
-0.0701136589,
0.0090802098,
-0.0991811976,
0.2115607262,
0.0304587893,
0.1755423844,
0.0036327417,
0.3344266117,
-0.4671180844,
-0.3113956153,
0.6026248932,
-0.0913661346,
-0.2721754014,
0.1993508786,
-0.3250696957,
-0.1124730185,
-0.2069629133,
-0.1498917043,
-0.2904260755,
-0.3914504647,
0.3365611434,
-0.0109003084,
0.0355999172,
-0.1289467663,
0.1338440776,
0.2838370204,
0.0949849412,
-0.2116738856,
-0.038375102,
-0.4520308077,
0.2738107443,
-0.1152424142,
-0.269482255,
-0.0710283071,
0.0409649163,
0.2816606462,
0.0627763346,
-0.3481173217,
0.0024617468,
0.0731169954,
0.5344301462,
-0.1907645464,
-0.187647745,
0.3679306805,
-0.0579306632,
0.0226894133,
0.0716026574,
-0.2526082098,
0.1822910905,
0.0439499728,
0.033740215,
-0.1755047739,
0.4175981879,
0.1020742655,
0.9232447147,
-0.2643371522,
-0.1505666524,
0.315528065,
-0.0246919878,
0.0868569762,
-0.1268962324,
-0.3084769249,
0.1649306118,
0.0774962604,
-0.0769028738,
0.1023015454,
0.0603704378,
-0.384514302,
-0.0449139327,
-0.021451667,
-0.2746351063,
-0.0994156748,
0.3585600555,
0.103440471,
-0.1083901599,
-0.0107013378,
-0.0802660733,
-0.1179672852,
-0.1918516457,
-0.1134533435,
0.0333905555,
-0.0317992754,
0.1877584755,
-0.4592273235,
-0.1170405671,
-0.0875758454,
-0.0683353543,
0.3628221452,
0.3158774376,
-0.014782167,
-0.1853870898,
0.340886116,
-0.3085047007,
0.5129213333,
0.2342293113,
0.1925600469,
0.2869600952,
0.0705934465,
-0.6148582101,
-0.1541522592,
0.1200241148,
0.4119719863,
0.4449227154,
0.324827373,
-0.1001518667,
-0.3170760274,
0.1256498396,
0.1735466421,
-0.0330997519,
-0.2027920783,
-0.3746901155,
-0.30732283,
-0.4436311126,
0.0817544609,
0.0238222294,
0.2499193996,
0.4211021662,
-0.0807259679,
0.2893456519,
-0.1060655266,
-0.2722728252,
0.2479825616,
0.1461408436,
-0.0633542463,
0.072681345,
0.2435627729,
0.3455854356,
0.0976915359,
0.6214668155,
0.1869538426,
-0.0988838747,
0.1482150704,
0.231001839,
0.3008663356,
0.2950564325,
0.1793145686,
-0.0573047362,
-0.1176060811,
-0.0166506339,
0.1620854586,
0.1781001836,
0.0401496999,
-0.2675120234,
0.1096058562,
0.1865430623,
0.2891852558,
-0.2739401162,
0.1674655527,
0.5299275517,
-0.0523519553,
0.0692545325,
0.4074671566,
0.1166573167,
0.7771915793,
-0.2644695044,
0.1479298025,
0.5714974403,
-0.2305464894,
0.3164288402,
-0.2754613161,
0.0059590954,
-0.5188854933,
0.2529406548,
0.0849902257,
-0.2398612946,
-0.0096129403,
0.3080280721,
0.0950920284,
-0.140942201,
-0.1081847399,
0.3453780413,
-0.002621029,
0.220746085,
0.0508504175,
-0.2714331746,
-0.2926777303,
0.0353431068,
-0.3116565347,
-0.0429679826,
-0.0649115816,
-0.1619159281,
-0.0969068334,
-0.1001790613,
-0.1564717889,
0.4074653089,
-0.0556707084,
0.2410967201,
0.3928503394,
-0.4113484919,
-0.0838278532,
0.0472863205,
-0.0223636851,
-0.1843993217,
-0.1851105243,
0.2453991026,
0.0351631194,
-0.0871743485,
-0.0076092556,
0.126725778,
0.2111590058,
-0.1905830503,
-0.3152865469,
-0.0097109247,
-0.1107604876,
-0.3773856759,
0.0098415054,
0.2698490918,
0.1093739271,
-0.0706363916,
-0.2126793265,
-0.1799738109,
0.1643074006,
0.0283879321,
0.0598793179,
-0.0270292535,
0.1562406719,
-0.2532793581,
0.3292661607,
-0.3607406914,
0.0462623723,
0.4963206351,
-0.1014332622,
0.1640531868,
0.522231698,
0.3958122432,
-0.1078454107,
-0.2344768047,
-0.0417829454,
0.5676161647,
-0.4813599885,
-0.0808528066,
-0.0654438436,
-0.0923314989,
0.1245622337,
0.2647165954,
0.3303149045,
0.0091077192,
-0.0937879905,
-0.5132706761,
-0.3523987234,
0.2194439769,
-0.1140955836,
-0.0998066217,
0.2764376998,
0.5523677468,
0.1198209003,
0.3457681239,
-0.2247913927,
0.1964669377,
-0.0767385513,
0.1733499467,
-0.2937339544,
-0.2949864566,
0.0617096983,
-0.0491166078,
0.0436313823,
0.0755813345,
-0.1114885211,
-0.2160478383,
-0.0542556904,
0.1099573225,
0.1158916578,
-0.1538788527,
-0.1924219429,
-0.1486535519,
0.0336091407,
-0.0341769569,
-0.0114129046,
-0.0316840857,
-0.063632898,
0.0092388494,
0.137573123,
-0.0495587178,
-0.1432163268,
0.0238067247,
-0.0251235627,
0.0513092056,
0.0436231494,
0.2476352602,
0.0279663578,
-0.0172809623,
-0.2315070927,
0.0654817373,
0.2410795838,
0.1861477792,
0.2242750674,
-0.2875193954,
-0.1363509446,
-0.1797352582,
0.1812481433,
0.3907134831,
-0.14776887,
-0.0057630762,
0.0170550719,
0.1338836402,
-0.1501572877,
-0.1573176533,
0.2622714341,
0.0530038998,
-0.0168353543,
-0.0100824405,
0.1297942847,
-0.2084885538,
-0.081117548,
0.1575098932,
0.3992907703,
0.0401901677,
-0.4732252657,
0.3453003764,
-0.207411781,
-0.1616268456,
0.1562597752,
0.0847399682,
0.3768483996,
-0.0452599004,
-0.1026148349,
0.1214386597,
-0.127878055,
0.2560076118,
-0.0429035835,
-0.4255732894,
-0.1164730713,
0.2421927452,
0.1526722461,
-0.3106536865,
0.2070242614,
0.7946993113,
0.227072075,
-0.3669970036,
0.0756443143,
0.1639968604,
-0.1651429236,
0.0323553495,
-0.7381468415,
-0.173894614,
-0.1725957245,
0.1801329255,
-0.1772890091,
-0.0201248638,
0.3450925648,
0.1026231647,
-0.0690097585,
-0.4073933959,
0.0018838727,
0.1002658755,
-0.3239279091,
-0.2377595156,
0.4012731314,
0.1469524354,
-0.1587481499,
-0.0346479639,
-0.1281300783,
0.3428945839,
0.295040369,
-0.3094571531,
-0.1638812125,
-0.0877757668,
-0.1351435781,
-0.2076942623,
0.1110964045,
0.1466931254,
0.1099855378,
0.3763886392,
0.1300737709,
-0.1291117072,
0.0981802717,
0.1858904958,
-0.129113391,
0.0844406039,
-0.0947917923,
-0.0002226523,
-0.2281883359,
-0.0361344852,
-0.2055172324,
-0.1976293027,
-0.2189732343,
0.1318593919,
0.1730564684,
0.1635760665,
-0.2263655663,
0.0502875932,
0.0127592683,
0.7020564675,
0.3510787189,
0.1076619625,
-0.2142922133,
-0.3235680163,
-0.5967865586,
0.3562066853,
-0.3159347177,
0.1146410406,
0.3648403585,
0.4121893644,
0.1482035816,
0.4271438122,
-0.143698439,
0.412066251,
-0.0402689166,
-0.1203152016,
-0.4084434807,
-0.0316563286,
0.0676875934,
-0.028870739,
-0.1615074575,
-0.4222982526,
0.2162655741,
-0.1609283835,
0.0273397136,
-0.1858119965,
-0.3727510273,
0.0986797884,
0.0545374267,
0.1093927026,
-0.0871365145,
0.3187763989,
0.0858082548,
0.0406497419,
-0.203997165,
-0.2124965042,
-0.2477273345,
0.3365736008,
0.0230687596,
0.3301461935,
-0.1964951158,
0.1363682896,
-0.1094117761,
0.197179839,
-0.338567704,
0.1788092405,
0.0149053345,
-0.1495161206,
-0.128183946,
0.2249829173,
-0.0945451632,
0.0897998363,
0.0397567973,
0.2163555473,
-0.4016822577,
-0.2031949461,
0.4354740679,
-0.5085449219,
-0.1987222284,
0.2857097685,
-0.0270963088,
0.4125854373,
-0.1164049432,
-0.431394875,
-0.0754463449,
0.2239831984,
-0.2346250862,
-0.1203472167,
0.0563719235,
-0.0145740127,
0.0830916017,
-0.1923094094,
-0.0018165538,
0.0800637379,
-0.2020303607,
-0.2691347301,
-0.3540153503
] |
https://github.com/huggingface/datasets/issues/368 | load_metric can't acquire lock anymore | I found that, in the same process (or the same interactive session), if I do
import nlp
m1 = nlp.load_metric('glue', 'mrpc')
m2 = nlp.load_metric('glue', 'sst2')
I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`. | I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this?
Traceback (most recent call last):
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__
self.filelock.acquire(timeout=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire
raise Timeout(self._lock_file)
filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples_huggingface_nlp.py", line 268, in <module>
main()
File "examples_huggingface_nlp.py", line 242, in main
dataset, metric = get_dataset_metric(glue_task)
File "examples_huggingface_nlp.py", line 77, in get_dataset_metric
metric = nlp.load_metric('glue', glue_config, experiment_id=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric
**metric_init_kwargs,
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__
"Cannot acquire lock, caching file might be used by another process, "
ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run.
I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock
| 49 | load_metric can't acquire lock anymore
I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this?
Traceback (most recent call last):
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__
self.filelock.acquire(timeout=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire
raise Timeout(self._lock_file)
filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples_huggingface_nlp.py", line 268, in <module>
main()
File "examples_huggingface_nlp.py", line 242, in main
dataset, metric = get_dataset_metric(glue_task)
File "examples_huggingface_nlp.py", line 77, in get_dataset_metric
metric = nlp.load_metric('glue', glue_config, experiment_id=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric
**metric_init_kwargs,
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__
"Cannot acquire lock, caching file might be used by another process, "
ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run.
I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock
I found that, in the same process (or the same interactive session), if I do
import nlp
m1 = nlp.load_metric('glue', 'mrpc')
m2 = nlp.load_metric('glue', 'sst2')
I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`. | [
0.0387077853,
-0.1158738732,
0.0723506138,
0.3124667108,
0.3204591572,
0.0294489581,
0.0900948793,
0.0702061504,
0.5023595095,
-0.0785918385,
-0.1850660294,
0.0306070466,
-0.0480663739,
-0.2614509761,
-0.0316604115,
-0.1943877041,
-0.2007994503,
-0.0895175487,
-0.0916289166,
0.1228041351,
-0.2072483152,
0.3985545039,
-0.1751362532,
-0.140735507,
-0.3555802405,
-0.1709381044,
-0.089414984,
0.362531215,
-0.0941760316,
-0.4639346302,
0.158035785,
0.0359999761,
0.0657721385,
0.0958732218,
-0.0001253988,
0.0097094635,
0.4328871369,
0.0207839049,
0.0158181414,
-0.2742263079,
-0.0472079739,
-0.5386416316,
0.2313128412,
-0.0381144471,
0.0553531237,
0.1542790532,
0.0128485831,
-0.3735764921,
0.3929034472,
0.2302974164,
0.1177396476,
0.4218794107,
0.245051682,
-0.3009934425,
-0.2283040881,
-0.5178470016,
0.1226880997,
0.9323644638,
0.1983926594,
-0.4340366125,
-0.1681258976,
0.1428890079,
-0.0306596719,
0.1357381493,
0.4364429414,
-0.1017124057,
0.3628013432,
-0.1146173775,
-0.026829673,
0.0082821827,
0.0335857756,
-0.1131080091,
-0.2663030326,
-0.1967053115,
0.394086808,
-0.3095425069,
0.3262718618,
-0.2071051598,
0.1107338145,
0.0614548847,
0.0228589512,
-0.3017477393,
0.0311335642,
0.1103479117,
-0.0704877451,
0.1314454973,
-0.0304557886,
0.1059604883,
0.4824418724,
0.11586456,
-0.1343360692,
0.4646421373,
-0.2977819443,
0.252592355,
-0.223044917,
0.3128057718,
0.0215297807,
0.4838052392,
0.0795654655,
0.0472434089,
0.005802284,
0.0168822519,
0.3405641317,
0.1478576958,
-0.0365652964,
0.5148495436,
0.4060497582,
-0.0803210661,
0.1938293278,
0.272944659,
0.0078884335,
-0.020290222,
-0.0450516641,
-0.3363507092,
0.1489802599,
0.1632084101,
0.0452221893,
-0.0889204443,
0.0154877454,
0.0259293467,
0.0870656967,
-0.1591014862,
0.1520413607,
0.160873726,
-0.0276131667,
0.2953264713,
0.1074502245,
0.2743976116,
-0.0106986342,
-0.1547304988,
-0.1928948313,
0.3185299933,
-0.32654199,
0.2753768563,
0.2608953118,
-0.2996115088,
0.3550311327,
0.0881140977,
0.0885006636,
-0.4025238454,
-0.0697802156,
0.0475796461,
-0.2875435948,
0.2150295824,
-0.1425008774,
0.0949410275,
0.1955335587,
-0.2912887335,
-0.0110831121,
-0.3652179241,
-0.4574068487,
-0.3263043463,
-0.0511173457,
0.0123522878,
-0.4049868882,
0.0597760975,
0.0596663095,
0.1430253536,
0.0267863963,
0.0218421705,
-0.0301715564,
-0.1087389961,
-0.1520869434,
-0.2062553912,
0.281363517,
0.5562863946,
0.097620815,
-0.305670172,
-0.1878909469,
-0.1079914793,
-0.1382287741,
0.2349311709,
0.0458946861,
0.0970939025,
-0.2242058218,
0.0844082385,
0.2618545294,
-0.7882764935,
-0.6193394065,
-0.0095672021,
-0.1618588865,
-0.0446816385,
0.054886613,
0.0888190046,
0.1180928871,
0.0993979126,
0.3330300152,
0.09243045,
0.0943363234,
-0.4169384837,
-0.219369635,
0.0052569788,
0.0715348274,
0.0779735968,
0.2852444053,
0.2650151849,
0.1815576255,
0.3520886004,
0.0231216047,
0.3938895464,
-0.2276391834,
0.4092959166,
-0.0556345247,
-0.2220465094,
0.0867231116,
-0.1873000264,
-0.3539682627,
0.458573252,
-0.5009263158,
-0.0561316162,
0.0323621295,
0.0708051026,
-0.4591316283,
0.0309204478,
0.1142946258,
-0.0322565213,
0.030795075,
0.0454824455,
0.0259705875,
0.0601220913,
-0.1053756699,
0.5104598403,
-0.0319062173,
0.2045423239,
-0.2858424187,
-0.0922257453,
0.0968825519,
-0.0596507415,
-0.0074582985,
0.3105423152,
0.494872272,
-0.0591304861,
0.046972312,
0.5281560421,
0.0510514937,
0.2600202262,
-0.0119122341,
-0.0147900721,
0.2664884329,
0.0134369349,
-0.0115783326,
-0.5587481856,
-0.0614248142,
-0.0619171634,
0.3316040039,
0.0798471197,
0.1930181235,
0.1027685478,
-0.1634513885,
0.1938889623,
0.0462910831,
-0.2189998478,
-0.1978613287,
-0.2039312571,
0.5161856413,
-0.1291539222,
0.0738874301,
0.0157025438,
0.2341694534,
-0.059989389,
0.2643680274,
0.0904282331,
0.1763942838,
-0.1143527925,
-0.1747929007,
-0.0878666788,
-0.2505739927,
0.3127427697,
0.3478242755,
-0.0408709347,
0.0977798849,
0.1051948369,
0.0304461159,
-0.1265746951,
0.0144022275,
0.0762417987,
-0.021721432,
0.3686548471,
0.1944018751,
0.0989872217,
-0.0384878553,
0.1585069299,
0.1161002293,
0.2183550596,
-0.2039141059,
0.0098382346,
-0.3964008987,
0.0102865594,
0.2288606465,
-0.0039140256,
-0.4821490049,
-0.4297888279,
-0.0750375614,
0.1887992471,
0.3223301768,
0.0609569922,
0.1792290658,
0.2290399969,
-0.1921598017,
0.2414930016,
-0.1553556025,
-0.44842273,
-0.0379551873,
-0.16159527,
0.1437363029,
-0.0956692845,
0.1145743877,
-0.1248921826,
-0.1733734161,
-0.140273124,
-0.2574285865,
0.0239720419,
0.0843013227,
0.7145807743,
0.2129419595,
0.0088944705,
-0.0010660794,
0.1230747625,
0.3546614051,
-0.1275534779,
0.0524184182,
0.2911888361,
-0.3696327209,
0.1463907957,
-0.2685170174,
0.1616151482,
-0.5034713149,
-0.405667901,
0.2910678983,
-0.110520035,
-0.2216465473,
0.1172692627,
-0.2792268395,
0.312206775,
-0.2726818919,
0.1251486987,
-0.277421385,
-0.192330569,
0.2103400677,
0.0043342146,
-0.0900197327,
-0.2496182621,
0.1020825207,
0.1823783517,
-0.139912352,
-0.3926429152,
-0.7514961362,
-0.114108175,
0.0987050384,
-0.2474499494,
-0.1125533581,
0.1439747363,
-0.3512947559,
0.0414206199,
-0.1349383593,
-0.0026854507,
0.1042372733,
0.0757855996,
0.2012827992,
0.065772526,
0.2217899412,
0.1661202312,
0.531027019,
-0.0442972779,
-0.1021615416,
0.3465195596,
0.0595608242,
0.476745069,
0.1927144527,
-0.3890646696,
-0.1930056363,
0.1417024434,
0.2469888777,
-0.2544844747,
0.0348412544,
0.2423210293,
-0.1883640885,
-0.3141641021,
-0.2212718725,
-0.093635276,
-0.1036054343,
-0.1123079658,
0.1638351828,
0.1402927488,
0.2603790462,
-0.1485798061,
-0.0792709738,
0.2771489024,
0.3417002261,
0.0367453173,
0.1605740935,
0.0545904823,
-0.1954054981,
-0.4282639325,
0.3973342478,
-0.0049799182,
0.5216323137,
-0.2394587398,
0.0594329983,
0.1045997441,
-0.1041497514,
0.5359894633,
0.0970066264,
0.1271164715,
0.1798015982,
0.0382611714,
-0.3157490492,
-0.0304224677,
0.0299384575,
0.148921594,
0.4948727787,
0.7226871848,
-0.2659998238,
-0.1192565635,
-0.2603637278,
0.1650893837,
-0.3048897088,
-0.2024811506,
-0.2063500434,
-0.3236881495,
-0.1710143238,
0.0123417964,
-0.1153361872,
0.3378126323,
0.4723194838,
0.2161133736,
-0.1360187232,
-0.478641808,
-0.0407851227,
-0.0727951825,
0.4126510322,
-0.0869293734,
0.0880513713,
0.4231228828,
-0.1487877518,
-0.2982723415,
0.1877470165,
-0.1136943921,
0.121330902,
0.2333735973,
0.17376858,
0.1053903922,
0.4253496528,
-0.1597548425,
0.225980401,
0.1264663488,
0.0955733806,
-0.0979738384,
-0.0315059498,
0.1203091219,
-0.0238314271,
0.0295596775,
0.2193050832,
0.3600981534,
0.2023501992,
-0.1878731996,
0.4180872142,
-0.0431180634,
-0.0350700915,
-0.0972781405,
-0.1000877172,
0.8022148609,
-0.1595789939,
-0.2619307041,
0.0298738442,
-0.1457986981,
0.6428799629,
-0.1042103022,
0.1761115044,
-0.0742916912,
-0.3932453096,
0.044179257,
-0.2175306529,
0.0657586604,
-0.4121155739,
0.0514318831,
0.2708452046,
-0.4369368553,
-0.0335606635,
-0.0650876164,
0.1836888194,
-0.6214600205,
0.0531328619,
0.0301298015,
0.0401382148,
-0.3123499751,
0.3805067837,
-0.2036482394,
-0.0550628975,
0.2770385742,
-0.0553841814,
-0.3994786441,
-0.0654046088,
-0.2844848335,
0.0708889216,
0.2390863001,
-0.0704397932,
-0.1759534925,
-0.0610573143,
0.3143345416,
0.1398043334,
-0.2994336784,
0.3438143432,
-0.0917134508,
-0.2954324484,
-0.0030769908,
0.2781412899,
0.1166208088,
0.0029363204,
-0.0925316438,
0.0463674739,
-0.1733466536,
-0.1107541174,
-0.1144867986,
0.1817107946,
0.0533907078,
0.318344444,
-0.1433250159,
-0.0191319603,
0.2342262566,
-0.1494245976,
0.0253103934,
0.2552124262,
-0.0040863436,
-0.1048379317,
-0.2064365447,
-0.255004406,
0.163746208,
0.5607219934,
-0.0581933074,
-0.5073885918,
0.2165060043,
0.0164632984,
-0.0639621466,
-0.101634495,
-0.3467878699,
-0.1690581739,
-0.4205925167,
0.2429345548,
0.1547180861,
-0.0193137117,
0.0040054377,
-0.1858254671,
0.4843352437,
-0.2830846608,
-0.0019898044,
-0.7558659911,
-0.297337085,
0.2834348381,
-0.2853270173,
-0.0136604365,
-0.1148891374,
0.047175616,
-0.2104177475,
0.4024419487,
-0.1725853831,
0.1829888225,
-0.2871592343,
-0.2451509833,
0.5845174789,
-0.065465875,
0.1676662862,
-0.0475945249,
0.0198074244,
0.4047593474,
-0.1240418851,
-0.0497582369,
-0.1973865479,
0.1797022969,
-0.0850151852,
0.1407678425,
0.0183720794,
-0.276143223,
0.245914951,
0.08954864,
-0.0811776966,
0.2046792209,
0.0613295287,
0.0384055041,
0.042619314,
0.5235905051,
0.250164181,
0.2672939301,
0.0090644145,
-0.0032562709,
0.0062509049,
0.0792047158,
-0.0596478246,
0.1828985363,
-0.4656665325,
-0.1377228349,
-0.0974089429,
-0.1361399293,
0.1559678316,
0.1431009918,
-0.10165295,
0.0190403815,
0.1252433509,
-0.1216817945,
0.0666976273,
0.0342364311,
-0.030002689,
0.0869543701,
-0.2467591017,
-0.066820547,
-0.0870524645,
0.3180529773,
-0.1310955137,
0.0735201091,
0.3424258828,
-0.0961304083,
0.1432821006,
0.1118123159,
0.4970527589,
0.0075975754,
0.0205598939,
-0.2067306489,
0.1344554722,
-0.2691761553,
0.4959367812,
-0.0428581871,
0.1166443899,
-0.0367390066,
-0.3253388703,
0.1450217515,
-0.3323919773,
0.2503059804,
-0.0408236831,
-0.3007707596,
-0.1008452401,
0.2648639977,
0.2209364623,
0.1186068282,
-0.4627083838,
0.6910853982,
-0.2642374635,
-0.3084985912,
-0.0429287963,
0.3635565042,
-0.0644733682,
-0.0953849629,
-0.0069212848,
-0.2487747073,
-0.1431328058,
-0.0225576479,
0.1849185228,
0.0853728727,
0.4013887048,
0.1992622614,
-0.1833751202,
-0.3830610812,
-0.4849722981,
0.3002398908,
0.1777811646,
-0.1937876791,
0.3580453098,
0.1135039628,
-0.0232857075,
0.1853679568,
0.2641861737,
0.3333712816,
0.1051832363,
-0.1506635696,
0.095345296,
-0.0113157267,
0.0107023902,
-0.1575167626,
0.5133900642,
0.3697789907,
-0.3136532307,
-0.0351262577,
0.0404248983,
-0.1790902913,
0.2119150013,
-0.0549707823,
0.2851826251,
-0.0977841765,
0.5591536164,
-0.0657937899,
0.0186748579,
-0.1547779441,
0.1321265548,
-0.3361939192,
-0.0434217528,
-0.0058515235,
0.1318587214,
0.0049855034,
-0.3068114519,
0.041179467,
0.0552182496,
0.211399883,
0.5045398474,
0.1183804125,
-0.4218704104,
-0.1334497333,
-0.7453030944,
0.113484405,
-0.0222577956,
0.0924693644,
0.2634620965,
-0.108027719,
-0.1685670912,
-0.0461023115,
0.2452775389,
0.3517721593,
0.1647495031,
-0.4546447098,
-0.4675468206,
0.1131402627,
0.0678354129,
-0.2684634924,
0.0692890659,
-0.0464070253,
-0.019146597,
-0.3807813227,
-0.0374482423,
-0.0435912982,
-0.3628323376,
0.1442725509,
0.5466169715,
0.2543391287,
0.1203697473,
0.218872726,
0.0913781822,
-0.0422804318,
-0.369808048,
-0.4085543156,
0.1035867482,
-0.3350952268,
-0.0380124822,
0.0683519244,
-0.3688530326,
-0.1574765146,
-0.283264786,
0.522721827,
-0.2089237571,
-0.0723501518,
-0.4062190056,
0.0933074057,
-0.1109781414,
0.067484349,
0.2345816344,
0.486863941,
0.2205929309,
0.3542436957,
-0.2795715332,
-0.0774609521,
0.517198801,
-0.4738141596,
-0.1686320454,
0.2175599039,
0.3969507515,
0.1739767194,
-0.037417464,
-0.4593838155,
-0.1188473329,
0.2529202104,
0.0813982487,
-0.1838925034,
0.2594430745,
-0.2825560272,
-0.0089300135,
0.0027261707,
-0.3539851904,
0.3217029274,
-0.2165519893,
-0.0081744911,
0.1252820194
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Using batched map is probably the easiest way at the moment.
What kind of augmentation would you like to do ? | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 21 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Using batched map is probably the easiest way at the moment.
What kind of augmentation would you like to do ? | [
-0.0076110046,
-0.078610599,
-0.3029458523,
-0.0933208987,
0.0747115687,
0.2788417637,
-0.104579702,
0.2814403474,
0.1223136708,
0.1161646023,
-0.1224739105,
0.0561200865,
-0.0021824348,
0.1659333408,
0.1615762115,
-0.161408335,
0.1548458338,
0.1445471346,
-0.1470571011,
0.1611990184,
-0.1049567387,
-0.4687490463,
0.0024018809,
-0.5504878759,
-0.1139783114,
-0.105582878,
-0.2983653247,
-0.1648693681,
0.0454927012,
-0.3779053092,
-0.2231484056,
0.0820773542,
0.1151696593,
0.2421447784,
-0.0000998411,
-0.2089395076,
0.1646331549,
0.089212589,
-0.3107389212,
0.4721702635,
0.1105212197,
-0.8047294617,
-0.0186211616,
-0.0786828101,
-0.0834561214,
-0.4446457624,
0.0461451486,
-0.0636528358,
0.3388091326,
-0.1767680645,
0.2676831484,
-0.0098134708,
0.3743917644,
0.0117657799,
0.1348075569,
0.3799751997,
0.1615884304,
0.0862628743,
0.7172882557,
0.1436655372,
0.3365129232,
0.1444842666,
-0.1315522194,
-0.0973732322,
0.2357289344,
0.0122265788,
0.1705201566,
-0.399006635,
-0.0154506313,
0.1021064818,
0.3820777535,
0.2447233498,
-0.5512056947,
-0.3171165586,
0.2154934257,
-0.0941852033,
-0.3701935709,
-0.1095229387,
0.1549907029,
-0.0199618824,
-0.2288735509,
-0.2409579754,
-0.0837807655,
0.3638656139,
0.0529173426,
0.4135732353,
0.0324129164,
-0.0221887119,
-0.1271590441,
-0.279292047,
-0.1728686541,
0.1948120147,
-0.1550068855,
0.4723393321,
-0.1161075756,
-0.141495496,
-0.2426722944,
-0.2189953476,
0.077452302,
0.1073939949,
0.1769825816,
0.1780080199,
-0.1855888665,
0.1188089997,
0.1672572047,
-0.3007957041,
-0.0579393022,
0.1513620466,
0.0100310342,
-0.1358962208,
0.2673926055,
-0.0651100129,
-0.1041895151,
-0.1596965343,
0.0384277627,
-0.1040327549,
-0.1227108464,
0.0058556935,
-0.0125691043,
0.0119503457,
-0.2453552186,
0.1206429377,
-0.0216626823,
0.0626221597,
-0.2390585393,
0.074522391,
-0.1906954199,
0.2592641115,
0.2707098424,
-0.2050133049,
-0.1140430719,
0.1182821691,
-0.071691595,
-0.1564167589,
0.2377940863,
0.1173931882,
0.2470691949,
0.0270546228,
0.0919325873,
-0.0362129509,
0.0832181647,
0.0104131019,
0.3068697751,
0.2046583146,
0.1408863217,
0.0554039814,
-0.1851006895,
0.1971402168,
-0.012721803,
0.0888805985,
-0.3098217845,
-0.0053878902,
-0.3795257509,
0.2868724763,
0.0608546622,
-0.1946116239,
-0.1409721524,
0.3655321896,
0.1183650494,
-0.2584450245,
0.0642438233,
0.093988888,
0.104816258,
-0.3767405748,
0.4527572691,
0.0382830761,
-0.3822378516,
0.0499952398,
-0.1435532272,
0.3040353954,
0.131843254,
0.0393008254,
-0.0303402506,
0.1447834224,
-0.1284515709,
-0.1212252975,
0.284068197,
-0.1609265804,
-0.3332791328,
-0.0140593685,
0.1716776937,
0.1381158233,
-0.1504610032,
0.3285776079,
0.2457566857,
-0.0475737043,
0.1889437586,
0.383381635,
-0.1481108367,
-0.1654293388,
-0.0901375115,
-0.1093992293,
0.3156548142,
0.186518088,
-0.0618916973,
-0.1337628216,
0.2854760885,
-0.4683998525,
0.1513703316,
-0.157524839,
0.3186340928,
0.1901426911,
0.1881602705,
0.3953310847,
-0.0614689924,
-0.1812361479,
-0.1726558208,
-0.0147862891,
-0.136160329,
-0.1481725574,
0.1438456774,
-0.189393267,
-0.044192899,
-0.1230906844,
0.1288402677,
-0.3399836719,
0.2959400415,
-0.1768562645,
0.0442278497,
-0.4881066084,
-0.003710903,
-0.1384126991,
0.211200133,
0.0791611224,
-0.2001275122,
0.0091775646,
0.269851476,
-0.3361880481,
-0.222245574,
0.3350797892,
-0.102516979,
-0.1454634368,
0.1096941754,
0.2788133621,
0.0695467517,
0.2102865726,
0.2375257462,
0.2521242797,
0.0980797559,
0.1130805388,
0.2049981952,
0.2804630697,
0.007360741,
-0.143642664,
-0.0969061702,
0.2299024612,
0.0896201134,
0.1053561494,
-0.2545942962,
0.2065228671,
0.2654275298,
0.0409890078,
-0.0918569714,
-0.0353269242,
-0.2036504298,
-0.0124820499,
0.278478682,
-0.2759416103,
-0.13483347,
0.0308583975,
-0.4751146734,
-0.181044057,
-0.1317113489,
-0.175999552,
-0.4588346779,
-0.1853166819,
0.1180565283,
-0.0558092818,
-0.1798986048,
0.402444452,
0.1857135445,
-0.0418794043,
0.2552895844,
0.1530425698,
0.0145460377,
0.113546811,
-0.043153923,
-0.0487925634,
0.3766634166,
0.2131990343,
0.1516610831,
0.0645517036,
0.0053586178,
0.1715643406,
-0.0934920982,
-0.2121175826,
-0.0636440665,
-0.1895341575,
0.0392828919,
-0.610468626,
-0.2298271358,
-0.3691898584,
-0.0815134272,
0.2527187765,
-0.2411986291,
0.010908246,
0.1769155115,
0.1015362442,
0.0514888018,
-0.2087112367,
0.0035752242,
0.2888844311,
0.0025713071,
0.2455696315,
-0.0415380113,
0.0583167896,
0.5223014355,
0.1586530358,
0.2197445929,
-0.1253730208,
-0.5068558455,
-0.2053865194,
0.0732152611,
0.2120388448,
0.193931967,
-0.0102070253,
-0.0845809877,
-0.1673971862,
-0.097330749,
-0.1113430485,
0.1161693782,
-0.1131239235,
-0.1461568028,
-0.0387623869,
-0.244374454,
0.1633574367,
-0.4032549262,
-0.1918667555,
0.1039538682,
0.2002731264,
0.044358924,
-0.2269430161,
0.2483759969,
-0.0357573815,
0.1118210405,
-0.0389117636,
-0.1680570096,
-0.2406018227,
0.570176363,
-0.2656956017,
0.0013289021,
-0.055221092,
-0.3044519126,
0.1406928599,
0.196947813,
-0.0404019058,
-0.201665923,
-0.0954498425,
0.0220215265,
-0.2021000981,
0.1835164279,
0.1146983877,
-0.1391179413,
-0.1791118383,
0.058222495,
-0.0121351546,
-0.0202243514,
0.3734323978,
0.1653360873,
-0.1720095128,
-0.151780054,
-0.1649217457,
0.0782193244,
0.0789998025,
-0.0428788513,
0.1349997073,
-0.1324144304,
0.0905668512,
0.0054750433,
-0.0927537978,
-0.0154375574,
-0.1174417064,
-0.2254610658,
-0.0095394971,
0.291684866,
-0.1485467255,
0.0818371996,
-0.1999634355,
-0.3598058224,
-0.0773130283,
0.1951366812,
-0.4344595373,
0.2437219024,
-0.2577318251,
-0.1267357022,
-0.4629676044,
-0.2162117809,
-0.0094653508,
-0.179320842,
0.2181586176,
-0.0718270317,
-0.3334368169,
-0.0339214355,
-0.5081927776,
0.6014178395,
0.2712257504,
0.0943003371,
0.4166789353,
-0.0557100512,
0.0767643228,
-0.0162955076,
0.3793669939,
-0.2902058363,
-0.3733694851,
-0.1220443994,
0.0605355054,
-0.2919299006,
-0.0664407983,
-0.3477963507,
0.1122817919,
0.3791010082,
0.4248925447,
0.0626003742,
0.0361150652,
0.3265300095,
0.5222181678,
-0.1211357713,
0.0620601401,
0.1321880668,
-0.1137372702,
-0.0604070053,
0.097567901,
0.0429015085,
-0.026429208,
0.4464076161,
-0.1634344161,
-0.1746935099,
0.13221623,
0.3371099532,
0.1987121254,
0.2410275489,
0.3397594988,
-0.0092987353,
0.0632393509,
0.037134584,
0.3818002045,
0.2620841861,
-0.1211249232,
-0.3090841174,
-0.2685713768,
-0.4397202432,
0.7446144223,
-0.2391803265,
0.3427326381,
0.2730868757,
-0.2558054626,
-0.0340621546,
-0.3682532907,
0.1775993109,
0.11662554,
0.1629990041,
-0.3898423016,
-0.6086575389,
0.0950630233,
-0.0550283194,
-0.075446032,
0.2048727423,
-0.2119989842,
-0.0661272034,
0.3310896158,
0.4750809371,
0.666849494,
0.3043498099,
-0.0304866303,
-0.0017352867,
-0.1681497097,
0.2637511194,
-0.1249458417,
0.1636634767,
-0.0347780809,
-0.1753427833,
0.0363153517,
0.0919379219,
0.0353776589,
0.2566662431,
-0.0770539865,
0.2041570693,
-0.1932992339,
-0.0081468401,
-0.0521625951,
0.0789845511,
0.2488764524,
-0.2243458331,
-0.0252265316,
0.2686212361,
-0.0155817233,
-0.306399703,
-0.1489026695,
-0.0248521958,
-0.1278846562,
0.1565123349,
-0.1564068943,
-0.0651298463,
-0.1435311735,
-0.0372008681,
0.2617552578,
-0.2358972877,
-0.089547269,
0.0098610492,
0.060989324,
0.4246045053,
0.0444214158,
0.1089750007,
0.1607653499,
0.2134147137,
-0.0879860148,
0.0537442118,
0.2833585739,
0.0617833212,
-0.2197449803,
0.2065999657,
0.087704353,
-0.4093128145,
-0.3032451868,
0.021758778,
0.009764892,
-0.3889298737,
-0.0714754313,
0.4038934708,
0.0414336398,
-0.1766959131,
0.2063099146,
0.2602940202,
-0.4080253839,
0.3073631525,
0.1646899283,
-0.1629059911,
-0.081471011,
0.0624559261,
0.0894904286,
-0.3430860639,
0.4695490003,
-0.0964904353,
0.0148587171,
-0.2405359596,
-0.090734005,
0.0660513416,
0.1444946229,
-0.1780954152,
0.0590980686,
0.1074357405,
0.120438844,
-0.0869837254,
0.2047008872,
0.0359198935,
-0.1315045357,
-0.3764165938,
-0.5651541948,
0.2206886113,
0.4015718997,
0.2265174985,
-0.0090961214,
0.1098169014,
-0.274159044,
0.5316251516,
-0.4084593356,
0.1374561787,
0.3545909524,
0.2290200442,
-0.0154560748,
-0.0441205166,
-0.0938914567,
-0.1243733466,
0.2687463462,
-0.1383432895,
0.008973592,
-0.2991034985,
-0.1092934385,
0.0146182477,
-0.07732898,
-0.0449200496,
-0.0239888467,
0.0309058763,
0.0723410398,
-0.4569346011,
0.0233959127,
-0.0968524516,
-0.0409794226,
0.2198072672,
0.3289915919,
0.2789764106,
-0.1022353694,
0.1524556428,
-0.1076583788,
-0.0375379249,
0.1082070321,
0.0245844983,
0.2293596268,
-0.0667489693,
0.2334054112,
0.1745451838,
0.1658676565,
-0.1393942982,
0.0500463769,
0.1432811618,
0.0567188412,
-0.0536567234,
0.2166284323,
0.2777225375,
0.1126282513,
0.2396584302,
0.3434224427,
0.4050263166,
-0.2293677032,
0.0586354323,
0.2702949941,
0.1469017863,
0.1718360633,
0.1846886426,
0.2326921225,
0.0667621791,
-0.0691918656,
-0.099369064,
0.0514885969,
-0.0264224373,
0.0020593617,
0.4193901122,
-0.1256747991,
-0.3333931863,
-0.0997269303,
-0.00498241,
-0.0200894028,
0.0695250258,
0.0646148771,
0.4033408463,
0.4989077747,
-0.2140615135,
-0.0579283535,
-0.2152504772,
0.1457211971,
0.3286410868,
0.138994664,
0.4616529047,
0.4834703803,
0.3421579301,
0.030583594,
-0.4088160992,
0.01328592,
0.0493587852,
0.0966356248,
0.0203997456,
0.0104435878,
-0.1942883879,
-0.2485845387,
-0.1224425435,
0.2361289114,
-0.3936662972,
0.1462330222,
-0.1888446063,
-0.1361036599,
-0.1875850111,
0.1707565039,
0.1503903568,
0.2097184956,
-0.2779639363,
-0.0743930414,
0.0780009478,
-0.1526311189,
0.2677412927,
0.1799112558,
0.2255946994,
-0.0255023595,
-0.1455080062,
0.3720200062,
-0.2667146623,
-0.0936893448,
-0.1716821939,
-0.0359137468,
0.0097583132,
-0.0681816563,
0.0413304083,
0.2832559049,
-0.2193232626,
0.2328003049,
-0.0459248349,
0.1422995478,
-0.3630723357,
0.0264359973,
0.2322733402,
-0.5020994544,
-0.0782478526,
-0.3215796947,
-0.178521052,
-0.4239551425,
0.1658907384,
-0.3847848773,
-0.1192837432,
0.1992289275,
0.1566547155,
-0.1398007423,
0.5302140117,
0.6634436846,
0.1763307154,
0.0529039316,
-0.3323201239,
-0.3900739551,
0.1730919331,
-0.0707127377,
-0.1365448982,
-0.0641166121,
-0.1198810041,
0.2669937909,
-0.0046594189,
0.3345375657,
-0.0598356575,
-0.2998940647,
0.1108059213,
-0.1535369009,
0.2455343902,
-0.0954855308,
0.3103297353,
0.1946123093,
0.0610554554,
-0.0867740884,
-0.0694653839,
0.1932782233,
-0.0968896002,
0.0020182617,
0.059921179,
0.0911880881,
0.4429363608,
0.2636013925,
0.079793632,
-0.4356222749,
-0.0531482585,
-0.3512001634,
0.0163178928,
-0.3566223085,
0.3309922218,
-0.0566235706,
0.2636433542,
0.0097013284,
-0.1251349449,
0.2435500324,
0.2723660767,
-0.0551581234,
-0.0806189775,
-0.2442426383,
0.1907432824,
-0.1638906002,
-0.2496412545,
-0.0956592709,
0.152516216,
0.0598497167,
-0.0583798736,
0.0142231444,
0.0174988136,
0.0475415252,
-0.1556226164,
-0.1403154582,
-0.5458518863,
-0.0969868749,
0.0516065359,
0.1564487964,
-0.369610697,
-0.217112124,
0.3101462722,
0.0661332682,
-0.0796069577,
0.4425637126,
-0.1411463618,
-0.3818379939,
-0.1352279782,
0.2422277778,
0.0642677471,
0.0296870135,
-0.3522312045,
-0.3934129775
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Some samples in the dataset are too long, I want to divide them in several samples. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 16 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Some samples in the dataset are too long, I want to divide them in several samples. | [
-0.0921550766,
-0.0665559918,
-0.2976477444,
-0.0226985812,
0.0231514703,
0.3546429276,
-0.014463,
0.2735870481,
0.1672645509,
0.1517356932,
-0.1143037379,
0.0416502953,
-0.0127320597,
0.1264990717,
0.1626525223,
-0.205832094,
0.1696422249,
0.0873437151,
-0.1048347503,
0.2275167257,
-0.0604986511,
-0.4782770574,
-0.0764303878,
-0.6003986597,
-0.1163294241,
-0.0985121503,
-0.3571468294,
-0.3164558113,
0.1215023026,
-0.31104967,
-0.2560765743,
0.0157936383,
0.0884929672,
0.2807288766,
-0.0001033332,
-0.161446169,
0.1503432393,
0.0704382136,
-0.3406285942,
0.4995980859,
0.0792684332,
-0.7448678017,
-0.0671172068,
-0.0829779357,
-0.1195214167,
-0.4099473357,
0.0361109264,
-0.1217739135,
0.3469312489,
-0.1433336884,
0.2301471829,
-0.0034849143,
0.3508446515,
-0.0468547344,
0.120324567,
0.4339419007,
0.2089643478,
0.1036968008,
0.7045373321,
0.1954570115,
0.3622114062,
0.117331408,
-0.1749292761,
-0.0523294695,
0.224926576,
-0.0106470194,
0.2237955332,
-0.4108216166,
-0.008679254,
0.168988958,
0.3199174702,
0.2096617222,
-0.5844903588,
-0.3439371288,
0.1641151905,
-0.0818065554,
-0.4392801821,
0.0093646999,
0.1522533894,
-0.0258083865,
-0.234026283,
-0.2493511736,
-0.0669918433,
0.4183290601,
0.0526311658,
0.4480652809,
0.0393823273,
0.0323317908,
-0.1009379923,
-0.2489602417,
-0.1554083228,
0.1496043354,
-0.1278479993,
0.3905819654,
-0.065075241,
-0.1372216642,
-0.3636052012,
-0.2775263786,
0.1508690566,
0.0819590762,
0.0989649743,
0.1121672541,
-0.1534661204,
0.1329182684,
0.2125650942,
-0.3424870968,
-0.0359571911,
0.2162268758,
-0.0182287041,
-0.1561190188,
0.2932981253,
-0.0941530243,
-0.1405782849,
-0.155161038,
0.0157140065,
-0.08163739,
-0.1643200368,
0.1094414368,
-0.1225902513,
-0.0545512997,
-0.2011449486,
0.0755980164,
0.0647480413,
0.1065371856,
-0.2623958588,
0.0036335515,
-0.3086777925,
0.2466657311,
0.1757236272,
-0.2556723952,
-0.0760074928,
0.1257372797,
-0.1042710692,
-0.1410947293,
0.1893499941,
0.1175352335,
0.2761710286,
-0.0135684814,
0.0912206769,
-0.1359859556,
0.0667713881,
-0.0455892384,
0.2609441578,
0.1335831583,
0.1653190553,
0.0235143956,
-0.1955861896,
0.1977246255,
-0.0709345266,
0.080461815,
-0.3996522427,
-0.0180647708,
-0.3888205886,
0.2422769964,
0.1782973558,
-0.1079657525,
-0.1250014752,
0.3729398847,
0.2526082993,
-0.3006933928,
0.0890917554,
0.0653070882,
0.1029086262,
-0.3351728022,
0.4814347923,
0.0424609371,
-0.3115997314,
0.0160703678,
-0.206636548,
0.2904303074,
0.1537158042,
0.0912343562,
0.0225256123,
0.0954155251,
-0.2393282205,
-0.1379316449,
0.3075346649,
-0.1951466799,
-0.3103210628,
0.0397400558,
0.1528491676,
0.0272359215,
-0.1793165207,
0.3627091944,
0.3158904016,
-0.0820766091,
0.213475123,
0.4815993905,
-0.2080274224,
-0.1461940706,
-0.0089434152,
-0.150286451,
0.3748991787,
0.2271439135,
-0.0541485175,
-0.1308890134,
0.2716342211,
-0.4427703917,
0.1860204041,
-0.1181798875,
0.3794409633,
0.1347670108,
0.1710026115,
0.3944880962,
-0.0669768155,
-0.2257089168,
-0.2261141986,
-0.0571710803,
-0.062120866,
-0.235371083,
0.2126371115,
-0.26760149,
0.02659465,
-0.1191705167,
0.1559116542,
-0.3202858269,
0.2384455353,
-0.1932308674,
0.1870043278,
-0.5061727166,
0.0610345267,
-0.2233324349,
0.2332095206,
0.1024847478,
-0.2418868989,
0.0311355386,
0.2829584777,
-0.2612974942,
-0.2415937632,
0.3624905646,
-0.0874168873,
-0.1497419178,
0.1179000288,
0.2847110629,
0.1307739615,
0.1272633672,
0.1616805941,
0.1158382967,
0.1229899749,
0.0553345419,
0.1622655839,
0.2773105204,
-0.0494484715,
-0.1482307613,
-0.0923688039,
0.1870818883,
0.021776326,
0.2239459306,
-0.2352087349,
0.2443434447,
0.2990867794,
0.0249036662,
-0.1108220965,
-0.1024340168,
-0.2274216413,
-0.0303909257,
0.3708474934,
-0.293102473,
-0.0476087257,
0.0122405747,
-0.5297376513,
-0.1937213689,
-0.1063218564,
-0.1373768151,
-0.4725441933,
-0.1186693683,
0.1379895806,
0.0225923341,
-0.0970029533,
0.3941381276,
0.2377458811,
-0.0841582343,
0.2825244665,
0.1574097872,
-0.0124924164,
0.1354324669,
-0.10457059,
0.0229453705,
0.3718266785,
0.1324879825,
0.2272262573,
0.0688882098,
0.1317285448,
0.1229528859,
-0.0665533394,
-0.1939285547,
-0.1079429239,
-0.2196013033,
-0.0119365249,
-0.6965722442,
-0.186179772,
-0.3246958554,
-0.1221534833,
0.2187303454,
-0.2129366845,
0.0391222499,
0.2452376783,
0.1445955187,
0.0838211626,
-0.1548656672,
0.090640232,
0.2803699672,
0.0687177181,
0.2036711276,
0.0550057702,
0.1548543125,
0.5739242435,
0.1061316729,
0.1109564304,
-0.2117843181,
-0.3798001707,
-0.2212190628,
0.0574130565,
0.2341430187,
0.2103156745,
-0.0212546736,
-0.0346367061,
-0.1980113983,
-0.0595404468,
-0.1020128131,
0.1978406906,
-0.1250300109,
-0.083187148,
-0.042871017,
-0.2294332236,
0.1627708972,
-0.470072329,
-0.2381104827,
0.0521293394,
0.1220855042,
0.0903788731,
-0.2794122696,
0.3012719154,
-0.0222953986,
0.0641674176,
-0.1506198794,
-0.1573284715,
-0.1797426641,
0.4674949348,
-0.3396629691,
0.1202922091,
-0.0520102195,
-0.321719408,
0.1637375951,
0.186689809,
-0.0275573246,
-0.1436760277,
-0.0969826952,
0.0596018769,
-0.1858638078,
0.1629553884,
0.0828567147,
-0.2485522628,
-0.095944047,
0.1055775732,
-0.0112331007,
-0.0025404175,
0.3178331852,
0.182847023,
-0.1401711404,
-0.0772917047,
-0.2146826386,
0.1893815547,
0.161150381,
-0.0674245209,
0.0197201632,
-0.2104616016,
0.039891839,
0.0396240167,
-0.0965591222,
-0.0287134871,
-0.0833247453,
-0.2234877795,
-0.0048727579,
0.2702591717,
-0.1213400289,
0.1273222268,
-0.247256428,
-0.3907499313,
-0.146998927,
0.1526195407,
-0.4917109311,
0.2618216574,
-0.2806888819,
-0.1275283396,
-0.4692978263,
-0.1887199879,
-0.1047917083,
-0.1614058018,
0.2652883828,
-0.058337763,
-0.3561533689,
-0.0844512731,
-0.5110242963,
0.6042352319,
0.3101939857,
0.1707243323,
0.4370258451,
-0.0654227138,
0.0764417648,
0.0232643634,
0.4769045413,
-0.274600476,
-0.3861763179,
-0.1249652654,
0.1016200706,
-0.2826369107,
-0.0520047918,
-0.2705365419,
0.1159946844,
0.3876576424,
0.3787552118,
0.0095865801,
0.0693709701,
0.4424822927,
0.565703392,
-0.0990027264,
0.0268344525,
0.1507281959,
-0.0923480242,
-0.0636567399,
0.1204256937,
0.0913115516,
-0.052290041,
0.4356536567,
-0.2565537393,
-0.1560582668,
0.1430501938,
0.3302806318,
0.1137515008,
0.2782664597,
0.2620792985,
0.0637969077,
-0.0065193982,
-0.0017000398,
0.4113223255,
0.2880480587,
-0.2564451396,
-0.3336547017,
-0.2030012757,
-0.4443606734,
0.7946295142,
-0.281886667,
0.3249370158,
0.3466302454,
-0.2545505464,
0.1173108742,
-0.3671301007,
0.234378621,
0.0904842615,
0.1857847124,
-0.4855910838,
-0.6768803,
0.0268062837,
0.0139640085,
0.0423151068,
0.2104670256,
-0.2805088758,
-0.081229575,
0.3251069188,
0.4187842011,
0.6144985557,
0.2699092329,
-0.0058696512,
-0.059764225,
-0.044175785,
0.3404587209,
-0.1314436197,
0.1807760149,
0.0006914811,
-0.1594684422,
0.0249672085,
0.0587785915,
-0.0081837997,
0.2708621323,
-0.1201602668,
0.2207408547,
-0.2152341604,
-0.0003139992,
-0.2047333717,
0.1338315755,
0.1247475222,
-0.2191442102,
0.0907960087,
0.2244814634,
-0.019455824,
-0.3223442435,
-0.1234592199,
0.0400966667,
-0.0346276462,
0.1531698704,
-0.1436038315,
-0.1229505092,
-0.0875681117,
-0.017864909,
0.2680427432,
-0.2091584504,
-0.0579116866,
-0.0595551208,
0.0469837748,
0.4749445915,
0.0830105618,
0.0931570604,
0.1042755246,
0.1381230801,
-0.1402865201,
-0.022740569,
0.2226507068,
0.1460524946,
-0.1895869374,
0.2490589023,
0.1716059744,
-0.4353042543,
-0.3188322783,
0.045046594,
0.0474669449,
-0.4183587134,
-0.1262003034,
0.3390966058,
-0.0147889787,
-0.1913799345,
0.1618331075,
0.2115651816,
-0.4530208409,
0.3214584291,
0.1169694588,
-0.154283613,
-0.102869004,
0.0575272366,
0.1098169163,
-0.3559035361,
0.460819304,
-0.0287568867,
0.0284115747,
-0.2682008147,
-0.0778704658,
0.054049518,
0.0975910276,
-0.1610607952,
-0.0160110593,
0.1642109305,
0.1389948428,
-0.1316553056,
0.1196243837,
0.1152605861,
-0.1619481891,
-0.4005553126,
-0.5174028277,
0.270082742,
0.3813765049,
0.2557670474,
0.035260085,
0.1718022972,
-0.3337788284,
0.628641367,
-0.3503203094,
0.1693041176,
0.3655647039,
0.243530795,
-0.0696838796,
-0.0005220732,
-0.133302629,
-0.0096563874,
0.2015911937,
-0.0205811337,
0.0806735903,
-0.2476275116,
-0.044763118,
0.0393286347,
-0.0765387118,
-0.0372772999,
-0.0468259603,
0.0439797938,
0.0571601801,
-0.4754126668,
0.0588159114,
-0.0878190622,
-0.1041298136,
0.0902896076,
0.3367289305,
0.2322867066,
-0.1297997236,
0.2429975569,
-0.0964806452,
-0.0747144371,
0.0860501528,
0.0781899169,
0.2276203334,
-0.0717222691,
0.1356782466,
0.1772406548,
0.3311463594,
-0.2294768691,
0.0507049635,
0.1601715386,
0.0505797416,
-0.0301736835,
0.2075315565,
0.3017404675,
0.123908475,
0.3368940353,
0.3831689358,
0.3606931567,
-0.2259493172,
0.051517874,
0.2434757352,
0.1107779443,
0.215077728,
0.2451015562,
0.134236902,
0.1161524802,
-0.1113182381,
-0.0948398262,
0.0579563752,
0.0464525707,
0.002782356,
0.5716440678,
-0.0768294111,
-0.3242098987,
-0.0987123773,
-0.0120592974,
0.0106790587,
0.0604578815,
0.0611863285,
0.5287553668,
0.485488683,
-0.169352591,
-0.1019108668,
-0.2474680096,
0.1468537748,
0.3622610867,
0.1380722225,
0.4326590598,
0.3992356658,
0.4062811434,
-0.0924073383,
-0.4007277191,
-0.0485340618,
0.1135690361,
0.1369554251,
0.0132214911,
0.0804360956,
-0.1333820075,
-0.2592555881,
-0.1468067914,
0.2556402385,
-0.4342419505,
0.0638419837,
-0.1879027486,
-0.1046540439,
-0.1646862775,
0.2017744333,
0.1639822572,
0.1576626748,
-0.3386785984,
-0.0578475669,
-0.0050498364,
-0.0924032331,
0.2078322768,
0.1546867937,
0.2194680423,
-0.0045989961,
-0.0708319545,
0.2528018653,
-0.2889793515,
-0.0531215668,
-0.208492741,
-0.0132864676,
0.0091536734,
-0.1011137441,
0.1081355065,
0.252071768,
-0.1908333898,
0.2433753461,
-0.0326406844,
0.1004197076,
-0.4774592817,
0.0416662656,
0.1873501986,
-0.4557675123,
-0.1458470076,
-0.337372303,
-0.2430200875,
-0.3728682697,
0.1628326327,
-0.5795016289,
-0.0825818256,
0.2132819146,
0.1386142969,
-0.2262697816,
0.4907077849,
0.6586552262,
0.2515902817,
-0.0103409151,
-0.3757664859,
-0.3638256788,
0.1219911054,
-0.2262853831,
-0.0621997118,
-0.0669343248,
-0.1357917786,
0.2469608337,
0.0311394855,
0.2954441905,
0.0071909409,
-0.2777397335,
0.1308328062,
-0.1203968301,
0.1989428252,
-0.2289442569,
0.2858724296,
0.2291435897,
-0.0513814017,
-0.0731203407,
-0.015564315,
0.0748969465,
-0.0118625248,
0.0380502753,
0.1570264697,
0.0344086327,
0.3442349434,
0.228109017,
0.1082909927,
-0.3414268494,
0.0163099654,
-0.3145477176,
0.0357469395,
-0.2887770832,
0.2973526716,
-0.0171132013,
0.1958339661,
-0.0604815707,
-0.0329030715,
0.2337292284,
0.2723932266,
-0.0157759879,
-0.0742742866,
-0.2161073983,
0.219226554,
-0.2434015572,
-0.1523364633,
0.0390131809,
0.1653614193,
0.0350602195,
-0.0385340042,
0.1303577721,
0.0786521658,
-0.0162460785,
-0.1023340896,
-0.1499357969,
-0.5930967331,
-0.0154275205,
0.1225269586,
0.0666931272,
-0.3561073244,
-0.2237811089,
0.3396698833,
0.1048020646,
-0.0266910102,
0.3971042931,
-0.0637739748,
-0.3384093642,
-0.1645892411,
0.2110566795,
0.0602411777,
-0.0124021946,
-0.2504860163,
-0.4126062393
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Using batched map is the way to go then.
We'll make it clearer in the docs that map could be used for augmentation.
Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 45 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Using batched map is the way to go then.
We'll make it clearer in the docs that map could be used for augmentation.
Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise. | [
-0.0169445928,
-0.1455655843,
-0.3001066148,
-0.0854001641,
0.1244005188,
0.1755868942,
-0.0629432127,
0.3091180623,
0.1504424363,
0.1681789458,
-0.130625397,
0.1878173798,
0.0309323408,
0.1995355189,
0.1029895544,
-0.0984937847,
0.0637116805,
0.1679254621,
-0.2380011231,
0.1587175876,
-0.0724248588,
-0.3081823885,
-0.0647776276,
-0.5189902186,
-0.0880356282,
-0.0856837332,
-0.2475230098,
-0.0627599582,
0.016347155,
-0.3594220579,
-0.2194651812,
0.0810869336,
0.079776153,
0.1623181701,
-0.0000954823,
-0.1678712219,
0.1755302101,
0.0509367995,
-0.2073568702,
0.4534386098,
0.0881541073,
-0.6956604719,
-0.0384641774,
-0.1407384276,
-0.1430088431,
-0.4254905879,
0.0193876978,
-0.0791336,
0.3932870328,
-0.1298874915,
0.3211501241,
0.0678813532,
0.3687792122,
-0.0091609405,
0.1637962013,
0.2675367594,
0.0934259966,
0.0432246737,
0.6970157623,
0.1130868942,
0.1968537122,
0.2750152051,
-0.0559568517,
-0.054792922,
0.2242706269,
-0.0399328284,
0.1791328639,
-0.407625407,
-0.0293974113,
0.0814062059,
0.3611023724,
0.2461700737,
-0.4855210483,
-0.2073441446,
0.1587934792,
-0.1088655218,
-0.303198874,
-0.1451985836,
0.0775150731,
-0.0084155956,
-0.1796171218,
-0.2245144844,
-0.110517934,
0.2781722844,
0.0317732282,
0.470241636,
-0.0542670041,
-0.0470597856,
-0.0925379768,
-0.2123640329,
-0.2038539499,
0.2598102689,
-0.1692332625,
0.3838727474,
-0.1215265319,
-0.1353020668,
-0.1618470252,
-0.2341886312,
0.1250405312,
0.0737610534,
0.2169511467,
0.2232527733,
-0.1269284487,
0.1107357591,
0.2387805879,
-0.2189144045,
-0.0347956084,
0.1099752039,
0.0264378525,
-0.0756686106,
0.1884725839,
-0.0773253292,
-0.0992703214,
-0.21769014,
-0.0355627649,
-0.0619827993,
-0.0680257007,
-0.0185658243,
-0.1009470448,
0.0252060778,
-0.1755307466,
0.1599728912,
-0.0470885709,
0.1785903573,
-0.1924699992,
0.0894397274,
-0.1249762625,
0.2691834867,
0.1609804183,
-0.1669648737,
-0.1795665473,
0.1405819803,
-0.1030166596,
-0.2629324198,
0.1747772843,
0.1583021283,
0.3005462289,
0.0060823234,
0.2012646943,
-0.0010650606,
0.0921212435,
0.0558233969,
0.3494169116,
0.2594132423,
0.2155172974,
0.0042816191,
-0.2074761689,
0.1923596114,
0.0386598445,
0.0949690267,
-0.3523134291,
0.0304877572,
-0.3897176981,
0.3262461126,
0.1028608307,
-0.1323001236,
-0.0619794615,
0.3417808115,
0.1576266885,
-0.2634569108,
-0.0511374511,
0.0761926025,
0.047942847,
-0.4188565314,
0.4802418053,
0.0124731613,
-0.3166129291,
0.0820772126,
-0.0641257316,
0.2990229726,
0.156714946,
0.0775550306,
-0.1071476266,
0.0946883708,
-0.2257409096,
-0.0112322895,
0.3483180702,
-0.1518345773,
-0.2772151232,
0.041191306,
0.1846944839,
0.0708360001,
-0.0940925255,
0.2117485255,
0.224287793,
-0.0889441073,
0.2305825055,
0.33819139,
-0.1150582656,
-0.0823141113,
-0.1669191718,
-0.1036003456,
0.2578801513,
0.1245645061,
-0.046200335,
-0.1519450098,
0.2800816,
-0.3861430585,
0.2009377927,
-0.2013783455,
0.3344907165,
0.219498232,
0.263907373,
0.2855587006,
-0.0182074364,
-0.1426213831,
-0.1639259458,
-0.0198118184,
-0.1903653145,
-0.0073356326,
0.1801938415,
-0.2361218482,
-0.1505280733,
-0.1746351123,
0.085790962,
-0.3688027263,
0.3643602133,
-0.1430169046,
0.0284694396,
-0.4876208007,
-0.0113339834,
-0.1459516138,
0.1322827488,
0.0187700503,
-0.1852540821,
0.0301893596,
0.1393852383,
-0.2906776071,
-0.1264595091,
0.2679730952,
-0.0552552044,
-0.1496491432,
0.0936706364,
0.321010828,
0.0813134611,
0.1584231853,
0.1777062118,
0.1764172912,
0.1058723778,
0.0769975632,
0.1516087651,
0.2718896866,
0.0201325547,
-0.0853935853,
-0.0976314768,
0.28532511,
0.2093073279,
0.0269206297,
-0.1385436058,
0.1989009678,
0.2945254743,
-0.0012595864,
-0.1319821626,
-0.0646299347,
-0.2141540051,
0.0002324927,
0.2770748436,
-0.312435925,
-0.1753574312,
0.1000303477,
-0.3331007063,
-0.0305125769,
-0.0974092409,
-0.2062395364,
-0.3846090734,
-0.1452928036,
0.0785187036,
-0.0137725277,
-0.1569922715,
0.4487094581,
0.1871992797,
-0.046175357,
0.2047528476,
0.1581122726,
0.0465566367,
0.0721345469,
0.0315402411,
0.0949205086,
0.3714199364,
0.062728934,
-0.0108148055,
0.1013587788,
0.0127507625,
0.1902558357,
-0.1662207246,
-0.2549056411,
-0.009370774,
-0.1310875267,
0.0247406941,
-0.4721278548,
-0.1677759886,
-0.4171991944,
0.0260450281,
0.2850016057,
-0.3464558423,
0.1147304699,
0.1940825284,
0.0446640812,
0.073446624,
-0.0137541471,
-0.0212276448,
0.2723360658,
0.0149815409,
0.2983078659,
-0.0440834463,
0.0612417497,
0.4653105736,
0.1847613156,
0.1090759262,
-0.1462468356,
-0.6015239954,
-0.0726515353,
0.0547883324,
0.2365456522,
0.2434004992,
0.031506747,
-0.0687150285,
-0.1536566317,
-0.0579479523,
-0.2477636188,
-0.0023933689,
-0.1426814795,
-0.1327076703,
-0.0629424304,
-0.350902617,
-0.0605774969,
-0.2882083654,
-0.2773611248,
0.0394845642,
0.1879211366,
0.0891086832,
-0.178179279,
0.2530729771,
-0.0417773053,
0.1533770114,
-0.0730844215,
-0.312574625,
-0.2820257246,
0.5944556594,
-0.3446516097,
-0.1548205912,
-0.0636410341,
-0.3578436375,
0.2325511277,
0.1982688606,
-0.0591978021,
-0.312913239,
-0.0276915692,
-0.0003509121,
-0.1766398698,
0.146229282,
0.1281085163,
-0.1459635347,
-0.2287901789,
-0.0527052879,
0.0190038346,
0.0899172947,
0.3732917607,
0.1933885962,
-0.1765830368,
-0.1203418821,
-0.0765815154,
0.0706174076,
-0.0274457019,
0.0174369607,
0.2258875817,
-0.1589357108,
0.1872395575,
0.0216042753,
-0.1034894958,
0.0051151649,
-0.1158910468,
-0.2093847841,
0.1152483225,
0.273478508,
-0.211243391,
0.0363748111,
-0.1313432157,
-0.3586927652,
-0.0923406333,
0.2182246745,
-0.2953591943,
0.1778493226,
-0.1908435971,
-0.0640852377,
-0.4218356013,
-0.1551457196,
0.0004917873,
-0.1836361587,
0.1839320064,
-0.1080472097,
-0.3785930574,
-0.0123384669,
-0.5417194366,
0.5136913061,
0.250677824,
0.076594986,
0.377776593,
-0.102901347,
0.0396282412,
-0.1556666195,
0.3985160887,
-0.3002895713,
-0.2740713358,
-0.1028813347,
0.031142747,
-0.2915138304,
-0.0026041968,
-0.4094836712,
0.1118601412,
0.4298162758,
0.3906328976,
-0.0598622635,
-0.0031449096,
0.3289981782,
0.4012629688,
-0.1535185874,
0.1334208399,
0.0586459935,
-0.200809449,
-0.1939124614,
0.0616846792,
0.1312016398,
-0.0089592505,
0.4233727753,
-0.234790504,
-0.093864724,
0.0015044633,
0.280146271,
0.2089468986,
0.3529751897,
0.3294100463,
-0.0130727198,
-0.038533479,
0.0447142534,
0.3722147644,
0.318618238,
-0.0576769933,
-0.2116483897,
-0.1892742664,
-0.4861542284,
0.6014273167,
-0.0915880203,
0.2584628761,
0.2055291384,
-0.3042532206,
0.0586814024,
-0.2436978966,
0.2452332079,
0.1928694844,
0.0815606117,
-0.2515928745,
-0.5197946429,
0.0003865976,
-0.1165878773,
-0.0839470103,
0.2205494046,
-0.1855600625,
-0.1190514416,
0.3397483528,
0.3805862665,
0.7213773727,
0.3727225363,
-0.0444136634,
0.0649093017,
-0.2082363814,
0.2102982402,
-0.1514595449,
0.1676415801,
-0.1084762663,
-0.1492987126,
0.0927325413,
0.1388878971,
0.0394609757,
0.228990227,
-0.1073731184,
0.1823098511,
-0.1157020852,
-0.0196166839,
-0.0945396945,
0.0810039192,
0.2040970474,
-0.1747233719,
-0.0526405536,
0.2750527561,
-0.0100247068,
-0.2535114586,
-0.128359884,
-0.145009011,
-0.0953415781,
0.0102565736,
-0.0497433171,
0.0456537008,
-0.1479800493,
0.0118608242,
0.2016207874,
-0.202026695,
-0.1585796475,
-0.0038156197,
0.0804931372,
0.3847677112,
-0.0004487776,
0.2140655816,
0.2011195123,
0.2012855113,
-0.0893242955,
0.0679805577,
0.2940024137,
-0.0240131468,
-0.2213982642,
0.1572826058,
0.0887473226,
-0.4708001614,
-0.2747164965,
-0.0228284746,
0.0618994236,
-0.3910628855,
-0.0462356284,
0.4183835983,
-0.0696108267,
-0.2254309207,
0.2535315752,
0.2210980654,
-0.4401097894,
0.3310342133,
0.2801368535,
-0.1314961612,
-0.053103216,
0.0921127796,
0.1217627376,
-0.2552759051,
0.4135269225,
-0.0591216385,
-0.0225004796,
-0.2673147321,
-0.1771593392,
0.1137654781,
0.0449485779,
-0.0836927295,
0.0587840229,
0.0113005051,
0.0981932655,
0.029810315,
0.1216482669,
0.0794438496,
-0.1278664172,
-0.3241099119,
-0.6035915613,
0.1919023395,
0.302066505,
0.2361080945,
-0.0186144002,
0.1828114688,
-0.2426852882,
0.5098893642,
-0.4830342531,
0.1032636985,
0.2558166981,
0.233808592,
-0.027629666,
-0.0949624553,
-0.0028971354,
-0.1241882518,
0.2989677489,
-0.036211919,
-0.0985418558,
-0.3450576663,
-0.0860116482,
0.0079727741,
-0.0643565208,
-0.0786522999,
0.0277404077,
0.0084652426,
-0.0038844217,
-0.3635752201,
0.0797457919,
-0.1006625071,
-0.0201907903,
0.2206113487,
0.3439674079,
0.2404595912,
0.0768492892,
0.1137533858,
-0.0868780911,
-0.0303421132,
0.1041283458,
0.023672495,
0.1436487287,
-0.1040574387,
0.3017788827,
0.1183747724,
0.1194548979,
-0.0834003314,
0.1052600145,
0.0853782818,
0.0126014855,
-0.1063187122,
0.3554544151,
0.2193900049,
0.0841823369,
0.2463788539,
0.2900205851,
0.4652897716,
-0.3328398764,
0.0970401764,
0.1872600913,
0.1010137871,
0.2055881917,
0.1568876356,
0.2433464825,
0.0172062498,
-0.0071421545,
0.0407142192,
0.0353425778,
-0.0917153358,
-0.0693185329,
0.3280281126,
-0.1989977211,
-0.2737840414,
-0.088359125,
-0.0933990628,
0.0289200582,
0.124757804,
0.013572094,
0.3981097341,
0.4890501797,
-0.1650622934,
-0.068925418,
-0.1213795543,
0.2238371521,
0.2790649831,
0.1664378345,
0.4490497112,
0.4822930694,
0.3401312232,
0.0608152002,
-0.430231303,
-0.0536184311,
0.107717365,
0.0273706932,
-0.0503118895,
-0.0741056651,
-0.2121244222,
-0.2233176529,
-0.0840658844,
0.2226674706,
-0.3029945195,
0.1754538119,
-0.2292858362,
-0.1337375194,
-0.1996998191,
0.0953210592,
0.0933141187,
0.234337315,
-0.2704221904,
-0.0077714124,
0.1015136316,
-0.1385530829,
0.2698788643,
0.248773098,
0.2883716822,
0.0173131377,
-0.1522372663,
0.2424097508,
-0.1098285466,
-0.0940551609,
-0.2680335939,
-0.0830814317,
0.06701608,
-0.0245252457,
0.1339436918,
0.2917023897,
-0.305637747,
0.215482533,
0.0331379473,
0.0881296694,
-0.2701212466,
-0.000443744,
0.2386178672,
-0.4933004975,
-0.1219578385,
-0.4256601632,
-0.2533676624,
-0.4285174906,
0.0797477588,
-0.3791305125,
-0.0102190506,
0.0892610773,
0.1759545058,
-0.142222181,
0.5551960468,
0.4812186062,
0.0739834458,
-0.0124302628,
-0.3123761415,
-0.4836331606,
0.2194251567,
-0.0562758707,
-0.1390258223,
-0.0185143929,
0.0015063107,
0.2872324288,
-0.0130770532,
0.2859380841,
-0.0585888512,
-0.2068438679,
0.0713019073,
-0.3207528293,
0.2485234886,
-0.129137367,
0.3100478649,
0.2314136624,
-0.0674784482,
-0.0694198608,
-0.1177905053,
0.2514120638,
-0.041307088,
-0.0110294688,
0.0740175545,
0.1275633276,
0.4170662463,
0.2210707515,
0.0901792124,
-0.4682818949,
-0.0659738034,
-0.3132876456,
-0.0571290143,
-0.3910632133,
0.276655972,
0.0515572056,
0.3043656647,
0.0733212382,
-0.2173113823,
0.1498271674,
0.2771360874,
0.0013819328,
-0.0360093489,
-0.1950933039,
0.3285592198,
-0.0998544618,
-0.197615996,
-0.1854781657,
0.1860242486,
0.0083921114,
-0.1333107203,
-0.0704700053,
-0.2347146273,
0.2004672587,
-0.1623765975,
-0.1646200866,
-0.4515864253,
-0.0501349084,
0.0992008373,
0.0184290931,
-0.4311222136,
-0.1648067385,
0.2243676335,
0.06604065,
-0.1228902116,
0.4751556814,
-0.1930028796,
-0.3418255746,
-0.0845566615,
0.1866381019,
0.1729300916,
-0.074450627,
-0.3311719298,
-0.3802111447
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way.
But to be honest I have no idea of a good API... | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 35 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way.
But to be honest I have no idea of a good API... | [
-0.0686046183,
-0.0305389352,
-0.2990653515,
-0.1101846844,
0.0624446385,
0.335452497,
-0.1749585122,
0.2741322517,
0.1564608663,
0.132221967,
-0.0443674587,
0.0903130174,
-0.0178966448,
0.2145759463,
0.1571808606,
-0.1104837656,
0.178280741,
0.1195115224,
-0.0964068994,
0.2644737363,
-0.0689703524,
-0.4659143686,
-0.0256335847,
-0.5230014324,
-0.0577692538,
-0.1176648438,
-0.3457257152,
-0.2689724267,
0.0295524262,
-0.313885361,
-0.1750326157,
0.0457122847,
0.1227500066,
0.2257134616,
-0.0001022616,
-0.1665668488,
0.2202335447,
0.0800638869,
-0.3130413294,
0.3663992286,
0.0928265676,
-0.7476431727,
0.0595017821,
-0.0558867604,
-0.1208659038,
-0.4913312495,
0.1032008305,
-0.1203036159,
0.3686802387,
-0.1997430325,
0.2372495234,
0.0309998989,
0.3845403492,
0.0061083813,
0.0283366442,
0.4011589587,
0.1855533421,
0.0620648414,
0.7107824087,
0.1219977066,
0.3612775803,
0.0551537164,
-0.20429793,
-0.0643414482,
0.2428514212,
0.0068097007,
0.127295658,
-0.4292884767,
0.006451203,
0.1234803423,
0.4534497261,
0.2251906395,
-0.59796983,
-0.2979208231,
0.1898910701,
-0.0986822322,
-0.4096087515,
-0.0384183824,
0.1686007828,
0.0455287546,
-0.2218216211,
-0.2193211615,
-0.0807441026,
0.3997989893,
0.1386637539,
0.391826272,
0.0202556308,
-0.0249931905,
-0.1155005544,
-0.2687823176,
-0.1262352914,
0.1236283034,
-0.2063966841,
0.452824682,
-0.1286778301,
-0.1373749524,
-0.214785859,
-0.229248479,
0.1077813879,
0.1561011374,
0.1647678465,
0.1895727664,
-0.2065297365,
0.1317077428,
0.2149592191,
-0.3526522815,
0.0053515951,
0.1251102686,
-0.0039198389,
-0.186440751,
0.3491335511,
-0.0952046737,
-0.0962555036,
-0.0527513884,
-0.0202528536,
-0.1264338344,
-0.1354443282,
0.0481497049,
-0.0846443549,
-0.0587635823,
-0.2746987343,
0.1306731254,
-0.0200752467,
0.0558103547,
-0.2272862196,
0.0899394602,
-0.1803680211,
0.2548745871,
0.3009602726,
-0.2191846967,
-0.064722687,
0.1165492758,
-0.0582758822,
-0.0933066234,
0.198882848,
0.1463550329,
0.2114189863,
0.035811346,
0.0836602151,
-0.1050399244,
0.0959553197,
0.0261886362,
0.2474204749,
0.1416899264,
0.2138691843,
0.0465459488,
-0.1783531904,
0.1664626747,
-0.036240574,
0.1221703142,
-0.4160353243,
0.0128166601,
-0.3895317614,
0.2586481571,
0.1247188747,
-0.247023508,
-0.2244282365,
0.3998590708,
0.0999818519,
-0.2942930162,
0.0754976794,
0.1829732805,
0.1183260009,
-0.3427896798,
0.4804630876,
0.0219710711,
-0.3363803029,
0.0242479295,
-0.1549205333,
0.3433933258,
0.1077008322,
-0.0038103687,
0.0000534313,
0.1986741871,
-0.1652547121,
-0.1588567644,
0.323687911,
-0.2099807411,
-0.2859992087,
-0.0238591414,
0.1997101903,
0.0716656521,
-0.1360217929,
0.3386339247,
0.2250987887,
-0.0124283182,
0.2704177201,
0.4746152759,
-0.1091530621,
-0.1832757294,
0.0216446519,
-0.1854124367,
0.2906927466,
0.192590341,
-0.135713771,
-0.1341416836,
0.3120118082,
-0.510428071,
0.1714843363,
-0.2035457045,
0.3540633917,
0.1331253201,
0.2125595659,
0.3954841197,
-0.085800603,
-0.224832803,
-0.245314762,
-0.0238487218,
-0.0882086977,
-0.1936914325,
0.1417807639,
-0.2581709921,
0.0926208049,
-0.1290220022,
0.1425095946,
-0.3532497287,
0.2598411739,
-0.22046718,
0.0691283047,
-0.5130609274,
-0.0564300157,
-0.1649243832,
0.2361113876,
0.0663798675,
-0.1898200512,
-0.0410507396,
0.3220966756,
-0.3198963106,
-0.2195446044,
0.3375581205,
-0.1587688625,
-0.1490616202,
0.1133333743,
0.2951255739,
0.0626493394,
0.2453919202,
0.2639639974,
0.306347996,
0.0540743507,
0.1400566548,
0.064187251,
0.3234606385,
-0.0238997079,
-0.1454494148,
-0.0821390152,
0.1868115813,
0.1285755783,
0.1723139137,
-0.2582693994,
0.2777765691,
0.3268328905,
0.0306297131,
-0.1232330203,
0.0002800337,
-0.2246222645,
-0.0325747505,
0.3339378536,
-0.2960823476,
-0.095001854,
0.0237665754,
-0.518876791,
-0.1817837209,
-0.0920925587,
-0.1316087544,
-0.4617495835,
-0.1724645048,
0.0933029726,
-0.097783573,
-0.1816692054,
0.391110599,
0.1194310561,
-0.0705557615,
0.2989989221,
0.1878963858,
0.0435692444,
0.1824370772,
-0.0562931411,
-0.0972775668,
0.3971742988,
0.2224535495,
0.2089011222,
0.0221775565,
0.0124478769,
0.1462171078,
-0.1039227098,
-0.1517763883,
-0.1404372901,
-0.2071711868,
0.0644378364,
-0.6927345395,
-0.1695433259,
-0.4011872709,
-0.0822536275,
0.2475292683,
-0.2263848186,
0.024604613,
0.1577135324,
0.1307264268,
0.0276360437,
-0.240465939,
-0.0117860781,
0.237435177,
0.0463208109,
0.2038218677,
0.0097053992,
0.0305847432,
0.5850211382,
0.1105987653,
0.2222079486,
-0.1531337649,
-0.487116605,
-0.1613037288,
0.122722283,
0.2028145939,
0.1914292425,
-0.0455105416,
-0.0616299659,
-0.1874714643,
-0.1129961833,
-0.1646443307,
0.1367573887,
-0.1563368887,
-0.1317684948,
-0.0678245276,
-0.2224403322,
0.1538299024,
-0.4205820262,
-0.2322579473,
0.084521994,
0.1622950137,
0.0418924205,
-0.2198494226,
0.2272854894,
0.0155684566,
0.0743991509,
-0.0559059903,
-0.1184878573,
-0.179070726,
0.5194661021,
-0.2635306418,
0.0046394016,
-0.0111850528,
-0.3212345541,
0.1550669521,
0.1527659297,
-0.0102335354,
-0.2706617117,
-0.0787210613,
0.0689049289,
-0.1759995073,
0.1595032066,
0.0822277889,
-0.1964638531,
-0.1351795793,
0.0817199349,
-0.0439851135,
-0.004976477,
0.3328840137,
0.165661633,
-0.0508643277,
-0.111207515,
-0.1176545992,
0.0994255543,
0.1196712852,
-0.1047908738,
0.1222104803,
-0.2279507518,
0.1350805759,
-0.0081044827,
-0.0707651675,
-0.1330641061,
-0.1515102834,
-0.1862461716,
-0.0248105321,
0.2846745253,
-0.1325038373,
0.0450832285,
-0.1982468367,
-0.4388127327,
-0.0720953494,
0.0953867286,
-0.4609329104,
0.2318616211,
-0.2455285788,
-0.1252290905,
-0.421430856,
-0.2600911856,
0.0442187078,
-0.1415373534,
0.2868055403,
-0.0417850949,
-0.302778542,
-0.0875810534,
-0.5137755871,
0.6783242822,
0.2343793809,
0.1515175551,
0.46634835,
-0.0487828813,
0.1367243975,
-0.0199851803,
0.3645615578,
-0.2393351942,
-0.4498533607,
-0.1944306493,
0.0865532681,
-0.2527428269,
-0.0441560261,
-0.323574543,
0.1160065755,
0.3699186444,
0.3898534477,
0.0368692279,
0.064015083,
0.3046595156,
0.4886602759,
-0.1422288865,
0.0118844211,
0.1554080695,
-0.138830483,
-0.0950959623,
0.0397458635,
0.0608252622,
-0.0051518395,
0.4857855439,
-0.2444622517,
-0.1724439412,
0.1839720458,
0.3422128856,
0.0825829431,
0.2498890162,
0.3170355558,
0.0022910945,
-0.0581324883,
0.0759143233,
0.4048275054,
0.2555460334,
-0.1385138631,
-0.3291590214,
-0.243307963,
-0.4462716281,
0.7755661011,
-0.3907977343,
0.3191577196,
0.3719859421,
-0.2240993977,
-0.0369270109,
-0.4037377834,
0.1591905206,
0.1295941323,
0.1980759948,
-0.3826710582,
-0.6550889611,
0.1126240939,
0.0173244365,
-0.0222810023,
0.2155148387,
-0.2285445035,
-0.0145862959,
0.3182498515,
0.4359497726,
0.6240624785,
0.3476096392,
0.0405568182,
-0.0611748919,
-0.2139317542,
0.3333137631,
-0.1115974262,
0.2151462287,
-0.0151037751,
-0.1331289709,
-0.018274704,
0.0951512009,
-0.0188474581,
0.2144785821,
-0.0471987128,
0.2760599852,
-0.1295553148,
0.0813131034,
-0.0696474835,
0.0608041808,
0.2009563297,
-0.2505062222,
-0.0092635714,
0.2317185849,
0.0416476242,
-0.3046420217,
-0.1959145516,
-0.0213049892,
-0.0609897897,
0.1346798241,
-0.1553379446,
-0.0658602044,
-0.0760359541,
-0.0299912952,
0.3038130999,
-0.2288008034,
-0.1412007362,
-0.0339291878,
-0.0257027149,
0.4377289116,
0.0033880919,
0.0600699522,
0.1074736118,
0.196654126,
-0.1127085611,
-0.0034189702,
0.2407532185,
0.1189407706,
-0.1846676469,
0.2388108671,
0.1455958933,
-0.4697572887,
-0.2768242061,
0.0003471313,
0.010770469,
-0.3005547523,
-0.1240954995,
0.4121631682,
0.0356794558,
-0.1533354223,
0.1705083847,
0.2669608593,
-0.3707012236,
0.3103790879,
0.1299421787,
-0.1879434735,
-0.059505906,
0.0679804012,
0.0540504381,
-0.3736450672,
0.4893711209,
-0.0558593683,
0.0053878096,
-0.1790042669,
-0.107626535,
0.0915152207,
0.2114717364,
-0.2339435965,
0.0985869914,
0.1644650102,
0.1982331872,
-0.1207282767,
0.1492049396,
0.0705931261,
-0.1806443334,
-0.3886055946,
-0.5093191266,
0.2766163647,
0.3227664828,
0.2374881506,
0.1155331582,
0.0207695328,
-0.2241154909,
0.5227136016,
-0.3601153493,
0.0942514241,
0.3992097974,
0.1778464019,
0.0366685838,
0.0398635343,
-0.1118739247,
-0.0668566674,
0.2068975419,
-0.1160573736,
0.0647535101,
-0.2455610335,
-0.0262575019,
0.0453972928,
-0.0402679555,
0.0513610505,
-0.0631357953,
-0.0252776798,
0.0155976955,
-0.5234678984,
0.0147898216,
-0.1247651055,
-0.1039093882,
0.1025296077,
0.2808086574,
0.2882390916,
-0.1843799353,
0.2178686112,
-0.1010932699,
-0.0590312518,
0.0583566613,
0.0271069705,
0.2443357557,
-0.0623425283,
0.2635536492,
0.1539420336,
0.3184335232,
-0.200206995,
0.0232459772,
0.1509009004,
0.0137542449,
-0.0927894711,
0.2279708833,
0.2638508677,
0.1314635277,
0.2674959898,
0.3891097009,
0.3625017405,
-0.2104793936,
0.0550904907,
0.2448415607,
0.1726584882,
0.152968049,
0.1774129719,
0.218947202,
0.0491283983,
-0.0819101855,
-0.0799719021,
0.0684909672,
-0.0467879064,
-0.0280635171,
0.3850809038,
-0.1099334434,
-0.3174655735,
-0.0624713711,
-0.0103152292,
-0.0300272238,
0.0398955867,
0.0332576819,
0.3949255943,
0.5789946914,
-0.2148535699,
-0.0597629286,
-0.2156556845,
0.1446567625,
0.29554829,
0.2111575454,
0.4773835838,
0.5241517425,
0.3342814744,
0.0388523117,
-0.3386429846,
-0.0191392414,
0.0598632917,
0.1324779093,
0.0130391326,
-0.0174241252,
-0.1390548646,
-0.2302508354,
-0.1648149788,
0.2870803773,
-0.395457685,
0.0660755783,
-0.1978881806,
-0.0959368944,
-0.1431285441,
0.166670531,
0.2247415036,
0.1581085473,
-0.3085287213,
-0.076001443,
0.020859804,
-0.0995980799,
0.1876102239,
0.2136705518,
0.2148957849,
-0.0233282261,
-0.1248134226,
0.3304814696,
-0.2685583532,
-0.0725424662,
-0.1951676905,
-0.00149854,
-0.0101771466,
-0.1138463393,
0.0031899645,
0.2585466802,
-0.1697764993,
0.2449404746,
-0.124099873,
0.2383803576,
-0.4589588046,
0.0838286728,
0.2679062188,
-0.4813740551,
-0.0507753603,
-0.2813662589,
-0.1576602906,
-0.3973489106,
0.1848388761,
-0.4307298362,
-0.162096113,
0.1841873229,
0.1441444457,
-0.1859394163,
0.5007236004,
0.7532906532,
0.214844808,
0.1294789314,
-0.2797745764,
-0.3995544016,
0.1798865497,
-0.0666404963,
-0.1061077863,
-0.0972599834,
-0.1658447087,
0.2976008356,
0.015670104,
0.3528470695,
-0.0596825741,
-0.2333124429,
0.0900555551,
-0.131595999,
0.2456476241,
-0.1332494766,
0.3043701053,
0.182548359,
0.0187440161,
-0.1065887287,
-0.0690150484,
0.124845095,
-0.1145303622,
0.0239363797,
0.138708204,
-0.0179993976,
0.4528112113,
0.2902180851,
0.0922638178,
-0.4518585205,
0.0232942421,
-0.3329682052,
0.0347302593,
-0.3404894471,
0.3179115653,
-0.1197087541,
0.1195728779,
-0.052570086,
-0.1263474822,
0.2401863933,
0.2379947752,
-0.094194971,
-0.0937100574,
-0.2329601496,
0.1638813764,
-0.2874903381,
-0.2557798922,
-0.0693470687,
0.1223285943,
0.0813200399,
-0.0710070953,
0.0695210397,
0.0525324307,
-0.0644518062,
-0.1906767637,
-0.121241577,
-0.566503942,
-0.0719178766,
0.0426795036,
0.1491261125,
-0.3013897538,
-0.2243121862,
0.342287451,
0.0864364058,
-0.0063538221,
0.4844029248,
-0.1697268039,
-0.2994281948,
-0.1539604813,
0.2351777107,
0.1029732376,
0.0103911767,
-0.3394872546,
-0.38075912
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Or for non-batched samples, how about returning a tuple ?
```python
def aug(sample):
# Simply copy the existing data to have x2 amount of data
return sample, sample
dataset = dataset.map(aug)
```
It feels really natural and easy, but :
* it means the behavior with batched data is different
* I don't know how doable it is backend-wise
@lhoestq | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 60 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Or for non-batched samples, how about returning a tuple ?
```python
def aug(sample):
# Simply copy the existing data to have x2 amount of data
return sample, sample
dataset = dataset.map(aug)
```
It feels really natural and easy, but :
* it means the behavior with batched data is different
* I don't know how doable it is backend-wise
@lhoestq | [
-0.0632994622,
-0.0556469746,
-0.2771685421,
-0.0368640721,
0.0604924709,
0.2008812577,
-0.0867593363,
0.3342859745,
0.2316297889,
0.1316545904,
-0.0439284183,
0.1579210162,
-0.0891115144,
0.229711622,
0.1699341089,
-0.0823393166,
0.1174819693,
0.1052648276,
-0.2327550054,
0.1378302425,
-0.1590787917,
-0.428763777,
-0.0023524526,
-0.5560161471,
-0.0530023389,
-0.1400105804,
-0.251208663,
-0.1560887992,
-0.0858927667,
-0.2709840238,
-0.161251083,
-0.0034374262,
0.0691068918,
0.2275180966,
-0.0001008931,
-0.1184825972,
0.1640576869,
-0.0095506506,
-0.3493942618,
0.329986006,
0.1156731546,
-0.6480942965,
0.0277306437,
-0.1890928745,
-0.0795666501,
-0.3808270693,
0.0249032397,
-0.1372267455,
0.3346526027,
-0.2232286334,
0.2483513504,
0.0744490251,
0.2788707316,
-0.0202089883,
0.0942940265,
0.4097539485,
0.1738607734,
0.0109541491,
0.7498845458,
0.1245981976,
0.2768813968,
0.1257328391,
-0.1657390445,
-0.0216296017,
0.1608050913,
0.0382637121,
0.2337290049,
-0.3121774495,
0.0138917426,
0.0777555108,
0.2978189886,
0.1781380475,
-0.57251966,
-0.2732110322,
0.1189945042,
-0.1241751611,
-0.4445827305,
-0.0784586594,
0.0991722271,
0.0009637164,
-0.259244293,
-0.1105475575,
-0.0711180568,
0.4402385056,
0.089134343,
0.4257207811,
0.0323689729,
-0.0025470958,
-0.1321631223,
-0.2531954646,
-0.183222279,
0.0975157693,
-0.1246484295,
0.4209007323,
-0.0579501837,
-0.1266135424,
-0.0677435696,
-0.305594027,
0.1858879775,
0.1099731922,
0.1929390132,
0.2106939107,
-0.227246508,
0.1542169899,
0.2658587098,
-0.2425050586,
-0.0022896854,
0.2041572332,
-0.0758704618,
-0.1693224162,
0.2239777297,
-0.047701057,
-0.0655767843,
-0.0060861339,
-0.0269398838,
-0.0382168107,
-0.0631441846,
0.0974367261,
-0.1065988168,
0.0104913861,
-0.1787971407,
0.032260634,
-0.0419011228,
0.1070414111,
-0.1549942493,
0.0590065084,
-0.1547717005,
0.2281048149,
0.2352559865,
-0.2266715467,
-0.1633025855,
0.0801992714,
-0.0895976126,
-0.2012699693,
0.2189156562,
0.2489342541,
0.2741270065,
-0.0490847528,
0.1457117796,
-0.0827635452,
0.1349955052,
0.0380843207,
0.3588130474,
0.1116047725,
0.2421414107,
0.005165576,
-0.1018316671,
0.1701467931,
-0.096267648,
0.0845351666,
-0.3631028235,
-0.0655137599,
-0.3702999055,
0.2830745578,
0.0265307482,
-0.1139072925,
-0.2542054653,
0.337200731,
0.1885349005,
-0.1818660051,
0.0896436349,
0.059528552,
0.1152428165,
-0.3669933379,
0.4468903542,
0.1134107858,
-0.373281002,
0.0227272976,
-0.0959552675,
0.2931320369,
0.0677029341,
0.0707121268,
-0.080048494,
0.1440458149,
-0.2160284817,
-0.0971204787,
0.4118098319,
-0.1938972771,
-0.3195032477,
-0.0170135871,
0.1635005772,
0.1572089791,
-0.0828366727,
0.2576361597,
0.3237344027,
-0.0105773825,
0.3484741747,
0.4347506464,
-0.1468312889,
-0.150558129,
-0.0593647435,
-0.1252630502,
0.2915832698,
0.113848418,
-0.1347661316,
-0.0784997866,
0.3138869405,
-0.4948131144,
0.2585173845,
-0.2050048113,
0.3731131256,
0.0273983106,
0.2850509286,
0.3254342675,
-0.0862020329,
-0.1755849868,
-0.3358183205,
-0.0384170339,
-0.1873889267,
-0.2033322304,
0.1539624631,
-0.2810045183,
0.0203976426,
-0.0487803183,
0.0939455181,
-0.328169167,
0.2975734472,
-0.2360196412,
0.0740348324,
-0.4809197187,
-0.0414202027,
-0.2468387187,
0.1729848087,
0.0421877131,
-0.2250714451,
-0.0013360244,
0.2824293375,
-0.3155223727,
-0.2743342221,
0.3438553512,
-0.1667288393,
-0.1599195302,
0.1341205388,
0.2437432557,
0.033437822,
0.1577351987,
0.2464085817,
0.1587114036,
-0.0070621697,
0.2250780314,
0.139774099,
0.2573010325,
-0.1308219284,
-0.193028152,
-0.0539348908,
0.2313881963,
0.1118429899,
0.1938220561,
-0.2354970574,
0.2226425558,
0.2522435188,
-0.0014299534,
-0.1625969559,
-0.1034445018,
-0.2591075599,
0.03647938,
0.3868323565,
-0.2824321091,
-0.0578861907,
0.096675463,
-0.3447913527,
-0.1486645341,
-0.0739675164,
-0.2248090357,
-0.4727676809,
-0.2004032731,
0.1041827053,
0.0174951013,
-0.0523003116,
0.4373737574,
0.1997582614,
-0.0958630145,
0.3652172089,
0.1758299172,
0.0071632029,
0.1341392994,
-0.078110382,
0.0565462559,
0.4229616225,
0.1454013735,
0.1783400923,
0.0495878793,
0.040542677,
0.0778424144,
-0.1019480228,
-0.2347957939,
-0.0607715882,
-0.1969971061,
0.0359815918,
-0.6457638144,
-0.1388044953,
-0.3514400423,
-0.078929089,
0.2720775902,
-0.3246183991,
-0.0186638609,
0.0961511657,
0.0940216407,
0.0681631416,
-0.27812621,
0.0735721663,
0.2336942703,
0.029743148,
0.2181043178,
-0.0871241763,
0.0034388592,
0.5335657597,
0.1826736778,
0.1518417597,
-0.1639769524,
-0.45504421,
-0.0837376788,
0.0782782137,
0.2234658599,
0.3338837028,
-0.0333238319,
-0.0305690113,
-0.2349005789,
0.0122920461,
-0.0477758795,
0.0319391303,
-0.1580986828,
-0.0603867024,
-0.0506212488,
-0.2878416181,
0.0573044196,
-0.4049880207,
-0.2539072335,
0.0681860968,
0.2193065286,
0.1133340672,
-0.1974881291,
0.2885576189,
-0.0221006498,
0.1497112066,
-0.212875396,
-0.2604112625,
-0.2132449597,
0.5349239111,
-0.3195920587,
0.0504670739,
-0.1254553646,
-0.3893171251,
0.2763389051,
0.2912284434,
0.0172550902,
-0.2947854996,
0.0436649099,
0.1051568389,
-0.1098922417,
0.2192494422,
0.2075727433,
-0.1153017357,
-0.1686352193,
-0.0432934798,
0.0579326227,
0.0500364602,
0.373149395,
0.2342386097,
-0.1522739828,
-0.1461704522,
-0.0776288658,
0.1971176714,
0.0783796012,
-0.0774530992,
0.127307415,
-0.147661075,
0.1118198708,
-0.0258348808,
-0.0768004358,
-0.1838398427,
-0.1954329312,
-0.276878655,
-0.0051434734,
0.1864016503,
-0.0620646216,
0.0897915959,
-0.0901139528,
-0.4138380587,
-0.1433574557,
0.2293683738,
-0.4528875649,
0.1833263189,
-0.1798187047,
-0.0539082736,
-0.5003439188,
-0.095831044,
-0.0321056508,
-0.2795144022,
0.3314748108,
-0.0826104209,
-0.4040456414,
0.0106442282,
-0.4854609668,
0.6610721946,
0.2718070149,
0.0265723001,
0.539334178,
-0.1853726208,
0.0325598642,
0.0023205276,
0.4078963399,
-0.2625852227,
-0.3478536904,
-0.1125149652,
0.0016584393,
-0.2887253761,
-0.0932434201,
-0.3349479139,
0.1229613274,
0.3708439469,
0.3897211254,
-0.0238388404,
0.1330492347,
0.2525306046,
0.4104083478,
-0.1656052917,
0.0772894621,
0.1077203825,
-0.0894364268,
-0.0334251933,
0.0357291102,
0.0311302841,
-0.003164957,
0.447553277,
-0.2872538567,
-0.134452045,
0.1289485544,
0.2831683457,
0.100238286,
0.3788497448,
0.2231842875,
0.0161691289,
-0.1264451593,
0.0592146181,
0.3904910386,
0.3411540091,
-0.2531390488,
-0.2315783352,
-0.2058692724,
-0.5123681426,
0.6896957159,
-0.2535868585,
0.2955570817,
0.3373090029,
-0.3510530293,
0.0188251045,
-0.3406113684,
0.1701038927,
0.1007559374,
0.0842804983,
-0.3459070325,
-0.5909574032,
0.0531342775,
-0.1161703691,
-0.0468521118,
0.1868205667,
-0.3011862636,
-0.1200276315,
0.4250341058,
0.4480888247,
0.5949057341,
0.340112865,
0.0870730206,
-0.0557732992,
-0.0333282687,
0.2986180484,
-0.0762589127,
0.1441029459,
-0.0258993227,
-0.0750056729,
0.0151064228,
0.0921253487,
-0.0761179328,
0.3233536482,
-0.0840925053,
0.1574981511,
-0.1557340771,
0.0077821165,
-0.1116471812,
0.0539859682,
0.2207532227,
-0.1985208839,
-0.0210075174,
0.2352900803,
0.0335563384,
-0.2614860237,
-0.1723610014,
-0.0704654306,
-0.1075223386,
0.0303697251,
-0.062631093,
-0.0471483395,
-0.1693164408,
0.0062614349,
0.3074278533,
-0.2784877121,
-0.2213054448,
-0.1035401151,
-0.0684422851,
0.4430473149,
0.0471432917,
0.035417825,
0.2193326652,
0.3094556332,
-0.0641489998,
-0.0689177364,
0.2699545622,
0.1516637057,
-0.1144074127,
0.2225408852,
0.1302427799,
-0.4746190012,
-0.3539480269,
0.0114166737,
-0.0010118973,
-0.4632717967,
-0.1342923939,
0.491971314,
-0.0073935152,
-0.1561770886,
0.1699605733,
0.2109730095,
-0.414381206,
0.3574538827,
0.1502196342,
-0.1569999754,
-0.009638953,
0.0831009671,
0.1553246975,
-0.2740046382,
0.41140908,
-0.040793132,
0.0334750339,
-0.220043391,
-0.2246537656,
0.1850560755,
0.0983284861,
-0.1128593311,
0.0988501608,
0.1010627747,
0.1159330979,
-0.0018396587,
0.1043528989,
0.2066406906,
-0.191295296,
-0.2985829711,
-0.5659020543,
0.3158524632,
0.3864019513,
0.2673151493,
0.0548996255,
0.1596601456,
-0.2889727354,
0.5095257163,
-0.395359695,
0.016590897,
0.3821217716,
0.2297487408,
0.0415964723,
-0.0119094634,
-0.0195811596,
-0.0496754572,
0.2320823669,
-0.0433301143,
-0.0343033299,
-0.2969152033,
-0.0451009087,
0.0337536447,
-0.0689404458,
0.106049411,
-0.0016056849,
0.1331326962,
0.0911705792,
-0.4856992066,
0.0786508992,
-0.023521699,
-0.0783712789,
0.1418721974,
0.3187412918,
0.3381459117,
-0.1551588029,
0.2361297756,
-0.0927872211,
-0.0269698799,
0.0284731053,
0.0829200968,
0.1781567931,
-0.089605324,
0.1978158802,
0.1371517777,
0.2371113896,
-0.0130119389,
0.136072889,
0.167183131,
0.0137831364,
-0.1930582076,
0.2749156356,
0.2787078321,
0.0896206126,
0.2042454183,
0.2675207257,
0.4182379842,
-0.2221464962,
0.118920058,
0.193121776,
0.0985127538,
0.1722988933,
0.2065151036,
0.1616922915,
0.0920293778,
0.0197031312,
-0.0565990396,
0.1204200685,
-0.0441845879,
-0.0036642849,
0.4070054889,
-0.1291940063,
-0.2746014297,
-0.1428506523,
-0.1386276633,
0.0112454575,
0.0462129936,
0.0505776629,
0.4357422888,
0.5020406842,
-0.2215153426,
-0.0381134078,
-0.18221201,
0.1833445579,
0.3443458974,
0.2033534944,
0.6369606853,
0.4767533839,
0.3960195482,
0.0190376826,
-0.3341275454,
-0.0228690915,
0.0455950871,
0.0643718317,
0.0233128667,
-0.055877652,
-0.1345077455,
-0.2604805827,
-0.1258265674,
0.1825301349,
-0.3170457482,
0.093240194,
-0.2400183231,
-0.0976926088,
-0.2019863129,
0.1359676421,
0.0750067532,
0.1225425899,
-0.3271101415,
-0.0051010163,
0.0715209171,
-0.064468503,
0.1521442086,
0.2337118536,
0.1777094603,
0.0345668495,
-0.0313328058,
0.2604062557,
-0.2468580008,
-0.0641297325,
-0.3413464725,
-0.1032400802,
-0.0292909928,
-0.1420267224,
0.1172940582,
0.2845403552,
-0.2158596218,
0.2540853322,
-0.0543985032,
0.0278831385,
-0.322042793,
0.112336643,
0.301686883,
-0.515948534,
-0.1086743101,
-0.2909238935,
-0.2737606466,
-0.4126057923,
0.0989284739,
-0.3885515332,
-0.0430593528,
0.1713315099,
0.1535684764,
-0.1431222856,
0.5102576613,
0.6492154002,
0.1804958135,
-0.0139034614,
-0.2436195016,
-0.3587186038,
0.2236051708,
-0.0885426924,
-0.1090303883,
-0.1453377008,
-0.0088957101,
0.3029864728,
0.0262526367,
0.2671393454,
-0.0504154339,
-0.3545338213,
0.1882060319,
-0.1807929426,
0.173895821,
-0.1874707788,
0.270786196,
0.2503415346,
-0.0993698761,
-0.1384287626,
0.0170484856,
0.1661050916,
-0.155254811,
0.0161293168,
0.0909141526,
0.1035416052,
0.4825318456,
0.3226446509,
0.0563974231,
-0.4423959553,
-0.0505337641,
-0.3334938288,
0.0036297569,
-0.2995583415,
0.2854177952,
-0.0547496006,
0.1813038737,
0.0267792083,
-0.1795474589,
0.1609042138,
0.2777336836,
-0.0023225998,
-0.1297566444,
-0.2278168052,
0.2474310249,
-0.2702031434,
-0.2676486373,
-0.1234765053,
0.1761464179,
0.0489291623,
-0.0092595676,
0.0110432096,
-0.0646983236,
0.0136625106,
-0.1957698166,
-0.122062549,
-0.5525929928,
0.0290753935,
0.065921247,
-0.0016193195,
-0.3800122142,
-0.2454479635,
0.3684583008,
0.1021547019,
-0.0117967986,
0.4022870064,
-0.1692766249,
-0.2776993811,
-0.189070344,
0.2403184921,
0.0850917846,
-0.0821241662,
-0.2569816411,
-0.4197181463
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples.
If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example.
It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 77 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples.
If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example.
It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches. | [
-0.044963073,
0.0315058939,
-0.2623603642,
-0.0620331392,
0.0712593645,
0.174082309,
-0.0435554534,
0.2856451571,
0.2927055061,
0.0688026398,
-0.0452282615,
0.2766706944,
-0.0615258329,
0.0991371199,
0.0134358006,
-0.2535322905,
0.1473679692,
0.1497773528,
-0.3047790527,
0.1889687032,
-0.1046197787,
-0.3813795149,
-0.0792352185,
-0.4454678893,
-0.1265064925,
-0.2560837865,
-0.1376864463,
-0.258826822,
-0.0291534755,
-0.4197901189,
-0.1189496964,
-0.1064744517,
0.0321360938,
0.2190885246,
-0.0001070394,
-0.077758871,
0.3182470798,
0.0758762956,
-0.3291755319,
0.2881885469,
0.0744247735,
-0.5883308053,
0.1895931363,
-0.1483374834,
0.0005679387,
-0.5663413405,
-0.0038558093,
-0.2213454843,
0.4242577255,
-0.1464164257,
0.2143066674,
-0.0009615482,
0.3605849743,
0.1151257008,
0.2499140799,
0.3350798488,
-0.0361365154,
0.0528890789,
0.6350505948,
0.0297998562,
0.1589228511,
0.277066946,
-0.0203182343,
-0.0861724094,
0.1291488558,
0.121994853,
0.1845044047,
-0.2338155508,
0.0329688527,
0.1512698382,
0.4620941281,
0.1598395109,
-0.5492649674,
-0.1295825392,
0.0587238856,
-0.0840115249,
-0.2829310298,
-0.168948397,
0.1015855148,
0.0041410765,
-0.0054869605,
-0.1655527204,
-0.0878737271,
0.4407988489,
0.1486133933,
0.4273614585,
0.0645058155,
0.0699813589,
-0.0995413661,
-0.277531594,
-0.0916132778,
0.1496664137,
-0.1602431089,
0.4104997516,
-0.0713776127,
-0.0128854075,
-0.2568858564,
-0.3334087431,
0.0220549293,
0.1018832773,
0.3761999607,
0.1902011633,
-0.1630191058,
0.0982384309,
0.2746864259,
-0.2005939186,
0.0142445881,
0.2476573288,
-0.1037528887,
-0.2508896291,
0.275649339,
-0.0562036783,
-0.0832766965,
-0.078471303,
0.0706355944,
-0.1746520549,
-0.2213660926,
0.0792392641,
0.0049043414,
0.0197239313,
-0.0175555516,
0.0744810477,
-0.0832478032,
0.1453247964,
-0.0534716919,
0.2024697065,
-0.1878629774,
0.2492562532,
0.3035986423,
-0.0639065653,
-0.0625422299,
0.0752417147,
-0.2145078629,
-0.209885776,
0.0772961006,
0.3709008992,
0.1855745465,
-0.0100019956,
0.0702608451,
-0.0770588294,
0.1091508344,
-0.129792735,
0.428498745,
0.0761953443,
0.0568463914,
0.0317525975,
-0.1038800031,
0.08155974,
-0.0219878815,
0.1219737977,
-0.3230207264,
-0.0418440625,
-0.4821155965,
0.1992632002,
0.1621776074,
-0.1413288414,
-0.2607136667,
0.2704460919,
0.176641956,
-0.3363067508,
0.1516435891,
0.0775421485,
0.2024882585,
-0.499091953,
0.3427676558,
0.0446179621,
-0.4170144498,
0.0328525975,
-0.1063541993,
0.4234547615,
0.212574333,
0.1393313706,
-0.1623225212,
0.0343467705,
-0.0578218065,
-0.0136516476,
0.5873199701,
-0.2502159178,
-0.2744026184,
-0.0086098714,
0.1392572224,
0.1536214948,
-0.0692368597,
0.245382145,
0.1563033611,
0.0249975324,
0.2388848215,
0.407786727,
-0.0065614069,
-0.1438525766,
0.000221496,
-0.0887071639,
0.1144866571,
0.151244089,
-0.2663124204,
-0.3306486011,
0.3042255938,
-0.6410690546,
0.2132045627,
-0.2068176121,
0.4185774326,
0.088003844,
0.2264770716,
0.368099004,
0.022747077,
-0.014894397,
-0.3838594854,
-0.0206500627,
-0.0569171049,
-0.2303417623,
-0.0467185527,
-0.2594998479,
0.0055365767,
0.0464922376,
0.1018630117,
-0.172216922,
0.21308285,
-0.2088262588,
0.1028582826,
-0.4434616268,
-0.0221211594,
-0.219416365,
0.0620043166,
0.0842283815,
-0.0593722984,
-0.0488721691,
0.2604753375,
-0.3671446145,
-0.276601851,
0.3287090659,
-0.2676294148,
-0.0874425396,
0.00669559,
0.3033412099,
0.2157502323,
0.1685020924,
0.1334203333,
0.158498168,
-0.0353384912,
0.0663862005,
0.1497315615,
0.2639794052,
0.045388449,
-0.1659341156,
-0.165455237,
0.2021574378,
0.0454257317,
0.3024058938,
-0.2025537342,
0.2945613265,
0.3530862629,
0.0562304147,
-0.19309102,
-0.0953232795,
-0.20777677,
-0.0979160592,
0.3189954162,
-0.2392761558,
-0.0645779893,
0.010941742,
-0.2084863335,
0.025827989,
0.0223981459,
-0.1927534491,
-0.5307374597,
-0.1057419553,
0.1869876385,
0.084814921,
-0.1719259918,
0.339972496,
0.1259011179,
-0.2647234201,
0.2518344223,
0.0908786133,
0.0777936429,
0.0999108925,
0.1562827975,
0.0097636189,
0.3862089813,
0.0888932124,
0.0986338854,
0.0392763391,
0.0426652394,
0.037028756,
-0.0083183711,
-0.160568893,
0.0001102871,
-0.1803581268,
0.0516250245,
-0.6276809573,
-0.0828135237,
-0.3152197301,
-0.1116900817,
0.1336809546,
-0.3548227549,
0.068294242,
0.0428553075,
0.0047916044,
0.0162833873,
-0.3871846795,
-0.0655822679,
0.0567805693,
0.0432574004,
0.1481970847,
-0.0240252782,
-0.0951554254,
0.4585321844,
0.3018176854,
0.2761400342,
-0.0924379677,
-0.4389209747,
-0.0779126734,
-0.0016338521,
-0.042575743,
0.3088808358,
-0.0789651424,
-0.2523448467,
-0.1831151545,
-0.0105171353,
-0.1569565684,
0.064912498,
-0.1248631552,
-0.0938958302,
-0.0743304789,
-0.2183419019,
-0.0330917016,
-0.3234651387,
-0.3384044766,
0.2372867614,
0.2095008492,
0.0771851763,
-0.3131402135,
0.3482191265,
0.0356433652,
-0.0219958127,
-0.1271120459,
-0.1488683671,
0.067243658,
0.5090065598,
-0.2755544186,
-0.0019022085,
-0.0643549263,
-0.4245727956,
0.2866924405,
0.3556598425,
-0.0719249174,
-0.0999894664,
-0.1816030145,
0.0792027265,
-0.2332166135,
0.2640170157,
0.2581160069,
0.0931415632,
-0.175895378,
-0.0197529793,
0.0001384511,
0.155605793,
0.3379496336,
0.1088871881,
-0.0048562619,
-0.0421650596,
-0.141507268,
0.2414651066,
0.0386006795,
-0.0504025742,
0.084874019,
-0.2094836831,
0.036474634,
-0.0294405594,
0.0693502575,
-0.14761509,
-0.195806697,
-0.1011283919,
-0.0545560531,
0.1600606292,
-0.2452845424,
0.0490129665,
-0.0047937557,
-0.4095491171,
-0.0989039019,
0.4397298694,
-0.5884215236,
0.2396434247,
-0.2576618195,
-0.1125565991,
-0.4354302883,
-0.1512355506,
0.0298304763,
-0.4478645325,
0.2770805657,
-0.1528019458,
-0.1997332722,
-0.0024503616,
-0.5094041824,
0.6173355579,
0.3407274485,
0.1416909844,
0.5109148026,
-0.2703468204,
0.0388936065,
-0.0224731695,
0.1445498019,
-0.3867683411,
-0.4822344482,
-0.1489626318,
0.0565244444,
-0.5446116924,
0.0453957431,
-0.4296464026,
0.0789376348,
0.175378114,
0.3766127527,
-0.1923595518,
0.0562489852,
0.1564023793,
0.2604748011,
-0.1554166973,
0.1205743402,
0.1243772432,
0.0046461821,
-0.1029447094,
0.0679117441,
0.1699337512,
-0.0474389195,
0.578017056,
-0.2204654664,
-0.260486722,
0.1671957523,
0.1181890219,
0.120951727,
0.4411545396,
0.1597189605,
-0.1065878645,
-0.0680273548,
0.1769417822,
0.286996752,
0.4402086437,
-0.1363723129,
-0.1719539911,
-0.2713150382,
-0.4779589474,
0.7552837133,
-0.1796368808,
0.2490858734,
0.5026301742,
-0.4150936604,
-0.0819968656,
-0.1827350408,
0.0427165218,
0.2052188665,
0.1293452233,
-0.2690241337,
-0.56750983,
0.1869135201,
0.0669858754,
-0.1112222522,
0.4496653676,
0.0426341295,
-0.0253160615,
0.5850726366,
0.4780202508,
0.7165128589,
0.3173343241,
0.1846253574,
0.0463654362,
-0.3272405267,
0.4004527926,
0.0701660216,
0.0808077678,
-0.054795064,
0.1025412232,
0.000973289,
0.0179705583,
-0.1384091675,
0.287640661,
-0.1518888026,
0.1500273794,
-0.236784637,
0.0100842705,
-0.1330453455,
0.0580246449,
0.1733937562,
-0.2823072374,
0.0491809212,
0.1456317902,
0.0023425028,
-0.4167022705,
-0.124645777,
-0.0805628002,
-0.2426793128,
-0.0545363277,
-0.1380871087,
-0.0321416333,
-0.283095777,
0.0215365533,
0.3141745925,
-0.3613504171,
-0.0451419055,
-0.0145277921,
-0.1150657758,
0.3307727873,
0.064319022,
0.0906222165,
0.2942407131,
0.1756628156,
-0.124914892,
-0.0758657902,
0.2506097853,
0.0968922824,
-0.0730132684,
0.243303135,
-0.0332551599,
-0.5641130805,
-0.2155822366,
0.0455957279,
0.0802174211,
-0.2566097975,
-0.1502013952,
0.4297662079,
-0.3009395897,
-0.0832198411,
0.1620203704,
0.1880555898,
-0.2602070868,
0.3336820006,
0.2605098486,
-0.2356594056,
0.015647592,
-0.0450061671,
0.1454175115,
-0.2462286502,
0.560054183,
0.004874893,
-0.0744182691,
-0.228559196,
-0.3298817873,
0.3779737651,
-0.160048753,
-0.1020262837,
0.0367771052,
-0.0289916899,
0.1916473955,
0.0871228799,
0.2979387343,
0.3023319542,
-0.3340013325,
-0.2269849777,
-0.553945601,
0.4804137349,
0.2971705198,
0.2122281045,
-0.070075497,
-0.1323898882,
-0.2415798753,
0.5198344588,
-0.3649609983,
0.0541796759,
0.3694390953,
0.2712547779,
-0.0078908857,
0.0338669196,
0.1295349449,
0.0011186624,
0.2268513739,
-0.0118247913,
0.0886301696,
-0.2576602101,
-0.037760064,
0.066636771,
-0.0706666335,
-0.0237445682,
-0.125618279,
-0.0510206893,
0.0505983345,
-0.4686255753,
-0.0284207836,
-0.1368893981,
-0.2345692962,
0.0967756882,
0.2378014475,
0.289717257,
-0.1185134575,
0.2620233893,
-0.180041194,
-0.0217491221,
0.0069463467,
0.0462494865,
0.2865625024,
-0.1805450767,
0.379966855,
0.1336239576,
0.190766871,
-0.0546637699,
0.0108199278,
0.0726342872,
-0.0574466363,
-0.2792011797,
0.2909565568,
0.2643672824,
0.1183544472,
0.1086475328,
0.2221928835,
0.3442615867,
-0.236318469,
-0.0017848322,
-0.1496382058,
0.16021128,
0.232027933,
0.2347549647,
0.155063197,
-0.0138554834,
-0.0915752351,
-0.051003363,
-0.204200089,
-0.2594504952,
-0.1191177145,
0.418432951,
-0.0561248213,
-0.3389957845,
-0.1105776355,
-0.0296591539,
0.0458419845,
-0.0077337096,
0.0287056789,
0.4061868489,
0.6985003352,
-0.125254333,
-0.1514202356,
-0.01959938,
0.0624205917,
0.3148449063,
0.1865273118,
0.5614483356,
0.5762028694,
0.3474791348,
0.2870393991,
-0.3146398962,
-0.0132954586,
-0.1193245053,
0.0299679711,
-0.0644757077,
-0.1111614257,
-0.0645014867,
-0.3055882454,
-0.189447701,
0.1012376547,
-0.1942660064,
0.3417071402,
-0.1086995974,
0.0547949225,
-0.2436425835,
0.2484983057,
0.1756338179,
0.3531354666,
-0.3195337355,
0.0233139861,
0.0130953658,
-0.0288182348,
0.0325077437,
0.3075968623,
0.1783498377,
0.0284825955,
-0.1392766386,
0.2700141072,
-0.1918337643,
-0.1115116179,
-0.1392230988,
0.1388923079,
0.1343432069,
-0.2207657546,
0.2025389671,
0.2486941516,
-0.1949061602,
0.2103409171,
-0.1208629236,
0.0523631126,
-0.1964484453,
0.2150077969,
0.2053636312,
-0.5519220233,
-0.1238853037,
-0.1983914226,
-0.2035443485,
-0.3652029335,
0.2021930367,
-0.4419761896,
-0.1564691067,
0.0877135918,
0.1127539501,
-0.0868228376,
0.6534006,
0.6501070857,
0.4077479839,
-0.0029831489,
-0.4474178553,
-0.2605942488,
0.102281414,
-0.3121053576,
-0.147126615,
-0.0733870342,
0.0649351478,
0.3865474164,
0.1107750833,
0.3859177828,
0.0703390837,
-0.343429029,
0.226390034,
-0.3226325512,
0.2810469866,
0.1677541882,
0.2737781703,
0.1945687681,
-0.1446958184,
-0.1030597687,
0.1704743505,
0.1538924426,
-0.0958023816,
0.0370049365,
0.1521032006,
0.1813179702,
0.5217480659,
0.2050192356,
0.0396761522,
-0.3355918229,
-0.0860084742,
-0.3407740295,
-0.1025014743,
-0.2674381435,
0.3767381012,
0.0196101964,
0.2899915874,
-0.0036168983,
-0.0766388252,
0.2338161469,
0.0461142249,
-0.1184460297,
-0.0311343595,
-0.1199417859,
0.1658703983,
-0.1964732409,
-0.2484065294,
-0.1983761042,
0.2559404969,
0.0955990031,
-0.0960782543,
0.0053157373,
-0.1152266189,
0.0523726679,
-0.0773535818,
-0.1800584495,
-0.2604097724,
0.0013359566,
0.2386950999,
0.0844915137,
-0.344511807,
-0.224729225,
0.2123769075,
0.1343301386,
-0.1316026449,
0.2490273565,
-0.1184339598,
-0.1462396979,
-0.1720626056,
0.4722696841,
0.0154969767,
0.0196416881,
-0.4694657624,
-0.441247493
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | > Hi, can you give a full self-contained example to reproduce this behavior?
There is a notebook in the post ;) | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 21 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
> Hi, can you give a full self-contained example to reproduce this behavior?
There is a notebook in the post ;) | [
-0.0729422942,
-0.431997627,
-0.0746613741,
0.2472376674,
0.1424585432,
-0.2991018891,
-0.034663897,
-0.3622230589,
-0.0423690379,
0.4704315364,
0.0269528739,
0.3044506311,
0.0302146077,
0.0872768983,
-0.2722608447,
0.075244084,
0.0376887321,
0.0133033954,
0.048878219,
-0.2914242446,
0.0159806181,
0.0995299071,
-0.2607535422,
-0.1770695746,
-0.1143433899,
0.056536831,
-0.1556735039,
-0.0681023821,
-0.3433378935,
-0.087000303,
0.0321290269,
0.3313093483,
-0.1052891463,
0.4939868152,
-0.000117025,
-0.4163562357,
-0.0219290648,
-0.1781867445,
0.3075725734,
-0.5136870146,
-0.2497314662,
0.3652490675,
0.0798637718,
-0.1274431795,
-0.1293843985,
0.1144194975,
-0.3657514751,
0.0146403899,
0.4840200245,
0.127517283,
0.1668633372,
-0.1628427505,
-0.3187301159,
-0.3868791759,
0.0139948893,
0.0592608787,
-0.1181052551,
0.4923389554,
-0.0330629833,
0.1233151928,
-0.0663544014,
0.0778921098,
0.17461586,
0.3484485447,
0.4598204195,
-0.1589021683,
0.2443422675,
-0.0628955811,
-0.0225948151,
0.3563774526,
0.274035573,
-0.116063498,
-0.1012609005,
0.2822774351,
0.2155550718,
-0.3651966751,
-0.093186684,
-0.0739115775,
0.1439156681,
-0.146134451,
-0.0108551299,
0.3827987313,
-0.0761183277,
-0.1780847162,
0.2129089683,
-0.0751299262,
-0.0184809566,
0.069737874,
0.1373714358,
0.3848737478,
-0.1237276942,
0.1314069927,
-0.4110626578,
-0.1525682062,
-0.5036751032,
-0.0680447221,
-0.0418666415,
0.4301223755,
0.0287700351,
0.3245636225,
0.5289822817,
-0.1465086043,
-0.122525759,
0.0420774594,
-0.0674973875,
0.3009234071,
-0.1637226641,
0.0034657039,
0.09488561,
-0.0217085537,
-0.1616704911,
0.0056091128,
0.3751336336,
-0.5000551939,
0.2849846184,
0.2503116429,
-0.1803475916,
-0.3356366158,
-0.6347411275,
-0.0664335936,
-0.4162109196,
-0.2036540955,
-0.0150856739,
0.2462236732,
-0.2712687552,
0.0718199909,
-0.2622615397,
0.2142347991,
-0.1250940114,
-0.0586310066,
-0.2955053747,
0.0800916776,
-0.5461648107,
-0.0126220323,
-0.3351668715,
0.1911018789,
0.1781326979,
0.4183346033,
0.0020135012,
-0.3315197825,
0.0598281324,
-0.4487571716,
0.0723657832,
-0.0718555152,
-0.0791172534,
0.0141064487,
0.0821314752,
-0.1971663237,
-0.133993715,
-0.0057610087,
-0.14129287,
0.272531271,
0.4450805187,
0.0656628683,
-0.0854325294,
0.1210343838,
-0.1398100406,
0.1766982377,
-0.3170872331,
-0.0083275475,
0.2046127021,
-0.184177354,
-0.316598177,
-0.3004753888,
-0.0015305527,
0.2072273344,
-0.0665683821,
0.1484942734,
0.6132833362,
0.1436500549,
0.2077409029,
0.50737679,
0.0661425889,
0.0879928246,
-0.2220107615,
-0.5712295771,
0.4453020096,
-0.4446240664,
0.0846233815,
-0.0251810513,
-0.0576000772,
0.0062044328,
0.1305319071,
0.1785041839,
-0.2394029498,
-0.0235975794,
0.1534711719,
-0.2068718076,
0.0482668988,
-0.2135522664,
-0.019463785,
0.0297450703,
0.3167251348,
-0.3030977845,
0.1502764672,
0.2283771187,
-0.0114706866,
-0.171824649,
0.3134988546,
0.2069143951,
-0.3694639802,
0.0516027734,
0.1938420236,
0.3044389784,
-0.0575997233,
-0.2001898885,
0.1571058035,
0.149196744,
-0.5066497326,
-0.1957543641,
0.5925680399,
-0.2029517591,
-0.2326529771,
-0.129802525,
0.0167077333,
-0.2094645351,
0.1213447079,
0.3131522536,
0.2446817458,
0.2755917013,
0.0435582921,
0.2283720225,
-0.178737238,
-0.1511547118,
-0.1725234985,
-0.1051988974,
0.0018529167,
-0.1402863562,
0.0833922029,
0.2186943293,
0.3086819351,
0.0139425313,
-0.1252152771,
0.3100952208,
0.5252619982,
-0.0263120607,
0.1189500615,
0.2512630522,
0.1599371582,
0.20556584,
-0.1156127676,
0.4238215089,
0.1592493653,
-0.114890404,
0.0598701499,
0.3031253219,
-0.4730484486,
0.0715666786,
-0.0767097473,
-0.0230604131,
0.0747993216,
0.1003672257,
-0.1731091291,
-0.0771296993,
0.3988668919,
0.0202212632,
0.3070412874,
0.0335893221,
-0.4082302749,
-0.1613552123,
0.1065685153,
0.2213356942,
0.0364706218,
-0.1656695902,
0.102854535,
0.0469975285,
-0.0295288358,
0.174822703,
0.2265618891,
0.046511855,
-0.0839714259,
-0.0033864167,
-0.3627884388,
-0.3238307834,
-0.200046882,
-0.1123355702,
0.2540784776,
0.3564977646,
0.2895347476,
0.246726647,
-0.2504340112,
-0.4256809354,
-0.0892738104,
0.022355834,
0.0306770895,
0.320001781,
-0.3778673708,
0.3741840124,
-0.0508992858,
-0.3276845515,
-0.082453467,
-0.0896395743,
-0.0475592837,
0.3303894103,
0.3002760708,
-0.1265235394,
0.5133864284,
0.1238654032,
-0.0614106245,
0.2800592482,
-0.0947363228,
-0.1490519345,
0.0418749005,
0.061475385,
-0.1346151829,
0.0218227655,
0.258836329,
-0.2812090218,
-0.00975125,
0.0195135847,
-0.2017590404,
-0.0430035405,
0.1012572423,
0.2257145643,
0.0627167299,
-0.4950436354,
-0.2061865479,
0.454722017,
0.3494850099,
-0.1335416585,
-0.1433506757,
0.0927430093,
-0.1561850458,
0.1136120781,
0.0649652779,
0.1115126386,
0.0507347248,
0.0077123912,
0.477075249,
0.0406519733,
-0.0323165208,
0.3786588013,
0.087484017,
-0.0692564845,
0.174593389,
0.3019638658,
-0.3619594872,
-0.1703047454,
0.1534346342,
-0.3342143893,
-0.3372674584,
-0.0037974527,
0.2548955381,
0.0573142953,
0.071899794,
-0.1600864828,
-0.5616263151,
-0.0084273638,
-0.1259208024,
-0.2945591509,
-0.2496600002,
0.5192812085,
-0.2608340979,
-0.1672194004,
-0.0561701432,
0.1818183661,
0.1151714697,
0.0744683817,
0.3241333365,
-0.2724432945,
0.1425646842,
-0.1437831968,
0.0398102105,
0.4241265953,
-0.1063040346,
0.0679803342,
-0.0478790067,
0.2415929437,
-0.4286984503,
0.0777276307,
0.3353779018,
0.0047695381,
-0.2590504289,
0.2845085561,
-0.1497371644,
0.603803277,
-0.1270698309,
0.0989093184,
0.1798586994,
-0.0424423963,
-0.2053052187,
-0.3841390014,
-0.1888157129,
0.0148058636,
0.1447369307,
0.1506261975,
0.0689901188,
0.1150011793,
0.1120625734,
0.2014238387,
0.0154253887,
0.0449068509,
0.0535328053,
-0.2599618733,
0.0311482791,
-0.1688404381,
0.0394636095,
-0.1582561135,
0.1542323083,
0.196950376,
-0.1055849791,
0.5462045074,
-0.34839046,
0.2001514733,
0.0214276072,
-0.5407804847,
-0.2420252115,
-0.2875944078,
-0.3703912199,
0.0820828006,
0.2013503909,
0.1170599386,
0.1116781011,
-0.102788195,
-0.1129120216,
0.0102803148,
-0.0713435933,
-0.1393749416,
-0.5917125344,
0.1660336852,
0.0199527927,
0.1845139414,
0.0796696618,
0.1231359988,
-0.1292866319,
-0.1786274314,
-0.3222107589,
-0.0605728291,
0.3907667994,
0.2007410079,
0.1498924494,
-0.024055507,
-0.1971602589,
0.028502265,
-0.1098371819,
-0.2267868221,
0.00317522,
0.1989545524,
-0.5485672355,
0.212731123,
-0.1606103033,
-0.0469373353,
0.2214842439,
-0.0933401585,
-0.0975084454,
-0.6738170385,
0.3121767938,
-0.4528857172,
-0.1113974229,
0.4746370018,
0.0105744712,
-0.0218151771,
-0.2490188777,
0.1142332703,
0.1261953264,
-0.4261641502,
0.2862328589,
-0.265432328,
0.0386851132,
0.4411571026,
0.3684290349,
0.687554121,
-0.1333998293,
-0.063621372,
0.1431774944,
-0.1540894359,
0.224723652,
-0.20829992,
-0.0265801493,
-0.2640280724,
-0.3276491463,
-0.04821169,
-0.0377447642,
0.1220280454,
-0.0377881452,
-0.0722164512,
0.3350605071,
-0.1171618104,
0.2474179566,
-0.1141144857,
-0.1422787011,
0.3587922752,
0.226888746,
0.3435050249,
0.1264494509,
0.1702567935,
0.2904885411,
-0.2271944135,
0.1309091747,
-0.2318704277,
0.1126539409,
-0.2502039969,
-0.1527741849,
-0.2988250852,
0.143407777,
-0.0602941997,
-0.4588408172,
-0.1070040688,
0.7968850732,
0.629109621,
0.2359060943,
-0.0231773984,
0.2885487378,
0.0672376379,
0.1290566623,
-0.2900575399,
-0.2482479215,
-0.1415721178,
0.0503364541,
-0.2829749882,
0.0069707376,
0.209493041,
-0.215088591,
-0.3606832623,
0.2045869976,
-0.300519526,
0.19034639,
0.0454041287,
0.0197647344,
-0.0329488888,
-0.1293002814,
0.089340359,
0.0341840573,
0.0398871265,
0.3000202775,
0.0702444613,
-0.3948748708,
-0.1391727626,
0.3577369452,
-0.066496186,
0.1350870579,
-0.2667109668,
-0.3262555003,
0.1047228277,
-0.3019203544,
-0.1799212396,
-0.2614292502,
-0.1382793039,
0.1824704856,
-0.0564284697,
-0.0671341866,
0.2789305151,
0.6154509187,
0.1856499463,
0.2741474807,
0.2410752475,
-0.3023460209,
0.1398624629,
-0.0658835322,
0.2619774044,
0.0108386064,
-0.2457007021,
0.1602039635,
0.0775498152,
0.4317094982,
-0.2948765159,
-0.1789626479,
-0.1434405297,
0.0270355474,
-0.6010740995,
-0.2214311063,
-0.1617848426,
0.205725193,
0.0024004129,
0.1748354137,
-0.2614099681,
-0.1284416914,
-0.2560677826,
0.1408541352,
-0.0465692766,
0.5226811171,
-0.1612803638,
0.0954840705,
-0.0471085012,
-0.2260112464,
0.1570692658,
0.3563849032,
0.253989011,
0.0663862228,
-0.0365471393,
0.3187327087,
-0.0808603093,
-0.0889675841,
0.1430628747,
0.067666091,
-0.1192601249,
-0.229667902,
-0.0938556865,
-0.0814588144,
-0.60709095,
-0.1350966543,
-0.0763912871,
-0.1567068845,
-0.1704012901,
0.1404924095,
0.4126685858,
-0.2225684822,
0.3149325252,
0.15841043,
0.0117464606,
-0.2432761937,
-0.0636958703,
0.118138507,
-0.2605796456,
0.2265069038,
-0.229299143,
0.3252803087,
0.1200748309,
0.3787541091,
0.4270197451,
-0.1359660625,
-0.0122594144,
-0.1740571409,
-0.0483452789,
-0.2579520345,
0.1864401996,
-0.2596785426,
0.0819970965,
0.1029332057,
0.6461299062,
0.0085078496,
0.0106312791,
0.3853865266,
0.1674391925,
0.2143235207,
-0.2646902204,
0.1232410222,
-0.1209505722,
0.0653529763,
-0.065473713,
0.4651516974,
0.0773721039,
-0.1564275026,
-0.1243261844,
0.107384555,
-0.2876574993,
-0.2792737186,
-0.4090045393,
-0.0871839598,
-0.0265640691,
-0.231995061,
-0.2225250751,
-0.1401963085,
-0.1384877861,
0.0466159061,
0.0626091138,
0.4171892703,
0.3824373484,
0.0754114464,
0.1739464551,
-0.1623554081,
-0.1418607384,
-0.0882285014,
0.4310381711,
-0.1680331379,
0.0816467926,
0.0948938206,
0.3489446044,
0.0578185655,
0.2674444914,
0.16164352,
0.2786950469,
-0.2399483323,
0.1121961698,
-0.2485884577,
-0.0032200082,
0.1796889156,
0.2443200499,
0.2036579847,
-0.4013037086,
0.3890458643,
0.039390374,
-0.1451782733,
0.5418245196,
0.1110334918,
0.3921963573,
-0.2113578022,
0.4320445657,
0.1735886782,
0.3634890914,
-0.0001420605,
0.3181556165,
-0.3570291996,
0.1055055708,
-0.6689851284,
-0.1713864058,
-0.0461658984,
-0.2048518509,
0.0514837019,
-0.0484855101,
0.187586382,
-0.0160367135,
0.272262305,
-0.1575934887,
-0.2405813783,
-0.4908542037,
0.19896321,
-0.2409050316,
0.3293776214,
-0.1476685107,
0.3971638083,
-0.412653476,
0.2178214788,
0.2038401663,
0.4500792325,
-0.1268351823,
0.4430065751,
-0.4771737754,
0.2912018895,
-0.3749240935,
-0.2154465616,
0.2228863835,
0.0904407203,
-0.0142696807,
-0.0556676276,
-0.0188207347,
0.1260991693,
-0.0845932662,
-0.0322502144,
0.6356544495,
0.5892747045,
0.089881517,
0.1651602089,
-0.0616423227,
-0.2201288193,
0.0725352541,
-0.1212241054,
0.0976992548,
0.2772809863,
-0.0232314337,
-0.1421558857,
-0.1076296344,
0.1572176963,
0.0837740004,
0.6822968125,
0.1531050354,
-0.0711383596,
-0.5956975818,
0.0260291602,
0.0386706628,
0.2575578094,
-0.3959358633,
0.4797008038,
0.0283336043,
0.32873106,
-0.1378913522,
-0.1104475632,
0.6011201143,
0.0285402574,
0.0503991768,
-0.1647544056,
0.3484908342,
0.3952530026,
-0.0488922819,
-0.1494697779,
0.1269877702,
0.0697483271,
0.2653726041,
0.0776030943,
0.1911769211,
-0.3626296818,
0.0843726471,
-0.1014967486,
0.1728830636,
-0.0594971441,
-0.0220183171,
0.3068386912,
-0.2685053051
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | > If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
>
> Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
>
> Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
>
> > ['0.3350', '0.1470', '0.2329']
> > ['0.3358', '0.1451', '0.2332']
>
> Why ROUGE is not deterministic ?
This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high).
You can get deterministic scores per sentence pair by using
```python
score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False)
```
Or you can set numpy's random seed if you still want to use the aggregator. | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 112 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
> If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
>
> Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
>
> Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
>
> > ['0.3350', '0.1470', '0.2329']
> > ['0.3358', '0.1451', '0.2332']
>
> Why ROUGE is not deterministic ?
This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high).
You can get deterministic scores per sentence pair by using
```python
score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False)
```
Or you can set numpy's random seed if you still want to use the aggregator. | [
-0.0629728213,
-0.1342070103,
-0.0796853453,
0.0105745671,
0.1754830182,
-0.3666590452,
0.0312739052,
-0.2816156447,
-0.3356750906,
0.4649938941,
-0.145319581,
0.3407981098,
-0.0238618795,
0.10760279,
-0.28949368,
-0.0058366549,
-0.136787504,
0.0883074105,
0.0505804531,
-0.2794827223,
-0.0264890902,
0.2689064741,
-0.1446817666,
-0.1122000441,
-0.2301799804,
0.0439044386,
-0.1309634298,
0.1760576516,
-0.4420463443,
-0.136611551,
0.0006489291,
0.5135988593,
-0.1335638463,
0.3453349173,
-0.0001090062,
-0.3026774526,
-0.0053828517,
-0.2721399963,
0.0684326291,
-0.5490512848,
-0.0850550383,
0.1678696871,
-0.0363745168,
-0.1538969576,
-0.2303875834,
0.1567341834,
-0.132400021,
-0.2148976922,
0.6561849117,
0.361071527,
0.2037741393,
-0.0275056902,
-0.1488346756,
-0.2112455666,
0.1747766733,
-0.087287806,
-0.0166683886,
0.5573638082,
0.0314748883,
0.21889323,
-0.246475473,
0.1858104318,
0.1527358741,
0.0676844567,
0.3688114583,
-0.1152093112,
0.1754815727,
-0.3695171773,
-0.1286007762,
0.3732661605,
0.2760193646,
-0.0519508123,
-0.4068125188,
0.172501862,
0.1947717369,
-0.2736438215,
-0.1944597512,
-0.0175778195,
-0.0913493931,
-0.0652742758,
-0.0967805833,
0.443883419,
-0.1332543641,
-0.1383668631,
0.14207232,
0.0766990036,
-0.0088886861,
-0.000514447,
0.3281321228,
0.1229603663,
-0.2245833129,
0.2116305977,
-0.209591344,
0.0695716739,
-0.4204723835,
-0.1357260644,
0.1251077354,
0.2849911153,
0.1111522913,
0.4854750633,
0.3948625326,
-0.1147539243,
-0.0690451637,
0.0454531647,
0.0252643637,
0.1961715966,
0.0500491448,
0.0383881107,
0.1416102648,
-0.0029748562,
-0.025929898,
0.0993312597,
0.3126790524,
-0.3156800568,
0.0414018072,
0.2174888998,
-0.1523080766,
-0.1720804274,
-0.5653681159,
-0.111486122,
-0.4781974554,
-0.1255738139,
-0.1535404325,
0.3803396821,
-0.2059174478,
0.1545050293,
-0.19382146,
0.1907312274,
-0.1400550455,
-0.1622924805,
-0.2599924803,
0.1628429443,
-0.2660719752,
-0.074590072,
-0.1121098995,
0.0864353105,
0.1294140965,
0.1545472294,
0.1475836039,
-0.2458148301,
0.0382166505,
-0.4583489001,
-0.0825856552,
-0.1328945607,
-0.0913573578,
-0.0753935874,
0.0561134294,
-0.2839280069,
-0.1321659386,
-0.1213425845,
-0.1262936741,
0.1846183091,
0.3253516555,
0.1625863612,
0.0098104365,
-0.0861552209,
0.0743728727,
0.2732864618,
-0.3147983849,
0.1554827541,
0.1502419263,
-0.0259946752,
-0.3226453662,
-0.2363421619,
0.0831079558,
0.2124175429,
-0.0027338914,
-0.1042992771,
0.583800137,
0.1370000094,
0.1727114022,
0.5475632548,
0.1629824936,
0.1839773655,
-0.002714216,
-0.3590964973,
0.4775167108,
-0.4854390323,
0.0683304667,
0.0602487251,
-0.0288143251,
0.1495355219,
0.2133649588,
0.1030388847,
-0.0766569078,
-0.0438032933,
0.2398132086,
0.1870018691,
0.1334645897,
-0.2636554539,
-0.0209828541,
0.0908614844,
0.2314932793,
-0.1147615388,
0.062632449,
0.0462601259,
-0.2069053352,
-0.3015894592,
0.3498268425,
-0.0088293906,
-0.3083658516,
0.2478799522,
0.0876596346,
0.1918274164,
0.0869457945,
-0.1816859394,
0.2812575102,
0.1035984531,
-0.8122195601,
0.2431685776,
0.2177290916,
-0.2853503227,
-0.4512052536,
-0.1303162128,
0.1445595324,
-0.3410879374,
0.1980884969,
0.1725722849,
0.2733031511,
0.2643555999,
-0.0477087088,
0.3236655295,
-0.1935337633,
-0.0180978775,
-0.2536085546,
-0.1986760944,
-0.05067138,
-0.0811389759,
0.2211105525,
0.4466210604,
0.089733921,
0.0987752154,
-0.0810164064,
0.4132426083,
0.4271887541,
-0.0247581266,
-0.0330940671,
-0.0327456109,
0.0773895681,
0.1873427629,
-0.2182709277,
0.5565974712,
0.2257645279,
-0.0682014376,
-0.1123132631,
0.3855132461,
-0.4762590826,
0.0049159518,
0.0653222874,
0.0610579029,
0.1700089425,
0.1440414786,
-0.3210563064,
-0.0902716741,
0.3082020879,
-0.0289418679,
0.6414521933,
0.2357601374,
-0.2955441773,
-0.1263954937,
0.0865037143,
0.1140252203,
0.1410742849,
-0.0957917348,
0.086777173,
-0.0590304583,
-0.0750468299,
0.0270543192,
-0.0322183296,
0.2111776769,
-0.0056919521,
-0.0626981258,
-0.2837329507,
-0.2822375,
-0.0775494054,
-0.1384397894,
0.2882391214,
0.139181897,
0.3164984882,
0.1880498379,
-0.2739830911,
-0.5686123967,
-0.3180910945,
-0.0363977253,
-0.1358697265,
0.1271981001,
-0.2475140691,
-0.0630129203,
0.0696975812,
-0.2970941067,
-0.0642218962,
-0.2096978873,
0.1557428539,
0.0802702829,
0.0693587288,
-0.0306594539,
0.5392485857,
0.2734600604,
0.0119141312,
0.2975367904,
-0.1017269641,
-0.2644329071,
0.0604702495,
0.2002764195,
-0.1333313882,
-0.0249786656,
0.1201737896,
-0.4248003364,
-0.071918644,
0.1428777725,
-0.1266681999,
0.0757164136,
-0.0981826559,
0.290909797,
0.1341506988,
-0.3271770775,
-0.3285122216,
0.3417828083,
0.296169579,
-0.0150603177,
-0.1789554656,
0.1072573885,
0.0355430618,
0.0203546602,
0.035684675,
-0.1194492951,
-0.2463433295,
-0.1701470464,
0.5418914557,
0.2425844371,
-0.0166939832,
0.4519590437,
0.010800737,
-0.0595278069,
0.1029753238,
0.4948755205,
-0.2613433003,
-0.2291277945,
0.3377361,
-0.2354303151,
-0.4837260246,
-0.2980839312,
0.0887676403,
-0.0603661612,
0.009346406,
0.1168930903,
-0.3563525081,
-0.0826551095,
-0.041577965,
-0.2018307,
-0.0710331574,
0.4534032047,
-0.1728018671,
-0.2120851129,
-0.0440843068,
0.347127527,
0.1045520827,
0.1094751731,
0.1872496754,
-0.2009672076,
0.0722363889,
0.0548028238,
0.1274551898,
0.4970481992,
0.0237848423,
0.0555970594,
-0.0792822316,
0.2268172055,
-0.2797749937,
0.0528755039,
0.2462794334,
0.0764745027,
-0.2304568589,
0.2309364825,
-0.1129723564,
0.4178798497,
-0.2574657202,
0.0388291068,
0.0287059564,
-0.0909334272,
-0.0192773007,
-0.3598273098,
-0.1379482597,
-0.0087426808,
0.1893772632,
0.1435690373,
0.0545646138,
0.14286533,
-0.0493662506,
0.3422607183,
0.0329733342,
0.0365743376,
0.2057767063,
-0.3593283594,
0.1581126302,
0.0578165352,
-0.0561055355,
-0.0303863324,
0.0016275001,
0.0125828562,
-0.0291037355,
0.3670475781,
-0.3468735516,
-0.1255813986,
0.1208588108,
-0.2924032211,
-0.4044804871,
-0.0286531691,
-0.549026072,
-0.1081629172,
0.1691484004,
-0.1260567158,
-0.1499747336,
0.0345651023,
0.1518106759,
-0.1971425414,
-0.0772143602,
-0.0292113572,
-0.4185020626,
0.0718784779,
-0.0767301023,
0.2225261331,
0.0704556182,
0.2563610971,
-0.0424101576,
-0.1049354076,
-0.1720268428,
-0.0251971707,
0.4814113379,
0.24615933,
0.1562115252,
-0.0903979316,
-0.2662248015,
-0.1463944763,
-0.1505858451,
-0.1996050179,
0.1895070374,
0.0152620887,
-0.6571381688,
-0.0384223983,
-0.1666606069,
0.1685892195,
0.154855907,
-0.1976623684,
-0.1159150004,
-0.5746038556,
0.228232339,
-0.4392108023,
-0.0363522395,
0.3599657118,
0.0648711547,
0.1356104761,
-0.2745451331,
0.1723676622,
0.1712718755,
-0.3440081477,
-0.1223809868,
-0.2971180081,
-0.000640082,
0.6353337169,
0.2008111477,
0.7802700996,
0.0081792204,
0.0361435413,
0.1069834158,
0.0827195719,
0.3759542108,
-0.3120650649,
0.0499522611,
-0.0926079229,
-0.1861397028,
-0.1178766564,
0.1165539175,
0.0963099599,
0.2510379851,
-0.1902992874,
0.4400808513,
-0.0062452969,
0.0803438649,
0.0197493546,
-0.0302470587,
-0.0012804957,
-0.0020522971,
-0.0266558528,
0.1806296408,
0.1246196479,
0.1315399408,
-0.100544095,
0.101019904,
-0.3447438776,
0.0227893572,
-0.1532878131,
-0.1077469438,
-0.3275679946,
0.1785722077,
0.0154510383,
-0.3179487288,
-0.3211081624,
0.6958516836,
0.3500362337,
0.2806237936,
-0.0372617096,
0.1739685088,
0.0262517408,
0.1239004061,
0.0625122339,
-0.0658480078,
0.1633387953,
0.0229660887,
-0.1994063109,
0.0879433453,
0.1445675641,
-0.2599152625,
-0.0262715984,
-0.0026538447,
-0.3019392192,
0.130639866,
-0.0025993558,
0.0868670568,
-0.1519225091,
-0.1816913486,
0.1379816383,
0.0430668108,
-0.0688434914,
0.2233664095,
0.0550942346,
-0.2668170333,
-0.1722377539,
0.2863359451,
0.0703245029,
-0.1017249003,
-0.2562136352,
-0.1745773107,
-0.0864025056,
-0.2994311154,
-0.0894372091,
-0.2981827557,
-0.1044154391,
0.3776310086,
0.0189899504,
-0.1154138446,
0.051211711,
0.6299239993,
0.2141919583,
0.3644078374,
0.1524915695,
-0.3336920738,
-0.1081481129,
0.1698485613,
0.3736406565,
-0.0335495137,
-0.0641354322,
0.0487427004,
0.219957903,
0.4095646143,
-0.4029996991,
-0.3656337559,
-0.3964770436,
-0.0816592202,
-0.4356088042,
-0.2211933732,
-0.1281734109,
0.0936491862,
0.0950350538,
0.2374957502,
-0.2286646664,
-0.2447849363,
-0.1591930985,
0.0821183398,
-0.1456949711,
0.4021068811,
0.0413877703,
0.1853422076,
-0.1141621247,
-0.3821867704,
0.0746249184,
0.3171327114,
0.2551470101,
0.0177337304,
-0.0402407497,
0.2804537416,
-0.1135491803,
-0.1370171905,
0.0539057739,
-0.0051345774,
-0.0932936743,
-0.0665030703,
-0.067567952,
-0.0987473801,
-0.218981415,
-0.0269003827,
0.1849088967,
-0.1214125156,
-0.1053614989,
0.0837504193,
0.0456281751,
-0.3730871677,
0.4326425195,
0.2211645991,
-0.0085239541,
-0.1985665262,
-0.1335078627,
0.2194375843,
-0.4589324594,
0.2654250264,
-0.2891062498,
0.1563419849,
0.3173481226,
0.4556883276,
0.2233207077,
-0.0649051815,
-0.0679806247,
-0.0987005755,
-0.1383626759,
-0.1002945006,
0.0629330352,
-0.3096041083,
0.2589253485,
-0.0202682763,
0.4849738777,
-0.112117514,
0.2652066648,
0.1309787333,
-0.0034165552,
0.3194531202,
-0.1190060303,
0.1960359812,
0.0193227362,
0.1845238358,
0.1401706189,
0.4659496546,
0.111007683,
0.0070331013,
0.0470276177,
0.2889145315,
-0.1265300512,
-0.1758518666,
-0.2906351089,
0.0854664668,
0.0524401218,
-0.3401103318,
-0.2391038686,
-0.2276738882,
-0.4451780319,
-0.1638913602,
0.0658190325,
0.1539925337,
0.342679888,
0.0251936428,
0.1911427975,
-0.2424498945,
-0.210935086,
-0.2723115087,
0.5643005967,
-0.2484367639,
0.1921277344,
0.1572180986,
0.3751194179,
0.1882610172,
0.4240934849,
0.2116145045,
0.1786781698,
-0.201088056,
0.2564736307,
-0.3552728593,
-0.1552321762,
0.0189652108,
0.2312574238,
0.1610189527,
-0.2643478811,
0.4957166016,
0.1359367371,
-0.232276991,
0.4143301249,
0.0861597285,
0.4273027182,
-0.249331668,
0.363483876,
0.240084216,
0.2938926816,
-0.0414932631,
0.1830853671,
-0.415599823,
0.0779681653,
-0.6234223247,
-0.1174250916,
-0.1011872515,
-0.2356610149,
0.1084445566,
0.0924106985,
0.2051974386,
0.1181333736,
0.3476845026,
-0.0357579179,
-0.1855499595,
-0.4065920115,
-0.0429202765,
-0.1452930421,
-0.0774548575,
-0.2424651086,
0.3812710345,
-0.0584686548,
0.5550364256,
0.0424531661,
0.5779342651,
-0.28861624,
0.2897716165,
-0.5447962284,
0.3275340199,
-0.3254659772,
-0.0551966839,
0.1837163717,
0.0911927074,
-0.0703219846,
-0.1465927064,
0.0699734092,
0.2719677091,
-0.3368916214,
0.2480894774,
0.3208197057,
0.3344047666,
0.1007985175,
0.1854649037,
-0.0619374886,
-0.1647575051,
0.0199882556,
-0.1395956129,
-0.0411484502,
0.2344657928,
0.2039120048,
0.192502439,
-0.056833569,
0.0826729015,
0.1938952804,
0.738052547,
0.1352982372,
-0.1584631205,
-0.3204586804,
0.0522539541,
0.0395433158,
0.0217209402,
-0.5980478525,
0.3872766495,
-0.0852563828,
0.2723891735,
-0.0334620848,
-0.3992613554,
0.4943171144,
0.0310678277,
0.0911916122,
-0.2405091673,
0.2732807696,
0.2411658764,
-0.0841868371,
-0.3257414997,
0.0797030777,
0.047956109,
0.3362012506,
0.0674581751,
0.1727021337,
-0.1792182624,
0.089635022,
-0.3200745881,
0.0919146612,
-0.1244573966,
0.1173276082,
0.083976768,
-0.4272243083
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | Now if you re-run the notebook, the two printed results are the same @colanim
```
['0.3356', '0.1466', '0.2318']
['0.3356', '0.1466', '0.2318']
```
However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed:
```python
rouge = nlp.load_metric('rouge', seed=42)
``` | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 50 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
Now if you re-run the notebook, the two printed results are the same @colanim
```
['0.3356', '0.1466', '0.2318']
['0.3356', '0.1466', '0.2318']
```
However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed:
```python
rouge = nlp.load_metric('rouge', seed=42)
``` | [
-0.1073284596,
-0.2159302682,
-0.0668015331,
0.1431301087,
0.182839185,
-0.3188185692,
-0.1366638243,
-0.1566526741,
-0.0810182989,
0.394208163,
-0.095869869,
0.5732386708,
0.0757611915,
-0.0353059955,
-0.0049695564,
0.0457200781,
-0.0829766393,
0.1978806257,
-0.0148289055,
-0.3589982986,
-0.2548870444,
0.1192237958,
-0.1512853205,
0.0347985849,
-0.1317695379,
-0.0622886382,
0.0263469778,
0.1554980725,
-0.4091149271,
-0.2266360819,
0.0821630135,
0.2336031646,
-0.1760028601,
0.2849852145,
-0.0001076949,
-0.281382978,
0.1078294143,
-0.1169917434,
0.0769576132,
-0.4047330916,
-0.0405931138,
-0.0956256464,
0.176780358,
-0.2945885956,
-0.0975638554,
0.1369188726,
-0.0897159055,
0.0338970833,
0.415898174,
0.2269686013,
0.2249116004,
0.0455721505,
-0.2391412854,
-0.1621118188,
0.0426183194,
-0.0929486081,
-0.0321006514,
0.5454750061,
-0.182202071,
-0.0067193061,
-0.1354895979,
0.1270419359,
0.1383434832,
0.2235369086,
0.400749892,
0.0411153212,
0.3929462433,
-0.1358458251,
-0.23437877,
0.252583921,
-0.0129313497,
-0.0997706726,
-0.1324525326,
0.0841454864,
0.1587257087,
-0.6156045198,
-0.1732086688,
0.0440138839,
-0.1350553334,
-0.2012693286,
-0.0508786812,
0.3788499534,
-0.0968495235,
0.1117189899,
-0.0043132729,
0.1680875421,
0.0270762797,
0.155063659,
0.1478288621,
0.2116184831,
-0.1319664419,
0.1222031564,
-0.2151377499,
-0.0598679893,
-0.3910146654,
-0.0947208479,
0.1377711594,
0.351981163,
0.0234441124,
0.1232678294,
0.5981104374,
0.0189318787,
-0.1684435308,
0.1034672335,
-0.1521717906,
0.3907270133,
-0.0975615457,
0.0203451887,
0.2817372382,
0.0372951515,
-0.0406916961,
0.075489074,
0.5044954419,
-0.4349454045,
0.2057797462,
0.2119953781,
-0.1122406125,
-0.2276437283,
-0.5611445308,
-0.0430724062,
-0.2027511001,
-0.0193620231,
-0.1004149988,
0.3319779336,
-0.3697908521,
0.1567451507,
-0.0824480206,
0.1941109896,
-0.2658011019,
-0.0755543783,
-0.3253020942,
0.0633457378,
-0.5507810712,
-0.0057861907,
-0.1304557323,
0.2926284671,
0.2511183619,
0.2495182753,
0.032372199,
-0.1254932135,
0.0750740692,
-0.3315086365,
0.0869630203,
-0.0499798544,
-0.1087682098,
-0.0286278874,
0.1192320734,
-0.2189496011,
-0.1965750158,
-0.080932036,
-0.0595903173,
0.2353453636,
0.3346345425,
0.193361029,
-0.1109463945,
0.0923798382,
-0.0715812966,
0.2088450044,
-0.3361065984,
-0.0010507021,
0.2094525844,
-0.2351086289,
-0.3856663406,
-0.2787613869,
0.0916535929,
0.144438684,
0.1349799484,
-0.0671070442,
0.4620254934,
0.0558447577,
0.1441368014,
0.4726653993,
0.1237940863,
0.0034984457,
-0.0609256141,
-0.4403910935,
0.6245054007,
-0.4146524668,
-0.041249603,
-0.130375132,
-0.0703397468,
0.0291817188,
-0.0193941817,
0.2022103369,
-0.1669088453,
0.0568866432,
0.4013472497,
0.1551740468,
0.1170736104,
-0.1946795881,
-0.2683938146,
0.0136913583,
0.2815438807,
-0.0744161904,
0.174207896,
0.0707916394,
-0.0301678572,
-0.1171844825,
0.3711907864,
0.1120214164,
-0.4049767256,
0.064722307,
0.0489666536,
0.1148306951,
-0.0608990788,
-0.2330340445,
0.1366045922,
0.097282283,
-0.6623625755,
0.1058294699,
0.4025935829,
-0.1487613916,
-0.3113524914,
-0.0709550977,
0.0653431043,
-0.1784998029,
0.2433370054,
0.1851489842,
0.2427428067,
0.3561426401,
0.0626443923,
0.3224670291,
-0.2490847111,
-0.0847934857,
-0.3810079396,
-0.0408871025,
-0.0289998949,
-0.1580856144,
0.1339619905,
0.4530847371,
0.3085569441,
0.0720693618,
-0.1417775005,
0.3126992583,
0.338964045,
-0.0263901241,
-0.0527399704,
0.0680243894,
0.1982621849,
0.2358066142,
-0.0403652973,
0.5818984509,
0.160914734,
-0.0876304805,
0.0840420052,
0.4946383536,
-0.4532777667,
-0.0131186806,
-0.0674490333,
-0.0155320177,
0.1388318092,
0.0436687991,
-0.1320202351,
-0.1433891654,
0.4456670582,
0.1765439659,
0.1647561342,
0.0733371302,
-0.3982078433,
-0.0734588951,
0.2575802505,
0.0217038877,
0.1302789301,
-0.0767991319,
0.0549409017,
-0.1026631966,
0.0229181089,
0.0528383888,
0.3336087763,
0.1653773636,
-0.0692484528,
0.1218872294,
-0.4862631261,
-0.4011191428,
-0.1301840246,
-0.0406686142,
0.1257005483,
0.2686921954,
0.392834872,
0.1780771315,
-0.3108202517,
-0.1725018919,
-0.1780832559,
0.0028737858,
-0.0867994055,
0.2627743781,
-0.2829511464,
0.0638916418,
-0.1240322515,
-0.2499914318,
-0.2210532725,
-0.330123812,
0.1189462766,
0.2607825994,
0.1801375151,
-0.0213389825,
0.416526705,
0.1643577963,
-0.1106038317,
0.1779427677,
-0.115224883,
-0.2789510787,
-0.0980242938,
0.1053920835,
-0.2187725753,
0.2054293305,
0.2601989806,
-0.3080379069,
0.0203067139,
0.1796342731,
-0.2534665167,
-0.0686159879,
-0.0020721485,
0.4098416567,
0.1068233177,
-0.3358050883,
-0.2656067908,
0.3347667754,
0.3430609107,
-0.2291767448,
-0.1546251923,
0.1012240872,
-0.0897234157,
0.0792596266,
-0.0167217404,
-0.0430629738,
-0.2317102849,
-0.2127958685,
0.4316241443,
0.2908909619,
0.0083826957,
0.5002599359,
-0.0831681341,
-0.0073333327,
0.1379417181,
0.2961850464,
-0.4674462676,
-0.0331860036,
0.2939333022,
-0.3487682939,
-0.4366020858,
-0.2240983397,
0.0505907461,
0.0724687725,
0.0108169187,
-0.2337210625,
-0.5702821612,
0.0090031568,
-0.0026482395,
-0.195196569,
-0.1662585288,
0.4672873616,
-0.2651473582,
-0.2121557742,
0.0052439189,
0.0653487146,
-0.0029161326,
0.2327386737,
0.3163963258,
-0.3067877591,
0.2171619087,
-0.1260424256,
0.0643992946,
0.3522105515,
-0.1832669824,
0.1160770133,
-0.0247521903,
0.3117876053,
-0.3168744743,
0.0364078842,
0.2948446274,
0.0857053995,
-0.1949563622,
0.1709591895,
-0.1188684776,
0.2867117822,
-0.1773142517,
-0.0613704249,
0.1188719943,
-0.1592531353,
-0.0122508937,
-0.2380355299,
-0.2204397321,
0.0803625584,
0.24642317,
-0.0869604498,
-0.2009222507,
-0.0135544706,
0.0842462033,
0.0701993257,
0.0027535553,
-0.010381775,
-0.0720053986,
-0.4640114009,
0.1893835068,
-0.100658983,
0.1009137705,
-0.0456420556,
0.0669938326,
0.1691398621,
-0.0566844344,
0.366630882,
-0.2106123865,
0.0921634734,
0.175633356,
-0.294154644,
-0.4604095221,
-0.1159775928,
-0.3113108575,
0.0444864854,
0.2178642899,
0.2070886046,
-0.1083558127,
-0.0799206272,
-0.0648070499,
0.0359760299,
-0.1981050074,
-0.041520644,
-0.6293361187,
-0.0046171248,
0.0181647148,
0.1143140048,
-0.0526499152,
0.2312362939,
0.0274747927,
-0.0094723003,
-0.246132493,
-0.0133181624,
0.3121685684,
0.4288459718,
0.2147685289,
0.0606809594,
-0.272800982,
-0.0105385436,
-0.0225610081,
-0.3033391535,
0.0782155469,
0.1013693064,
-0.2962464988,
0.0424459167,
-0.0132967364,
0.0357423164,
0.2210529894,
0.0138163595,
-0.1438023597,
-0.7564552426,
0.329562068,
-0.3697871864,
0.1255406588,
0.3463998437,
-0.0126134157,
0.0129844332,
-0.32890746,
0.3513902724,
0.1373822987,
-0.4095776081,
0.278075099,
-0.3876504004,
-0.1274398118,
0.4977778494,
0.4410949051,
0.8089748621,
-0.0554028861,
0.2344989479,
0.3494742513,
-0.1319748312,
0.5014899373,
-0.2265450656,
0.1540483981,
-0.2458848953,
-0.1971988231,
0.0298118368,
0.0289452747,
-0.0411168858,
-0.0968405828,
-0.1022952795,
0.4249105752,
0.1097574458,
0.0189149547,
-0.0572139658,
0.0078090946,
0.2016161084,
-0.0173372682,
-0.1541357785,
0.2030907124,
-0.0818943009,
0.1908837855,
-0.1752750278,
0.012295234,
-0.2148536742,
0.0576888993,
0.0145758912,
-0.1486009657,
-0.2444496602,
0.2113226652,
-0.0724926069,
-0.4159749448,
-0.3774954379,
0.5587132573,
0.4174337983,
0.1943918318,
0.0290065017,
0.2016825974,
0.0190362539,
0.1178581789,
-0.0588446222,
-0.0745102987,
0.1307759881,
-0.0487645753,
-0.2427684367,
0.0947327018,
0.1781245917,
-0.2563755214,
-0.2358669937,
0.1642468423,
-0.3935205936,
0.1428212076,
0.0131324716,
-0.082332179,
-0.0574942306,
-0.0706346184,
0.170870468,
0.0125716319,
-0.0627125055,
0.3557576537,
0.1462882608,
-0.5041586757,
-0.1616048515,
0.3129502833,
-0.0394810177,
0.0052437657,
-0.1337228864,
-0.3825682104,
0.0456733555,
-0.302140981,
-0.1049309671,
-0.3436254263,
-0.0163991153,
0.2843948603,
0.0778476596,
-0.0667213127,
0.2067269981,
0.6172462702,
0.204003185,
0.229158774,
0.2028276175,
-0.3756343424,
-0.1011359021,
0.0261638816,
0.2002657056,
0.0270953905,
0.0410116054,
0.2591667771,
0.0441955179,
0.3328756392,
-0.4154180288,
-0.2112274468,
-0.2728558779,
0.0771254525,
-0.4033290446,
-0.2485918701,
-0.1983134449,
0.1788429171,
0.1068350524,
0.2859476805,
-0.3695853651,
-0.2480742186,
-0.1829582155,
0.0778273866,
-0.014671769,
0.2568799853,
-0.1227300689,
0.0897886679,
0.0280078519,
-0.2528814673,
0.0257890187,
0.281930536,
0.1865690947,
0.1521971375,
-0.0954381302,
0.4118028879,
0.1898354888,
-0.0141280228,
0.0645366609,
0.0303329714,
-0.0923132747,
-0.084686622,
-0.1575947106,
0.0199735705,
-0.4911457598,
-0.1587667018,
-0.155172646,
-0.1030332893,
0.037731044,
0.0317363702,
0.1262181401,
-0.241997093,
0.2969406843,
0.250182569,
-0.0586198419,
-0.3473286629,
-0.0301835649,
0.2194413096,
-0.3312297761,
0.2263867706,
-0.0857333541,
0.2460583299,
0.279009819,
0.4026721716,
0.2872606814,
-0.1761207283,
-0.0394822992,
-0.1349144578,
-0.0936424807,
-0.2637962997,
0.1667924374,
-0.1747073531,
0.1136257574,
-0.0128396563,
0.6192079186,
0.0229772069,
0.1489234418,
0.3894221187,
0.1835261583,
0.347384721,
-0.3537894785,
0.0347739011,
-0.1572966427,
0.1302666068,
-0.0962463245,
0.4951855838,
-0.0047522355,
0.0571500473,
0.1610792428,
0.2370563745,
-0.3910464942,
-0.2623578608,
-0.3800973296,
0.0447981879,
-0.0752817169,
-0.1696824729,
-0.2992706299,
-0.1049143374,
-0.2750801146,
-0.0137255322,
0.0598348565,
0.1909664124,
0.2889840603,
0.1396648437,
-0.0436062776,
-0.1941466182,
-0.1264563352,
0.0102859521,
0.4056713581,
-0.1645216644,
0.0863616988,
0.0578825772,
0.2172219604,
0.04157345,
0.2197798193,
0.2097707093,
0.3153032959,
-0.3565008938,
0.1037838534,
-0.1926597953,
-0.0260034017,
-0.0689907819,
0.2319446504,
0.3385541737,
-0.1831486374,
0.471670717,
0.1637120843,
-0.2706425786,
0.4996531904,
0.1417889744,
0.3519831002,
-0.2614818811,
0.5389916301,
0.233140707,
0.2311449349,
-0.0883343369,
0.0677470863,
-0.4462496936,
0.151916936,
-0.5843313336,
-0.0335709937,
0.0321124531,
-0.3731009364,
0.1177595258,
-0.0533858128,
0.3991176486,
-0.1048745513,
0.1799817234,
-0.1166926995,
-0.1933875084,
-0.6247977614,
0.117136389,
-0.1192758679,
0.011770092,
-0.113424845,
0.2710291147,
-0.3030306995,
0.3159366846,
-0.0864446238,
0.5827924013,
-0.0794926733,
0.2144661248,
-0.5019689202,
0.2297375798,
-0.4718147516,
-0.1888469905,
0.1791081131,
-0.0297106467,
-0.0602139793,
-0.2444481552,
0.1195140257,
0.0902116224,
-0.0805600658,
0.0156912729,
0.8752222061,
0.4947992563,
0.1753018349,
0.198355183,
-0.1136669517,
-0.1404851228,
-0.0375550203,
-0.1914148033,
-0.0399725363,
0.1490692198,
0.0210792013,
0.1228793487,
-0.0095521323,
0.1311474591,
0.0100224931,
0.7477493286,
0.1075144857,
-0.2883640826,
-0.1580867171,
0.1112048328,
0.0338587388,
0.0951977149,
-0.3561343551,
0.5702245831,
-0.0062338426,
0.3806046546,
-0.1571123749,
-0.3438034654,
0.5270280242,
-0.1536011398,
-0.0558104068,
-0.044496078,
0.2838689089,
0.1997012794,
-0.0955434367,
-0.3783438802,
0.0703422576,
0.1069684327,
0.0896179378,
0.0172650162,
0.2902810276,
-0.2487469614,
-0.088780649,
-0.1904656142,
0.1322316676,
-0.0104806768,
-0.0895542204,
0.3145932853,
-0.343269825
] |
https://github.com/huggingface/datasets/issues/360 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations | Actually `map(batched=True)` can already change the size of the dataset.
It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`).
I'll make that explicit in the doc that I'm currently writing. | `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
| 42 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
Actually `map(batched=True)` can already change the size of the dataset.
It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`).
I'll make that explicit in the doc that I'm currently writing. | [
-0.5117924809,
-0.064943254,
0.0467377491,
-0.2127769589,
-0.0525973812,
-0.0972508267,
0.2488031983,
0.3504048586,
-0.2492751926,
0.05863842,
0.1931722462,
0.4199868143,
-0.4208359718,
-0.1185231209,
0.3404655457,
-0.2591932118,
0.1204845533,
-0.0718680173,
-0.0588385426,
-0.0770464391,
-0.3946816325,
-0.0967776477,
-0.2518253326,
-0.0019552161,
-0.0170705486,
-0.0298999324,
-0.177605018,
-0.3150986135,
0.1913710386,
-0.0266351923,
0.1828668565,
0.3647987843,
-0.0834428146,
0.1984164864,
-0.0001292811,
-0.1904083937,
0.0921221748,
-0.0385712609,
-0.224856779,
-0.1235299334,
-0.0980347395,
-0.1194369793,
-0.121739164,
-0.1869547069,
0.1676258296,
0.0402920097,
0.2579863369,
-0.3276604414,
0.4382551908,
0.1333799213,
-0.0588074289,
0.0316218883,
-0.0949258804,
0.0337900408,
0.509775579,
0.4657485485,
-0.0328055285,
-0.2858000398,
0.5987884402,
-0.2376435697,
-0.0481916144,
0.3115279078,
-0.0568306074,
-0.0095259696,
0.2963947356,
-0.010219533,
-0.1644729376,
-0.2860157788,
-0.178157717,
0.6859877706,
-0.1074632704,
-0.3305650949,
-0.5636527538,
-0.3081480563,
0.1056260541,
-0.2365750521,
-0.4840699434,
0.0316820145,
-0.1258301884,
-0.0466932021,
-0.8150780201,
-0.1063044667,
-0.3973288238,
0.3978863358,
-0.1625309139,
0.1373669803,
0.2568990886,
0.2220887095,
0.1073889658,
-0.2615980208,
-0.1022023633,
-0.1448862404,
0.2572753727,
0.4562514722,
-0.091767095,
-0.3255053163,
0.0890363082,
-0.0486533977,
0.5503165126,
0.0820573941,
-0.0035310786,
0.1841467917,
-0.2206219286,
-0.0259342715,
-0.0284334552,
-0.0053632311,
0.0318876021,
0.5232824087,
0.1720310301,
-0.0607998706,
-0.0620664842,
0.373822093,
-0.0533123426,
-0.1968529969,
-0.1862695664,
0.2287458926,
-0.1539467424,
0.1261388361,
-0.078333728,
-0.2251606286,
-0.2609085739,
-0.0259204879,
0.0960607231,
0.1137734726,
-0.0592959076,
-0.0202016663,
0.1481966674,
0.1180831715,
0.0345745943,
-0.076132156,
0.0366139561,
-0.1324023604,
-0.3662856519,
0.1333995908,
0.3161872625,
0.1634276658,
0.0357797518,
-0.0900664926,
0.0493342169,
0.3958722353,
0.0317809209,
-0.1015291885,
0.424226284,
-0.1063070521,
-0.3029842377,
0.0902888477,
0.050214313,
0.2103308439,
-0.3275678158,
0.1787118465,
-0.5758723617,
-0.5673735142,
0.2367747575,
0.0075080073,
0.0883104503,
-0.0259558596,
-0.1396823376,
0.4832125604,
0.3983259499,
-0.3995803297,
-0.0187347736,
-0.4631466269,
-0.3660457432,
-0.044632405,
0.1977967769,
0.3899157345,
-0.0647998452,
-0.1040581092,
-0.1227670684,
0.2528773546,
0.2617071867,
0.2549603879,
-0.3634382188,
0.321416676,
-0.0104309628,
0.0024096568,
0.5380626917,
-0.16340819,
-0.046238061,
0.4684036374,
-0.0806685835,
0.1257240027,
0.0206973124,
-0.055274874,
0.6303875446,
-0.2714836299,
0.548294127,
0.4955849946,
-0.2449006885,
0.2318511009,
0.1040632799,
-0.2603808343,
0.1129258648,
0.103838481,
0.1581514776,
-0.1579867154,
-0.0919635668,
0.1619403064,
0.2925557792,
-0.3035010695,
0.1494299769,
-0.2504131794,
-0.280205816,
0.0837860331,
-0.1690111756,
-0.2650310993,
-0.4043860137,
-0.05321154,
-0.1862903982,
-0.1181837916,
0.3396585286,
-0.3409476578,
0.3310182095,
-0.0361086354,
0.1190071926,
0.0143992705,
-0.0951025933,
0.0769223273,
0.0848622695,
0.0141271865,
-0.1435787082,
-0.3389590383,
-0.053813789,
0.1589295864,
0.0072393832,
0.06502112,
0.3833913505,
0.010754589,
-0.2258307487,
0.2299621999,
-0.0129864784,
-0.2821634114,
0.2307551354,
0.2818349898,
0.1516553462,
-0.0679395646,
-0.1761770397,
0.3548892438,
0.4281879067,
0.1057402045,
0.1138774306,
0.24189803,
0.1026603281,
-0.2012156248,
-0.5654882193,
0.3278256059,
0.0159294922,
0.566868782,
0.217281729,
0.0367179848,
-0.261470288,
0.0843572691,
-0.3924776316,
-0.1233018264,
0.0642565489,
-0.0924337804,
0.061921373,
-0.1779864132,
-0.1098277345,
0.1385019273,
0.3341231644,
-0.0623131283,
0.0160423685,
0.4599882662,
-0.0083588799,
-0.1453413218,
-0.1426705718,
0.0741561204,
0.2954386771,
0.1929782629,
0.0457332097,
-0.1567015052,
0.03307385,
0.0837342441,
0.2152984738,
0.1570750624,
0.0650501475,
0.1256739646,
0.18531093,
0.1826387346,
0.0090829115,
-0.568279624,
0.1882550716,
-0.0079583032,
-0.2539594173,
0.1310595721,
-0.0517421588,
-0.0749285892,
-0.3282672167,
-0.3806487918,
0.212157771,
-0.2187450528,
0.2884812057,
-0.1282152385,
-0.2969516218,
0.2772269845,
0.4369256198,
0.4191138148,
0.0573174022,
-0.2148328424,
-0.0691945404,
-0.2195559144,
-0.0100066289,
-0.1027997434,
0.0953416228,
-0.2313012779,
0.3172835112,
0.0528558493,
-0.0300485678,
-0.4030623734,
-0.3596816957,
-0.0422481336,
-0.1454543471,
-0.0949647799,
0.4797689915,
0.0653493777,
-0.0845196992,
-0.237487182,
0.0989021733,
-0.3198267221,
0.0672241151,
-0.0130903013,
0.0672869608,
0.0276810061,
-0.0035390998,
-0.1749516577,
-0.0653904974,
-0.1445050091,
0.2854902148,
-0.2513402104,
0.1826521754,
0.0410830192,
0.2352617234,
-0.0113294339,
-0.0986154675,
-0.1638326049,
0.320443362,
-0.0722719356,
0.1216056645,
-0.2969000041,
-0.0577400811,
-0.3848018646,
0.0147549678,
-0.4168524444,
0.8833581805,
-0.2570572197,
0.0653383732,
-0.0109646795,
0.1144481525,
-0.0286806431,
0.1144721359,
0.4594355822,
0.1734046042,
0.0842864141,
-0.0753118992,
0.0018322546,
0.062812373,
0.076471217,
-0.0132882046,
0.1676448882,
0.3107931018,
0.1382341087,
1.0362786055,
0.406580478,
-0.1977274269,
-0.1237769425,
-0.0955225825,
-0.1306507587,
-0.0942158997,
-0.07739342,
0.22840029,
-0.1027044728,
0.0158004612,
0.264062345,
0.0193354096,
-0.2913356721,
0.0927307159,
0.2628007531,
-0.0629935414,
-0.3514675498,
0.431191206,
-0.2534627914,
0.3162636161,
-0.0628936961,
-0.021824846,
-0.4590001702,
-0.045087263,
0.1393498629,
0.0284789447,
0.4992494583,
0.0089774989,
-0.1856807619,
-0.1942508817,
-0.1743837595,
0.259236902,
0.3169303536,
-0.1696096063,
-0.0471476987,
-0.2704780996,
-0.1804648042,
0.0408408418,
0.6683762074,
-0.4042584598,
-0.0944761559,
-0.0640059412,
-0.1411259174,
-0.3563017547,
0.0312469639,
-0.2481984645,
0.0697443634,
-0.0198515616,
0.494821161,
-0.3880447745,
-0.1199444383,
0.538739562,
0.2025346756,
0.0707614869,
0.2278278321,
0.3494003713,
0.0512492545,
-0.2930178046,
0.0461538285,
0.0083861239,
-0.1381511986,
-0.0573401898,
-0.1563094854,
-0.2667964101,
0.185199216,
0.1792491525,
0.0469415188,
0.0365431942,
0.174130857,
0.2474831045,
-0.1948194355,
-0.0388817191,
0.5333439112,
-0.023281822,
-0.5298104286,
-0.2901958227,
-0.2957294881,
0.0934870839,
0.4838530421,
0.3759437203,
0.1037957296,
-0.2002667487,
0.0990796164,
0.34446612,
-0.1938914657,
0.3590347767,
0.2385074347,
-0.0046016211,
-0.2231173813,
-0.6674754024,
0.288518846,
0.3396402597,
-0.1539265215,
0.4999471009,
-0.1128188074,
-0.4338571727,
0.4376757443,
0.2138669342,
0.8605989814,
-0.0930365101,
0.4288922846,
0.0714299306,
0.2922267616,
0.0355979651,
-0.3562483191,
0.1745381802,
-0.0388238877,
0.0377971381,
-0.0339290425,
0.0631569773,
-0.0656374544,
0.3533824682,
-0.3637478054,
0.1785398424,
0.1664639562,
0.0536408201,
-0.1254023165,
-0.149628073,
0.1231344566,
-0.4545204341,
0.1960609704,
-0.0737136677,
0.1805970818,
-0.0163822696,
-0.0644326806,
-0.2170468718,
0.0175485332,
-0.1197940335,
-0.4037567973,
-0.168402791,
-0.4634838998,
0.1180835664,
-0.164526403,
-0.3696556389,
0.136081636,
0.3140817285,
-0.0894624218,
0.2606815994,
-0.0109711615,
-0.0849464163,
0.0531755835,
0.1234387979,
-0.1126028374,
-0.4361713529,
0.4604462683,
0.0241078995,
0.0635961369,
0.1180092543,
-0.0135913985,
0.0203637909,
-0.2320084572,
-0.134792164,
0.6238183379,
-0.1697425693,
0.0811622068,
0.4407755733,
-0.2101943195,
-0.1649959832,
-0.0818399414,
-0.0821775347,
-0.0403970592,
0.4395232201,
-0.1777648628,
-0.0196163226,
0.0887478739,
0.1774638444,
-0.1430026889,
-0.2058620155,
0.219424814,
0.0347096212,
0.0017068107,
-0.2143190801,
0.4186760187,
0.3412621915,
-0.5785905123,
0.2002494484,
-0.0755243748,
0.1383098662,
0.1926779747,
0.4940733612,
0.002063757,
0.2198424488,
-0.1051295847,
-0.1493912041,
-0.0877567679,
0.0988133326,
0.0980292857,
0.3579158187,
-0.2643957436,
0.0938262045,
0.1101920232,
0.2262542248,
-0.14302212,
0.1302985847,
0.150033772,
0.3245948851,
-0.146901533,
0.1860022992,
-0.3450329006,
0.12041343,
-0.1457298547,
0.0248900708,
-0.0870719925,
-0.0339141563,
-0.1341604441,
0.2138228565,
0.0136192832,
-0.0126300417,
0.266287297,
-0.0065077865,
-0.2293902487,
-0.4863311648,
0.4170765877,
-0.0988721251,
-0.1932521313,
0.0323351473,
0.2872151136,
0.148786068,
0.0434741713,
0.2304132134,
0.146475479,
0.1685269922,
-0.1405679286,
0.1705088317,
0.0516401045,
-0.3247897327,
0.0742111504,
0.2445795834,
0.49829638,
0.1670571268,
0.3701964319,
-0.0455543548,
-0.2654013038,
0.2559413314,
0.0607976951,
0.3003187776,
-0.214572385,
0.0891184062,
0.2506804466,
0.043281246,
-0.1449577361,
0.0008064488,
0.1159370914,
-0.1271290779,
0.1409296542,
0.1531628966,
-0.3267053962,
-0.1371109486,
-0.0099201454,
-0.1005179361,
-0.0054873349,
-0.2498063892,
0.1589377671,
0.5841218233,
-0.096471265,
0.0054839263,
-0.3491956294,
0.2093934864,
0.3079671264,
-0.1342757493,
0.0624686144,
0.7259105444,
0.1867703646,
0.0445113219,
0.3982730508,
-0.2389346808,
0.03795854,
0.1182682291,
0.0814308971,
0.4266918898,
0.2245126069,
0.0289222617,
-0.0516347475,
-0.2223333865,
-0.1780667007,
0.3308291733,
0.2070913315,
-0.2560723424,
-0.1284088492,
-0.160800606,
0.1912708133,
-0.068294242,
-0.2282559723,
-0.0121857636,
0.639649272,
0.1894580126,
0.4283134937,
0.0356011279,
-0.2567307353,
-0.2338404059,
0.4714783728,
-0.2450587898,
-0.1183258891,
0.1864343584,
-0.109071508,
-0.0430826023,
0.3037450016,
0.3738418818,
0.2554519475,
-0.2062003911,
0.3856817484,
-0.3402119279,
0.1566357613,
0.0453632846,
0.1711399555,
0.0649496838,
-0.2425819486,
0.279863894,
-0.1120095029,
-0.0136455474,
0.1677275449,
-0.1319572628,
-0.0159597006,
-0.2207803577,
0.09142562,
0.2969559729,
-0.2220666856,
-0.063700974,
0.1455152929,
-0.082690537,
0.163576588,
0.2586449683,
-0.3232424259,
0.0181081053,
0.2209973186,
-0.0079623135,
0.078527987,
0.4866629243,
0.0731781721,
0.082351476,
-0.3261429667,
-0.3485640585,
-0.044537127,
-0.2237146497,
-0.149224028,
0.0782307312,
-0.0020911889,
0.0520903319,
0.1542299241,
0.3146727085,
-0.0017986853,
-0.7042707205,
-0.1145155281,
0.5776193142,
-0.1748532504,
-0.1160903871,
0.1270685047,
0.1364874542,
0.1195356548,
-0.3580102324,
0.1266155094,
-0.2097091228,
-0.1929228902,
-0.0605747141,
0.1572681814,
0.3012136221,
0.0756625757,
0.1441109329,
0.1144430041,
0.110819988,
0.037124902,
0.2231859416,
-0.1126601249,
0.1721082777,
-0.0361604877,
0.2040279806,
0.100608997,
0.0013340341,
-0.2895725071,
-0.3310927451,
-0.0419561714,
-0.3831172884,
0.2911996841,
0.0190233961,
-0.1299678534,
-0.0623689964,
-0.0453003235,
-0.0445538685,
0.1269278526,
0.4295781553,
-0.1205236614,
-0.2004199326,
0.0462112352,
-0.2601974905,
0.39552477,
-0.4662588239,
-0.3204606175,
-0.479596287,
0.1678976417,
-0.414601624,
0.2287065387,
-0.4381659925,
-0.1076835766,
0.4040954709,
-0.0032028628,
-0.408267349,
0.2361124158,
0.1241549924,
-0.2943825424,
-0.255400151,
0.3656478822,
0.0122954557,
-0.2283164412,
-0.1586787999,
-0.6390987635
] |
https://github.com/huggingface/datasets/issues/360 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations | You're two steps ahead of me :) In my testing, it also works if `M` < `N`.
A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved.
For example,
```python
# Create a dummy dataset
dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"]
dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1})
# Do an allreduce on each batch, overwriting both keys
dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]})
# Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5)
# Now attempt an allreduce without touching the `foo` key
dset.map(lambda batch: {"length": [sum(batch["length"])]})
# This fails with the error message below
```
```bash
File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map
arrow_schema = pa.Table.from_pydict(test_output).schema
File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2
```
Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you! | `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
| 179 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
You're two steps ahead of me :) In my testing, it also works if `M` < `N`.
A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved.
For example,
```python
# Create a dummy dataset
dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"]
dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1})
# Do an allreduce on each batch, overwriting both keys
dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]})
# Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5)
# Now attempt an allreduce without touching the `foo` key
dset.map(lambda batch: {"length": [sum(batch["length"])]})
# This fails with the error message below
```
```bash
File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map
arrow_schema = pa.Table.from_pydict(test_output).schema
File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2
```
Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you! | [
-0.5140850544,
-0.0638849884,
0.0467357002,
-0.2271825373,
-0.0690646395,
-0.0551062003,
0.2775111496,
0.3193074167,
-0.2335916162,
0.0517759323,
0.1853375286,
0.4330141246,
-0.3891709149,
-0.1567607075,
0.3206686378,
-0.2123527825,
0.1380256861,
-0.070532918,
-0.0471088439,
-0.0676658973,
-0.4131715298,
-0.0813826472,
-0.3076458275,
-0.0193037093,
0.0158392433,
-0.0517235659,
-0.1688472778,
-0.3216547072,
0.1985130757,
-0.0572382696,
0.1546301246,
0.3466902375,
-0.0777747482,
0.2024636865,
-0.0001282075,
-0.1830335259,
0.0852343068,
-0.0660538226,
-0.2778266072,
-0.1043355316,
-0.122246325,
-0.092176877,
-0.1874971539,
-0.1921699494,
0.1732088774,
0.0139110563,
0.2294357419,
-0.3430963457,
0.4886729121,
0.1127874404,
-0.0509736985,
0.0658144653,
-0.0822369605,
0.0404131114,
0.4733752906,
0.4220071137,
-0.0335139595,
-0.2560859621,
0.5853220224,
-0.2236127257,
-0.0561208762,
0.3167018592,
-0.0640675202,
-0.012553975,
0.2690360844,
0.0069323243,
-0.1276349574,
-0.2782158256,
-0.1596963108,
0.6687786579,
-0.1796214879,
-0.3169804811,
-0.5546555519,
-0.359283179,
0.0945756137,
-0.2510688305,
-0.4691947103,
0.0308721326,
-0.1524647623,
-0.059495531,
-0.8480562568,
-0.0725241378,
-0.3502873182,
0.3833607435,
-0.1656909436,
0.1573259532,
0.2363448888,
0.2193864882,
0.1254205555,
-0.2635753453,
-0.1169262081,
-0.1893373877,
0.2012734115,
0.4865550101,
-0.0621961877,
-0.3287474513,
0.0657367855,
-0.0454896986,
0.5274835825,
0.0178332515,
0.0014932597,
0.1767748594,
-0.1448727846,
-0.0563268028,
-0.0290261023,
0.0129229287,
0.0860020667,
0.5244883299,
0.183690086,
-0.0710852817,
-0.073439911,
0.3761556745,
0.0010378788,
-0.1939128786,
-0.1375447214,
0.283221215,
-0.1539545655,
0.1606366336,
-0.0712326169,
-0.2117683291,
-0.2780436873,
-0.0161031708,
0.0704893023,
0.1073949561,
-0.0445258692,
-0.1205081493,
0.1225226671,
0.1043268442,
0.0342733078,
-0.0758775473,
0.0335375927,
-0.1791583598,
-0.3669873476,
0.1122199893,
0.3516446352,
0.1253015548,
0.055812642,
-0.0914678425,
0.0226245746,
0.3612658978,
-0.0332890227,
-0.0695660636,
0.4820079505,
-0.1084304377,
-0.2738678157,
0.1136990041,
0.065422602,
0.1628784239,
-0.3124419749,
0.1807006449,
-0.5805318952,
-0.4811038971,
0.314353168,
0.024119826,
0.0556709804,
-0.0127377175,
-0.2111571282,
0.4394823611,
0.3932487667,
-0.3599759042,
0.0097454591,
-0.4304400384,
-0.3189183474,
-0.0402077511,
0.1983997524,
0.401248455,
-0.0779250339,
-0.1391839236,
-0.0653009042,
0.261943996,
0.2537106574,
0.2722930312,
-0.3692961335,
0.3295792341,
-0.0330144428,
0.0141650001,
0.5044758916,
-0.1357088387,
-0.076154314,
0.4683814347,
-0.1021968126,
0.1658274382,
-0.0335427448,
-0.0839250088,
0.6721915007,
-0.3023914695,
0.5716999769,
0.4612060487,
-0.2615788579,
0.2165630907,
0.0959386379,
-0.2506913543,
0.0571708381,
0.0597373955,
0.1780991405,
-0.1654474735,
-0.110760361,
0.1469746679,
0.2859000862,
-0.2964673042,
0.168708697,
-0.2055945098,
-0.3021270633,
0.0792604536,
-0.1763589978,
-0.2184642404,
-0.4042700827,
-0.0012165346,
-0.2266483456,
-0.1566908211,
0.2583780289,
-0.3116948009,
0.3473120034,
-0.0253705122,
0.0528373346,
-0.0055872509,
-0.0706906244,
0.033575125,
0.12244533,
0.057740692,
-0.1151439175,
-0.3456278443,
0.0082596606,
0.1561139375,
0.0033234581,
0.0503492728,
0.3568118811,
0.0058246474,
-0.2318896651,
0.2177128196,
0.0298408344,
-0.3160480261,
0.2320106924,
0.2861753106,
0.1013382897,
-0.0644036606,
-0.2576491535,
0.3316794932,
0.4543641806,
0.1182986423,
0.0973232687,
0.2350211889,
0.1191036776,
-0.2146910131,
-0.5587957501,
0.3671116233,
0.002650724,
0.5796782374,
0.1737110764,
0.0429743156,
-0.2740184367,
0.0838134214,
-0.426985234,
-0.1542909145,
0.0699479207,
-0.1255003959,
0.0179763399,
-0.1776828617,
-0.0578425005,
0.1229689643,
0.2958964109,
-0.0865249857,
0.0253416616,
0.3899828792,
-0.0557599254,
-0.1243669018,
-0.1621281207,
0.0794298947,
0.2992254198,
0.1775402576,
0.0780116692,
-0.1708121598,
0.0283875819,
0.0630375966,
0.2288247198,
0.1442824751,
0.0305296723,
0.1563627869,
0.1670931131,
0.1781274676,
-0.0295907762,
-0.5074170232,
0.2409530133,
-0.0365324281,
-0.2441270202,
0.1146547124,
-0.0737814233,
-0.0787587166,
-0.3204551637,
-0.3741785586,
0.2363279611,
-0.245508641,
0.2917228639,
-0.093759045,
-0.2794337273,
0.3288772702,
0.4729542434,
0.3735396564,
0.0670037344,
-0.2365328223,
-0.0940205678,
-0.2538489103,
-0.0075246533,
-0.0984296873,
0.0669919103,
-0.2963277102,
0.3102851212,
0.0491144694,
-0.0590435006,
-0.4437868297,
-0.304718107,
-0.0312406868,
-0.1708152592,
-0.0816824362,
0.4561355412,
0.0946932957,
-0.101277329,
-0.2439615577,
0.1165831685,
-0.2921507955,
0.033107575,
0.0019353133,
0.088397786,
-0.0165852346,
-0.0104008913,
-0.1024868041,
-0.0310778935,
-0.109534204,
0.2773320973,
-0.303809166,
0.1510037631,
0.1006518081,
0.2372595519,
-0.0402253903,
-0.1226479858,
-0.2176587731,
0.2773085237,
-0.0570498966,
0.1644928157,
-0.3148437142,
-0.0804289281,
-0.3558792174,
0.0080243088,
-0.4721955657,
0.8751980066,
-0.2329044491,
0.0979557782,
0.0061030919,
0.1651860029,
0.0104060518,
0.113464579,
0.4450580776,
0.1565899849,
0.074468933,
-0.0869630128,
0.0531911924,
0.0861225054,
0.0463444442,
0.0251018163,
0.1552983075,
0.3127294183,
0.148341164,
1.0749418736,
0.4066043198,
-0.2169663608,
-0.1586942673,
-0.1032632589,
-0.1172734722,
-0.1119469255,
-0.1229799166,
0.1862341613,
-0.1086739525,
0.0446408503,
0.2721085548,
-0.0108472602,
-0.3270233274,
0.104299292,
0.3022098839,
-0.0696530044,
-0.3931070864,
0.411207974,
-0.2923819423,
0.3231611848,
-0.0093752658,
0.0182361025,
-0.431782037,
-0.0527657643,
0.177279681,
-0.0218268279,
0.5039938092,
-0.0004377369,
-0.2170687318,
-0.1989746392,
-0.2317493111,
0.2421082407,
0.3034307659,
-0.1031003073,
-0.0184446033,
-0.2629832625,
-0.1854944527,
0.0444023423,
0.6822600961,
-0.4207908809,
-0.0235353746,
-0.0587050281,
-0.1007909402,
-0.3538384438,
-0.0056987065,
-0.2146224827,
0.0614531264,
-0.0185946245,
0.5420701504,
-0.369638592,
-0.1054531187,
0.4996539652,
0.2015980333,
0.0292031541,
0.2182332873,
0.3442277908,
0.0626821667,
-0.2690503597,
0.0428274684,
0.0618406646,
-0.1242792234,
-0.0376531482,
-0.1252588183,
-0.2955959737,
0.1893559247,
0.183690995,
0.0336559415,
0.0484155044,
0.2226524055,
0.3056956232,
-0.1597019434,
-0.0187754668,
0.5131604075,
-0.0489234291,
-0.5048875213,
-0.2913347483,
-0.3084584475,
0.0604869053,
0.4303064644,
0.3761089146,
0.0962698087,
-0.1676414907,
0.1000351831,
0.3084875643,
-0.2345800847,
0.2947365642,
0.182897985,
0.025724344,
-0.2415445298,
-0.602006495,
0.2622420192,
0.3142391145,
-0.1863297671,
0.4721351862,
-0.1496137083,
-0.4798116684,
0.4604498744,
0.2156082392,
0.7913632393,
-0.0752827525,
0.4272467196,
0.0521435961,
0.3219878078,
0.0058774818,
-0.3096724451,
0.1915816963,
-0.0336148031,
0.0491669811,
-0.0364147611,
0.0795574486,
-0.0201456286,
0.3469965458,
-0.3440817893,
0.1437398344,
0.1949299127,
0.0461236238,
-0.1402460486,
-0.1863616109,
0.1465873718,
-0.4494153559,
0.2331822664,
-0.0641707703,
0.2282532156,
0.0323424265,
-0.066613093,
-0.1915910989,
-0.0098836692,
-0.1579100341,
-0.4218662381,
-0.1853289604,
-0.4894331396,
0.1597474664,
-0.1500017494,
-0.3506149948,
0.1016648263,
0.3187218904,
-0.0347139947,
0.2399650663,
-0.0003742146,
-0.0902288631,
0.1099752411,
0.1146921441,
-0.1349403858,
-0.4417132437,
0.3896440864,
0.0380557328,
0.1116055548,
0.1235313565,
-0.0229667686,
0.0129076093,
-0.2519737184,
-0.0973585546,
0.55272156,
-0.1518053263,
0.0738601163,
0.4275227785,
-0.2010422647,
-0.157644406,
-0.0879363641,
-0.095895879,
-0.0440955423,
0.4851013124,
-0.1949037015,
-0.0248709302,
0.0959988981,
0.2647047639,
-0.1766144186,
-0.2013468444,
0.2617539763,
0.0356636606,
-0.0086549483,
-0.2109425962,
0.4334567487,
0.3232333362,
-0.5678306222,
0.1925444603,
-0.1228361726,
0.1622717083,
0.2148344815,
0.5561854839,
0.0189169366,
0.1946834326,
-0.0793146417,
-0.16702573,
-0.0647185817,
0.0995927453,
0.1461920142,
0.3351037204,
-0.2218912542,
0.1050138026,
0.1111061126,
0.2339680791,
-0.1464441419,
0.15376167,
0.1523102671,
0.3649275005,
-0.1695053577,
0.1577084363,
-0.3202655017,
0.0994033888,
-0.130897373,
0.0763147473,
-0.0747133642,
-0.0521822758,
-0.1478394568,
0.1980329603,
-0.0132217091,
-0.0067332964,
0.2309436947,
-0.0070657153,
-0.1956615746,
-0.4530232549,
0.4037025273,
-0.053220164,
-0.1667294353,
0.0213421918,
0.3260833621,
0.188641116,
0.0462091826,
0.2146918625,
0.0915466249,
0.1807408184,
-0.1452658772,
0.1620861143,
0.0465800613,
-0.2829184234,
0.0381365903,
0.2388537824,
0.449277699,
0.1272951514,
0.4130896926,
-0.1120686978,
-0.2644169629,
0.2797036171,
0.0649405718,
0.3199543059,
-0.2408001572,
0.0406462625,
0.2759258449,
0.0551872961,
-0.1661802083,
-0.0041980413,
0.1194329262,
-0.1092995629,
0.1878079772,
0.155425325,
-0.3166794777,
-0.1522836238,
-0.0354222693,
-0.1164304465,
0.0390456766,
-0.2255424112,
0.1427636594,
0.5783993006,
-0.0256981105,
0.0035860611,
-0.3377912045,
0.2078518271,
0.3080685139,
-0.1513800323,
0.0317843966,
0.6774336696,
0.2314912826,
0.0745761767,
0.3520647883,
-0.266787082,
0.0436637625,
0.1050198078,
0.0488184392,
0.4545576572,
0.24420394,
0.0040772776,
-0.0732302144,
-0.2370633036,
-0.1540699899,
0.3648970425,
0.1767334789,
-0.3124364913,
-0.1710823327,
-0.1617449373,
0.2002429217,
-0.0611118153,
-0.2140654773,
-0.0100788865,
0.6305124164,
0.175651744,
0.4212465882,
0.03688851,
-0.2943114936,
-0.2349815369,
0.471316427,
-0.2673819065,
-0.126257956,
0.1309456527,
-0.0781083182,
-0.040315453,
0.3186544776,
0.3682191074,
0.2398971915,
-0.1970653683,
0.4103486836,
-0.3622782826,
0.1330967098,
0.0303983893,
0.2129995823,
0.0660049021,
-0.2545666993,
0.3269319832,
-0.0984084755,
-0.0080633843,
0.1757561862,
-0.0643039346,
-0.0321883783,
-0.1354918927,
0.0698089823,
0.2563366592,
-0.2120692283,
-0.0113361161,
0.1224328354,
-0.045615714,
0.1632274091,
0.2427407056,
-0.336535424,
0.0506394468,
0.2127825469,
-0.0005314591,
0.0612338223,
0.5081928968,
0.1196383089,
0.0469734333,
-0.3565030098,
-0.3246795237,
-0.0701636896,
-0.2811756432,
-0.2140504569,
0.0895974115,
-0.032756988,
0.0900261104,
0.1760787666,
0.3353976309,
-0.0176708195,
-0.6501461864,
-0.1359865218,
0.6674086452,
-0.153906703,
-0.099975206,
0.1910435259,
0.1651742905,
0.0985711962,
-0.381634742,
0.149269715,
-0.1842808574,
-0.1660044938,
-0.0539839976,
0.1433784366,
0.2851288617,
0.0482206829,
0.1643347144,
0.1412638128,
0.0911538228,
0.0603118464,
0.2097206414,
-0.1240128428,
0.1957072765,
0.0016569205,
0.1437957585,
0.1497961581,
0.008000413,
-0.3051390946,
-0.3161024749,
-0.0174160805,
-0.3985344172,
0.3030869663,
0.0144698583,
-0.1911916733,
-0.0300499573,
-0.0384285524,
-0.0068733231,
0.1197871342,
0.4581581056,
-0.1326553077,
-0.1447969675,
0.0447073504,
-0.2986308932,
0.3907762468,
-0.5670869946,
-0.3139789104,
-0.4490806162,
0.1355700344,
-0.3679906726,
0.2406046838,
-0.3750252426,
-0.1169379354,
0.4249216616,
-0.0524973348,
-0.390763402,
0.1969013214,
0.1074796766,
-0.2897551954,
-0.2804972827,
0.3630031645,
0.061970789,
-0.2455328554,
-0.1476063281,
-0.6292203069
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it?
If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure):
```python
from nlp import load_dataset
ds = load_dataset("json", data_files=rel_datafiles)
``` | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 49 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it?
If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure):
```python
from nlp import load_dataset
ds = load_dataset("json", data_files=rel_datafiles)
``` | [
-0.3260453045,
0.3610109687,
-0.0600552261,
0.5487003326,
0.0407031216,
-0.1400741339,
0.3431127667,
0.4284069836,
0.2143318057,
-0.1139701754,
-0.0436314344,
0.3332709372,
0.2364399582,
0.0587035343,
-0.2658621669,
-0.1656162292,
-0.0196320713,
0.2937229276,
-0.1246238276,
0.3482965529,
-0.2225884646,
0.4523977041,
-0.100025475,
0.1312666833,
0.0139916157,
-0.0840230659,
0.0551255308,
0.3630200922,
-0.1661052853,
-0.5221456885,
0.2616771162,
-0.2975649536,
-0.1071127802,
0.4265525639,
-0.0001121765,
0.2836857736,
0.2796026766,
-0.1050381362,
-0.367891103,
-0.0563196652,
0.0219086558,
-0.1897960007,
0.0807162896,
-0.1802357584,
0.2029777169,
-0.2733664215,
-0.3524166942,
-0.1409694701,
0.5280257463,
0.1036975533,
0.1615074873,
-0.1449667066,
0.3078520894,
-0.0087300092,
0.0976144001,
-0.0128852166,
-0.134183988,
0.349652946,
-0.2746608555,
0.1606745422,
-0.1773139536,
0.0339709073,
-0.1473900229,
-0.0363862328,
0.0670260936,
0.0353455245,
0.1572590917,
0.0242216289,
0.0062470916,
-0.00839605,
0.1443328708,
-0.1276884079,
-0.0759724751,
-0.2398125231,
-0.2881830633,
-0.3098751307,
0.2149095386,
0.1042351797,
-0.0598930717,
0.1017573476,
0.316593349,
-0.2579513192,
-0.1195936874,
0.0087801823,
0.0931573436,
0.329477489,
-0.0843711719,
0.0652881339,
0.2218029201,
-0.0210186802,
0.2137234211,
-0.0134949656,
-0.5275069475,
0.0693257004,
-0.0279790591,
0.0091239829,
-0.1933581531,
-0.6268089414,
-0.0088787479,
0.1031659171,
0.5481149554,
-0.0142838042,
0.1519875675,
0.4092028439,
0.2554835081,
-0.1661253124,
0.2643885016,
-0.030302817,
0.04175248,
0.2514637709,
0.111145772,
-0.1434714049,
-0.0249574687,
-0.1038496718,
-0.3425200582,
-0.0681292489,
0.1332849562,
0.0181020498,
-0.2350535244,
0.0447584167,
-0.4381093085,
-0.1038780585,
0.2934701443,
0.2456232607,
0.2248568833,
0.2331759632,
0.1868966818,
0.2919613719,
0.02027064,
-0.2026334703,
-0.1242303848,
0.1052504703,
-0.1044748649,
0.1108414829,
0.2131982893,
0.1113537475,
0.2996945381,
0.1288212538,
-0.3420158625,
-0.340420723,
0.1220166758,
-0.2721669078,
0.0283037946,
0.24119398,
0.0798238292,
-0.1810231507,
0.1847554445,
-0.2773362398,
-0.0575832017,
0.0720747784,
-0.3603480756,
-0.3543909192,
-0.171596989,
0.1504697204,
0.0036924561,
0.1574965119,
-0.451310873,
-0.0426094495,
0.2559915185,
-0.3391979933,
0.1138053685,
-0.1639285684,
-0.1804628074,
-0.1675999165,
0.1240317747,
0.0814560354,
-0.1796029061,
-0.0717222691,
-0.2841579914,
-0.0085381661,
0.2089587003,
0.1984401792,
-0.15026173,
0.5191945434,
-0.2032292634,
0.5580470562,
0.5535886288,
-0.1875403225,
-0.2054158747,
0.5373872519,
0.126577571,
-0.0352940969,
0.1371374577,
-0.405444026,
0.2556643486,
-0.1492993385,
0.0239107292,
0.4544432759,
0.1228782907,
-0.0366676822,
-0.0533075556,
0.0591707565,
0.0945711061,
-0.0533156358,
-0.4166417122,
-0.2638633549,
-0.1177742183,
0.379018724,
0.2506229877,
-0.0887017101,
-0.0387291834,
0.1767893881,
0.0014023971,
0.0067823734,
-0.0009074693,
-0.0842048451,
-0.5144615173,
0.025190372,
-0.3117558956,
-0.0911138579,
-0.3747566342,
0.1402051449,
-0.103243418,
0.3250384629,
-0.0609505437,
-0.2853428721,
0.2218149751,
0.0576820858,
-0.2218001187,
-0.317121774,
-0.0351766236,
0.097156249,
-0.0542956404,
0.3626118898,
-0.099317044,
0.464838922,
0.086914584,
-0.2966180146,
0.0466388464,
0.1641554087,
0.0355116874,
-0.2589475214,
-0.1809913516,
0.4646166563,
0.450334996,
-0.1478161216,
-0.3648447692,
-0.3587812781,
0.0069056395,
0.1058972627,
0.0639767349,
0.0289983191,
0.1435215324,
-0.3214043081,
0.0080423094,
0.3127241731,
-0.0123360334,
0.4519160986,
0.0811968893,
-0.0262395218,
0.1977171451,
-0.0217954367,
0.1612605453,
-0.3399376571,
-0.102060698,
-0.0194321498,
-0.0510123149,
0.1063096374,
0.0067978352,
0.0667166784,
0.3158479631,
0.1552185863,
0.1025183648,
-0.0363587737,
-0.0600490496,
-0.1964570731,
0.1785124391,
0.0889554545,
0.4353643656,
0.0364249423,
-0.0735301003,
0.0425673425,
0.1256315857,
-0.0914052427,
0.3548739254,
0.0301692672,
0.4449597299,
0.3242438436,
0.2033974379,
-0.0742954537,
-0.3939170241,
-0.3832821846,
0.0276443884,
0.1182150394,
-0.2580775917,
0.2396307141,
-0.2732917964,
0.131136477,
-0.0723118857,
-0.0315211006,
-0.1027370021,
-0.3991472423,
-0.2967226207,
0.3699500561,
-0.2913793623,
0.0173462667,
-0.1271984577,
0.0827431455,
0.1297949851,
-0.1101022661,
-0.3194956481,
-0.1922738552,
-0.1088829637,
0.0139107378,
0.3567506671,
0.2639366984,
-0.1311805546,
0.282769978,
-0.0451867543,
-0.0489706807,
-0.3095549345,
0.3275257647,
-0.2431073487,
-0.285610348,
0.2199108899,
0.1815669388,
0.1619452983,
-0.6107795835,
0.1853189766,
0.0088887727,
-0.293340832,
0.2972556949,
0.2230017483,
-0.0029809535,
-0.15258421,
-0.1341144443,
-0.1398987472,
-0.5762496591,
0.4581656456,
0.1357265562,
0.2581654191,
-0.082565248,
-0.0690139607,
0.0106095672,
-0.2777137458,
-0.0837052017,
0.0277052373,
0.1249314025,
0.100296922,
-0.3619615436,
0.0575923957,
0.0255031232,
0.0281640161,
0.5084941387,
-0.1329765618,
-0.4221982658,
0.4498471618,
0.1196184233,
-0.077738069,
-0.1762278527,
-0.3853223324,
0.0696590319,
0.3960434794,
-0.0083336048,
-0.1137978584,
0.0838601366,
0.2298501432,
-0.0317389816,
0.1729092151,
-0.1163411215,
0.5597532392,
-0.0800673664,
0.2650148869,
0.0567665286,
0.0075934255,
0.2237434387,
0.0908616483,
-0.0370971411,
-0.2848675251,
-0.1019059643,
-0.1746465266,
-0.2492518425,
0.0721041709,
0.1653672606,
-0.051932957,
-0.2720277309,
-0.0721120983,
-0.1612121612,
-0.1755962521,
-0.3624182045,
0.3011760116,
-0.3059144318,
0.087990731,
-0.3111079037,
-0.0841154605,
0.0438527465,
0.0580727756,
-0.0536614694,
-0.2777520418,
0.0659911931,
-0.116064392,
0.0500690714,
0.1661208123,
-0.2029539943,
0.1418600529,
-0.0379836187,
0.2989365458,
0.0233655851,
-0.1710151285,
-0.064299427,
-0.1698568761,
0.147985369,
0.0392508171,
0.2059399784,
0.2348195016,
-0.1164164245,
-0.2022812963,
-0.0036497,
-0.234940365,
0.4400181472,
0.5935145617,
0.3597710133,
-0.3514996171,
-0.17081967,
0.3545523584,
-0.148363024,
-0.0955267921,
-0.1216842383,
0.0697267354,
-0.2168035358,
-0.2290590703,
0.0502096973,
0.2537955344,
0.3231962323,
0.1532001942,
-0.1422911137,
-0.231012702,
-0.4477607012,
-0.0806007758,
0.142668128,
0.1965820789,
-0.505163908,
0.1015681252,
-0.1520389467,
0.217449367,
0.4984900057,
0.7618777752,
0.2852307856,
-0.2908283174,
0.2480544448,
-0.0173351038,
0.4242440462,
0.1194378585,
-0.1531616896,
0.1303174049,
-0.2092984021,
0.0522415079,
0.1517795324,
-0.2608374357,
0.3953028023,
-0.1686435938,
-0.2760573328,
-0.2417636216,
0.499104321,
-0.0435556211,
-0.0124945352,
-0.0739123821,
-0.2426341474,
-0.3518019021,
0.636493206,
0.0889951289,
0.524230957,
0.4776636362,
0.0604503341,
0.5830123425,
-0.1552412361,
0.2822139859,
-0.7763894796,
-0.0235231388,
-0.3103723824,
0.1324638873,
-0.0217110217,
-0.2295860201,
0.232801035,
0.3454682529,
-0.2449897677,
0.006511536,
0.0266154725,
0.0639137775,
-0.0325963236,
0.36282897,
-0.1441188008,
-0.2786219418,
-0.406324178,
0.1032002792,
0.05685433,
-0.3126539886,
0.0303328801,
-0.3509735465,
-0.086548686,
-0.2357482016,
-0.2639684081,
0.4338125885,
-0.071656771,
0.3886190355,
0.2239570618,
-0.0562000945,
0.361551404,
-0.0991532654,
-0.1680011898,
-0.0753624812,
0.0291985646,
0.1506630182,
-0.0272613671,
-0.2743920684,
-0.0218236037,
0.119158417,
0.1346260309,
-0.1488003433,
0.0384192057,
-0.0248725154,
-0.1394094825,
-0.3718870282,
0.2763094902,
0.2076301426,
-0.4314108491,
-0.3709971607,
-0.1943300664,
0.1156332195,
-0.1496699452,
-0.0934761092,
0.1180915236,
-0.0015496839,
-0.2765603065,
-0.3599802554,
-0.0708583891,
-0.2900590003,
0.0538641475,
0.3544165492,
0.2216336727,
0.0431614965,
0.6239026189,
0.241446808,
-0.0021352638,
-0.3211765289,
0.0817208812,
0.3431159556,
-0.4442771077,
0.3989856541,
-0.2075763047,
-0.1646205038,
0.1220539436,
0.0919977203,
0.2258997262,
0.1671590358,
-0.2459680587,
-0.5066786408,
-0.0920285136,
0.330232501,
-0.2621884346,
-0.0244905967,
-0.137858808,
0.2208990902,
-0.355654031,
0.287229687,
-0.2434158623,
0.2291273177,
-0.0172619466,
-0.0485380739,
-0.0581632704,
-0.1316034347,
0.1055702567,
0.0473975204,
0.1401482373,
0.1752718389,
0.0176037177,
-0.1623849273,
-0.1138044596,
0.1333757937,
0.1678048521,
0.1552292109,
-0.2986271679,
0.1163604259,
-0.1770163625,
0.0377226025,
0.1328798383,
-0.3939382136,
-0.0549997687,
0.1374359876,
0.444126904,
0.2775042951,
-0.096765779,
0.1493072212,
-0.1239719763,
0.4012764096,
-0.092971921,
0.2098114043,
-0.1530313045,
0.0011429442,
0.0350744389,
0.198696956,
-0.0442558713,
0.0952137634,
0.5684462786,
-0.194407016,
-0.060728237,
-0.5084903836,
0.2955582738,
0.5219069719,
-0.0011158583,
-0.0422701389,
-0.2038498819,
0.1671244502,
-0.1614584327,
-0.0393574052,
0.3196539879,
0.0164187867,
-0.0983285084,
0.259695977,
0.0950078741,
-0.0378496535,
-0.2987880111,
0.1304665655,
0.1833292246,
0.0727181733,
0.2018179446,
0.6401519775,
-0.3257715106,
0.0498721078,
0.3796496689,
0.1183045357,
0.6063776016,
0.2897161245,
0.1244284958,
0.0713096783,
0.4207835793,
0.0520856269,
0.0774492249,
-0.2015171796,
-0.4815182686,
0.0902985558,
0.2912361622,
-0.1424287111,
-0.1119095907,
0.3422735929,
0.1441446245,
-0.1292784214,
-0.2035947144,
0.3980277479,
-0.160307169,
-0.2040883601,
-0.2676361203,
-0.1337141693,
-0.6331003308,
-0.1815864146,
-0.0812520608,
-0.0243735164,
-0.0915032923,
0.1115611717,
0.0836266577,
-0.2546154261,
0.1198744848,
0.049473986,
-0.0678948909,
-0.2596526146,
0.4679687023,
0.091394417,
0.0372754447,
0.0409072228,
0.1487787366,
0.4960683882,
0.2502405643,
-0.2635152936,
-0.2182385921,
-0.198706612,
-0.1470844001,
-0.0179434251,
0.2585286796,
0.0494270734,
0.1489407718,
0.3585207164,
0.1141107082,
-0.1599734426,
0.0438400581,
0.1822648197,
0.0814702064,
0.1857503653,
0.6384837627,
-0.047794193,
-0.1213484704,
0.2243062705,
-0.1319791377,
-0.2510057986,
-0.6355653405,
0.2918821871,
0.002624186,
0.1969863474,
0.0760704949,
0.0750238374,
0.1019890383,
0.6383276582,
0.0586277135,
0.0899368599,
-0.1036298349,
-0.1408051252,
-0.0365858115,
-0.0300200246,
-0.3730287254,
0.0104072932,
0.1738444716,
0.0966818929,
0.167989254,
0.2986497581,
-0.0251652393,
0.2913762033,
-0.2197567523,
-0.1188329607,
-0.484356761,
0.0687586963,
0.2037035674,
0.0928060561,
-0.1202128977,
-0.1476213485,
0.0684484988,
0.2533196509,
0.0239624158,
0.0903766006,
-0.2485011965,
0.1168628857,
-0.3223130703,
0.1750455201,
0.0504130498,
0.1140333489,
-0.0494048037,
-0.1896668971,
-0.1887529343,
-0.5733938217,
-0.1219350398,
0.4686676562,
0.1284105182,
0.2680279911,
-0.1597729921,
0.1188105419,
-0.2943054736,
0.1210635975,
-0.4128638506,
0.0388880298,
-0.3458369374,
0.2615273893,
-0.1557048261,
0.2354153395,
-0.10956195,
-0.0678942353,
-0.2019301802,
0.0950915217,
-0.2074778974,
-0.3111889958,
0.3760581315,
0.1088022143,
-0.2328531593,
0.4643298388,
0.1188008934,
0.1165846363,
0.2316482961,
-0.3983221352,
-0.0301204436,
0.2543447316,
-0.1892000735,
-0.3222723603,
-0.030695213,
0.1550979465,
-0.1384550482,
-0.0962279961,
0.1503654271,
0.0437867604,
-0.1663366407,
-0.175719887,
0.0138160214
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | The behavior I'm seeing is from the `json` script.
I hacked this together to overcome the error with the `JSON` dataloader
```
class DatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
# this is where the error is coming from
# def parse_schema(schema, schema_dict):
# for field in schema:
# if pa.types.is_struct(field.type):
# schema_dict[field.name] = {}
# parse_schema(field.type, schema_dict[field.name])
# elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type):
# schema_dict[field.name] = {}
# parse_schema(field.type.value_type, schema_dict[field.name])
# else:
# schema_dict[field.name] = Value(str(field.type))
#
# parse_schema(writer.schema, features)
# self.info.features = Features(features)
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
```
So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications.
The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
| I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 254 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
The behavior I'm seeing is from the `json` script.
I hacked this together to overcome the error with the `JSON` dataloader
```
class DatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
# this is where the error is coming from
# def parse_schema(schema, schema_dict):
# for field in schema:
# if pa.types.is_struct(field.type):
# schema_dict[field.name] = {}
# parse_schema(field.type, schema_dict[field.name])
# elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type):
# schema_dict[field.name] = {}
# parse_schema(field.type.value_type, schema_dict[field.name])
# else:
# schema_dict[field.name] = Value(str(field.type))
#
# parse_schema(writer.schema, features)
# self.info.features = Features(features)
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
```
So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications.
The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
| [
-0.3260453045,
0.3610109687,
-0.0600552261,
0.5487003326,
0.0407031216,
-0.1400741339,
0.3431127667,
0.4284069836,
0.2143318057,
-0.1139701754,
-0.0436314344,
0.3332709372,
0.2364399582,
0.0587035343,
-0.2658621669,
-0.1656162292,
-0.0196320713,
0.2937229276,
-0.1246238276,
0.3482965529,
-0.2225884646,
0.4523977041,
-0.100025475,
0.1312666833,
0.0139916157,
-0.0840230659,
0.0551255308,
0.3630200922,
-0.1661052853,
-0.5221456885,
0.2616771162,
-0.2975649536,
-0.1071127802,
0.4265525639,
-0.0001121765,
0.2836857736,
0.2796026766,
-0.1050381362,
-0.367891103,
-0.0563196652,
0.0219086558,
-0.1897960007,
0.0807162896,
-0.1802357584,
0.2029777169,
-0.2733664215,
-0.3524166942,
-0.1409694701,
0.5280257463,
0.1036975533,
0.1615074873,
-0.1449667066,
0.3078520894,
-0.0087300092,
0.0976144001,
-0.0128852166,
-0.134183988,
0.349652946,
-0.2746608555,
0.1606745422,
-0.1773139536,
0.0339709073,
-0.1473900229,
-0.0363862328,
0.0670260936,
0.0353455245,
0.1572590917,
0.0242216289,
0.0062470916,
-0.00839605,
0.1443328708,
-0.1276884079,
-0.0759724751,
-0.2398125231,
-0.2881830633,
-0.3098751307,
0.2149095386,
0.1042351797,
-0.0598930717,
0.1017573476,
0.316593349,
-0.2579513192,
-0.1195936874,
0.0087801823,
0.0931573436,
0.329477489,
-0.0843711719,
0.0652881339,
0.2218029201,
-0.0210186802,
0.2137234211,
-0.0134949656,
-0.5275069475,
0.0693257004,
-0.0279790591,
0.0091239829,
-0.1933581531,
-0.6268089414,
-0.0088787479,
0.1031659171,
0.5481149554,
-0.0142838042,
0.1519875675,
0.4092028439,
0.2554835081,
-0.1661253124,
0.2643885016,
-0.030302817,
0.04175248,
0.2514637709,
0.111145772,
-0.1434714049,
-0.0249574687,
-0.1038496718,
-0.3425200582,
-0.0681292489,
0.1332849562,
0.0181020498,
-0.2350535244,
0.0447584167,
-0.4381093085,
-0.1038780585,
0.2934701443,
0.2456232607,
0.2248568833,
0.2331759632,
0.1868966818,
0.2919613719,
0.02027064,
-0.2026334703,
-0.1242303848,
0.1052504703,
-0.1044748649,
0.1108414829,
0.2131982893,
0.1113537475,
0.2996945381,
0.1288212538,
-0.3420158625,
-0.340420723,
0.1220166758,
-0.2721669078,
0.0283037946,
0.24119398,
0.0798238292,
-0.1810231507,
0.1847554445,
-0.2773362398,
-0.0575832017,
0.0720747784,
-0.3603480756,
-0.3543909192,
-0.171596989,
0.1504697204,
0.0036924561,
0.1574965119,
-0.451310873,
-0.0426094495,
0.2559915185,
-0.3391979933,
0.1138053685,
-0.1639285684,
-0.1804628074,
-0.1675999165,
0.1240317747,
0.0814560354,
-0.1796029061,
-0.0717222691,
-0.2841579914,
-0.0085381661,
0.2089587003,
0.1984401792,
-0.15026173,
0.5191945434,
-0.2032292634,
0.5580470562,
0.5535886288,
-0.1875403225,
-0.2054158747,
0.5373872519,
0.126577571,
-0.0352940969,
0.1371374577,
-0.405444026,
0.2556643486,
-0.1492993385,
0.0239107292,
0.4544432759,
0.1228782907,
-0.0366676822,
-0.0533075556,
0.0591707565,
0.0945711061,
-0.0533156358,
-0.4166417122,
-0.2638633549,
-0.1177742183,
0.379018724,
0.2506229877,
-0.0887017101,
-0.0387291834,
0.1767893881,
0.0014023971,
0.0067823734,
-0.0009074693,
-0.0842048451,
-0.5144615173,
0.025190372,
-0.3117558956,
-0.0911138579,
-0.3747566342,
0.1402051449,
-0.103243418,
0.3250384629,
-0.0609505437,
-0.2853428721,
0.2218149751,
0.0576820858,
-0.2218001187,
-0.317121774,
-0.0351766236,
0.097156249,
-0.0542956404,
0.3626118898,
-0.099317044,
0.464838922,
0.086914584,
-0.2966180146,
0.0466388464,
0.1641554087,
0.0355116874,
-0.2589475214,
-0.1809913516,
0.4646166563,
0.450334996,
-0.1478161216,
-0.3648447692,
-0.3587812781,
0.0069056395,
0.1058972627,
0.0639767349,
0.0289983191,
0.1435215324,
-0.3214043081,
0.0080423094,
0.3127241731,
-0.0123360334,
0.4519160986,
0.0811968893,
-0.0262395218,
0.1977171451,
-0.0217954367,
0.1612605453,
-0.3399376571,
-0.102060698,
-0.0194321498,
-0.0510123149,
0.1063096374,
0.0067978352,
0.0667166784,
0.3158479631,
0.1552185863,
0.1025183648,
-0.0363587737,
-0.0600490496,
-0.1964570731,
0.1785124391,
0.0889554545,
0.4353643656,
0.0364249423,
-0.0735301003,
0.0425673425,
0.1256315857,
-0.0914052427,
0.3548739254,
0.0301692672,
0.4449597299,
0.3242438436,
0.2033974379,
-0.0742954537,
-0.3939170241,
-0.3832821846,
0.0276443884,
0.1182150394,
-0.2580775917,
0.2396307141,
-0.2732917964,
0.131136477,
-0.0723118857,
-0.0315211006,
-0.1027370021,
-0.3991472423,
-0.2967226207,
0.3699500561,
-0.2913793623,
0.0173462667,
-0.1271984577,
0.0827431455,
0.1297949851,
-0.1101022661,
-0.3194956481,
-0.1922738552,
-0.1088829637,
0.0139107378,
0.3567506671,
0.2639366984,
-0.1311805546,
0.282769978,
-0.0451867543,
-0.0489706807,
-0.3095549345,
0.3275257647,
-0.2431073487,
-0.285610348,
0.2199108899,
0.1815669388,
0.1619452983,
-0.6107795835,
0.1853189766,
0.0088887727,
-0.293340832,
0.2972556949,
0.2230017483,
-0.0029809535,
-0.15258421,
-0.1341144443,
-0.1398987472,
-0.5762496591,
0.4581656456,
0.1357265562,
0.2581654191,
-0.082565248,
-0.0690139607,
0.0106095672,
-0.2777137458,
-0.0837052017,
0.0277052373,
0.1249314025,
0.100296922,
-0.3619615436,
0.0575923957,
0.0255031232,
0.0281640161,
0.5084941387,
-0.1329765618,
-0.4221982658,
0.4498471618,
0.1196184233,
-0.077738069,
-0.1762278527,
-0.3853223324,
0.0696590319,
0.3960434794,
-0.0083336048,
-0.1137978584,
0.0838601366,
0.2298501432,
-0.0317389816,
0.1729092151,
-0.1163411215,
0.5597532392,
-0.0800673664,
0.2650148869,
0.0567665286,
0.0075934255,
0.2237434387,
0.0908616483,
-0.0370971411,
-0.2848675251,
-0.1019059643,
-0.1746465266,
-0.2492518425,
0.0721041709,
0.1653672606,
-0.051932957,
-0.2720277309,
-0.0721120983,
-0.1612121612,
-0.1755962521,
-0.3624182045,
0.3011760116,
-0.3059144318,
0.087990731,
-0.3111079037,
-0.0841154605,
0.0438527465,
0.0580727756,
-0.0536614694,
-0.2777520418,
0.0659911931,
-0.116064392,
0.0500690714,
0.1661208123,
-0.2029539943,
0.1418600529,
-0.0379836187,
0.2989365458,
0.0233655851,
-0.1710151285,
-0.064299427,
-0.1698568761,
0.147985369,
0.0392508171,
0.2059399784,
0.2348195016,
-0.1164164245,
-0.2022812963,
-0.0036497,
-0.234940365,
0.4400181472,
0.5935145617,
0.3597710133,
-0.3514996171,
-0.17081967,
0.3545523584,
-0.148363024,
-0.0955267921,
-0.1216842383,
0.0697267354,
-0.2168035358,
-0.2290590703,
0.0502096973,
0.2537955344,
0.3231962323,
0.1532001942,
-0.1422911137,
-0.231012702,
-0.4477607012,
-0.0806007758,
0.142668128,
0.1965820789,
-0.505163908,
0.1015681252,
-0.1520389467,
0.217449367,
0.4984900057,
0.7618777752,
0.2852307856,
-0.2908283174,
0.2480544448,
-0.0173351038,
0.4242440462,
0.1194378585,
-0.1531616896,
0.1303174049,
-0.2092984021,
0.0522415079,
0.1517795324,
-0.2608374357,
0.3953028023,
-0.1686435938,
-0.2760573328,
-0.2417636216,
0.499104321,
-0.0435556211,
-0.0124945352,
-0.0739123821,
-0.2426341474,
-0.3518019021,
0.636493206,
0.0889951289,
0.524230957,
0.4776636362,
0.0604503341,
0.5830123425,
-0.1552412361,
0.2822139859,
-0.7763894796,
-0.0235231388,
-0.3103723824,
0.1324638873,
-0.0217110217,
-0.2295860201,
0.232801035,
0.3454682529,
-0.2449897677,
0.006511536,
0.0266154725,
0.0639137775,
-0.0325963236,
0.36282897,
-0.1441188008,
-0.2786219418,
-0.406324178,
0.1032002792,
0.05685433,
-0.3126539886,
0.0303328801,
-0.3509735465,
-0.086548686,
-0.2357482016,
-0.2639684081,
0.4338125885,
-0.071656771,
0.3886190355,
0.2239570618,
-0.0562000945,
0.361551404,
-0.0991532654,
-0.1680011898,
-0.0753624812,
0.0291985646,
0.1506630182,
-0.0272613671,
-0.2743920684,
-0.0218236037,
0.119158417,
0.1346260309,
-0.1488003433,
0.0384192057,
-0.0248725154,
-0.1394094825,
-0.3718870282,
0.2763094902,
0.2076301426,
-0.4314108491,
-0.3709971607,
-0.1943300664,
0.1156332195,
-0.1496699452,
-0.0934761092,
0.1180915236,
-0.0015496839,
-0.2765603065,
-0.3599802554,
-0.0708583891,
-0.2900590003,
0.0538641475,
0.3544165492,
0.2216336727,
0.0431614965,
0.6239026189,
0.241446808,
-0.0021352638,
-0.3211765289,
0.0817208812,
0.3431159556,
-0.4442771077,
0.3989856541,
-0.2075763047,
-0.1646205038,
0.1220539436,
0.0919977203,
0.2258997262,
0.1671590358,
-0.2459680587,
-0.5066786408,
-0.0920285136,
0.330232501,
-0.2621884346,
-0.0244905967,
-0.137858808,
0.2208990902,
-0.355654031,
0.287229687,
-0.2434158623,
0.2291273177,
-0.0172619466,
-0.0485380739,
-0.0581632704,
-0.1316034347,
0.1055702567,
0.0473975204,
0.1401482373,
0.1752718389,
0.0176037177,
-0.1623849273,
-0.1138044596,
0.1333757937,
0.1678048521,
0.1552292109,
-0.2986271679,
0.1163604259,
-0.1770163625,
0.0377226025,
0.1328798383,
-0.3939382136,
-0.0549997687,
0.1374359876,
0.444126904,
0.2775042951,
-0.096765779,
0.1493072212,
-0.1239719763,
0.4012764096,
-0.092971921,
0.2098114043,
-0.1530313045,
0.0011429442,
0.0350744389,
0.198696956,
-0.0442558713,
0.0952137634,
0.5684462786,
-0.194407016,
-0.060728237,
-0.5084903836,
0.2955582738,
0.5219069719,
-0.0011158583,
-0.0422701389,
-0.2038498819,
0.1671244502,
-0.1614584327,
-0.0393574052,
0.3196539879,
0.0164187867,
-0.0983285084,
0.259695977,
0.0950078741,
-0.0378496535,
-0.2987880111,
0.1304665655,
0.1833292246,
0.0727181733,
0.2018179446,
0.6401519775,
-0.3257715106,
0.0498721078,
0.3796496689,
0.1183045357,
0.6063776016,
0.2897161245,
0.1244284958,
0.0713096783,
0.4207835793,
0.0520856269,
0.0774492249,
-0.2015171796,
-0.4815182686,
0.0902985558,
0.2912361622,
-0.1424287111,
-0.1119095907,
0.3422735929,
0.1441446245,
-0.1292784214,
-0.2035947144,
0.3980277479,
-0.160307169,
-0.2040883601,
-0.2676361203,
-0.1337141693,
-0.6331003308,
-0.1815864146,
-0.0812520608,
-0.0243735164,
-0.0915032923,
0.1115611717,
0.0836266577,
-0.2546154261,
0.1198744848,
0.049473986,
-0.0678948909,
-0.2596526146,
0.4679687023,
0.091394417,
0.0372754447,
0.0409072228,
0.1487787366,
0.4960683882,
0.2502405643,
-0.2635152936,
-0.2182385921,
-0.198706612,
-0.1470844001,
-0.0179434251,
0.2585286796,
0.0494270734,
0.1489407718,
0.3585207164,
0.1141107082,
-0.1599734426,
0.0438400581,
0.1822648197,
0.0814702064,
0.1857503653,
0.6384837627,
-0.047794193,
-0.1213484704,
0.2243062705,
-0.1319791377,
-0.2510057986,
-0.6355653405,
0.2918821871,
0.002624186,
0.1969863474,
0.0760704949,
0.0750238374,
0.1019890383,
0.6383276582,
0.0586277135,
0.0899368599,
-0.1036298349,
-0.1408051252,
-0.0365858115,
-0.0300200246,
-0.3730287254,
0.0104072932,
0.1738444716,
0.0966818929,
0.167989254,
0.2986497581,
-0.0251652393,
0.2913762033,
-0.2197567523,
-0.1188329607,
-0.484356761,
0.0687586963,
0.2037035674,
0.0928060561,
-0.1202128977,
-0.1476213485,
0.0684484988,
0.2533196509,
0.0239624158,
0.0903766006,
-0.2485011965,
0.1168628857,
-0.3223130703,
0.1750455201,
0.0504130498,
0.1140333489,
-0.0494048037,
-0.1896668971,
-0.1887529343,
-0.5733938217,
-0.1219350398,
0.4686676562,
0.1284105182,
0.2680279911,
-0.1597729921,
0.1188105419,
-0.2943054736,
0.1210635975,
-0.4128638506,
0.0388880298,
-0.3458369374,
0.2615273893,
-0.1557048261,
0.2354153395,
-0.10956195,
-0.0678942353,
-0.2019301802,
0.0950915217,
-0.2074778974,
-0.3111889958,
0.3760581315,
0.1088022143,
-0.2328531593,
0.4643298388,
0.1188008934,
0.1165846363,
0.2316482961,
-0.3983221352,
-0.0301204436,
0.2543447316,
-0.1892000735,
-0.3222723603,
-0.030695213,
0.1550979465,
-0.1384550482,
-0.0962279961,
0.1503654271,
0.0437867604,
-0.1663366407,
-0.175719887,
0.0138160214
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Also noticed that if you for example in a loader script
```
from nlp import ArrowBasedBuilder
class MyBuilder(ArrowBasedBuilder):
...
```
and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`. | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 70 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Also noticed that if you for example in a loader script
```
from nlp import ArrowBasedBuilder
class MyBuilder(ArrowBasedBuilder):
...
```
and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`. | [
-0.3260453045,
0.3610109687,
-0.0600552261,
0.5487003326,
0.0407031216,
-0.1400741339,
0.3431127667,
0.4284069836,
0.2143318057,
-0.1139701754,
-0.0436314344,
0.3332709372,
0.2364399582,
0.0587035343,
-0.2658621669,
-0.1656162292,
-0.0196320713,
0.2937229276,
-0.1246238276,
0.3482965529,
-0.2225884646,
0.4523977041,
-0.100025475,
0.1312666833,
0.0139916157,
-0.0840230659,
0.0551255308,
0.3630200922,
-0.1661052853,
-0.5221456885,
0.2616771162,
-0.2975649536,
-0.1071127802,
0.4265525639,
-0.0001121765,
0.2836857736,
0.2796026766,
-0.1050381362,
-0.367891103,
-0.0563196652,
0.0219086558,
-0.1897960007,
0.0807162896,
-0.1802357584,
0.2029777169,
-0.2733664215,
-0.3524166942,
-0.1409694701,
0.5280257463,
0.1036975533,
0.1615074873,
-0.1449667066,
0.3078520894,
-0.0087300092,
0.0976144001,
-0.0128852166,
-0.134183988,
0.349652946,
-0.2746608555,
0.1606745422,
-0.1773139536,
0.0339709073,
-0.1473900229,
-0.0363862328,
0.0670260936,
0.0353455245,
0.1572590917,
0.0242216289,
0.0062470916,
-0.00839605,
0.1443328708,
-0.1276884079,
-0.0759724751,
-0.2398125231,
-0.2881830633,
-0.3098751307,
0.2149095386,
0.1042351797,
-0.0598930717,
0.1017573476,
0.316593349,
-0.2579513192,
-0.1195936874,
0.0087801823,
0.0931573436,
0.329477489,
-0.0843711719,
0.0652881339,
0.2218029201,
-0.0210186802,
0.2137234211,
-0.0134949656,
-0.5275069475,
0.0693257004,
-0.0279790591,
0.0091239829,
-0.1933581531,
-0.6268089414,
-0.0088787479,
0.1031659171,
0.5481149554,
-0.0142838042,
0.1519875675,
0.4092028439,
0.2554835081,
-0.1661253124,
0.2643885016,
-0.030302817,
0.04175248,
0.2514637709,
0.111145772,
-0.1434714049,
-0.0249574687,
-0.1038496718,
-0.3425200582,
-0.0681292489,
0.1332849562,
0.0181020498,
-0.2350535244,
0.0447584167,
-0.4381093085,
-0.1038780585,
0.2934701443,
0.2456232607,
0.2248568833,
0.2331759632,
0.1868966818,
0.2919613719,
0.02027064,
-0.2026334703,
-0.1242303848,
0.1052504703,
-0.1044748649,
0.1108414829,
0.2131982893,
0.1113537475,
0.2996945381,
0.1288212538,
-0.3420158625,
-0.340420723,
0.1220166758,
-0.2721669078,
0.0283037946,
0.24119398,
0.0798238292,
-0.1810231507,
0.1847554445,
-0.2773362398,
-0.0575832017,
0.0720747784,
-0.3603480756,
-0.3543909192,
-0.171596989,
0.1504697204,
0.0036924561,
0.1574965119,
-0.451310873,
-0.0426094495,
0.2559915185,
-0.3391979933,
0.1138053685,
-0.1639285684,
-0.1804628074,
-0.1675999165,
0.1240317747,
0.0814560354,
-0.1796029061,
-0.0717222691,
-0.2841579914,
-0.0085381661,
0.2089587003,
0.1984401792,
-0.15026173,
0.5191945434,
-0.2032292634,
0.5580470562,
0.5535886288,
-0.1875403225,
-0.2054158747,
0.5373872519,
0.126577571,
-0.0352940969,
0.1371374577,
-0.405444026,
0.2556643486,
-0.1492993385,
0.0239107292,
0.4544432759,
0.1228782907,
-0.0366676822,
-0.0533075556,
0.0591707565,
0.0945711061,
-0.0533156358,
-0.4166417122,
-0.2638633549,
-0.1177742183,
0.379018724,
0.2506229877,
-0.0887017101,
-0.0387291834,
0.1767893881,
0.0014023971,
0.0067823734,
-0.0009074693,
-0.0842048451,
-0.5144615173,
0.025190372,
-0.3117558956,
-0.0911138579,
-0.3747566342,
0.1402051449,
-0.103243418,
0.3250384629,
-0.0609505437,
-0.2853428721,
0.2218149751,
0.0576820858,
-0.2218001187,
-0.317121774,
-0.0351766236,
0.097156249,
-0.0542956404,
0.3626118898,
-0.099317044,
0.464838922,
0.086914584,
-0.2966180146,
0.0466388464,
0.1641554087,
0.0355116874,
-0.2589475214,
-0.1809913516,
0.4646166563,
0.450334996,
-0.1478161216,
-0.3648447692,
-0.3587812781,
0.0069056395,
0.1058972627,
0.0639767349,
0.0289983191,
0.1435215324,
-0.3214043081,
0.0080423094,
0.3127241731,
-0.0123360334,
0.4519160986,
0.0811968893,
-0.0262395218,
0.1977171451,
-0.0217954367,
0.1612605453,
-0.3399376571,
-0.102060698,
-0.0194321498,
-0.0510123149,
0.1063096374,
0.0067978352,
0.0667166784,
0.3158479631,
0.1552185863,
0.1025183648,
-0.0363587737,
-0.0600490496,
-0.1964570731,
0.1785124391,
0.0889554545,
0.4353643656,
0.0364249423,
-0.0735301003,
0.0425673425,
0.1256315857,
-0.0914052427,
0.3548739254,
0.0301692672,
0.4449597299,
0.3242438436,
0.2033974379,
-0.0742954537,
-0.3939170241,
-0.3832821846,
0.0276443884,
0.1182150394,
-0.2580775917,
0.2396307141,
-0.2732917964,
0.131136477,
-0.0723118857,
-0.0315211006,
-0.1027370021,
-0.3991472423,
-0.2967226207,
0.3699500561,
-0.2913793623,
0.0173462667,
-0.1271984577,
0.0827431455,
0.1297949851,
-0.1101022661,
-0.3194956481,
-0.1922738552,
-0.1088829637,
0.0139107378,
0.3567506671,
0.2639366984,
-0.1311805546,
0.282769978,
-0.0451867543,
-0.0489706807,
-0.3095549345,
0.3275257647,
-0.2431073487,
-0.285610348,
0.2199108899,
0.1815669388,
0.1619452983,
-0.6107795835,
0.1853189766,
0.0088887727,
-0.293340832,
0.2972556949,
0.2230017483,
-0.0029809535,
-0.15258421,
-0.1341144443,
-0.1398987472,
-0.5762496591,
0.4581656456,
0.1357265562,
0.2581654191,
-0.082565248,
-0.0690139607,
0.0106095672,
-0.2777137458,
-0.0837052017,
0.0277052373,
0.1249314025,
0.100296922,
-0.3619615436,
0.0575923957,
0.0255031232,
0.0281640161,
0.5084941387,
-0.1329765618,
-0.4221982658,
0.4498471618,
0.1196184233,
-0.077738069,
-0.1762278527,
-0.3853223324,
0.0696590319,
0.3960434794,
-0.0083336048,
-0.1137978584,
0.0838601366,
0.2298501432,
-0.0317389816,
0.1729092151,
-0.1163411215,
0.5597532392,
-0.0800673664,
0.2650148869,
0.0567665286,
0.0075934255,
0.2237434387,
0.0908616483,
-0.0370971411,
-0.2848675251,
-0.1019059643,
-0.1746465266,
-0.2492518425,
0.0721041709,
0.1653672606,
-0.051932957,
-0.2720277309,
-0.0721120983,
-0.1612121612,
-0.1755962521,
-0.3624182045,
0.3011760116,
-0.3059144318,
0.087990731,
-0.3111079037,
-0.0841154605,
0.0438527465,
0.0580727756,
-0.0536614694,
-0.2777520418,
0.0659911931,
-0.116064392,
0.0500690714,
0.1661208123,
-0.2029539943,
0.1418600529,
-0.0379836187,
0.2989365458,
0.0233655851,
-0.1710151285,
-0.064299427,
-0.1698568761,
0.147985369,
0.0392508171,
0.2059399784,
0.2348195016,
-0.1164164245,
-0.2022812963,
-0.0036497,
-0.234940365,
0.4400181472,
0.5935145617,
0.3597710133,
-0.3514996171,
-0.17081967,
0.3545523584,
-0.148363024,
-0.0955267921,
-0.1216842383,
0.0697267354,
-0.2168035358,
-0.2290590703,
0.0502096973,
0.2537955344,
0.3231962323,
0.1532001942,
-0.1422911137,
-0.231012702,
-0.4477607012,
-0.0806007758,
0.142668128,
0.1965820789,
-0.505163908,
0.1015681252,
-0.1520389467,
0.217449367,
0.4984900057,
0.7618777752,
0.2852307856,
-0.2908283174,
0.2480544448,
-0.0173351038,
0.4242440462,
0.1194378585,
-0.1531616896,
0.1303174049,
-0.2092984021,
0.0522415079,
0.1517795324,
-0.2608374357,
0.3953028023,
-0.1686435938,
-0.2760573328,
-0.2417636216,
0.499104321,
-0.0435556211,
-0.0124945352,
-0.0739123821,
-0.2426341474,
-0.3518019021,
0.636493206,
0.0889951289,
0.524230957,
0.4776636362,
0.0604503341,
0.5830123425,
-0.1552412361,
0.2822139859,
-0.7763894796,
-0.0235231388,
-0.3103723824,
0.1324638873,
-0.0217110217,
-0.2295860201,
0.232801035,
0.3454682529,
-0.2449897677,
0.006511536,
0.0266154725,
0.0639137775,
-0.0325963236,
0.36282897,
-0.1441188008,
-0.2786219418,
-0.406324178,
0.1032002792,
0.05685433,
-0.3126539886,
0.0303328801,
-0.3509735465,
-0.086548686,
-0.2357482016,
-0.2639684081,
0.4338125885,
-0.071656771,
0.3886190355,
0.2239570618,
-0.0562000945,
0.361551404,
-0.0991532654,
-0.1680011898,
-0.0753624812,
0.0291985646,
0.1506630182,
-0.0272613671,
-0.2743920684,
-0.0218236037,
0.119158417,
0.1346260309,
-0.1488003433,
0.0384192057,
-0.0248725154,
-0.1394094825,
-0.3718870282,
0.2763094902,
0.2076301426,
-0.4314108491,
-0.3709971607,
-0.1943300664,
0.1156332195,
-0.1496699452,
-0.0934761092,
0.1180915236,
-0.0015496839,
-0.2765603065,
-0.3599802554,
-0.0708583891,
-0.2900590003,
0.0538641475,
0.3544165492,
0.2216336727,
0.0431614965,
0.6239026189,
0.241446808,
-0.0021352638,
-0.3211765289,
0.0817208812,
0.3431159556,
-0.4442771077,
0.3989856541,
-0.2075763047,
-0.1646205038,
0.1220539436,
0.0919977203,
0.2258997262,
0.1671590358,
-0.2459680587,
-0.5066786408,
-0.0920285136,
0.330232501,
-0.2621884346,
-0.0244905967,
-0.137858808,
0.2208990902,
-0.355654031,
0.287229687,
-0.2434158623,
0.2291273177,
-0.0172619466,
-0.0485380739,
-0.0581632704,
-0.1316034347,
0.1055702567,
0.0473975204,
0.1401482373,
0.1752718389,
0.0176037177,
-0.1623849273,
-0.1138044596,
0.1333757937,
0.1678048521,
0.1552292109,
-0.2986271679,
0.1163604259,
-0.1770163625,
0.0377226025,
0.1328798383,
-0.3939382136,
-0.0549997687,
0.1374359876,
0.444126904,
0.2775042951,
-0.096765779,
0.1493072212,
-0.1239719763,
0.4012764096,
-0.092971921,
0.2098114043,
-0.1530313045,
0.0011429442,
0.0350744389,
0.198696956,
-0.0442558713,
0.0952137634,
0.5684462786,
-0.194407016,
-0.060728237,
-0.5084903836,
0.2955582738,
0.5219069719,
-0.0011158583,
-0.0422701389,
-0.2038498819,
0.1671244502,
-0.1614584327,
-0.0393574052,
0.3196539879,
0.0164187867,
-0.0983285084,
0.259695977,
0.0950078741,
-0.0378496535,
-0.2987880111,
0.1304665655,
0.1833292246,
0.0727181733,
0.2018179446,
0.6401519775,
-0.3257715106,
0.0498721078,
0.3796496689,
0.1183045357,
0.6063776016,
0.2897161245,
0.1244284958,
0.0713096783,
0.4207835793,
0.0520856269,
0.0774492249,
-0.2015171796,
-0.4815182686,
0.0902985558,
0.2912361622,
-0.1424287111,
-0.1119095907,
0.3422735929,
0.1441446245,
-0.1292784214,
-0.2035947144,
0.3980277479,
-0.160307169,
-0.2040883601,
-0.2676361203,
-0.1337141693,
-0.6331003308,
-0.1815864146,
-0.0812520608,
-0.0243735164,
-0.0915032923,
0.1115611717,
0.0836266577,
-0.2546154261,
0.1198744848,
0.049473986,
-0.0678948909,
-0.2596526146,
0.4679687023,
0.091394417,
0.0372754447,
0.0409072228,
0.1487787366,
0.4960683882,
0.2502405643,
-0.2635152936,
-0.2182385921,
-0.198706612,
-0.1470844001,
-0.0179434251,
0.2585286796,
0.0494270734,
0.1489407718,
0.3585207164,
0.1141107082,
-0.1599734426,
0.0438400581,
0.1822648197,
0.0814702064,
0.1857503653,
0.6384837627,
-0.047794193,
-0.1213484704,
0.2243062705,
-0.1319791377,
-0.2510057986,
-0.6355653405,
0.2918821871,
0.002624186,
0.1969863474,
0.0760704949,
0.0750238374,
0.1019890383,
0.6383276582,
0.0586277135,
0.0899368599,
-0.1036298349,
-0.1408051252,
-0.0365858115,
-0.0300200246,
-0.3730287254,
0.0104072932,
0.1738444716,
0.0966818929,
0.167989254,
0.2986497581,
-0.0251652393,
0.2913762033,
-0.2197567523,
-0.1188329607,
-0.484356761,
0.0687586963,
0.2037035674,
0.0928060561,
-0.1202128977,
-0.1476213485,
0.0684484988,
0.2533196509,
0.0239624158,
0.0903766006,
-0.2485011965,
0.1168628857,
-0.3223130703,
0.1750455201,
0.0504130498,
0.1140333489,
-0.0494048037,
-0.1896668971,
-0.1887529343,
-0.5733938217,
-0.1219350398,
0.4686676562,
0.1284105182,
0.2680279911,
-0.1597729921,
0.1188105419,
-0.2943054736,
0.1210635975,
-0.4128638506,
0.0388880298,
-0.3458369374,
0.2615273893,
-0.1557048261,
0.2354153395,
-0.10956195,
-0.0678942353,
-0.2019301802,
0.0950915217,
-0.2074778974,
-0.3111889958,
0.3760581315,
0.1088022143,
-0.2328531593,
0.4643298388,
0.1188008934,
0.1165846363,
0.2316482961,
-0.3983221352,
-0.0301204436,
0.2543447316,
-0.1892000735,
-0.3222723603,
-0.030695213,
0.1550979465,
-0.1384550482,
-0.0962279961,
0.1503654271,
0.0437867604,
-0.1663366407,
-0.175719887,
0.0138160214
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema).
We will try to solve this soon. | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 70 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema).
We will try to solve this soon. | [
-0.3260453045,
0.3610109687,
-0.0600552261,
0.5487003326,
0.0407031216,
-0.1400741339,
0.3431127667,
0.4284069836,
0.2143318057,
-0.1139701754,
-0.0436314344,
0.3332709372,
0.2364399582,
0.0587035343,
-0.2658621669,
-0.1656162292,
-0.0196320713,
0.2937229276,
-0.1246238276,
0.3482965529,
-0.2225884646,
0.4523977041,
-0.100025475,
0.1312666833,
0.0139916157,
-0.0840230659,
0.0551255308,
0.3630200922,
-0.1661052853,
-0.5221456885,
0.2616771162,
-0.2975649536,
-0.1071127802,
0.4265525639,
-0.0001121765,
0.2836857736,
0.2796026766,
-0.1050381362,
-0.367891103,
-0.0563196652,
0.0219086558,
-0.1897960007,
0.0807162896,
-0.1802357584,
0.2029777169,
-0.2733664215,
-0.3524166942,
-0.1409694701,
0.5280257463,
0.1036975533,
0.1615074873,
-0.1449667066,
0.3078520894,
-0.0087300092,
0.0976144001,
-0.0128852166,
-0.134183988,
0.349652946,
-0.2746608555,
0.1606745422,
-0.1773139536,
0.0339709073,
-0.1473900229,
-0.0363862328,
0.0670260936,
0.0353455245,
0.1572590917,
0.0242216289,
0.0062470916,
-0.00839605,
0.1443328708,
-0.1276884079,
-0.0759724751,
-0.2398125231,
-0.2881830633,
-0.3098751307,
0.2149095386,
0.1042351797,
-0.0598930717,
0.1017573476,
0.316593349,
-0.2579513192,
-0.1195936874,
0.0087801823,
0.0931573436,
0.329477489,
-0.0843711719,
0.0652881339,
0.2218029201,
-0.0210186802,
0.2137234211,
-0.0134949656,
-0.5275069475,
0.0693257004,
-0.0279790591,
0.0091239829,
-0.1933581531,
-0.6268089414,
-0.0088787479,
0.1031659171,
0.5481149554,
-0.0142838042,
0.1519875675,
0.4092028439,
0.2554835081,
-0.1661253124,
0.2643885016,
-0.030302817,
0.04175248,
0.2514637709,
0.111145772,
-0.1434714049,
-0.0249574687,
-0.1038496718,
-0.3425200582,
-0.0681292489,
0.1332849562,
0.0181020498,
-0.2350535244,
0.0447584167,
-0.4381093085,
-0.1038780585,
0.2934701443,
0.2456232607,
0.2248568833,
0.2331759632,
0.1868966818,
0.2919613719,
0.02027064,
-0.2026334703,
-0.1242303848,
0.1052504703,
-0.1044748649,
0.1108414829,
0.2131982893,
0.1113537475,
0.2996945381,
0.1288212538,
-0.3420158625,
-0.340420723,
0.1220166758,
-0.2721669078,
0.0283037946,
0.24119398,
0.0798238292,
-0.1810231507,
0.1847554445,
-0.2773362398,
-0.0575832017,
0.0720747784,
-0.3603480756,
-0.3543909192,
-0.171596989,
0.1504697204,
0.0036924561,
0.1574965119,
-0.451310873,
-0.0426094495,
0.2559915185,
-0.3391979933,
0.1138053685,
-0.1639285684,
-0.1804628074,
-0.1675999165,
0.1240317747,
0.0814560354,
-0.1796029061,
-0.0717222691,
-0.2841579914,
-0.0085381661,
0.2089587003,
0.1984401792,
-0.15026173,
0.5191945434,
-0.2032292634,
0.5580470562,
0.5535886288,
-0.1875403225,
-0.2054158747,
0.5373872519,
0.126577571,
-0.0352940969,
0.1371374577,
-0.405444026,
0.2556643486,
-0.1492993385,
0.0239107292,
0.4544432759,
0.1228782907,
-0.0366676822,
-0.0533075556,
0.0591707565,
0.0945711061,
-0.0533156358,
-0.4166417122,
-0.2638633549,
-0.1177742183,
0.379018724,
0.2506229877,
-0.0887017101,
-0.0387291834,
0.1767893881,
0.0014023971,
0.0067823734,
-0.0009074693,
-0.0842048451,
-0.5144615173,
0.025190372,
-0.3117558956,
-0.0911138579,
-0.3747566342,
0.1402051449,
-0.103243418,
0.3250384629,
-0.0609505437,
-0.2853428721,
0.2218149751,
0.0576820858,
-0.2218001187,
-0.317121774,
-0.0351766236,
0.097156249,
-0.0542956404,
0.3626118898,
-0.099317044,
0.464838922,
0.086914584,
-0.2966180146,
0.0466388464,
0.1641554087,
0.0355116874,
-0.2589475214,
-0.1809913516,
0.4646166563,
0.450334996,
-0.1478161216,
-0.3648447692,
-0.3587812781,
0.0069056395,
0.1058972627,
0.0639767349,
0.0289983191,
0.1435215324,
-0.3214043081,
0.0080423094,
0.3127241731,
-0.0123360334,
0.4519160986,
0.0811968893,
-0.0262395218,
0.1977171451,
-0.0217954367,
0.1612605453,
-0.3399376571,
-0.102060698,
-0.0194321498,
-0.0510123149,
0.1063096374,
0.0067978352,
0.0667166784,
0.3158479631,
0.1552185863,
0.1025183648,
-0.0363587737,
-0.0600490496,
-0.1964570731,
0.1785124391,
0.0889554545,
0.4353643656,
0.0364249423,
-0.0735301003,
0.0425673425,
0.1256315857,
-0.0914052427,
0.3548739254,
0.0301692672,
0.4449597299,
0.3242438436,
0.2033974379,
-0.0742954537,
-0.3939170241,
-0.3832821846,
0.0276443884,
0.1182150394,
-0.2580775917,
0.2396307141,
-0.2732917964,
0.131136477,
-0.0723118857,
-0.0315211006,
-0.1027370021,
-0.3991472423,
-0.2967226207,
0.3699500561,
-0.2913793623,
0.0173462667,
-0.1271984577,
0.0827431455,
0.1297949851,
-0.1101022661,
-0.3194956481,
-0.1922738552,
-0.1088829637,
0.0139107378,
0.3567506671,
0.2639366984,
-0.1311805546,
0.282769978,
-0.0451867543,
-0.0489706807,
-0.3095549345,
0.3275257647,
-0.2431073487,
-0.285610348,
0.2199108899,
0.1815669388,
0.1619452983,
-0.6107795835,
0.1853189766,
0.0088887727,
-0.293340832,
0.2972556949,
0.2230017483,
-0.0029809535,
-0.15258421,
-0.1341144443,
-0.1398987472,
-0.5762496591,
0.4581656456,
0.1357265562,
0.2581654191,
-0.082565248,
-0.0690139607,
0.0106095672,
-0.2777137458,
-0.0837052017,
0.0277052373,
0.1249314025,
0.100296922,
-0.3619615436,
0.0575923957,
0.0255031232,
0.0281640161,
0.5084941387,
-0.1329765618,
-0.4221982658,
0.4498471618,
0.1196184233,
-0.077738069,
-0.1762278527,
-0.3853223324,
0.0696590319,
0.3960434794,
-0.0083336048,
-0.1137978584,
0.0838601366,
0.2298501432,
-0.0317389816,
0.1729092151,
-0.1163411215,
0.5597532392,
-0.0800673664,
0.2650148869,
0.0567665286,
0.0075934255,
0.2237434387,
0.0908616483,
-0.0370971411,
-0.2848675251,
-0.1019059643,
-0.1746465266,
-0.2492518425,
0.0721041709,
0.1653672606,
-0.051932957,
-0.2720277309,
-0.0721120983,
-0.1612121612,
-0.1755962521,
-0.3624182045,
0.3011760116,
-0.3059144318,
0.087990731,
-0.3111079037,
-0.0841154605,
0.0438527465,
0.0580727756,
-0.0536614694,
-0.2777520418,
0.0659911931,
-0.116064392,
0.0500690714,
0.1661208123,
-0.2029539943,
0.1418600529,
-0.0379836187,
0.2989365458,
0.0233655851,
-0.1710151285,
-0.064299427,
-0.1698568761,
0.147985369,
0.0392508171,
0.2059399784,
0.2348195016,
-0.1164164245,
-0.2022812963,
-0.0036497,
-0.234940365,
0.4400181472,
0.5935145617,
0.3597710133,
-0.3514996171,
-0.17081967,
0.3545523584,
-0.148363024,
-0.0955267921,
-0.1216842383,
0.0697267354,
-0.2168035358,
-0.2290590703,
0.0502096973,
0.2537955344,
0.3231962323,
0.1532001942,
-0.1422911137,
-0.231012702,
-0.4477607012,
-0.0806007758,
0.142668128,
0.1965820789,
-0.505163908,
0.1015681252,
-0.1520389467,
0.217449367,
0.4984900057,
0.7618777752,
0.2852307856,
-0.2908283174,
0.2480544448,
-0.0173351038,
0.4242440462,
0.1194378585,
-0.1531616896,
0.1303174049,
-0.2092984021,
0.0522415079,
0.1517795324,
-0.2608374357,
0.3953028023,
-0.1686435938,
-0.2760573328,
-0.2417636216,
0.499104321,
-0.0435556211,
-0.0124945352,
-0.0739123821,
-0.2426341474,
-0.3518019021,
0.636493206,
0.0889951289,
0.524230957,
0.4776636362,
0.0604503341,
0.5830123425,
-0.1552412361,
0.2822139859,
-0.7763894796,
-0.0235231388,
-0.3103723824,
0.1324638873,
-0.0217110217,
-0.2295860201,
0.232801035,
0.3454682529,
-0.2449897677,
0.006511536,
0.0266154725,
0.0639137775,
-0.0325963236,
0.36282897,
-0.1441188008,
-0.2786219418,
-0.406324178,
0.1032002792,
0.05685433,
-0.3126539886,
0.0303328801,
-0.3509735465,
-0.086548686,
-0.2357482016,
-0.2639684081,
0.4338125885,
-0.071656771,
0.3886190355,
0.2239570618,
-0.0562000945,
0.361551404,
-0.0991532654,
-0.1680011898,
-0.0753624812,
0.0291985646,
0.1506630182,
-0.0272613671,
-0.2743920684,
-0.0218236037,
0.119158417,
0.1346260309,
-0.1488003433,
0.0384192057,
-0.0248725154,
-0.1394094825,
-0.3718870282,
0.2763094902,
0.2076301426,
-0.4314108491,
-0.3709971607,
-0.1943300664,
0.1156332195,
-0.1496699452,
-0.0934761092,
0.1180915236,
-0.0015496839,
-0.2765603065,
-0.3599802554,
-0.0708583891,
-0.2900590003,
0.0538641475,
0.3544165492,
0.2216336727,
0.0431614965,
0.6239026189,
0.241446808,
-0.0021352638,
-0.3211765289,
0.0817208812,
0.3431159556,
-0.4442771077,
0.3989856541,
-0.2075763047,
-0.1646205038,
0.1220539436,
0.0919977203,
0.2258997262,
0.1671590358,
-0.2459680587,
-0.5066786408,
-0.0920285136,
0.330232501,
-0.2621884346,
-0.0244905967,
-0.137858808,
0.2208990902,
-0.355654031,
0.287229687,
-0.2434158623,
0.2291273177,
-0.0172619466,
-0.0485380739,
-0.0581632704,
-0.1316034347,
0.1055702567,
0.0473975204,
0.1401482373,
0.1752718389,
0.0176037177,
-0.1623849273,
-0.1138044596,
0.1333757937,
0.1678048521,
0.1552292109,
-0.2986271679,
0.1163604259,
-0.1770163625,
0.0377226025,
0.1328798383,
-0.3939382136,
-0.0549997687,
0.1374359876,
0.444126904,
0.2775042951,
-0.096765779,
0.1493072212,
-0.1239719763,
0.4012764096,
-0.092971921,
0.2098114043,
-0.1530313045,
0.0011429442,
0.0350744389,
0.198696956,
-0.0442558713,
0.0952137634,
0.5684462786,
-0.194407016,
-0.060728237,
-0.5084903836,
0.2955582738,
0.5219069719,
-0.0011158583,
-0.0422701389,
-0.2038498819,
0.1671244502,
-0.1614584327,
-0.0393574052,
0.3196539879,
0.0164187867,
-0.0983285084,
0.259695977,
0.0950078741,
-0.0378496535,
-0.2987880111,
0.1304665655,
0.1833292246,
0.0727181733,
0.2018179446,
0.6401519775,
-0.3257715106,
0.0498721078,
0.3796496689,
0.1183045357,
0.6063776016,
0.2897161245,
0.1244284958,
0.0713096783,
0.4207835793,
0.0520856269,
0.0774492249,
-0.2015171796,
-0.4815182686,
0.0902985558,
0.2912361622,
-0.1424287111,
-0.1119095907,
0.3422735929,
0.1441446245,
-0.1292784214,
-0.2035947144,
0.3980277479,
-0.160307169,
-0.2040883601,
-0.2676361203,
-0.1337141693,
-0.6331003308,
-0.1815864146,
-0.0812520608,
-0.0243735164,
-0.0915032923,
0.1115611717,
0.0836266577,
-0.2546154261,
0.1198744848,
0.049473986,
-0.0678948909,
-0.2596526146,
0.4679687023,
0.091394417,
0.0372754447,
0.0409072228,
0.1487787366,
0.4960683882,
0.2502405643,
-0.2635152936,
-0.2182385921,
-0.198706612,
-0.1470844001,
-0.0179434251,
0.2585286796,
0.0494270734,
0.1489407718,
0.3585207164,
0.1141107082,
-0.1599734426,
0.0438400581,
0.1822648197,
0.0814702064,
0.1857503653,
0.6384837627,
-0.047794193,
-0.1213484704,
0.2243062705,
-0.1319791377,
-0.2510057986,
-0.6355653405,
0.2918821871,
0.002624186,
0.1969863474,
0.0760704949,
0.0750238374,
0.1019890383,
0.6383276582,
0.0586277135,
0.0899368599,
-0.1036298349,
-0.1408051252,
-0.0365858115,
-0.0300200246,
-0.3730287254,
0.0104072932,
0.1738444716,
0.0966818929,
0.167989254,
0.2986497581,
-0.0251652393,
0.2913762033,
-0.2197567523,
-0.1188329607,
-0.484356761,
0.0687586963,
0.2037035674,
0.0928060561,
-0.1202128977,
-0.1476213485,
0.0684484988,
0.2533196509,
0.0239624158,
0.0903766006,
-0.2485011965,
0.1168628857,
-0.3223130703,
0.1750455201,
0.0504130498,
0.1140333489,
-0.0494048037,
-0.1896668971,
-0.1887529343,
-0.5733938217,
-0.1219350398,
0.4686676562,
0.1284105182,
0.2680279911,
-0.1597729921,
0.1188105419,
-0.2943054736,
0.1210635975,
-0.4128638506,
0.0388880298,
-0.3458369374,
0.2615273893,
-0.1557048261,
0.2354153395,
-0.10956195,
-0.0678942353,
-0.2019301802,
0.0950915217,
-0.2074778974,
-0.3111889958,
0.3760581315,
0.1088022143,
-0.2328531593,
0.4643298388,
0.1188008934,
0.1165846363,
0.2316482961,
-0.3983221352,
-0.0301204436,
0.2543447316,
-0.1892000735,
-0.3222723603,
-0.030695213,
0.1550979465,
-0.1384550482,
-0.0962279961,
0.1503654271,
0.0437867604,
-0.1663366407,
-0.175719887,
0.0138160214
] |
https://github.com/huggingface/datasets/issues/355 | can't load SNLI dataset | I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :)
We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed. | `nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't.
Is there a plan to move these datasets to huggingface servers for a more stable solution?
Btw, here's the stack trace:
```
File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested
return function(data_struct)
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda>
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path
local_files_only=download_config.local_files_only,
File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip
``` | 66 | can't load SNLI dataset
`nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't.
Is there a plan to move these datasets to huggingface servers for a more stable solution?
Btw, here's the stack trace:
```
File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested
return function(data_struct)
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda>
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path
local_files_only=download_config.local_files_only,
File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip
```
I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :)
We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed. | [
0.130448103,
-0.0483648591,
0.0597936884,
0.4217779636,
0.168761,
-0.2157385498,
0.2670191526,
0.0161334202,
-0.0244343039,
-0.10663753,
-0.3873250484,
-0.0008520042,
0.1453941911,
0.4104737937,
0.3283267021,
-0.0848520175,
0.1194740683,
-0.0357168801,
0.0139392735,
-0.1574848592,
-0.3483362496,
0.3196726739,
-0.3757365048,
0.0969098806,
-0.0297649745,
0.0196628291,
-0.2143006027,
0.2622808516,
-0.161168173,
-0.1393923312,
0.4381101727,
0.1644988656,
0.3262891471,
0.0996373445,
-0.000117559,
0.029529782,
0.1056619138,
-0.0870949626,
-0.5640882254,
0.0936505273,
-0.3248426318,
-0.2369278669,
-0.0412268974,
-0.0553939678,
-0.2117434889,
-0.0341278948,
0.0878443494,
-0.1338447928,
0.2620658278,
0.2927175164,
0.1312162429,
0.4570211768,
-0.5215486884,
0.0837672204,
0.0226056874,
-0.1075959653,
-0.1660804749,
0.2811183929,
0.0594209097,
-0.2348733395,
0.158409521,
0.1544827372,
-0.3054078817,
-0.3910258412,
0.1858429611,
0.0251874197,
-0.0524711758,
-0.0781481043,
0.1044320837,
0.2801419497,
0.0698982254,
0.1527643651,
-0.2861178517,
-0.3133838475,
0.0973003283,
-0.0441064648,
0.1898173094,
0.1714381129,
0.1277595609,
0.3028595746,
-0.0501640663,
-0.264403522,
-0.0007003799,
0.2948255837,
-0.1543981582,
0.6570668221,
-0.1417785585,
0.133446008,
0.3431955874,
-0.0286405105,
0.0854433998,
-0.0099403616,
0.0727773383,
0.108363986,
-0.3882723451,
0.0951079056,
-0.1398562193,
0.3578725159,
0.0217694398,
0.3268410563,
0.2466689944,
-0.048289232,
0.0075825518,
0.1901658326,
0.0771292076,
0.190845415,
0.026966637,
-0.232013166,
0.5072236657,
0.2394813597,
0.2719382644,
0.0962706283,
-0.2195157111,
-0.2679291368,
-0.5367234945,
-0.3278501034,
0.0782071501,
-0.2093335539,
-0.1450175196,
-0.1577031165,
-0.0719770789,
0.1155304164,
0.1822850853,
0.2834399343,
-0.0627142936,
0.507602632,
0.1111341938,
0.1902718246,
-0.2350016236,
-0.2010629326,
-0.1571722627,
0.0150193423,
-0.3410459161,
0.3710553646,
0.1181919351,
-0.3645628095,
0.167288065,
-0.0471500196,
-0.146789521,
0.1659794897,
-0.1471506357,
0.3010149896,
-0.0339034498,
0.1608226895,
-0.0406754129,
0.1551696509,
-0.0281718168,
-0.1401587129,
-0.1304617226,
-0.166320011,
-0.1513634175,
-0.3299479783,
-0.0857279003,
0.031014109,
-0.3338065743,
-0.2495881021,
-0.4519356787,
0.0037016629,
0.026770439,
-0.1050220504,
-0.0672886968,
-0.0789625123,
-0.2387856245,
-0.1213365272,
0.306486398,
0.5235174298,
0.2027140856,
-0.3623384237,
-0.2355785221,
0.0376873128,
0.1617935896,
0.6364001036,
-0.1188414097,
-0.4001254141,
-0.1824985594,
0.1775021553,
0.2002286762,
-0.1794867516,
-0.3256945312,
0.2752827406,
-0.361366868,
-0.1439989507,
0.2223536074,
0.1931883246,
-0.1639113128,
-0.0499502532,
0.1892513931,
0.6330450773,
0.1260435283,
-0.0856130272,
-0.4507154226,
-0.3640877306,
0.0047564879,
0.2229628265,
0.1132773235,
-0.0371188521,
-0.1291673034,
0.2309274673,
0.2957026362,
-0.1445369422,
0.0546406023,
-0.0628841594,
0.228771165,
0.275306046,
-0.0180242378,
0.1458809972,
-0.373608768,
0.1601788551,
-0.0156621467,
0.4346553981,
0.0774695799,
0.0404839329,
-0.1789982915,
-0.0094729634,
-0.1319320649,
-0.1548575759,
-0.0453125425,
0.3207745254,
0.2329059243,
0.1456716508,
-0.2976043522,
0.2277681231,
-0.237103045,
0.2496473938,
-0.5744196773,
0.5656716228,
0.1177586839,
0.2276494801,
-0.0114129819,
0.3198733032,
0.0307089668,
-0.135655567,
0.1645553261,
0.0994905159,
-0.3558293879,
0.2359799594,
0.4676786661,
0.0875540748,
0.2638018131,
-0.2606595755,
0.4226090908,
-0.0008726956,
-0.0566705018,
0.016511526,
0.1377948672,
0.5027772188,
-0.1210885644,
0.4202391803,
0.2470625788,
0.2384272367,
0.4183706641,
-0.0620680414,
-0.0541548394,
-0.0759214908,
0.2086903006,
0.243683219,
0.4183528721,
0.4291171432,
-0.4238772094,
0.1012034863,
0.0573866628,
-0.2955074906,
0.0375079215,
0.0305923447,
-0.3085521162,
-0.2286907285,
0.3273905814,
0.4721653163,
0.2052295357,
0.052436538,
-0.0489892215,
-0.0664653704,
-0.1507893503,
-0.567317009,
0.3456598818,
-0.0326571651,
-0.0688788816,
-0.0018093671,
0.2520265877,
-0.0300829113,
-0.6293233633,
-0.0304293446,
-0.0839679018,
-0.0329373702,
-0.2263215929,
0.1976233721,
-0.35921821,
-0.6340146065,
-0.5378745198,
0.0821894258,
-0.3298074007,
-0.5116075873,
0.0921254084,
0.1828788668,
0.0226488374,
-0.0634734482,
-0.0067483163,
0.6645885706,
-0.4301494956,
-0.0604209155,
-0.1470166445,
-0.5190830827,
-0.3770623207,
0.0634476617,
0.3587062061,
0.2007730603,
0.1039774269,
-0.2691945434,
-0.1576092988,
-0.3166328669,
-0.4544120133,
0.0933532864,
-0.0087028304,
0.0978788361,
-0.0349690393,
0.3597622514,
0.1173563302,
-0.1316226572,
0.2207648754,
-0.1457942426,
0.1616684198,
0.309368521,
-0.1411330551,
-0.0629481301,
0.0991662964,
-0.1920924932,
-0.3986885548,
-0.2858094275,
0.1582437307,
-0.4708937109,
-0.0865264758,
0.4178462923,
-0.1209965721,
0.1282299012,
-0.0140493391,
-0.165367946,
-0.0069053681,
-0.1221961826,
0.3401516676,
-0.0845438093,
-0.1688057631,
-0.0179712847,
0.1193795726,
0.2667138875,
-0.0978105366,
-0.5858649611,
-0.0070256488,
-0.0959325954,
0.0875684768,
0.3945234418,
-0.0622655787,
-0.0200651344,
-0.1766350418,
0.0149214612,
0.1136288121,
-0.1519600153,
-0.043490015,
0.1634543538,
0.3132616878,
0.1599600315,
0.2865485847,
-0.0055424506,
0.4817099869,
0.1003508568,
-0.103153944,
0.4657756388,
0.1412286907,
0.1298271418,
0.0549872033,
-0.4065544009,
0.1902965009,
0.0333690532,
-0.3419715762,
0.4272547364,
0.1819272488,
0.1205512434,
-0.3684726655,
-0.2022229582,
0.1697646677,
-0.2676970959,
0.053046938,
0.2985782623,
0.0603095293,
0.0972268432,
-0.1055051312,
-0.0377931185,
-0.1585017443,
-0.0520999655,
0.4101317525,
0.0977635831,
0.0250486452,
-0.2611634135,
-0.0920044333,
-0.5408341289,
0.3158058822,
0.0527637452,
0.2028036118,
-0.0810776651,
-0.0301085506,
0.2543748617,
0.0679180399,
0.2663497329,
-0.1048048437,
0.1423964947,
0.0410786346,
-0.097392261,
-0.492903024,
0.0652064458,
0.1237915978,
-0.0717308298,
0.4792838395,
0.3520559669,
-0.0394815803,
-0.2428179234,
0.1453230679,
0.23052001,
-0.2435869873,
0.0669352785,
-0.1930081397,
-0.5233621597,
-0.1967770308,
-0.1565241069,
-0.1726045609,
0.0737291947,
-0.0955600217,
0.0560565963,
0.0631453022,
-0.1865678877,
0.1151102111,
0.343408823,
0.023311099,
0.2734471262,
-0.1275287569,
0.0795083046,
0.3538227975,
0.1347265691,
0.7317377925,
-0.1766163409,
-0.3419303596,
0.1424736828,
0.3091106117,
0.4259915054,
0.5515434742,
0.0122104902,
-0.0027422751,
0.2469416261,
0.1691743433,
-0.0710201338,
0.0248559415,
0.1896540076,
-0.0271576848,
-0.2438093126,
-0.3387822807,
0.6757810712,
0.1753596216,
-0.0686709657,
-0.0196814351,
0.1879797578,
-0.1997472346,
0.3174862266,
0.1963848919,
1.1126023531,
-0.3865782619,
0.2527158856,
0.475459218,
0.130027011,
0.7861912251,
-0.0476481654,
0.0393130407,
-0.1757760495,
-0.0386877246,
-0.0158695765,
0.1026386768,
-0.2545431256,
0.0931007117,
0.1193128452,
0.3765716255,
0.1462593675,
0.1244836003,
0.1772325784,
0.4552797377,
-0.0149790505,
-0.1715272218,
-0.914706707,
0.0899304375,
-0.0443625301,
0.1974336803,
-0.1149675027,
-0.1363940239,
-0.1437603831,
0.2531208396,
-0.0640764832,
0.3095706701,
0.0926274285,
0.216854468,
-0.309812665,
-0.0930678844,
-0.1108038574,
0.2111048847,
0.4911547601,
-0.1463082731,
-0.2870129645,
0.0100248996,
-0.2619126141,
-0.1846573055,
-0.0040822304,
0.1146592125,
0.2568469942,
0.0299448147,
-0.032214202,
-0.0952629894,
0.2902311385,
-0.29165411,
-0.3434292674,
-0.1409876198,
-0.3479572237,
-0.0593657158,
0.1842231005,
0.1704668105,
0.0988735333,
-0.159289062,
0.043803636,
0.020106677,
0.139715448,
-0.3530652225,
0.1558365375,
-0.2608714998,
-0.0902478918,
0.422477603,
-0.1290140748,
0.2367500961,
0.2137130797,
0.2999236882,
0.041607704,
-0.1443564445,
-0.2040253729,
-0.1250778884,
-0.3493470252,
0.2267746478,
0.0269725826,
-0.2679871321,
-0.1560671479,
0.4593495727,
0.2066570669,
-0.3265990317,
-0.1299114078,
-0.4308765531,
0.0066582463,
0.3610091507,
-0.0963619947,
0.0311281215,
0.3280960619,
0.048095502,
-0.0867451578,
-0.1157348081,
-0.2161812633,
0.0298731625,
-0.2376492172,
-0.0058723683,
0.3596523404,
-0.1470709592,
0.1962189227,
0.1221145764,
-0.0142044295,
-0.2798123658,
0.0494472086,
-0.0729348511,
-0.1754335016,
0.1707997322,
0.258507967,
-0.2010316998,
-0.1681408286,
-0.2821448743,
0.0648477226,
-0.2887360454,
0.0232701786,
0.0604455769,
0.0497076437,
0.1475996226,
-0.168062225,
-0.217060104,
-0.0324631408,
0.4655556679,
0.071151711,
-0.0806488395,
0.2655053437,
0.1415582746,
0.2142724246,
-0.0884356424,
-0.1847549081,
0.0475328304,
0.0450643152,
0.0056979493,
0.2424155176,
-0.2242477536,
-0.1804599762,
0.2852202654,
0.0655075237,
0.6470022202,
0.2247957587,
0.0137373665,
-0.0031778382,
0.0066329413,
-0.138780117,
-0.0193507485,
0.3327871561,
0.0699871629,
-0.2775740325,
0.2848499119,
0.3158892989,
-0.2858685255,
0.0928029716,
-0.0361049846,
0.2029643506,
0.1325010806,
0.2233763784,
0.2039151192,
0.2522880733,
0.159899652,
0.0533145592,
-0.0269816257,
0.3574565649,
-0.0929632708,
-0.2084433585,
0.2846871316,
-0.4164146781,
0.362005353,
0.1814376563,
-0.0925891101,
-0.1739556789,
0.2266272306,
-0.1083586663,
-0.0236722473,
0.0493288487,
0.843877852,
-0.3339235783,
-0.2409929484,
-0.3582418859,
0.6556248665,
-0.2454178482,
-0.2910167277,
-0.5016083121,
-0.1364715993,
-0.1797760576,
0.2041600347,
-0.3215112984,
-0.2917785645,
0.2884033918,
0.2090786099,
-0.0305052996,
-0.6123154163,
-0.1765327454,
0.343459487,
0.1124516055,
-0.1138050035,
0.313647151,
0.0580066703,
-0.2041257471,
0.1188609824,
0.0968799442,
0.3500441313,
0.2010903507,
-0.0146966381,
-0.0477135554,
0.1254766583,
-0.0012670084,
-0.2866494954,
0.1265267432,
-0.0653263703,
0.2059821934,
0.2354421318,
0.0774264038,
-0.0531417318,
0.0560038239,
-0.0051431931,
0.1339711696,
-0.2393791378,
0.2333391607,
0.0041832202,
-0.0370765366,
-0.3344922662,
0.0534910448,
-0.3265331089,
0.1424579769,
0.1018856242,
-0.2222625762,
0.0846441984,
-0.1736570746,
0.0138783893,
0.1851198673,
0.7972930074,
0.3956440389,
0.0028444112,
-0.2536247373,
-0.3362242579,
-0.7480277419,
-0.0303407237,
-0.0455268025,
0.03141037,
-0.0989700481,
0.026458459,
0.0147550451,
0.0864964202,
-0.5139564276,
0.3119209111,
0.0454295911,
-0.1438585222,
-0.2488617748,
-0.0460013524,
0.0006243759,
-0.1093421504,
-0.0308334306,
-0.1851893663,
0.1970297843,
-0.0995514244,
-0.1593066007,
0.0405899659,
0.1372341216,
-0.1498678327,
-0.19605878,
0.3116005659,
0.2188539803,
0.2902205586,
0.0941516533,
-0.1532395333,
-0.399974376,
-0.3762974739,
-0.2154216021,
-0.0351465605,
-0.1620053947,
-0.0105524957,
-0.0265234094,
0.3910284936,
-0.2698165774,
0.1867967397,
0.1291771382,
0.1626283377,
-0.2214717418,
-0.1415459067,
-0.2822155356,
0.0769396424,
0.18282938,
0.3219565153,
-0.1019817516,
-0.1648566574,
-0.0388853252,
-0.2984728515,
0.3104023337,
-0.6674920321,
-0.0051823631,
0.2318100035,
0.1003700718,
0.1905425489,
-0.0044606547,
-0.280321151,
0.0216779616,
-0.0402309597,
0.0536146015,
-0.0572234914,
0.2559002936,
0.2245053947,
-0.2706511617,
-0.2282407284,
-0.2176375389,
0.2312409282,
-0.3037878871,
0.1339837313,
-0.3156906664
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | - `nlp` has MR! It's called `rotten_tomatoes`
- SST is part of GLUE, or is that just SST-2?
- `nlp` also has `ag_news`, a popular news classification dataset
I'd also like to see:
- the Yahoo Answers topic classification dataset
- the Kaggle Fake News classification dataset | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 47 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
- `nlp` has MR! It's called `rotten_tomatoes`
- SST is part of GLUE, or is that just SST-2?
- `nlp` also has `ag_news`, a popular news classification dataset
I'd also like to see:
- the Yahoo Answers topic classification dataset
- the Kaggle Fake News classification dataset | [
0.0527628846,
0.1770246029,
-0.1492281407,
0.2923186421,
0.1770987958,
0.2543239594,
0.2225592136,
0.1188267097,
-0.1443080604,
-0.1214152277,
-0.1536753178,
0.0564632379,
-0.1662918031,
0.1704208404,
0.0837514624,
-0.2406848073,
0.0514726005,
-0.0587839782,
-0.0951607525,
-0.2292532921,
-0.1327494085,
0.2470686585,
-0.1144926026,
-0.2490834445,
-0.3917073607,
-0.0300807729,
-0.1971090585,
0.0825111419,
-0.2330874652,
-0.546654284,
0.1298061758,
0.1312664002,
0.2001409531,
0.3561387956,
-0.0001037212,
-0.240737766,
0.026851913,
-0.0144629795,
-0.1714263707,
-0.1655448824,
-0.2061450332,
-0.5361245871,
-0.022751132,
-0.0801116154,
-0.1275690049,
0.0410607159,
0.0543382652,
-0.2447411865,
-0.0130653335,
0.3233344555,
0.2447051406,
-0.0661869273,
-0.0584238432,
-0.141222015,
0.2988784015,
0.5512337089,
-0.3106320202,
-0.063063018,
0.5326185822,
0.1365835071,
-0.0013362264,
0.309086442,
-0.2009138018,
-0.089044258,
0.1607446969,
0.2195887715,
-0.2908794582,
-0.3853919804,
0.0384693108,
0.3302032948,
0.7269300222,
-0.2991446555,
-0.4356441796,
-0.2929210663,
0.1790420264,
-0.2091691792,
-0.176298365,
0.285081625,
-0.0127937766,
0.1451201737,
-0.1474389881,
-0.233570382,
-0.2125957459,
0.2384116948,
0.2997063994,
0.0945867673,
0.0134553993,
-0.1983968019,
-0.0950293541,
0.1280200481,
0.3503782749,
-0.3807170689,
0.2048947662,
-0.0010363116,
-0.1995960772,
-0.2089157701,
-0.0466032587,
0.0258894209,
-0.0650747791,
0.0100436816,
-0.2320323437,
0.0853958428,
-0.1917661428,
-0.082085222,
0.0305851195,
-0.1031993106,
0.2131820023,
0.3429118991,
0.1036157757,
-0.278793633,
0.1565493047,
0.0335342474,
-0.1759021431,
0.2272804379,
-0.0201550536,
0.0545119308,
-0.1334670931,
-0.2294958979,
0.0464144498,
-0.1172540709,
0.0202060007,
-0.1066796929,
-0.1993537098,
-0.0666343868,
-0.0499971323,
0.1499421299,
-0.1912827194,
0.240620032,
0.0035725208,
-0.4072597623,
-0.1258370131,
-0.0520174019,
-0.1064224541,
0.1718495488,
0.6023260951,
-0.1670334786,
0.1791899949,
-0.1379182041,
-0.1681383401,
0.1534095109,
-0.0766609237,
0.0061889859,
0.0636814982,
0.1282595545,
-0.1471482366,
0.1247720793,
0.1550986469,
0.1334680319,
-0.2032558322,
0.2613937259,
-0.0514775924,
-0.211640209,
-0.2426080555,
0.2461384088,
-0.0127631947,
-0.5387884974,
-0.1642749161,
0.6117172241,
-0.0340470485,
-0.1151470989,
0.1698568463,
-0.0192078091,
-0.0849989876,
-0.1658168137,
-0.0492002666,
0.443048656,
-0.481069833,
-0.2499636114,
-0.3836504221,
0.1358899921,
0.178474009,
0.1647046208,
-0.1955977827,
0.0349020548,
0.0822531134,
0.0167149715,
0.2063206434,
-0.024506107,
-0.2242671251,
-0.0916347206,
0.0819613487,
-0.1140097156,
0.1038505808,
0.3170545101,
0.1133601293,
-0.0756833106,
-0.1596256793,
0.1264418215,
-0.2982211411,
-0.0488292575,
-0.1245085225,
-0.0446393974,
0.2099892795,
0.420758903,
0.4951862991,
-0.0852149278,
0.0735035911,
-0.2081886679,
0.0925954059,
0.0692984685,
0.2265699357,
0.0930779725,
0.1255871952,
0.22164841,
0.0558077209,
-0.3216333985,
-0.2000430971,
0.0503137745,
0.3117825091,
0.3458415866,
0.0033857489,
-0.1304204762,
-0.14601551,
-0.1206996217,
0.0435249135,
-0.0300356727,
0.159637481,
-0.1221903488,
0.1188418344,
0.1875602603,
-0.3006012738,
0.2069496363,
-0.3214774132,
0.3590741456,
0.1875852495,
0.3283416927,
-0.0352601223,
-0.0059968154,
0.1668465734,
0.3152219355,
-0.0311225373,
0.0017883934,
0.011521074,
-0.0421961918,
-0.1521205008,
-0.0378043093,
0.3529797792,
0.376390934,
0.3767843246,
-0.5228680372,
0.2861688733,
-0.0594799593,
0.0689431876,
-0.1887093782,
-0.0736832991,
0.3114968538,
-0.083934404,
0.0817984119,
-0.0040459349,
0.051479198,
-0.0256479997,
-0.0040908214,
0.0368914567,
0.1111273691,
0.2754786909,
-0.1613610387,
0.1710828841,
0.0034514356,
-0.126317516,
0.2079485506,
0.2214198709,
-0.0540878102,
0.179033637,
0.26938954,
-0.4363267124,
-0.0446644053,
-0.0360018685,
0.1678319871,
0.3374682367,
0.4586302638,
-0.0075569842,
-0.0921163112,
0.1000887454,
-0.3318988383,
0.0539445393,
0.3946702778,
0.0238215737,
0.0016801689,
0.2778207064,
0.2433682084,
-0.2611655295,
-0.1199082434,
0.1832583696,
-0.0790406168,
0.0415702127,
-0.0527034588,
-0.0734097511,
-0.3831564188,
-0.0118779726,
-0.060839545,
-0.0911127627,
-0.2869119346,
0.2335093468,
-0.2812654674,
0.1054870784,
0.0937796533,
-0.3011014163,
0.4749561548,
-0.2583185732,
0.0935936347,
-0.0809930339,
-0.2227910906,
-0.2262816578,
0.2644129395,
0.0643129423,
-0.0026943933,
0.4211890399,
-0.0927983299,
0.3203363419,
-0.2678385675,
-0.4691828787,
-0.0161219239,
-0.210110873,
-0.0101741292,
-0.1509815156,
-0.1415692717,
0.0148124397,
-0.1314619631,
0.0011892632,
-0.1384779215,
-0.1376016438,
-0.0223241486,
-0.200647071,
-0.1917314231,
-0.0129955811,
-0.6513699889,
-0.5205703974,
-0.0659395978,
0.0964546725,
0.0098316344,
-0.0208404977,
0.3068899214,
-0.1584119499,
-0.0948944986,
-0.1482902318,
0.0830028802,
-0.072687611,
-0.3189512491,
0.144246161,
-0.1456786692,
-0.1967962682,
-0.0786525905,
-0.0412984006,
-0.1070434302,
-0.0746236369,
-0.5309436321,
0.1441850066,
-0.2685201764,
0.1819953024,
0.1227802187,
-0.1149691269,
0.4368272722,
0.2920849323,
-0.1208612472,
0.0626671687,
-0.1701070517,
-0.119851999,
0.0555912144,
0.1654338688,
-0.2778555453,
0.1061425358,
0.2385754436,
0.5572983027,
0.087777026,
-0.1116388291,
0.0903942734,
0.2851228118,
0.3834929764,
0.0125234062,
-0.462326616,
0.2260672897,
-0.2044538707,
0.1779331565,
0.2970433235,
0.2645270526,
-0.3142874241,
-0.2004948109,
0.1137505248,
-0.2948043346,
-0.0459501967,
0.1783653945,
-0.1388092935,
0.2812419832,
0.0573976301,
-0.1314416379,
-0.2332430184,
-0.453507036,
-0.1118652448,
0.3031827509,
0.2348780781,
-0.155228883,
-0.6461653113,
0.0382987037,
-0.4787887037,
0.0893903673,
0.1747151613,
-0.0781369433,
-0.1947268248,
0.2404092401,
-0.1146249175,
0.4444723427,
0.0193655659,
-0.4512851536,
-0.3338703811,
0.2409870625,
0.0585489795,
-0.0943011269,
0.1333488077,
-0.3841443658,
-0.0655912831,
0.273468405,
-0.0731278807,
0.0967718288,
-0.0122114774,
0.4771540761,
-0.0117730862,
-0.0001745531,
-0.3162125349,
0.3753694892,
0.1242553964,
-0.1765609086,
-0.2105774134,
0.0750049055,
0.0364505984,
-0.2372231036,
-0.019651128,
0.1807057709,
0.0154317096,
0.3284829259,
-0.2906270921,
-0.296087712,
0.2343973815,
0.2130176872,
0.0700451881,
-0.0419206098,
0.2807826698,
0.508470118,
-0.2091923058,
-0.5425741673,
-0.0160922911,
-0.1136773974,
0.5346785188,
0.2124381512,
0.2784399688,
0.2342029959,
-0.1407708526,
-0.1889597923,
-0.1410024464,
0.2169255763,
0.115164578,
-0.0961548164,
-0.4878029525,
-0.3194535971,
0.3196596801,
-0.0789461434,
-0.1006028429,
-0.0245127399,
0.2379218489,
-0.1844980866,
0.1345093995,
-0.1880145818,
0.8308116198,
-0.0646936893,
0.1224527806,
-0.3462645411,
0.0034012697,
0.5688192248,
-0.2504184246,
0.1834023893,
-0.0013319919,
-0.2832993567,
-0.0686312392,
-0.0549052134,
0.009968021,
0.4351371527,
0.0973290727,
0.2558714151,
0.1897925287,
0.2015053332,
0.062480852,
0.1596850753,
0.0927690938,
-0.3814064264,
0.0425375327,
0.2434985191,
0.0195030496,
0.3009162843,
-0.0174935292,
0.0883472264,
-0.2239392698,
0.1797339022,
-0.7378602624,
-0.1611165851,
-0.1183721125,
0.099534072,
-0.0112907728,
-0.3718674183,
0.4561334848,
0.3514238596,
0.5682693124,
0.064914234,
-0.201730296,
0.0309522636,
-0.221161887,
-0.1586838365,
0.1518946141,
-0.1231954694,
0.2417225838,
0.0153145026,
-0.2222799957,
0.1778396815,
0.0042784158,
-0.2087233812,
-0.4498823583,
-0.3305296004,
0.2800062001,
-0.3033124208,
0.3471175134,
0.1718561947,
0.0626684204,
-0.3116729259,
0.1967436522,
0.2942276597,
0.3189516962,
0.1205537319,
0.2112025917,
-0.0315546989,
-0.4240738153,
0.1737752557,
0.2421080023,
-0.2807993293,
0.4127331674,
0.4719040394,
-0.1487905979,
-0.2214156836,
0.2455910295,
0.1872135699,
-0.2705712318,
-0.074196063,
-0.1488350332,
-0.033128798,
0.1928813905,
0.3041175604,
0.3911813498,
-0.2794890106,
0.0188929085,
-0.2333873212,
-0.0565883666,
0.1763999909,
-0.1373326927,
0.0951539204,
-0.2373582125,
0.1373426765,
0.0938089713,
0.2622425556,
-0.3498084843,
0.1299265772,
0.1491362303,
0.0551436171,
0.2374936044,
0.0251935329,
0.1273240596,
-0.2558550835,
0.0349808149,
0.0103956629,
0.0395615399,
-0.2490550578,
0.0759655088,
0.1310136318,
0.0141823087,
0.0220444202,
-0.0599601679,
0.1174068153,
-0.1217668205,
-0.0285256002,
-0.1022373959,
0.1260845661,
0.0579902343,
0.5187696218,
-0.1874863356,
-0.039988596,
0.1310338676,
0.0602215491,
-0.2783370912,
0.400611043,
0.3284614682,
0.1202046946,
0.4760240018,
0.0949272141,
-0.2307257056,
0.176398918,
0.0927720144,
-0.0878398418,
0.606315732,
-0.2409617156,
0.2653621137,
0.4911389947,
0.0821073204,
-0.260422647,
-0.084222272,
0.1215369552,
-0.0134147666,
0.2712398767,
-0.3505737185,
-0.20425497,
0.0193938129,
0.2798812389,
0.0451729856,
0.1955760121,
0.2910691202,
0.0367105491,
0.209291786,
0.1125173941,
0.4954881072,
-0.0687463805,
0.3932680488,
-0.0535320006,
0.1863026172,
-0.0916725248,
0.2409768701,
0.1088313088,
-0.0160725135,
0.2082690895,
0.0718137175,
0.45691365,
-0.1139338538,
0.1205673963,
0.3959606886,
-0.1470079273,
0.3860010207,
0.2909432352,
-0.1010907143,
0.1179049537,
-0.0907843336,
0.2581424415,
-0.2204217464,
0.0017507109,
-0.155417785,
-0.0773873404,
-0.0504073575,
0.0852241814,
0.1088255197,
-0.3221072555,
0.0587651394,
-0.1575821191,
-0.2597849369,
-0.3441852629,
0.2395993769,
-0.1194177195,
-0.2106214166,
-0.6339172125,
0.1954018176,
0.1309529543,
0.3912184834,
-0.1357331276,
-0.0747174919,
0.0918054059,
-0.2612676919,
0.2775427699,
0.5547751188,
0.1446850896,
-0.155287981,
0.0057851453,
0.0479368083,
-0.2726132572,
-0.2029708773,
0.1911281198,
0.2833506465,
0.3340110481,
0.1013443917,
-0.0617235079,
0.1865949929,
-0.0430019982,
0.0830176398,
0.0884816125,
0.0046228948,
-0.3006365895,
0.1651792377,
0.0795320123,
-0.2540398836,
-0.1077444851,
-0.0441869088,
-0.2126709819,
-0.2024780363,
0.5217410922,
-0.1249365434,
0.0119946292,
-0.1216106191,
0.1276408136,
-0.1510780007,
0.1781790555,
0.3320965469,
-0.2001381665,
-0.2637598813,
-0.1479521245,
-0.0320388973,
-0.1874041408,
0.1445919871,
0.1973629147,
-0.2097580433,
0.032924708,
0.2578450441,
0.246088028,
-0.345177561,
-0.0985838696,
-0.0980999097,
-0.0235282797,
-0.5865005851,
-0.1341862828,
0.1548182964,
0.23238267,
-0.0127065564,
0.1974989623,
-0.0983117297,
-0.0172120146,
0.0223832261,
-0.3528048992,
0.1500776112,
0.2342925072,
0.1128523499,
0.1448768377,
0.1082504168,
0.4487562776,
0.0312775224,
-0.1258467734,
-0.095354706,
-0.4393794239,
-0.0311773922,
0.353672415,
-0.0399166979,
0.3450666964,
-0.3038223386,
-0.2439206094,
0.305953294,
0.0560058318,
0.0972973555,
-0.1216288656,
-0.52627033,
0.0174826141,
-0.0159533676,
-0.0718267262,
0.2164773196,
-0.0236601532,
0.0369964764,
-0.1227627546,
-0.0397367999,
-0.3579165339,
0.0555736907,
-0.0923440307,
0.1185165793,
-0.2445088923,
0.0620124787,
0.3544397056,
0.266433388,
-0.624558568,
-0.0098276809,
0.5481740236,
-0.167034775,
0.0315504186,
0.4038210213,
0.1149757281,
-0.0515666232,
-0.0985535532,
0.3903353214,
-0.2673252225,
-0.2338880897,
-0.1389209926,
-0.1567139328
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Thanks @jxmorris12 for pointing this out.
In glue we only have SST-2 maybe we can add separately SST-1.
| We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 18 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Thanks @jxmorris12 for pointing this out.
In glue we only have SST-2 maybe we can add separately SST-1.
| [
0.0815412849,
0.023906121,
-0.1260786504,
0.253737092,
0.2022433728,
0.1909447014,
0.2313455194,
0.128825292,
-0.019694183,
-0.0524677224,
-0.2371734232,
0.0281863455,
-0.0793610662,
0.2284714878,
0.1158255115,
-0.3347228467,
0.0327517875,
-0.0278218295,
-0.2127437592,
-0.1855585277,
-0.1148792356,
0.3360118568,
-0.0453987792,
-0.231126368,
-0.4425387084,
-0.0575625934,
-0.2063390315,
0.066869244,
-0.2878912687,
-0.4556580484,
0.0428927243,
0.1286985874,
0.252089411,
0.2492392808,
-0.0001037809,
-0.216120407,
0.0535999089,
-0.0913084447,
-0.0742770061,
-0.0727210939,
-0.1487201452,
-0.4849986434,
-0.02413816,
-0.1006158143,
-0.2236712426,
0.2096853256,
0.0609342642,
-0.2331153005,
0.0375487842,
0.2961031199,
0.2434537411,
-0.012344175,
-0.0020558224,
-0.1590740532,
0.426073879,
0.3211231232,
-0.3257281184,
0.0370841362,
0.6237726212,
0.0663689077,
-0.0005361061,
0.361764878,
-0.2438281476,
-0.0247034542,
0.1756165624,
0.2001562119,
-0.219398126,
-0.446447134,
0.0715354681,
0.3973944187,
0.6543509364,
-0.2877071798,
-0.3910401762,
-0.3127829432,
0.1366223991,
-0.0791729838,
-0.0994486213,
0.1954576075,
0.0398400649,
0.226511389,
-0.0492472388,
-0.2457196265,
-0.1470465213,
0.2701324224,
0.3945717216,
0.0568460412,
-0.0370777883,
-0.1775101721,
-0.0003607093,
0.1798849702,
0.1766580641,
-0.2836073339,
0.1341860443,
-0.0177957956,
-0.2663388252,
-0.1773581058,
-0.0541214161,
-0.0193155166,
-0.084096536,
0.0844804347,
-0.2451306134,
0.1030392572,
-0.0586196966,
-0.0488161966,
-0.0176191628,
-0.0382055826,
0.2564458549,
0.3307934105,
0.0510781258,
-0.3528571129,
0.1201026961,
0.0050097341,
-0.163153559,
0.1350764483,
-0.065948993,
0.0418739282,
-0.2124115378,
-0.1809258014,
0.0381796733,
-0.14143233,
-0.0032427553,
-0.0555859916,
-0.2538170815,
-0.0165537931,
0.0661202222,
0.1161912978,
-0.1412745416,
0.2230420858,
-0.0193487778,
-0.4236039221,
-0.1252015084,
0.0979865938,
-0.16027008,
0.1528871953,
0.5480710268,
-0.2299818695,
0.1155240983,
-0.2185684741,
-0.2966981232,
0.1594123989,
-0.1556196511,
-0.0610741936,
0.0852683932,
0.2059715539,
-0.1045296118,
0.1281834394,
0.1077968329,
0.0212762617,
-0.2046408206,
0.155788064,
-0.0385623015,
-0.3110812902,
-0.3726724684,
0.2138153464,
-0.1005914658,
-0.4864225388,
-0.1874149442,
0.5722736716,
-0.0236889198,
-0.0310172848,
0.2205071002,
-0.0103253461,
-0.1518807262,
-0.1902374327,
0.0116471909,
0.4308133125,
-0.4707913697,
-0.2307441384,
-0.3453293741,
0.0235165693,
0.0336858556,
0.2410043925,
-0.0922272503,
0.0245777778,
0.0140256947,
0.1602310538,
0.2162274271,
-0.0687095895,
-0.2146431506,
-0.0753492564,
0.0846203566,
-0.1966256648,
0.1634404212,
0.3142952323,
0.2429364026,
0.0132588483,
-0.1556187123,
0.1721234471,
-0.2283506244,
-0.0336173661,
-0.1966409236,
-0.1364067346,
0.1465032399,
0.3985642195,
0.4805237651,
-0.1305698156,
0.0689396113,
-0.3062626123,
-0.0355404094,
0.1058142111,
0.2744995952,
0.1641732454,
0.2053436935,
0.2714707851,
0.1024116427,
-0.4187616706,
-0.2145656943,
0.0550116189,
0.3147018552,
0.4139361084,
0.0726572275,
-0.1219885275,
-0.1317265183,
-0.1913784146,
0.0834057108,
-0.0476078056,
0.1372490674,
-0.1788129658,
0.1703270972,
0.1093634591,
-0.2658053637,
0.2994686365,
-0.2152723223,
0.4264627993,
0.2125779241,
0.3759652376,
-0.0918563455,
-0.1134923026,
0.1790644228,
0.34668082,
-0.0683498383,
-0.0561635271,
0.0313502923,
0.140604049,
-0.2134630233,
-0.0584960356,
0.2669736743,
0.3660672605,
0.3261841834,
-0.5137338638,
0.1703120023,
-0.0794894025,
0.0716539323,
-0.1760180146,
0.0449971817,
0.1891442835,
0.0367132351,
0.1446836889,
0.0058560767,
0.1148123071,
-0.1064946353,
-0.0820764154,
-0.0027084749,
0.1102705672,
0.3042796552,
-0.234464705,
0.3341109753,
0.0095606688,
-0.0775273517,
0.2798493505,
0.1818885058,
-0.0192014184,
0.2518851757,
0.2147262245,
-0.5472898483,
-0.0057125888,
0.0321520045,
0.2584816813,
0.3475608826,
0.5090731382,
-0.04904579,
-0.1478247344,
0.0817446858,
-0.3104184866,
0.0761177018,
0.3464793563,
-0.0318370797,
-0.002207211,
0.2686338425,
0.1926966459,
-0.2491729856,
0.026780853,
0.0885100886,
-0.047076419,
-0.0210078526,
-0.1603133678,
-0.0493501574,
-0.4877556264,
0.012579483,
0.0661215633,
-0.1052723378,
-0.2437973917,
0.2872218788,
-0.3143338561,
0.0283844396,
0.0965954736,
-0.1657503545,
0.4271808565,
-0.2522673905,
0.0750092119,
-0.0557901002,
-0.1706415266,
-0.2362038642,
0.2360295355,
0.0335207433,
0.0894509181,
0.4961578548,
-0.0915072039,
0.3037360311,
-0.2775152624,
-0.5079553127,
0.0609964766,
-0.2328940481,
-0.0041527888,
-0.01715024,
-0.1594959646,
0.135665834,
-0.2140609622,
0.0266101342,
-0.2283364385,
-0.082775712,
-0.0041487417,
-0.2452595532,
-0.2524433136,
-0.1303006411,
-0.6571199298,
-0.5468478799,
-0.1074695811,
0.1612106264,
-0.0874642134,
-0.0005496818,
0.1316721141,
-0.1874061227,
0.0237712134,
-0.2829129398,
0.0646604523,
-0.0692201406,
-0.2697476447,
0.1288060844,
-0.1303966343,
-0.2666117549,
-0.0889949426,
-0.0791965276,
-0.1633376032,
-0.1946293414,
-0.4564133584,
-0.0327096544,
-0.3555341363,
0.145609498,
0.1329135746,
0.0244396478,
0.4918685853,
0.2438690513,
-0.1384391487,
0.0291558411,
-0.2249151766,
0.0785070583,
0.0840616897,
0.2012486011,
-0.2755503953,
0.1582755297,
0.2967654467,
0.4924667478,
0.0400808193,
-0.1015748978,
0.1274571866,
0.1824347526,
0.3775153756,
-0.0146982735,
-0.4498078227,
0.2699256837,
-0.2119079381,
0.2726050317,
0.3029665351,
0.3241713941,
-0.2568628192,
-0.2055161893,
0.1334164292,
-0.2536545992,
-0.1615066081,
0.1577550918,
-0.0627448931,
0.2349365205,
0.018464528,
-0.2019219995,
-0.223552376,
-0.440880686,
-0.0064141499,
0.2707578838,
0.2093398422,
-0.0464639515,
-0.6493404508,
0.0434541181,
-0.46777156,
0.130481869,
0.2208279222,
-0.1084981263,
-0.1914459765,
0.1372617185,
-0.0909464061,
0.4632477164,
0.1011892259,
-0.5415427685,
-0.3169794381,
0.2783176303,
0.0771071091,
-0.2058556378,
0.0643498152,
-0.4311163425,
-0.1318765134,
0.4279150069,
0.0110960351,
-0.0116732949,
-0.0630825385,
0.5058277249,
-0.0420789085,
0.0455500633,
-0.3159422874,
0.3045090437,
0.1805039495,
-0.2231690139,
-0.1821768731,
0.1421313137,
0.0341135263,
-0.0992967412,
-0.0157808401,
0.2213719338,
-0.1403505057,
0.3071538806,
-0.3063746393,
-0.2161122411,
0.1517286003,
0.2439228594,
0.1034976542,
0.029699333,
0.0617586374,
0.5007278323,
-0.2855720818,
-0.37659958,
0.0341982432,
-0.1609441042,
0.51793015,
0.1911655664,
0.2609316707,
0.2677950859,
-0.2097598016,
-0.1387266964,
-0.090520367,
0.2293335497,
0.0915509313,
0.0061896848,
-0.4028663635,
-0.1746912897,
0.3463865519,
-0.0790267363,
-0.067097418,
-0.0885521695,
0.3795875311,
-0.2153227925,
0.1644384414,
-0.2758260667,
0.9699509144,
-0.1210297421,
0.0756633207,
-0.3877991438,
-0.111908704,
0.5903330445,
-0.2048415244,
0.0601717047,
-0.0335943252,
-0.3451658487,
-0.0255097188,
-0.0025068815,
0.0242286101,
0.3962247074,
0.0290653929,
0.3269211948,
0.2837750614,
0.2704974115,
0.0883140489,
0.2414006442,
0.1021609902,
-0.3811486065,
0.1328650266,
0.2328424007,
0.0009433689,
0.3418912888,
0.0296668969,
0.0648416355,
-0.1240690351,
0.1012329459,
-0.7577840686,
-0.2139418274,
-0.3507159352,
0.0436202586,
0.0502853394,
-0.2678444684,
0.4461227059,
0.2037591934,
0.5095026493,
0.1625566781,
-0.242716074,
-0.0011158057,
-0.0816875696,
-0.207399115,
0.2016285062,
-0.0513992608,
0.2647675872,
0.004798227,
-0.1863396466,
0.1751135588,
0.0388052091,
-0.3161413372,
-0.4412827194,
-0.3561671376,
0.2335519344,
-0.3172683418,
0.2348844558,
0.2059267759,
0.0166882053,
-0.3014272153,
0.195097357,
0.2835125029,
0.2865532339,
0.1362300813,
0.0921957567,
-0.0579651296,
-0.3824462891,
0.2452122867,
0.0822055936,
-0.1998981982,
0.2826634347,
0.4651039839,
-0.1968360394,
-0.2266627401,
0.1099112108,
0.1775453389,
-0.2984182537,
-0.0382848717,
-0.1456110477,
-0.2014143169,
0.1186606511,
0.2720453739,
0.4747985005,
-0.2090719789,
-0.0033031465,
-0.126049608,
-0.0483530499,
0.2455236763,
-0.0699734762,
0.1024826095,
-0.2855114341,
0.2113359123,
0.1137874722,
0.312836647,
-0.3668056726,
0.1842243522,
0.1234312057,
0.0576563403,
0.4841398001,
-0.0431312434,
0.1186823472,
-0.2519412041,
0.0317796655,
0.0443168655,
0.0200937837,
-0.2575843632,
0.0291399173,
0.1194110066,
-0.0032427395,
0.0531212166,
0.0714927763,
0.0318921544,
-0.1085828766,
-0.0181499626,
-0.0095391497,
0.0798341036,
-0.0294697545,
0.4629041851,
-0.1698636264,
-0.1433868557,
0.1254790723,
0.1680782735,
-0.3947418928,
0.3452173471,
0.2613274753,
0.0968922749,
0.4265045226,
0.0820402578,
-0.1390733868,
0.1200964674,
0.1277491897,
-0.0818487927,
0.4949888587,
-0.1090953052,
0.1605897248,
0.4223469496,
0.1340919882,
-0.3808861673,
-0.1047190577,
0.1454265267,
0.0053878734,
0.2655996084,
-0.3391371965,
-0.1223410666,
-0.0475141667,
0.1903775632,
0.1569344401,
0.181995362,
0.3001346886,
0.1519843936,
0.227416873,
0.1167026386,
0.5631713867,
-0.0346524231,
0.2836722732,
-0.0869762301,
0.2064457238,
-0.1356347054,
0.2207374573,
-0.0661064237,
-0.0283750799,
0.0988647044,
0.066090256,
0.411575526,
0.0296084136,
0.1415601373,
0.4603031874,
-0.0387732275,
0.3335838914,
0.2953754961,
-0.0643002838,
0.1179011837,
-0.089908585,
0.4574870467,
-0.2523854971,
0.0063300841,
-0.067730926,
0.0525082909,
-0.0469506383,
-0.0037051551,
0.1858673692,
-0.2191386372,
-0.0752634853,
-0.1628288031,
-0.2939460576,
-0.3484767973,
0.4031437039,
-0.0179533716,
-0.1454979777,
-0.5478562713,
0.0214938112,
0.0940945297,
0.3775736392,
-0.1377046108,
0.0390168242,
0.0065056998,
-0.2297263443,
0.2765110731,
0.6441014409,
0.1741456687,
-0.2020913959,
-0.0557714589,
-0.000270775,
-0.2083181292,
-0.1925584227,
0.1811538786,
0.2652171254,
0.2910472453,
0.0529159345,
0.0059722653,
0.1664625853,
-0.090904206,
-0.0215367489,
0.0012129152,
-0.0027708609,
-0.3021707237,
0.2089511752,
0.0820144564,
-0.2682291865,
-0.1788058579,
0.0007871012,
-0.3088904917,
-0.1856471598,
0.464678973,
-0.1991600245,
0.0024086244,
-0.1707442105,
0.1247432306,
-0.1156490147,
0.275651902,
0.3615759611,
-0.1205011755,
-0.2004091144,
-0.1713347584,
-0.0457233377,
-0.2427981198,
0.136439994,
0.1231559813,
-0.2247141898,
0.0433402248,
0.2629945576,
0.2088832706,
-0.2679115236,
0.0609807633,
-0.120219633,
-0.1037461534,
-0.5572155118,
-0.0213993527,
0.2087283134,
0.191658318,
0.0820416063,
0.0517556407,
-0.0353428423,
0.0049040299,
0.0223935358,
-0.2996783853,
0.1943835467,
0.2767237723,
0.0230528489,
0.2054883689,
0.033466287,
0.4271264672,
-0.0015180529,
-0.0768611878,
-0.0870776623,
-0.4335413575,
-0.1251794696,
0.2828866541,
0.030423522,
0.3439724147,
-0.3293581009,
-0.2667040229,
0.2854601741,
0.0275788512,
0.0840164647,
0.0823161751,
-0.5688414574,
-0.0122402953,
0.0258424822,
-0.0636237636,
0.1642417312,
-0.0145256678,
0.0040571867,
-0.1538854837,
-0.1045840979,
-0.5019508004,
0.0492036864,
-0.0985213965,
0.1341044158,
-0.2396982908,
0.1752553135,
0.5417265296,
0.2522427738,
-0.6720555425,
-0.1178064421,
0.478379041,
-0.044126559,
-0.0649474487,
0.5287405252,
0.2061233371,
-0.0119466102,
-0.0930265263,
0.2641490996,
-0.1595568657,
-0.2162480503,
-0.1624890715,
-0.2623985708
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products
Is there an easy way to download kaggle datasets programmatically? If so, I can add this one! | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 26 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products
Is there an easy way to download kaggle datasets programmatically? If so, I can add this one! | [
-0.1458345503,
0.065852277,
-0.1481413096,
0.190245375,
0.3451890647,
0.3538248241,
0.1370036602,
0.0737791583,
-0.1220623627,
-0.0394350812,
-0.2502008379,
0.2587281466,
-0.1631075293,
0.4211381972,
0.0899193138,
-0.1647979766,
-0.0227950681,
-0.0886515528,
0.1359838545,
-0.1430176049,
-0.124998793,
0.1028073728,
-0.0912283435,
-0.227024287,
-0.1792384237,
-0.3646230996,
-0.1602797508,
-0.1030357704,
-0.3790995479,
-0.3690575659,
0.3359174132,
0.1774008274,
0.2373434305,
0.1500299424,
-0.0001078193,
-0.3248597383,
0.0003606653,
-0.1197958514,
-0.3088076711,
-0.1295688152,
-0.1039341241,
-0.5073528886,
-0.0890805423,
-0.2598695457,
0.0910554901,
-0.0354645737,
0.0495942309,
-0.2475444973,
-0.0602005608,
0.2949467301,
0.2045823932,
0.0185295306,
0.0701868683,
-0.187849164,
0.3340871632,
0.4829711616,
-0.2553500831,
0.0124023529,
0.4633092582,
0.2070603371,
0.1856566668,
0.2027295381,
-0.3064490259,
-0.1065171883,
0.2755381167,
0.1125841141,
-0.3106139898,
-0.4856225848,
0.1785596758,
0.4579692483,
0.9703216553,
-0.4533036351,
-0.5060069561,
-0.3497487307,
0.2375039607,
-0.1525403708,
-0.3129492402,
0.5556716323,
-0.0784912929,
0.0007062972,
-0.1585118324,
-0.4362515211,
-0.153334558,
0.1665377468,
0.2362734824,
0.3287396729,
0.0704032555,
-0.2436538935,
0.081175603,
-0.0162672773,
0.5947264433,
-0.3934555948,
0.1303330064,
0.0336791947,
-0.2174791098,
-0.2010197043,
-0.1059347019,
-0.0421087667,
0.0622149743,
0.0863995776,
0.0007822049,
0.1940435171,
-0.1398468614,
-0.1695522964,
0.0122073777,
0.0201015975,
0.2767164409,
0.3368700445,
0.0530988537,
-0.0473927483,
0.2718041837,
0.0226453859,
-0.3008702993,
0.1779800653,
-0.0927955955,
0.0095042447,
-0.2158109844,
-0.1667106897,
-0.1336227953,
-0.2264620513,
-0.1438031644,
-0.0931730494,
-0.2892287076,
0.1214970872,
-0.1194737479,
0.0921549723,
-0.0870982409,
0.2747786045,
-0.1070150211,
-0.3732473254,
-0.0636870712,
0.101596579,
0.2123429626,
0.012510011,
0.388656944,
-0.3078108728,
0.2903839648,
-0.2664628029,
-0.0588187426,
0.0681074187,
0.0345645435,
0.055917874,
-0.3313589394,
0.1262033433,
0.0896907225,
0.0198181197,
-0.0611537807,
0.0645947009,
-0.2371139973,
0.22978957,
-0.0074014617,
-0.2494551241,
-0.1083723232,
0.189838171,
-0.0466045402,
-0.6931467056,
-0.3446308374,
0.4325671792,
-0.0215862896,
-0.0997882634,
0.1143113971,
0.0151208993,
-0.0687840655,
-0.2183512151,
0.0221005715,
0.4878206849,
-0.4603775442,
-0.2505888641,
-0.2430830002,
0.0543339998,
0.0991814137,
0.0070488029,
-0.0971063375,
0.3354073465,
0.0367297418,
0.0289711896,
0.4266470373,
-0.1561396718,
-0.2334922403,
0.0047492827,
-0.0274880882,
-0.1572906077,
0.1542438418,
0.4053140283,
0.0540758893,
0.0954791307,
-0.1891801655,
0.2154069543,
-0.147028327,
-0.0636374801,
-0.0311039537,
-0.2104395777,
0.1887799501,
0.4533603787,
0.5115641952,
-0.1417906731,
0.1126803681,
-0.0789699405,
0.2047274858,
-0.0264048092,
0.1127468571,
0.1084836051,
0.1476399601,
0.2481900454,
0.0519464947,
-0.184495613,
-0.3535893857,
0.188229233,
0.1195324659,
0.1798559725,
-0.1976395994,
-0.2929626107,
-0.1732514501,
-0.0184199177,
-0.0598591417,
0.0343751758,
0.0665083975,
-0.1729310602,
0.2459305227,
0.2049804479,
-0.0696806386,
0.2434432656,
-0.2629665136,
0.3557042778,
-0.0191288535,
0.176537171,
0.03242388,
0.1675956398,
0.1569021493,
0.1811336279,
0.0304621663,
0.0196964499,
0.0671712756,
0.0794845298,
-0.0288240723,
0.2057453394,
0.3982347548,
0.240958631,
0.3269944489,
-0.3789921105,
0.3036174178,
0.0010745266,
0.1522791684,
-0.1356870383,
-0.2688926756,
0.3572219312,
0.0751193091,
0.0856948793,
0.0338315442,
0.173784852,
0.0815223306,
0.1841051728,
0.2052220404,
0.1305984855,
0.2918301821,
-0.2030846477,
0.3116688132,
-0.2133225352,
-0.2172530144,
0.3556895554,
0.1185146272,
-0.1999642998,
0.1966108978,
0.1007309109,
-0.3290805817,
0.0510092527,
0.160709545,
0.1727669984,
0.1420185417,
0.4380432367,
-0.0073878095,
-0.0723128095,
0.1096049026,
-0.2723276317,
0.0723107532,
0.3957445621,
0.1148917675,
0.0230934341,
0.2149344832,
0.1084583849,
-0.2109976858,
-0.0760431737,
0.1719284058,
-0.0094923684,
-0.0051255748,
-0.1017904878,
-0.0998299718,
-0.3285649717,
-0.1100290343,
0.1521979421,
0.0331787094,
-0.3579834998,
0.1127662137,
-0.1880218685,
0.0209954511,
-0.0725446343,
-0.3703674674,
0.5109132528,
-0.2676704228,
-0.1653889418,
-0.0368973874,
-0.3092894852,
-0.1858092695,
0.1964373738,
0.2492018938,
-0.0065032984,
0.4684088826,
-0.1205241904,
0.4063920081,
-0.4003466666,
-0.4549331963,
-0.0711320043,
-0.0402048118,
-0.1495886743,
-0.0947708338,
0.0039898879,
-0.0539056994,
-0.1878837943,
-0.142169416,
-0.0577222854,
-0.1958381981,
-0.0704630241,
-0.0550239943,
-0.3058833182,
0.0188404415,
-0.7203146815,
-0.5714179873,
-0.0859820172,
0.1243745312,
0.0709803775,
0.0216838848,
0.0199500378,
-0.0857778788,
0.0222124867,
-0.1208947822,
0.1738441437,
0.1174017787,
-0.0295298044,
0.2599437237,
-0.0651601702,
-0.3358579874,
0.0561506115,
-0.0589567609,
-0.1528322697,
0.1433832943,
-0.6533876061,
0.2787918448,
-0.1593821645,
0.2507081628,
0.0915816948,
0.0094200205,
0.3900661469,
0.3259741068,
-0.0046840697,
0.0481488891,
-0.2004247904,
-0.0664400756,
0.0186326075,
0.1881432533,
-0.2580964267,
0.1479079425,
0.2330838889,
0.7644214034,
0.1004631892,
-0.0396003872,
0.0041066394,
0.1000654772,
0.2880668342,
0.1741346866,
-0.3623057902,
0.0765026957,
-0.2538993359,
0.1947876811,
0.2485783249,
0.2329380214,
-0.4174832404,
-0.3761480749,
0.0852968991,
-0.3985084593,
-0.0593185015,
0.020070238,
-0.1571810246,
0.250010401,
0.156901598,
0.1980458796,
-0.3067079484,
-0.3829732835,
-0.0076109921,
0.0950432494,
0.0403237753,
-0.0855692923,
-0.6600496173,
0.0852118954,
-0.4546727538,
0.3500307798,
0.2858998179,
-0.0139333531,
0.0228564516,
0.0968736708,
-0.0129579557,
0.1042200699,
0.3377256393,
-0.4176977873,
-0.1463477314,
0.1085479558,
0.1544066966,
-0.2899885178,
0.0166512914,
-0.421819061,
0.0120445499,
0.1763530374,
-0.1067231148,
-0.1369769573,
0.1208309308,
0.1174420193,
0.0953432471,
-0.1275433004,
-0.1310062706,
0.2609821856,
-0.192181021,
-0.2475021631,
-0.1067177728,
-0.1915421933,
0.1351096481,
-0.2206448913,
0.1119871289,
0.0871137455,
0.1021276265,
0.2077429742,
-0.3882969618,
-0.1546429992,
0.3388713598,
0.2146315724,
-0.0203533806,
-0.0908816233,
0.2794803679,
0.73523736,
-0.2495377064,
-0.6877534986,
-0.2033217996,
-0.0593377165,
0.3713297546,
0.2866710424,
0.3106375039,
0.1781734973,
0.0452679619,
-0.1820603609,
-0.0866231695,
0.2527275085,
0.1468856484,
-0.2068832368,
-0.4491499364,
-0.4511359334,
0.4768799245,
-0.0468300171,
-0.0066020596,
-0.0308257658,
0.0884353444,
-0.1857964247,
0.0796734765,
0.0334796682,
0.8832522035,
-0.0965518355,
0.1206951663,
-0.2108294815,
-0.2397921532,
0.6575297117,
-0.3693644106,
0.1451694518,
-0.0319654606,
-0.1078589857,
-0.1583985686,
-0.0057650702,
-0.0660471395,
0.2764969766,
0.0986421779,
0.2545511127,
0.1750444472,
0.2646405101,
0.1889284998,
0.2676707804,
-0.2133772671,
-0.3211889863,
-0.0217803121,
0.2072971016,
-0.0450464264,
0.3466683328,
-0.0601663329,
-0.0404977612,
-0.2185212523,
0.0740632191,
-0.6114406586,
0.0503233783,
-0.1113560721,
0.2592779696,
-0.1681751609,
-0.3132205606,
0.311578691,
0.3959935606,
0.4740002751,
0.1545552015,
-0.2781147063,
0.0338786952,
-0.1677888334,
-0.2845948339,
0.2685397863,
-0.1171771064,
0.2070042193,
-0.091629304,
-0.1466668397,
0.1773543209,
0.0102858404,
-0.093631722,
-0.2707795799,
-0.2812492549,
0.0278404523,
-0.2544703484,
0.0718577504,
0.2199274898,
0.0607452728,
-0.2442300022,
0.1158014014,
0.2720437646,
0.3126239777,
0.1492729336,
0.1311454177,
0.0426632576,
-0.4036288261,
0.3365068734,
0.053792268,
-0.2013224065,
0.365955025,
0.3573598266,
-0.2291143835,
-0.1734788269,
0.2591618299,
-0.0151896114,
-0.255202502,
-0.0624835603,
-0.1510736644,
0.1275449544,
-0.0006346017,
0.295442909,
0.3267215192,
-0.244972989,
0.0683486685,
-0.2670618594,
-0.0456876233,
0.3528864682,
-0.0263613295,
0.1615920663,
-0.0568491817,
-0.0070582689,
0.0637389496,
0.1684006155,
-0.2951265872,
0.2014486194,
0.0457094014,
-0.1295144409,
0.1684553474,
0.1904902905,
-0.0736700445,
-0.1628781557,
-0.0309058148,
0.0137710962,
-0.141517967,
-0.1543597281,
0.0864758939,
0.1561499387,
0.0004629024,
0.061599154,
-0.0054318379,
-0.1991834044,
-0.1987437904,
-0.0280102156,
-0.0401108973,
0.0799316913,
-0.0388809219,
0.2800905406,
-0.0518557951,
0.2226855904,
-0.1991784275,
0.1217427403,
-0.2136321515,
0.1685870588,
0.3860095739,
0.1973817199,
0.417941004,
0.1422142088,
0.0235012006,
0.097543627,
0.284940958,
-0.2350792438,
0.6867841482,
-0.2889361978,
0.259244889,
0.3534524739,
0.0812410191,
0.0852921382,
-0.1868264675,
0.2281636596,
0.2342265695,
0.1856686622,
-0.5083346367,
-0.3514141142,
-0.0117295887,
0.2154450566,
-0.0015334775,
0.1440442801,
0.3221588731,
0.0514776558,
0.1890987605,
0.1879585981,
0.4547483027,
-0.0768007487,
0.4784496427,
0.2017868608,
0.1357189268,
-0.0542970002,
0.1197224185,
0.2849607766,
-0.0193884689,
0.2118199915,
-0.0686848536,
0.539616704,
-0.1689621359,
0.1156091094,
0.362509191,
-0.4359865189,
0.3034898937,
0.2183661908,
-0.0631245077,
0.1779619455,
0.0134651354,
0.3344655335,
-0.2260021716,
0.0742386431,
-0.2706794739,
0.0230936576,
-0.0754787922,
0.1115897894,
-0.0258199461,
-0.4800799787,
0.1415526122,
0.0542164445,
-0.0710734501,
-0.6137162447,
0.0098598022,
-0.1722026169,
-0.1956639886,
-0.4460479021,
0.1265331954,
0.0475831665,
0.4512727559,
-0.2456587851,
-0.2158623487,
0.2288339883,
-0.2907606363,
0.0318140797,
0.4591095448,
0.2172703147,
-0.0518819392,
-0.1536592394,
0.0496249273,
-0.0833989009,
-0.1502200216,
0.2596853971,
0.3501442075,
0.3649345338,
-0.0309640076,
0.223976016,
0.1064254567,
-0.0772901252,
0.2208937556,
0.2014786601,
0.0658397153,
-0.2684997618,
0.1456178576,
-0.0097036092,
-0.2128191143,
-0.1392197758,
0.0354054831,
-0.2620571256,
-0.1173943132,
0.3134702742,
-0.0482907332,
0.0353489295,
-0.1118344441,
0.1048951298,
-0.0433283374,
0.3734111488,
0.3794987798,
0.0498738773,
-0.1925771087,
-0.0144014088,
-0.1483945549,
-0.2592771649,
0.1028717235,
0.0508900248,
-0.1302158833,
-0.0016712483,
0.2697881758,
0.2477406859,
-0.3533950448,
0.0241537187,
0.2377679646,
0.1335594505,
-0.531668365,
-0.1569871455,
0.3332623243,
0.0851758569,
0.0234203879,
-0.0445227288,
0.0223555267,
-0.2352216691,
-0.0853208676,
-0.2908900082,
0.1221308708,
0.1611090153,
-0.0532049015,
0.3564683497,
-0.2169415951,
0.5409762859,
0.018422965,
-0.0958151445,
-0.1442964077,
-0.2210027277,
0.0111722108,
0.2358665764,
0.1549034864,
0.2718774676,
-0.3232609332,
-0.1143456399,
0.359590441,
-0.0222014841,
0.1469315886,
0.0603661574,
-0.4647149146,
-0.1330140233,
-0.2570711672,
-0.1377786696,
0.2574695349,
0.0037063903,
-0.04551116,
-0.2148299962,
-0.1155496314,
-0.3864070177,
0.1926059872,
0.0864057392,
0.1266182661,
-0.2853851914,
-0.009645408,
0.3591629565,
0.255002439,
-0.4740016162,
0.22040461,
0.4707941413,
-0.1923099756,
0.1209469885,
0.4455164373,
-0.0076178811,
-0.1122059003,
-0.1521121264,
0.5035298467,
-0.2934395969,
-0.2272112072,
-0.2597520947,
-0.2480330616
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle.
@thomwolf , @lhoestq | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 16 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle.
@thomwolf , @lhoestq | [
0.0363272019,
0.1208183989,
-0.1671025306,
0.2490487844,
0.2784864604,
0.2174418867,
0.2918267846,
0.0586766265,
-0.0694200024,
0.0894203857,
-0.0749871507,
0.2429372221,
-0.2216520905,
0.1872980148,
0.1075435802,
-0.2674972117,
-0.0024415809,
-0.064557083,
-0.0585647561,
-0.1949669272,
-0.1161489114,
0.2323863953,
-0.1021068916,
-0.2988004088,
-0.3894096315,
-0.1188439876,
-0.1741249561,
0.2031070292,
-0.3696795106,
-0.5515016317,
0.0710658655,
0.1108715236,
0.2446143627,
0.3044233024,
-0.000100496,
-0.2866236269,
0.1290524006,
-0.0962059349,
-0.2718328238,
-0.1548327953,
-0.1398432553,
-0.5224169493,
-0.0034974657,
-0.170283258,
-0.0646549389,
0.0960621983,
-0.0102263065,
-0.152455017,
0.0233405642,
0.374604702,
0.2843891084,
0.004537378,
-0.0091260588,
-0.3068843484,
0.3988080919,
0.3493150771,
-0.287260592,
0.0362683535,
0.625110507,
0.1298024058,
-0.0595828891,
0.3732941747,
-0.2840686142,
-0.0756154656,
0.1847099811,
0.1710985601,
-0.0633509606,
-0.4465400577,
0.1536754221,
0.3627844751,
0.8537474871,
-0.3193744123,
-0.2965326309,
-0.3729114234,
0.1825646758,
-0.2185399681,
-0.0184800979,
0.1393241137,
-0.0681616142,
0.0716142058,
-0.0426279046,
-0.2444668114,
-0.1498306543,
0.2160183638,
0.0402440913,
0.3208630085,
-0.0304149445,
-0.3652463257,
0.0909143761,
0.1313058138,
0.4276686609,
-0.25415048,
0.0599308982,
-0.0015200598,
-0.2455902398,
-0.1704475731,
-0.0023831264,
-0.1185171008,
-0.0255971495,
0.1150279567,
-0.1519063711,
0.1014916152,
-0.1292259246,
-0.106026724,
-0.0125244595,
0.1141974479,
0.1958247423,
0.3053247035,
0.1475716978,
-0.0988140106,
0.1847094595,
0.0457949117,
-0.2336812466,
0.1358568072,
-0.03573367,
0.0952234939,
-0.2831826806,
-0.0848115906,
-0.0323267691,
-0.0517271422,
-0.0495887212,
-0.163425982,
-0.2022052407,
0.1117960587,
-0.0234020613,
0.1728324592,
-0.1526250094,
0.2224625498,
0.0433589108,
-0.3606479764,
-0.1383422464,
-0.027421141,
-0.0917267278,
-0.0014238397,
0.5291513205,
-0.1442970932,
0.2326456904,
-0.2287690938,
-0.135825336,
0.1641442925,
-0.0226339027,
0.0378940403,
-0.0145482691,
0.2572908998,
-0.006130279,
0.1331598908,
0.0336545557,
-0.067339398,
-0.2038237751,
0.2830097675,
0.0436704196,
-0.3164168298,
-0.2934391797,
0.2884788215,
0.0269855112,
-0.5546089411,
-0.176325649,
0.5332192183,
-0.0657944083,
-0.0989344269,
0.2336565554,
0.0619950518,
0.0190877598,
-0.1440947652,
0.0625900179,
0.3794982135,
-0.4466327131,
-0.1556040645,
-0.3843355179,
0.0678204522,
0.1779547632,
0.1370629668,
-0.1412976831,
0.1038011387,
0.0061650868,
0.0018524867,
0.3576289117,
-0.2106909603,
-0.2597450614,
-0.097308971,
-0.0325314961,
-0.1417058855,
0.2275727838,
0.2446391732,
0.2304920703,
0.0032839251,
-0.2420408577,
0.1514582485,
-0.2314140648,
0.0088745607,
-0.1517030746,
-0.1266579479,
0.1738824844,
0.4673374891,
0.5211065412,
-0.2039025575,
0.0964089856,
-0.1027053818,
0.1300777048,
0.0645819455,
0.1819979846,
0.1078509167,
0.0502416864,
0.2105703056,
0.1069569811,
-0.2524810135,
-0.3206232488,
0.0419506207,
0.2923543155,
0.4220080078,
0.0574042834,
-0.1772573888,
-0.2055796832,
-0.0860820636,
-0.0594475865,
-0.1151983142,
0.1802356243,
-0.1373232007,
0.0746805221,
0.2228441089,
-0.2554361224,
0.1196094453,
-0.2633062005,
0.3440307975,
0.1384393871,
0.1995769143,
-0.1859366596,
0.038600035,
0.1123186722,
0.3069337904,
-0.0818976015,
0.0136685688,
0.0554978848,
-0.045796521,
-0.1088723466,
-0.0359765589,
0.380327642,
0.3463963866,
0.4430668354,
-0.3643418252,
0.2564747334,
0.0166177712,
0.1205730662,
-0.1962997615,
-0.1523724347,
0.1953106374,
0.1451337337,
0.1179496124,
0.0073437928,
0.0682803839,
0.0312687792,
-0.0739850029,
0.1388143301,
0.0883897915,
0.3093251884,
-0.1635050625,
0.2068690658,
-0.0220921468,
-0.1827759892,
0.2687953413,
0.2085867822,
-0.1141011417,
0.2883538604,
0.1803228259,
-0.4136097729,
0.00286188,
0.0334143527,
0.1817579567,
0.1602045745,
0.4741150141,
0.0715277717,
-0.1295448393,
0.1909534484,
-0.4396858513,
0.0570935272,
0.3365571797,
0.0779421479,
0.1949089915,
0.2889702022,
0.1609756798,
-0.2529125214,
-0.0739218593,
0.1869309396,
-0.0621048398,
0.0964878872,
-0.1228911653,
-0.1473362297,
-0.4734416008,
0.0098390812,
-0.0316348188,
-0.263412118,
-0.3572676778,
0.2397591919,
-0.186323747,
-0.0097322464,
0.1090917438,
-0.203861624,
0.4440691173,
-0.3063392341,
0.0034322524,
-0.1450698972,
-0.2510156035,
-0.2677838504,
0.2888260782,
0.1671511233,
-0.0761385486,
0.4527228177,
-0.1395814717,
0.3039370179,
-0.2922317386,
-0.5026999116,
0.0818640888,
-0.1006455794,
-0.1514421403,
-0.0796728432,
-0.2038019747,
0.0558105931,
-0.1321372688,
-0.0117890136,
-0.1040631011,
-0.1461092979,
-0.1323850751,
-0.1588015705,
-0.169904232,
-0.0905092582,
-0.6321280599,
-0.4981152415,
-0.1765124798,
-0.0205676164,
0.0031173453,
0.039500054,
0.0527025573,
-0.2293874472,
-0.031261608,
-0.1561787874,
0.1062037498,
-0.0379837118,
-0.1608326584,
0.1060855165,
-0.1881791204,
-0.2769781947,
-0.0139444834,
-0.0938120037,
-0.0592464954,
-0.2440547347,
-0.5775508285,
0.0116817802,
-0.1460656226,
0.1350506544,
0.0823445916,
0.0149559379,
0.4460033476,
0.3186324835,
-0.1670173556,
0.0728070885,
-0.1841628253,
-0.0408813991,
0.0871329233,
0.3037726283,
-0.3289526403,
0.1120523363,
0.1990929693,
0.6252949238,
-0.0762831271,
0.028629085,
0.127746731,
0.1458063871,
0.3261948526,
0.0009281004,
-0.3885500133,
0.2392320186,
-0.1540059596,
0.1448470801,
0.3402160108,
0.2440494746,
-0.4113265872,
-0.3100477755,
0.0058302497,
-0.3088419437,
-0.1392024755,
0.2457526624,
-0.1219132692,
0.1020709872,
0.0751668662,
0.0301388148,
-0.1549420655,
-0.4110212028,
-0.0093679493,
0.3312242329,
0.0705698282,
-0.1585751325,
-0.5272672772,
0.0967199355,
-0.5372107029,
0.1099709123,
0.2433337122,
-0.1414556652,
-0.1414814889,
0.0674251169,
-0.0124096759,
0.2497189194,
0.2316854745,
-0.3759277761,
-0.3057524562,
0.2944363058,
0.0295408797,
-0.0160268191,
0.0980089307,
-0.4195675254,
-0.1425141692,
0.3507796824,
-0.2209923416,
0.0498564802,
-0.0149004394,
0.3752948642,
-0.0834887996,
-0.0421894863,
-0.2808257937,
0.2156101465,
-0.0121065024,
-0.3490276635,
-0.0925699621,
-0.0554533713,
0.1127371863,
-0.2458268255,
-0.0381894186,
0.227960065,
-0.0590564534,
0.257951498,
-0.2162375897,
-0.263513118,
0.2018700391,
0.1389271021,
0.107913889,
0.1332260668,
0.3016780615,
0.5075220466,
-0.2157352865,
-0.3669586778,
0.0352635868,
-0.1764231324,
0.442898035,
0.2902788222,
0.3332870901,
0.2164188474,
-0.1570171118,
-0.1707198471,
-0.1184295416,
0.1177887842,
0.1813750565,
-0.1047725156,
-0.4715118408,
-0.2676585913,
0.4235583842,
-0.0750061572,
-0.0745219812,
-0.0366297662,
0.1526158303,
-0.2258867621,
0.0945145637,
-0.0756776929,
0.9857668281,
-0.0546135679,
0.1973146796,
-0.2663497329,
-0.048939541,
0.5359597206,
-0.3048808575,
0.2788440883,
-0.1173874959,
-0.1341162622,
-0.0623151027,
0.0381364673,
-0.0863123238,
0.2807739377,
0.0571570396,
0.2046217173,
0.1323182285,
0.2306623906,
0.0560076945,
0.2629806995,
-0.1214092076,
-0.4137178957,
-0.0063282289,
0.2581974566,
0.1662630141,
0.3738595545,
-0.0688864067,
0.0217225607,
-0.227491796,
0.0718558952,
-0.6199694872,
-0.0948184133,
-0.2102098018,
0.035534706,
-0.0633568838,
-0.3951877058,
0.360265702,
0.2881469131,
0.4655899704,
0.0671775043,
-0.1785435826,
0.1044783667,
-0.1090023518,
-0.1447928399,
0.2486452907,
-0.087402977,
0.2993195653,
-0.1255788207,
-0.16341874,
0.2403901815,
0.0138765322,
-0.2040073127,
-0.3762983382,
-0.1987235695,
0.1692376882,
-0.186186552,
0.3645671904,
0.1886492074,
0.0109084714,
-0.2813081741,
0.2248248309,
0.2207090855,
0.242547825,
0.1298387796,
0.0734993219,
-0.0061555449,
-0.4221653938,
0.2767053545,
0.1592307687,
-0.2599051595,
0.3653331995,
0.4951322973,
-0.1639519334,
-0.3070435524,
0.1767654419,
0.1588032991,
-0.1803541332,
0.0462112986,
-0.1370422244,
-0.1898176074,
0.1539030224,
0.4831221402,
0.4475254118,
-0.2244648784,
-0.0222325884,
-0.154166922,
-0.136588946,
0.2057543248,
-0.1310404986,
0.0642395839,
-0.3104790449,
0.1135819107,
0.110672079,
0.2138184756,
-0.4183432758,
0.1057854444,
-0.0026917569,
-0.0010271403,
0.2698206604,
0.0371616147,
0.1687708944,
-0.1148048267,
0.0779274479,
-0.0281156413,
-0.0769265965,
-0.297421664,
0.0503068715,
0.0981893912,
0.0278769918,
0.0624201968,
0.0130271539,
-0.0557430126,
-0.1584129184,
0.0195387229,
0.0429110751,
0.0156411845,
0.0653072447,
0.3806164861,
-0.1765005738,
-0.003834941,
0.0767050534,
0.150621295,
-0.2631677389,
0.3517304063,
0.2140647769,
0.1563253105,
0.4049960673,
0.1145724431,
0.1018358171,
0.1170222685,
0.0556378402,
-0.1151007265,
0.5720159411,
-0.1836517751,
0.2140288502,
0.5334522128,
0.129741326,
-0.1990554482,
-0.19633542,
0.087670587,
0.1470392942,
0.3044624627,
-0.3589920402,
-0.2522805929,
-0.0753878802,
0.2254797667,
0.0856961682,
0.117159225,
0.3760239482,
0.0447910465,
0.1790889204,
0.2037142366,
0.4474938214,
-0.0895669535,
0.3262722194,
-0.0159412753,
0.0945715532,
-0.0161842853,
0.2691628933,
0.0805522054,
0.0295745675,
0.2775475085,
0.0727244765,
0.533880949,
-0.1040646434,
0.1475655735,
0.404324919,
-0.2420401275,
0.3320989609,
0.2094635814,
-0.0561635345,
0.1176556796,
-0.0231851097,
0.3225649893,
-0.2496721894,
0.0185771696,
-0.2316115201,
0.0487242229,
-0.1139775217,
0.1500730366,
-0.0096638883,
-0.376727879,
0.0208677072,
-0.0294173378,
-0.2372244,
-0.3354695439,
0.1512867808,
-0.0750351474,
-0.2642962635,
-0.5378636122,
-0.0051313732,
0.01716692,
0.3859814107,
-0.2130104303,
-0.0802976564,
0.2222642303,
-0.2817746699,
0.2070703506,
0.5161466599,
0.2406761497,
-0.065021053,
-0.1272562742,
-0.1005326435,
-0.2148469388,
-0.1743793786,
0.1005885005,
0.3649820983,
0.4146254659,
0.0134758996,
0.0421178676,
0.1669243574,
-0.1491862088,
0.0155160129,
0.2422217727,
-0.094797492,
-0.0975522324,
0.1830942184,
0.1417444795,
-0.2188385725,
-0.2323553264,
0.0394623317,
-0.3943840563,
-0.0144926272,
0.4232041836,
-0.0835353211,
0.0879915506,
-0.1966638863,
0.14083606,
-0.0525408164,
0.3778321743,
0.3114268184,
-0.0616152436,
-0.1288604438,
-0.1837223023,
-0.1686690301,
-0.1467709243,
0.1684228778,
0.168329522,
-0.1748133898,
-0.0063795801,
0.2265816033,
0.2520139813,
-0.2523545623,
0.0136281,
0.1262558103,
0.0143534876,
-0.559392333,
-0.0895803496,
0.2098474652,
0.0673223436,
-0.0537846945,
0.0548976511,
0.0260825865,
-0.2426672876,
0.0431410223,
-0.3713624179,
0.2435297221,
0.2112376988,
0.1630855501,
0.2539020479,
0.0116874343,
0.4366323054,
-0.0334256552,
-0.1314093471,
-0.0681055114,
-0.2330939323,
-0.1569177508,
0.1507698447,
0.1977437586,
0.2544565499,
-0.2499748915,
-0.1016161889,
0.2324191183,
0.2099461555,
0.098076582,
0.0916346312,
-0.6198492646,
-0.0849126652,
0.0384930857,
-0.1675664186,
0.2878287733,
0.0637846664,
0.0505586453,
-0.231416434,
-0.2736482322,
-0.4273028374,
0.0600479431,
-0.054565452,
0.1208738312,
-0.4299781919,
0.0572428219,
0.4172291756,
0.3035709262,
-0.6652130485,
0.0371346921,
0.3935830891,
-0.1419792175,
0.0052053411,
0.3796033263,
0.170580864,
-0.0874245986,
-0.1887240261,
0.2291713357,
-0.1860614419,
-0.2594028115,
-0.2517859042,
-0.2236281633
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Great list. Any idea if Amazon Reviews has been added?
- ~40 GB of text (sadly no emoji)
- popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371
- turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546
Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date.
Thanks!!
cc @sshleifer | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 92 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Great list. Any idea if Amazon Reviews has been added?
- ~40 GB of text (sadly no emoji)
- popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371
- turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546
Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date.
Thanks!!
cc @sshleifer | [
0.0099563496,
0.1201290861,
-0.1890822351,
0.2179348767,
0.212858811,
0.2180952132,
0.2061844766,
0.1419546157,
-0.1860564947,
-0.1030763239,
-0.1535793692,
-0.0204463061,
-0.1454026401,
0.2192623466,
0.0605060756,
-0.1807076186,
0.0125586642,
-0.0416302867,
-0.0774127543,
-0.2203580886,
-0.1637409925,
0.1607874483,
-0.0990081131,
-0.1870863885,
-0.3995814919,
-0.1154435426,
-0.1499628872,
0.0827759206,
-0.2747662663,
-0.481674552,
0.0328998566,
0.0766899139,
0.1454465538,
0.3482028246,
-0.0000977496,
-0.2388427258,
0.0384173393,
-0.0287117623,
-0.2368615419,
-0.2248949558,
-0.0512606353,
-0.4016398489,
-0.0896615162,
-0.1259750873,
-0.1336454749,
0.037229415,
0.0565925539,
-0.1836148351,
0.0036870127,
0.3463908434,
0.3029761314,
-0.0283137225,
-0.0866739824,
-0.1233579218,
0.2595641911,
0.5216808915,
-0.3470138013,
-0.1082491949,
0.5796980262,
0.1141717136,
-0.0773807541,
0.3088275492,
-0.226960808,
-0.1091128141,
0.1848831475,
0.1643168628,
-0.1449460238,
-0.3419853151,
0.0569649003,
0.3712534308,
0.6867118478,
-0.2845935225,
-0.4477044642,
-0.3079706132,
0.1604134142,
-0.291341424,
-0.1641085893,
0.2534987032,
-0.0334704518,
0.1641045809,
-0.1707697809,
-0.2218765467,
-0.1847562045,
0.1945413649,
0.2576349378,
0.0969120339,
-0.0571926869,
-0.2658846676,
-0.0637662932,
0.1105752513,
0.2781271636,
-0.3594801426,
0.1945618093,
0.0019449367,
-0.196854353,
-0.3035463393,
0.0432975292,
-0.0020644977,
-0.0313553959,
0.0415118709,
-0.1057239324,
0.1028997153,
-0.1994988918,
-0.1225188076,
0.0027352551,
-0.1741219312,
0.2056173831,
0.2162727565,
0.0856301114,
-0.143140167,
0.1288759708,
0.0778541937,
-0.0992795303,
0.1666500121,
-0.1030003279,
-0.0183246993,
-0.1320113093,
-0.25421229,
-0.0467149764,
-0.037511006,
-0.0053702602,
-0.0627391338,
-0.1830396056,
0.0345913842,
-0.0360737778,
0.1088377386,
-0.1634375006,
0.2397162914,
-0.0484838858,
-0.412863791,
-0.1474092454,
-0.0148842009,
-0.1394736618,
0.0897449851,
0.6010734439,
-0.0843560472,
0.1415131688,
-0.1657432467,
-0.1212157756,
0.1633102596,
-0.0195767302,
-0.1055759564,
0.0884210244,
0.1080303565,
-0.1405913085,
0.0719513297,
0.0801871419,
0.1892983168,
-0.2042858452,
0.2494803518,
0.0147891343,
-0.2428173721,
-0.1787461787,
0.3136511445,
-0.0418705046,
-0.5465005636,
-0.0762110725,
0.624094069,
-0.0148731386,
-0.0354615524,
0.135190174,
-0.0337277949,
-0.1267391741,
-0.1285329461,
-0.0070464807,
0.3449833095,
-0.4318052828,
-0.1866946071,
-0.3239617646,
0.1120490357,
0.1348623335,
0.2293366641,
-0.1754045039,
0.0672395602,
0.1419585496,
0.0284111872,
0.2154878378,
0.0268197637,
-0.2289342731,
-0.0001930732,
-0.0042734621,
-0.1134460047,
0.0808869451,
0.2780291736,
0.1063641608,
-0.0669072047,
-0.1142901555,
0.1946756095,
-0.261294961,
-0.0444033742,
-0.2252385169,
-0.1810870171,
0.1740026623,
0.4263752997,
0.4575031698,
-0.2117216736,
0.0510213338,
-0.1381461769,
0.0895141587,
-0.035785567,
0.2193817496,
0.1367530525,
0.1556398571,
0.1583779752,
0.0518690646,
-0.2809582651,
-0.1513507217,
-0.0058424002,
0.2436331213,
0.3482484818,
-0.0044398471,
-0.0971555859,
-0.0817783251,
-0.1140728742,
0.0308289155,
-0.105860807,
0.2170850784,
-0.1768060178,
0.0776405036,
0.1714373082,
-0.2573434412,
0.2146838307,
-0.3896971047,
0.3276171088,
0.1842179298,
0.2867545187,
-0.0657101795,
-0.0608382933,
0.1710824221,
0.3616930842,
-0.1500441134,
0.0114085143,
0.0230692457,
-0.0033253755,
-0.2483470589,
-0.0362362936,
0.2523276508,
0.3923211098,
0.3120623231,
-0.4238719642,
0.2985502481,
-0.0272493176,
0.0875370055,
-0.1284650117,
-0.1620540917,
0.4090006351,
-0.0216231998,
0.0647427663,
0.0060241874,
-0.0517210625,
-0.0408729203,
-0.020908758,
0.0589909181,
0.1096345931,
0.3607463837,
-0.1972749382,
0.2059567571,
0.0017746182,
-0.1617477983,
0.1815606207,
0.1853687465,
-0.0686451495,
0.2047095299,
0.2270732373,
-0.3626619279,
-0.1416246593,
-0.0496311784,
0.0105183916,
0.2799789608,
0.5136606693,
-0.0318663009,
-0.1047910154,
0.0550831519,
-0.36727494,
0.0804235339,
0.3299196959,
0.0532736331,
0.0742287636,
0.2775608599,
0.2161092162,
-0.2416409105,
-0.1270567328,
0.1679585576,
-0.0353841372,
-0.0167419985,
-0.101951696,
-0.0277999155,
-0.3347744048,
0.0467790551,
0.0481050983,
-0.0874386206,
-0.2642138898,
0.2252804637,
-0.2067920119,
0.0417874977,
0.0604251139,
-0.3150880337,
0.5391521454,
-0.2429105788,
0.0756277144,
-0.0991197079,
-0.2081801295,
-0.2126780003,
0.3141337931,
0.0941996723,
-0.0847785175,
0.4556823373,
-0.0665523037,
0.2534088194,
-0.1913885623,
-0.5189393163,
-0.0148551734,
-0.1665454656,
-0.0432557352,
-0.1463810354,
-0.1647106707,
0.01709502,
-0.1085618064,
-0.0551762581,
-0.1354308277,
-0.1729181856,
-0.08204896,
-0.1282362789,
-0.2330133319,
-0.0639262944,
-0.6488698125,
-0.3751606643,
-0.0966442674,
0.1201148182,
0.0243503042,
-0.0177143309,
0.266202569,
-0.059332855,
0.0211564079,
-0.1397211403,
0.1283468455,
-0.0776316971,
-0.269048661,
0.199379921,
-0.1055580527,
-0.2119161934,
-0.1357290596,
-0.0527597107,
-0.0643496439,
-0.0682599917,
-0.5273970962,
0.1693694592,
-0.1972026676,
0.1870899051,
0.1181496084,
-0.0900439695,
0.3759340942,
0.2685989439,
-0.1958192587,
0.0663095713,
-0.077246815,
-0.0818634331,
0.0512130819,
0.2883866131,
-0.3087563515,
0.1018721536,
0.2857589722,
0.5518406034,
0.0370039009,
-0.1277289242,
0.058187291,
0.2767520249,
0.331504792,
-0.0084970137,
-0.3893322945,
0.2839775085,
-0.1347841173,
0.1779323816,
0.3239389062,
0.1873806119,
-0.3543051481,
-0.2062396705,
0.0417384095,
-0.2724872231,
-0.0839292407,
0.2441462576,
-0.1769729406,
0.2626495957,
0.0470926836,
-0.0891998932,
-0.2200292349,
-0.4361050725,
-0.1354855895,
0.1896086037,
0.1607813239,
-0.1956533939,
-0.6076632142,
0.2148036063,
-0.4611176848,
0.1065195054,
0.1472971439,
-0.0778761134,
-0.1626666337,
0.1421459019,
-0.1019607112,
0.3258802891,
0.1027676836,
-0.4636116624,
-0.3247773051,
0.2446566373,
0.0299686808,
-0.0822091624,
0.1484400779,
-0.4467482865,
0.0217907522,
0.2362398654,
0.0361278951,
0.1049464941,
-0.0590049438,
0.4637442827,
-0.0272752438,
0.0316437557,
-0.2878127694,
0.2964059412,
0.0648154542,
-0.1597724557,
-0.0287916027,
0.0629828796,
0.0637437329,
-0.197136268,
0.0318073966,
0.1918149143,
0.0667748079,
0.3971685469,
-0.2791351676,
-0.3446129262,
0.1628168374,
0.2187757641,
0.0670478344,
0.008648931,
0.3463253081,
0.4330371916,
-0.1477719545,
-0.5273458958,
-0.0494023487,
-0.1409040093,
0.4833733439,
0.3429311216,
0.3617250025,
0.2523905039,
-0.1165615916,
-0.1228623912,
-0.0720190406,
0.2508354187,
0.1270610541,
-0.0357369296,
-0.5171096921,
-0.3428186774,
0.3212040663,
-0.0887968093,
-0.0528659299,
-0.0371814109,
0.1858061105,
-0.178203851,
0.1393806487,
-0.0054333652,
0.9393482804,
-0.0167497676,
0.2177588791,
-0.2964957654,
-0.1543394178,
0.4936573803,
-0.2867144942,
0.1672137678,
-0.0426427536,
-0.1965596825,
-0.0001621744,
-0.042506896,
0.0105464952,
0.3882580996,
0.1059510037,
0.222149536,
0.2518791258,
0.1419557184,
0.0797018632,
0.1705516577,
0.08263807,
-0.4323706925,
0.0679337308,
0.2891987264,
0.031308867,
0.2347819805,
-0.0014484642,
0.0132839698,
-0.1919444501,
0.1294081509,
-0.6016510725,
-0.0803750232,
-0.1888518184,
0.0674076676,
0.0226121806,
-0.4113131464,
0.5069012642,
0.2674864531,
0.4851578772,
0.1461802423,
-0.2111541182,
0.0121583054,
-0.2298673838,
-0.0999070108,
0.2072232366,
-0.1449709386,
0.3241985142,
-0.0038158675,
-0.2325268835,
0.1667746156,
0.067109257,
-0.134679392,
-0.4355965555,
-0.3422697186,
0.2398146093,
-0.3440448642,
0.2265373319,
0.2108397186,
-0.007369854,
-0.2803477943,
0.2544867396,
0.2258092016,
0.2485796213,
0.1272221059,
0.1870501488,
-0.0966893584,
-0.3992342353,
0.2455761582,
0.1889497489,
-0.2624405026,
0.3753584027,
0.448767364,
-0.2225974649,
-0.3211376667,
0.2563749254,
0.2719465494,
-0.2347518653,
-0.0509393774,
-0.1291605979,
-0.0731908679,
0.1580408514,
0.2855263948,
0.3492250443,
-0.2070108652,
0.0567538328,
-0.1386404335,
-0.0904972926,
0.2378674895,
-0.0784674436,
0.0557267629,
-0.195643276,
0.1426937431,
0.0733028054,
0.194974795,
-0.4472538531,
0.1631423384,
0.1436947286,
0.0508330353,
0.2079169303,
-0.0913313404,
0.1202333272,
-0.2043102533,
0.1457256377,
0.0205734894,
-0.0671781227,
-0.3357699513,
-0.0075487001,
0.1071917489,
0.0622838698,
-0.0503344089,
0.0278251916,
0.1178085953,
-0.1696548611,
-0.1041067541,
-0.1119066998,
0.089231953,
0.1002389491,
0.3928534687,
-0.2086251974,
0.0107551757,
0.0919549614,
0.0781636983,
-0.3490189612,
0.3264139593,
0.2692595422,
0.1559086144,
0.4530672133,
0.0773399547,
-0.1119285449,
0.1587598324,
0.1464136988,
-0.0920319706,
0.6272504926,
-0.2160809785,
0.2297980934,
0.4485688508,
0.135135591,
-0.1592940092,
-0.1255428642,
-0.0036730485,
0.0795667544,
0.3413502574,
-0.3197437525,
-0.1428835988,
-0.0598406643,
0.1881302148,
0.0759578794,
0.2066174746,
0.2478871197,
0.0535619669,
0.2319906503,
0.0826104656,
0.5046768785,
-0.1222788617,
0.2788364291,
-0.0128225517,
0.1634681076,
-0.1063464358,
0.2626690865,
0.1599367112,
0.039111495,
0.2669236064,
0.0883879438,
0.4581475556,
-0.139239639,
0.2407557219,
0.2345954925,
-0.1436107755,
0.3404220641,
0.2780048847,
-0.1257242262,
0.2205056399,
-0.0631455034,
0.2299706936,
-0.1750207543,
0.0492616184,
-0.1364426315,
-0.0477987714,
-0.1134298369,
0.0578445494,
-0.035177324,
-0.3497604728,
-0.0415520184,
-0.1292925328,
-0.2964368165,
-0.3324362636,
0.141133517,
-0.062862426,
-0.1891953945,
-0.5732408762,
0.2355665416,
0.1159092262,
0.4328241348,
-0.2088290751,
-0.0516190678,
0.1438403875,
-0.1780402958,
0.1907113642,
0.475820452,
0.2004235089,
-0.1719057113,
-0.1040591523,
0.1188342571,
-0.2416640669,
-0.1992031932,
0.1770105809,
0.2362864017,
0.3595471084,
0.1639281809,
0.0058340663,
0.2157750279,
-0.1195166185,
0.1666228026,
0.1374994963,
-0.0744856074,
-0.2650489807,
0.0808215737,
0.1331863999,
-0.2794406414,
-0.1732409745,
-0.0223398861,
-0.2270411402,
-0.206381768,
0.4948810637,
-0.1400982291,
0.0367836095,
-0.0952353552,
0.1659815311,
-0.1450923532,
0.2787551284,
0.3749409318,
-0.2043953389,
-0.194648385,
-0.0743004531,
-0.045600228,
-0.1837636232,
0.1418141574,
0.2079699039,
-0.2435238659,
0.040448118,
0.2586270571,
0.2225131989,
-0.3685130477,
-0.0740940645,
-0.1136296168,
0.037768051,
-0.5360795259,
-0.056228064,
0.163054958,
0.2559027672,
-0.0167484879,
0.1442200691,
-0.1042821705,
-0.0879721493,
0.0968448967,
-0.4222562015,
0.1064966545,
0.1884108037,
0.1729870439,
0.1173982024,
0.0587839969,
0.3530174792,
-0.0459755696,
-0.1179471165,
-0.087901637,
-0.288590163,
-0.0794679746,
0.3862180114,
0.0675956234,
0.3366405964,
-0.2556756139,
-0.3060520291,
0.2978150249,
0.0483827256,
0.0209982097,
-0.1510125697,
-0.4657732844,
-0.0059740166,
0.0238205828,
-0.055656381,
0.1521777064,
0.0178647358,
0.0192329139,
-0.1478466243,
-0.1118664667,
-0.3519077003,
0.0722220689,
-0.0022423218,
0.1285912097,
-0.3013212383,
0.1177306548,
0.3662573993,
0.2721979916,
-0.5800654888,
0.0121662775,
0.4983744621,
-0.1462721378,
-0.0521157533,
0.4400007725,
0.1853115261,
-0.0742066503,
-0.1611198485,
0.2752128243,
-0.2585216165,
-0.2241856605,
-0.1401054114,
-0.2096577883
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels!
https://jmcauley.ucsd.edu/data/amazon/
Any chance someone has time to onboard this dataset in a HF way?
cc @sshleifer | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 56 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels!
https://jmcauley.ucsd.edu/data/amazon/
Any chance someone has time to onboard this dataset in a HF way?
cc @sshleifer | [
-0.0198357012,
0.1645356715,
-0.1285864711,
0.1226925254,
0.1399306208,
0.222534582,
0.1768302321,
0.0815880969,
0.0018175738,
-0.1834152192,
-0.2986060679,
-0.0017472082,
-0.2310989201,
0.2553617954,
0.1400381178,
-0.2117388844,
-0.0201150831,
-0.0759113133,
-0.1246431842,
-0.2163358182,
-0.1675651073,
0.2093163431,
-0.0892353132,
-0.244480595,
-0.3734586239,
-0.1297224611,
-0.1804074198,
0.1245357245,
-0.2303671241,
-0.5034515858,
0.1528971642,
0.2555030286,
0.2345861048,
0.3584259152,
-0.0001047258,
-0.3163300157,
0.0129640764,
-0.0361249149,
-0.2524426579,
-0.2285139561,
0.048005078,
-0.4326217771,
-0.1093344688,
-0.011556223,
-0.0414831787,
-0.0352779552,
0.0633284524,
-0.0734608024,
-0.0728204846,
0.2706287503,
0.2498830408,
-0.0968179181,
-0.0141123459,
-0.111536406,
0.4056473076,
0.5342844129,
-0.2694160044,
-0.055701185,
0.5810770988,
-0.0698633119,
-0.1388196051,
0.2804798186,
-0.2075154185,
-0.1526291072,
0.3274661899,
0.0953845382,
-0.1789125949,
-0.349591136,
-0.0063552205,
0.3909527957,
0.7599865794,
-0.2851525247,
-0.4934872091,
-0.3570121229,
0.1204497367,
-0.2448965907,
-0.1655168831,
0.2134290189,
-0.0270257313,
0.0201326162,
-0.1747707129,
-0.2600163519,
-0.2148727477,
0.296145618,
0.3274445832,
0.3037991822,
-0.0029601576,
-0.2268946171,
0.0062388945,
0.0804793537,
0.3732762039,
-0.282025367,
0.185422346,
0.0842640623,
-0.2543905973,
-0.2538295686,
0.0419817194,
-0.0419491157,
0.0082058953,
0.0299477335,
-0.2754573822,
0.0522343926,
-0.2359440476,
-0.0820202306,
-0.011437227,
-0.1044956744,
0.1859625131,
0.2776842713,
-0.0064376527,
-0.1476680189,
0.117547527,
0.0522244237,
-0.1956688762,
0.1799938232,
-0.1484033465,
-0.1301527023,
-0.3069110215,
-0.3268980086,
-0.0546195097,
-0.0930696726,
-0.0276655797,
-0.0372009389,
-0.1610668898,
0.1006106064,
-0.0305317026,
0.1423639208,
-0.0749846995,
0.204355672,
-0.0643115416,
-0.2759669125,
-0.106778115,
-0.0132690687,
-0.097811155,
0.1325534731,
0.5589264035,
0.0023388946,
0.1266878247,
-0.2371995747,
-0.0930323526,
0.1769450605,
-0.1804186404,
-0.0499143489,
0.0144962007,
0.123701334,
-0.0877870396,
0.0635392964,
0.0813056827,
0.1484273374,
-0.2187974304,
0.1358944774,
0.0126358466,
-0.1809808761,
-0.2063608468,
0.2547239959,
0.0151913818,
-0.5899581313,
-0.1809223443,
0.5644590259,
-0.0478294455,
-0.1022187546,
0.1412485242,
-0.0144039225,
-0.1507670879,
-0.0756465271,
-0.1472383589,
0.3579086065,
-0.4638136327,
-0.2868506014,
-0.3036378324,
0.1789581031,
0.1972149312,
0.1546199769,
-0.1420155317,
0.1414175481,
0.0884596631,
0.0173454918,
0.1978501081,
-0.0281157363,
-0.2213234901,
0.0716080591,
-0.0373298824,
-0.2037147731,
0.1091812402,
0.3472161293,
0.1259892732,
-0.1429606527,
0.013676459,
0.1798772961,
-0.1910176724,
-0.035137523,
-0.2234784663,
-0.1538219154,
0.1330547035,
0.4792045951,
0.5008531213,
-0.18467094,
0.0178318843,
-0.0566966943,
0.1833342016,
0.014810726,
0.1735474318,
0.2245549858,
0.1589921713,
0.3652983904,
0.0200952534,
-0.3260862529,
-0.1582818478,
-0.0368316583,
0.1321996152,
0.3238742948,
0.0837290064,
-0.1299980879,
-0.1620241255,
-0.0727360174,
0.0639772937,
-0.0884794369,
0.1685642302,
-0.1823874414,
0.0802145824,
0.0695327446,
-0.2511689067,
0.2445217073,
-0.3218908608,
0.348934263,
0.2296546251,
0.3098436594,
-0.0638301969,
0.0823662058,
0.2734518647,
0.4851838052,
-0.0561848693,
-0.0047938251,
0.0865125507,
-0.0507349409,
-0.3311427534,
-0.0520033985,
0.4012410343,
0.3406190276,
0.2171982974,
-0.4308607578,
0.2395128161,
-0.0908191428,
0.0702352822,
-0.2257072926,
-0.177080825,
0.3826263249,
-0.0643694922,
0.1074864045,
0.0163400713,
0.0191108603,
-0.0575710945,
-0.0584996305,
0.1567182988,
0.1226608828,
0.4774454236,
-0.2402420491,
0.2156091034,
-0.0560743473,
-0.153154701,
0.3102390468,
0.2410905063,
-0.0261273403,
0.1495761573,
0.3112006783,
-0.3767238855,
-0.1238454729,
-0.0405460894,
0.0679409653,
0.2094611079,
0.5444111228,
-0.0162579603,
-0.042984765,
-0.0633232966,
-0.2928966284,
0.0039460398,
0.2457315624,
0.1017828211,
0.0940496102,
0.338211745,
0.2782358229,
-0.3023326695,
-0.2575509846,
0.138481468,
-0.0207988173,
0.0421209298,
-0.0394284241,
-0.0457469933,
-0.4623197615,
-0.0133940866,
-0.0140036372,
-0.1270574629,
-0.3637330234,
0.3001460135,
-0.0999474972,
0.0934820846,
0.0719562396,
-0.3957878053,
0.5337898135,
-0.3382837474,
-0.0312034991,
-0.0873486847,
-0.2671611309,
-0.2508141398,
0.2313466519,
0.1402768791,
-0.0088541014,
0.4727496505,
0.0387484357,
0.232653901,
-0.1457149088,
-0.5765917301,
-0.0559280217,
-0.1253764629,
-0.1209645942,
-0.1876254082,
-0.2155000716,
0.0479627401,
-0.1673706472,
-0.139753595,
-0.1203829348,
-0.1475422829,
-0.032984715,
-0.2493179888,
-0.1951200515,
-0.032680627,
-0.511228323,
-0.3697474301,
-0.1461065859,
0.1025940105,
0.0358285457,
0.0933142528,
0.2685093284,
-0.2643091381,
0.0148301031,
-0.1242642999,
0.066640459,
-0.0374446847,
-0.1886549294,
0.1413716823,
-0.1202241629,
-0.2281953096,
-0.1240063533,
-0.0967827141,
-0.0756762549,
-0.1028151289,
-0.6674731374,
0.2082008868,
-0.1985079497,
0.1226016432,
0.1556164771,
-0.1405587047,
0.4066683352,
0.2476306707,
-0.1814629287,
-0.0203108955,
-0.1293236613,
-0.032768447,
0.0750854164,
0.3712264597,
-0.3001054823,
0.0803214237,
0.2399803996,
0.5578199029,
0.0438776873,
-0.0351226963,
0.101453267,
0.3303007483,
0.2996341586,
0.0231634025,
-0.4512146711,
0.2865905762,
-0.1416733861,
0.2059863359,
0.334300369,
0.2041312009,
-0.4348143637,
-0.1071693525,
0.1427901089,
-0.2731657028,
-0.0399807431,
0.2332306653,
-0.2175331414,
0.22400181,
0.1042258218,
-0.1819126904,
-0.305563122,
-0.5037224293,
-0.1082320139,
0.2369357795,
0.1736887991,
-0.0743046775,
-0.6273704767,
0.20532915,
-0.3945927322,
0.1400629431,
0.1463168561,
0.0674419031,
-0.2749197781,
0.2281349748,
-0.0827592537,
0.2678699791,
0.1284728944,
-0.4005752504,
-0.2270066291,
0.2957068682,
0.156195581,
-0.0684426874,
0.1542138308,
-0.376827687,
0.0599435605,
0.2813209295,
0.017319791,
0.0865544677,
-0.0921224356,
0.4317035377,
-0.0573152155,
0.0095434356,
-0.289353013,
0.3814589679,
0.022672059,
-0.1425521672,
-0.0904995501,
-0.0130272303,
0.1536347866,
-0.2646358013,
0.0852350295,
0.1945629716,
0.0428822562,
0.3212282658,
-0.4165338576,
-0.3929335475,
0.2106626481,
0.1838892698,
0.011394674,
0.0309398863,
0.2688943148,
0.5306915045,
-0.1769509763,
-0.4539095759,
0.0367108434,
-0.0552646071,
0.487054497,
0.3452851474,
0.4270687401,
0.3030506372,
-0.0884713158,
-0.0477685481,
-0.1185524762,
0.1891394556,
0.0697001442,
-0.0332249105,
-0.5455821753,
-0.24106282,
0.4245167673,
-0.093808122,
-0.0524286181,
-0.0012593009,
0.2747276425,
-0.1869429499,
0.2298604548,
-0.0704732537,
0.989127636,
-0.0320349,
0.2314075679,
-0.3351997733,
-0.1499938518,
0.5273064971,
-0.3390075862,
0.1651448607,
-0.1366244853,
-0.0622487776,
-0.0773578808,
0.0059614289,
-0.135539785,
0.4320210516,
0.2012410015,
0.2437458932,
0.3407817781,
0.0423562191,
0.1266353428,
0.2039075941,
0.0389916897,
-0.5060492158,
0.0213229358,
0.2347001284,
-0.0364862084,
0.366746515,
-0.0041770455,
-0.0057184971,
-0.1408799291,
0.1594286561,
-0.7354983091,
-0.0673656613,
-0.1063629314,
0.1266800463,
0.0681757331,
-0.3045451343,
0.5246514082,
0.1131883636,
0.4435445666,
0.0865086168,
-0.219876036,
-0.0272049606,
-0.2468964905,
-0.163107127,
0.2093583494,
-0.1171967015,
0.3968866765,
-0.0255735945,
-0.1978734136,
0.08455915,
0.0637757108,
-0.2301931977,
-0.3948071301,
-0.3200411201,
0.1908969283,
-0.2362110615,
0.2588212192,
0.3226071894,
-0.0108895376,
-0.3071139455,
0.1961592138,
0.1634349227,
0.2605303228,
0.0353922546,
0.2692894042,
-0.0035229139,
-0.3461029232,
0.2194705456,
0.167637229,
-0.1958141774,
0.3862884939,
0.5314843655,
-0.2508364022,
-0.281647414,
0.1999554336,
0.1823789924,
-0.3813151121,
-0.141221866,
-0.0811863095,
-0.0609693117,
0.2064901292,
0.3244880438,
0.3847551048,
-0.2580206692,
0.0251594801,
-0.3177654445,
-0.1207530424,
0.3003714681,
-0.2548669279,
0.0546794198,
-0.1722332686,
0.2259541005,
0.0648066998,
0.3074399233,
-0.3720640838,
0.1942460388,
0.0546494536,
0.0094557581,
0.1304038316,
-0.0732255504,
0.1413396746,
-0.2162865698,
0.0447178259,
0.0226114877,
-0.0884638429,
-0.2534924746,
-0.0948139057,
0.151084587,
0.1035929844,
0.0487662442,
-0.0773818642,
0.06003654,
-0.175380066,
0.0145292152,
-0.060748063,
0.096248515,
0.1225077063,
0.4448109865,
-0.1451952159,
0.0026811513,
0.049339503,
0.0958280042,
-0.1530480832,
0.3397258222,
0.2522172928,
0.1069645435,
0.3758490682,
0.1319261789,
-0.2536734641,
0.2059228271,
0.1825124025,
-0.2143227905,
0.6236366034,
-0.3106361926,
0.3434369862,
0.4052038789,
0.1811951846,
-0.1900017858,
-0.0381148495,
0.021020392,
0.2060129493,
0.2469584346,
-0.3663805127,
-0.2355708331,
-0.0632306337,
0.1820345521,
0.0496908166,
0.159910053,
0.3251378536,
0.0974357128,
0.3078377843,
0.1186229587,
0.4503091574,
-0.14878802,
0.1708053648,
-0.1072043851,
0.1341328174,
-0.0072137676,
0.2847103775,
0.2316282392,
0.0425443947,
0.2432034314,
0.1988582313,
0.4407491088,
-0.1563293785,
0.1626001894,
0.2973186374,
-0.2611615956,
0.2581978142,
0.2804410756,
0.0506993495,
0.1864681095,
-0.1658570766,
0.3415145576,
-0.2284857631,
-0.003657816,
-0.0194141548,
0.0028682172,
-0.049348034,
-0.0062725157,
0.0534832925,
-0.2535128891,
-0.1139497906,
-0.1281633377,
-0.2739525437,
-0.4175281525,
0.1384991854,
-0.1058555394,
-0.1620156765,
-0.7215717435,
0.1422510147,
0.1325696409,
0.4418780804,
-0.1659160405,
-0.057446789,
0.0515806265,
-0.1537546068,
0.1801449507,
0.4200520217,
0.1736371517,
-0.2005616575,
-0.1233225688,
0.0051050712,
-0.2862404883,
-0.1789834648,
0.1752089709,
0.3023533821,
0.45474419,
0.0118456837,
0.1499177963,
0.157531932,
-0.0640637279,
0.2059067041,
0.1363330036,
-0.083025977,
-0.1092213392,
0.2585864067,
0.1475925446,
-0.256975323,
-0.1977558583,
-0.0123415804,
-0.2303877622,
-0.2367640734,
0.4216784239,
-0.135562107,
0.0850249901,
-0.1042156592,
0.1350458115,
-0.0826169029,
0.3175187707,
0.4432277977,
-0.1441828907,
-0.1165921018,
-0.0728256628,
-0.0408162847,
-0.2165642381,
0.0911086947,
0.1053297222,
-0.1427567303,
0.0306991953,
0.2910803556,
0.1708279103,
-0.3768725097,
-0.1190773398,
-0.0612899214,
0.0696207434,
-0.4864194095,
0.0100396071,
0.1854383349,
0.2585155666,
-0.0504089817,
0.116950579,
-0.1581366211,
-0.0232280754,
0.0155783696,
-0.3896497786,
0.195805639,
0.2118860483,
0.1357307285,
0.0224187169,
-0.0431519412,
0.4692189395,
0.0124557111,
-0.0873522013,
-0.1607504338,
-0.3508629799,
-0.0878447369,
0.2033871412,
-0.0014766391,
0.4487056136,
-0.2618572414,
-0.2969008386,
0.3471094966,
-0.0083512804,
-0.012251433,
-0.0826242045,
-0.4484746158,
0.0859548301,
-0.1286574304,
-0.0025238278,
0.2685823739,
0.1318813711,
0.1355550736,
-0.1389169246,
-0.091182664,
-0.3851822317,
0.1371691376,
-0.0214328952,
0.1109301448,
-0.1378245354,
0.1309033781,
0.4573966563,
0.1223887503,
-0.6342868209,
-0.0298268124,
0.4297256768,
-0.1390914172,
0.0752903149,
0.4732364714,
0.0454107746,
-0.0811372995,
-0.1597830206,
0.2771238089,
-0.3164704144,
-0.2770520747,
-0.2406644672,
-0.1742231399
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
See issues #242 and #307 | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 38 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
See issues #242 and #307 | [
-0.2610894442,
-0.0766240358,
-0.0532213971,
0.1464460939,
0.3858149052,
0.0102546373,
0.0254469644,
0.1763574183,
-0.1791243404,
0.0838487968,
0.1790160537,
0.4352130592,
0.0588608608,
0.3545269668,
0.2403868735,
0.0416258983,
0.0944177955,
0.3228262663,
0.0393949673,
0.0472040325,
-0.3697524071,
0.1955370009,
-0.1032145917,
0.052232597,
-0.2589358091,
-0.0607877523,
0.0105512142,
0.2736925781,
-0.2823360264,
-0.5056846738,
0.2017234266,
-0.0907641202,
0.2071505785,
0.2249619961,
-0.0001033256,
-0.0700255781,
0.2572824955,
-0.2035378069,
-0.0729971975,
-0.3186076283,
-0.1721760333,
-0.3807742298,
0.0590984449,
-0.251372546,
0.0154254278,
0.2983252406,
-0.0178565178,
-0.0695009083,
0.4933334887,
0.367151916,
0.3225337863,
0.1151863113,
-0.1204387993,
0.1490382105,
-0.000074102,
0.0481823832,
-0.0301630385,
0.4893270731,
0.1714176536,
-0.2337501496,
0.0854414552,
0.1575324386,
-0.2183979154,
-0.1051619947,
0.0754632875,
0.1099674851,
-0.1662449986,
-0.3456839323,
0.1217203066,
0.0935377851,
0.2599754333,
-0.2827700078,
-0.0374356844,
0.1049031019,
0.1600742042,
-0.6936118007,
0.2831140757,
0.3683129847,
-0.2686057985,
0.1347333491,
0.0133037427,
0.1663532555,
0.0272236951,
-0.0592779815,
0.0735419542,
-0.0005279882,
-0.1928128004,
-0.0872904062,
0.206882,
0.0006388025,
0.1293702871,
0.0012707314,
-0.1845573932,
0.2111001611,
-0.2259351462,
-0.0672173724,
-0.1538408846,
0.0041102013,
-0.1760222167,
-0.1566055715,
0.5614210367,
0.1108472198,
0.0470189489,
0.3558765948,
0.0998754278,
0.1248826906,
-0.2047816217,
0.1299192905,
0.253900826,
-0.003239508,
0.2112276852,
0.0027608254,
-0.1976271421,
-0.3183395565,
-0.226460591,
0.3368729651,
0.133085236,
-0.1672975123,
-0.4322223961,
0.1432407647,
0.1057569012,
0.1413566619,
0.0213066284,
0.2131028771,
0.1955602467,
0.2922653556,
0.0155843748,
0.2012344152,
-0.3497920036,
-0.2578397989,
-0.0467288382,
0.2218292356,
-0.3768267334,
-0.1314049065,
0.23589921,
-0.1387220919,
0.110904038,
0.2852520645,
0.1412976086,
-0.1839259714,
-0.0799180195,
-0.1549812257,
0.0537384078,
0.1382839829,
0.0759723783,
0.1385122091,
0.1670151949,
-0.3159834445,
-0.0821787268,
0.1015478745,
-0.4818612635,
-0.0225305576,
-0.058851134,
0.2757771015,
-0.0652816221,
-0.0694927275,
-0.5188578963,
0.1689958125,
0.0898343548,
-0.3107698858,
0.0260849893,
-0.2124462575,
-0.1478363276,
-0.1852397025,
0.1550227702,
0.5013544559,
-0.5585443974,
0.1694432944,
0.2123722732,
0.01555013,
0.3184651732,
0.1244616807,
-0.0968644246,
-0.1430573165,
-0.1716032028,
-0.0217709225,
0.2493203431,
-0.2651793659,
-0.2226244807,
0.3089699149,
-0.0901827887,
-0.0586127006,
0.0460299999,
-0.1065655947,
0.147128731,
-0.1886288375,
0.1144839749,
0.3725192547,
-0.0196823422,
0.2809730172,
-0.2191921026,
-0.1849875599,
0.2239278704,
-0.00449418,
-0.2701481581,
-0.1170028299,
0.2115181983,
0.0669502765,
0.1973384619,
-0.1416929513,
-0.2056808174,
0.1531886011,
0.2411946058,
-0.2049692124,
-0.1022405252,
0.2412946969,
0.0358476937,
-0.0403331146,
-0.256057322,
0.163705498,
-0.3069278002,
-0.1502539665,
-0.1704841107,
0.0351579934,
-0.368013829,
-0.2693883479,
0.2428940386,
-0.0371170081,
-0.0683986172,
-0.0123576811,
-0.0955903828,
0.2467946857,
-0.0134064117,
-0.0126048578,
-0.227121979,
0.1789418161,
-0.2131494731,
-0.1868839562,
0.3183473051,
0.2955125272,
0.1668151021,
-0.1177359968,
-0.2245184332,
0.2406991422,
0.0372981504,
0.3637147248,
-0.2209495306,
-0.2943725288,
0.4554791749,
-0.4603480399,
0.0675635934,
0.4531860352,
0.2957175076,
-0.0873814374,
0.2294560522,
0.3592467606,
-0.1594866216,
-0.0167378392,
-0.0725953802,
-0.0614301413,
0.2579913437,
0.0848894268,
0.1084827557,
-0.157476902,
0.3592937291,
0.6213694811,
0.2019229829,
-0.0257059969,
-0.1232929602,
0.0141803594,
0.498115629,
-0.0518530495,
-0.1169800013,
0.0897622108,
0.0535764918,
-0.1114099026,
0.0894829482,
0.0712489262,
0.2273186445,
-0.1056673229,
-0.3125162721,
0.2457752228,
0.0206144731,
-0.2307858318,
0.1905181855,
-0.1344036609,
-0.0368112624,
-0.0156289171,
0.060847275,
0.1106140465,
-0.2907762527,
-0.1287161261,
0.1040017679,
0.1776341498,
-0.3210406601,
0.3218945265,
-0.4479725361,
-0.3783262372,
-0.3087697029,
0.232615903,
-0.1433225274,
0.0219256487,
-0.1595178396,
0.0173545666,
0.0631200969,
0.1683904529,
-0.2043863684,
0.0400570668,
-0.068309851,
-0.1754355729,
0.1225206703,
-0.2182810754,
-0.2620292902,
0.1559132785,
0.4287244976,
-0.0599656217,
0.0835666433,
-0.3489723802,
0.1415617764,
0.2766741514,
-0.1465334594,
0.1601233333,
-0.2612072825,
0.1343981773,
-0.0371874794,
0.0921340883,
-0.0619954057,
-0.400065124,
0.1540007144,
-0.0559687689,
-0.0773290619,
0.1851529032,
0.0075845048,
-0.3202287257,
-0.2613765895,
-0.114111647,
-0.4982913435,
-0.3325832784,
-0.1811805367,
0.0014527233,
0.1016743556,
0.3449440598,
0.1368629038,
0.049755387,
0.2142153084,
-0.1142486259,
-0.0944052339,
-0.2219954729,
0.3507092893,
-0.3976942003,
-0.5242290497,
0.0896821693,
-0.0443615764,
0.4002029598,
-0.2082483172,
-0.1853057593,
-0.0273387171,
-0.1131975427,
0.119159475,
0.0449814275,
0.104220368,
-0.0041822209,
-0.0227978993,
-0.0459145643,
-0.1186299026,
-0.101454556,
-0.1292086095,
0.0962451473,
0.3029592037,
0.0399044268,
0.2478981018,
-0.2661069632,
0.0998481736,
0.2606477737,
0.0474692062,
0.5908396244,
-0.1422194391,
0.3743229508,
-0.0816613808,
-0.1248042583,
0.1246358454,
-0.2733377814,
-0.0562199466,
0.2765928209,
-0.1166036651,
-0.2867607474,
-0.313562423,
0.0396998972,
-0.3513279259,
-0.296167016,
0.1885457039,
0.059499789,
0.0969607532,
0.0248506311,
0.1353805959,
0.0701627061,
-0.3088003397,
-0.1110788882,
0.2989730537,
-0.1462354511,
0.1520844698,
-0.1521613598,
-0.4839816093,
-0.2414464206,
0.113449432,
0.1711223125,
0.435916245,
-0.0367386751,
0.1763121784,
0.0794968829,
-0.119136706,
0.2165209204,
0.1351016015,
0.0435080193,
0.1071512252,
0.1585662663,
0.1158136874,
-0.1062519401,
-0.2047528923,
0.1765426993,
0.1213097945,
-0.2626976967,
-0.045727212,
0.0551601648,
0.022995837,
0.3702942431,
-0.1329977214,
0.1060530543,
-0.4633556604,
-0.553403616,
-0.0246140137,
-0.1616850495,
0.1898546815,
0.2934007347,
-0.2198517919,
0.0093206298,
0.1202004626,
-0.2522870004,
0.2437075526,
0.4230843484,
0.3740914464,
0.1527099311,
-0.0220924672,
-0.1854196787,
-0.0722190663,
0.1872950643,
0.711394906,
0.033708524,
-0.3642599583,
0.1105947793,
-0.2761214674,
0.3163732588,
0.1974185705,
-0.1727221012,
-0.0785626471,
-0.1281435937,
-0.0657642782,
-0.222149238,
0.0830027759,
0.2763553262,
0.174706772,
-0.5603709817,
-0.4825350642,
0.4688641727,
-0.0914611742,
0.1933649033,
0.0365702882,
-0.0631638765,
-0.3073395491,
0.2559742033,
-0.0114887273,
0.8470346928,
0.2099158019,
0.1276680827,
0.2932153046,
0.0173727144,
0.2906727195,
-0.0832252577,
0.2038031369,
-0.2967996597,
-0.1601107717,
-0.0126133598,
0.1855672747,
0.2404239625,
0.0636227503,
-0.3559833169,
0.2242916822,
0.0648611039,
-0.1683228463,
0.1615427285,
0.1692885607,
-0.1898385733,
-0.2559834421,
-0.5498686433,
0.2420229316,
-0.0741747618,
0.0597805418,
-0.0901405737,
-0.2030755728,
0.0201647803,
-0.3251197636,
-0.2977226973,
0.2888045907,
-0.407846719,
0.1668457538,
-0.2021712363,
-0.6580181122,
0.2853274345,
0.1242902875,
0.1985467374,
0.2002895325,
-0.021645613,
0.1231299266,
0.2777647376,
-0.0227609687,
-0.0133759007,
0.1191109046,
0.0687002465,
-0.1644905061,
-0.0619399287,
0.1669942588,
0.108495988,
-0.0052967216,
0.4046757519,
0.0390393026,
-0.2194955051,
-0.1117108464,
-0.2296894342,
-0.2004289776,
0.184103474,
-0.0592127815,
0.1926203966,
-0.0688745975,
-0.1279044151,
0.0036829365,
0.0680624992,
-0.3047741055,
-0.1466594934,
0.0651415437,
-0.0677975267,
-0.1524511725,
0.4950756729,
0.1653573662,
-0.237800613,
-0.1186075136,
0.2235969901,
-0.1604553312,
-0.4836040437,
-0.0424495153,
0.1999966949,
-0.0120626483,
0.0410433412,
0.631826818,
-0.0175027661,
0.0172412544,
0.1021785438,
-0.4966739416,
-0.2612890601,
-0.0684951618,
-0.1012655124,
-0.0446724184,
0.2102418989,
0.3430010974,
0.1056419909,
-0.1439817846,
-0.3483979702,
0.0469592661,
-0.0635713711,
0.0744444877,
0.2907148302,
-0.0819434822,
0.1172337681,
0.0607283004,
0.1660139859,
0.3002018929,
-0.0275977366,
-0.2418087572,
-0.1697690338,
0.0561317019,
-0.0356495753,
-0.3160915971,
-0.0820618346,
0.0505353697,
-0.0692954808,
-0.093608804,
0.1222847402,
0.0730742887,
0.0730864778,
0.1747055054,
-0.3870050013,
0.1315183938,
-0.0197947901,
0.2080587149,
-0.2156207711,
0.5619533062,
0.1797862202,
0.1604508758,
0.0498262458,
0.0527413227,
-0.1532723606,
-0.0252486616,
-0.3163551092,
0.0578346588,
0.1277319491,
-0.3855438232,
0.3905309141,
0.126444295,
-0.0082640871,
0.5075653791,
-0.1379268318,
-0.0211761538,
0.4258249998,
0.2020478249,
-0.3272443116,
0.1057450324,
-0.3296951056,
-0.064065434,
-0.0720486566,
0.2804110944,
0.2723198831,
-0.1586752534,
0.2167008221,
-0.1451956481,
0.4394037724,
0.1370040327,
0.391492337,
0.4240070581,
0.1557473838,
0.2737903893,
-0.0957096666,
0.1282920688,
-0.0470570736,
0.0887831822,
-0.5585889816,
0.029757021,
0.0904515535,
0.1773561835,
-0.1411350518,
-0.388076067,
-0.0429103263,
-0.1291215569,
-0.1982979625,
0.3351870179,
0.1471819282,
0.5732954741,
-0.4751991332,
-0.0534108132,
-0.1215257049,
0.1643480211,
-0.1561280191,
0.0596835203,
0.0776231661,
0.0138266534,
-0.2852063775,
0.1848025024,
-0.0392283015,
0.1242769882,
-0.0761311278,
0.3221029043,
-0.1820150912,
-0.0505410694,
-0.0110676121,
-0.0040787375,
0.0636590421,
-0.0879493803,
0.4701706767,
0.2787469923,
0.1963552833,
0.2396332324,
0.0966278762,
0.6247935295,
0.401252389,
-0.1397326887,
-0.0370995849,
-0.1724213958,
0.0626666918,
0.1204679534,
0.0972917601,
0.3171798885,
0.433570236,
0.1459423155,
0.207457602,
-0.1358065605,
-0.0845311061,
0.2828327417,
-0.0246579424,
0.0637783259,
0.0951787084,
-0.0357815623,
0.2239776701,
-0.5465280414,
-0.074600026,
-0.3710965216,
0.2854520082,
0.3344533443,
0.0766335875,
0.0316527784,
-0.1154677793,
0.1219320297,
0.1146436259,
0.4839323759,
0.2948759496,
0.067365922,
-0.1934748292,
-0.0274677128,
-0.7056214809,
0.2235508859,
0.0908993781,
-0.3779625893,
-0.2408954799,
-0.2864881456,
0.0177807081,
0.3394007683,
-0.0403150842,
0.2757699788,
0.0841896683,
0.0604776442,
-0.0808861405,
0.0141545665,
-0.1719046086,
0.0116176605,
-0.2442376018,
-0.2519828081,
0.0690807849,
-0.2601276338,
0.1166035682,
-0.2869591415,
-0.2666416168,
-0.4350649416,
0.0025403425,
0.2772054672,
0.194508642,
0.4332049489,
-0.2569179535,
-0.1383417994,
-0.1196717843,
-0.1758015007,
-0.0627518967,
0.355836153,
0.2394198328,
0.0617621951,
0.0547001287,
0.1469728798,
-0.3888508677,
0.3169057369,
-0.0380782336,
-0.1657901257,
-0.242606461,
0.0363163203,
-0.0004940971,
-0.0887323245,
0.20332627,
0.380902499,
-0.1002786085,
0.1084835678,
-0.1204256788,
-0.4743164182,
0.1404094845,
-0.515439868,
-0.1619221717,
0.135095492,
0.2374834269,
-0.177898109,
0.1382844448,
-0.4251004159,
0.2577645779,
-0.0297691487,
-0.1882052869,
-0.2813653648,
0.2817209661,
-0.3067506254,
-0.1085518226,
-0.080456987,
0.4227129817,
0.21399872,
-0.1878927946,
0.1064991131,
-0.317903161
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | It should be in `xtreme.py:L755`:
```python
if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD":
with open(filepath) as f:
data = json.load(f)
```
Could you try to add the encoding parameter:
```python
open(filepath, encoding='utf-8')
``` | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 36 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
It should be in `xtreme.py:L755`:
```python
if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD":
with open(filepath) as f:
data = json.load(f)
```
Could you try to add the encoding parameter:
```python
open(filepath, encoding='utf-8')
``` | [
-0.2695922256,
-0.0288401563,
-0.0208715033,
0.202859506,
0.4484201372,
-0.1219132841,
-0.1402622312,
0.2741996646,
-0.306861788,
0.1308180094,
0.1182493791,
0.5972363353,
0.0107576568,
0.3725730181,
0.1493882239,
0.0074848444,
-0.0501957387,
0.2807819545,
0.1142941937,
0.0160583761,
-0.3124449849,
0.1804718524,
-0.1091930568,
-0.0322549529,
-0.3568947315,
-0.0902507454,
0.1276563704,
0.2784453332,
-0.4236950278,
-0.5119255781,
0.1833941042,
-0.0129815219,
0.2230469137,
0.2653474212,
-0.0001058442,
-0.0454373918,
0.3183930814,
-0.2982022762,
-0.2216451019,
-0.3611502051,
-0.2516934872,
-0.3150950968,
0.1989213079,
-0.2637837827,
-0.1006910577,
0.2404019237,
0.0199444555,
-0.0952384919,
0.5233158469,
0.2909531295,
0.2963302732,
0.0738327429,
-0.0744112879,
0.1486846507,
-0.0282298215,
0.1482580006,
-0.1475576907,
0.4451700449,
0.2602995634,
-0.0911353678,
0.1426792294,
0.2766980231,
-0.1515207589,
-0.0569933206,
0.040714182,
0.0499192253,
-0.151903376,
-0.4266542196,
0.1209064722,
0.1055288762,
0.1793568432,
-0.3225928545,
-0.0961944237,
0.0870560557,
0.1963282377,
-0.5246257186,
0.2534211576,
0.3471793532,
-0.296987772,
0.0974516422,
-0.0773087293,
0.1050550491,
0.0375201665,
-0.0349980071,
0.0779613778,
0.2109555006,
-0.1810683012,
-0.0667628273,
0.1364753991,
-0.0218385234,
0.2110844404,
0.0128952954,
-0.2235884964,
0.179078266,
-0.158753261,
-0.1336386204,
-0.181700781,
-0.0875810087,
-0.0873614401,
-0.1382654011,
0.5145933628,
0.1206673086,
-0.0586921237,
0.3560677469,
0.1107802615,
0.1049097106,
-0.0984213874,
0.2221193612,
0.1833806634,
0.1279567778,
0.0956941545,
0.029643761,
-0.2141442001,
-0.1327173263,
-0.3393444419,
0.2891263366,
0.1441909075,
-0.167430073,
-0.3648922741,
0.0851827115,
-0.0286663026,
0.1087726057,
0.1422022283,
0.207031399,
0.1510674357,
0.2321669757,
0.0610191375,
0.263830483,
-0.3025705218,
-0.2582406402,
-0.0983015746,
0.2584832609,
-0.3669597805,
-0.1151664481,
0.1970703602,
-0.0907114372,
0.1982971877,
0.1363954395,
0.1843988299,
-0.2621589601,
0.0463312939,
-0.1218952611,
0.0610193051,
0.0838405266,
0.088539958,
0.0350772105,
0.1756175905,
-0.3857584298,
-0.0953514427,
0.1032875478,
-0.4930079579,
0.0364095606,
-0.1123503819,
0.2696915567,
-0.1408185363,
-0.0545914322,
-0.5896955729,
0.1581826359,
0.0557486825,
-0.2681745887,
0.0798109025,
-0.1571029723,
-0.074181065,
-0.1766552031,
0.2183378935,
0.4230662882,
-0.4035673738,
0.0333889723,
0.2349448502,
0.0550834909,
0.3388772607,
0.0612149052,
-0.2030249536,
-0.1410144717,
-0.1047270596,
-0.0357995965,
0.3881499469,
-0.4512216151,
-0.2139130533,
0.2725940645,
-0.0509271175,
-0.0216157362,
-0.0301321559,
-0.131115973,
0.0554816537,
-0.1026323363,
0.1379778236,
0.4275483489,
0.000500885,
0.3331617117,
-0.2610882819,
-0.2735880911,
0.1134487242,
0.1089549437,
-0.2255674601,
-0.1487601995,
0.1748794019,
0.3316145837,
0.2449594289,
-0.1301338077,
-0.2455988973,
0.1132459641,
0.2360801399,
-0.3353267908,
-0.2025872469,
0.230512172,
0.0102627343,
-0.0392399617,
-0.2957890332,
0.2397301793,
-0.3415218294,
-0.0709603131,
-0.1357055306,
0.0705729052,
-0.4842482507,
-0.2870798409,
0.2603209317,
0.0040700268,
-0.1470943987,
-0.048932068,
-0.1445101351,
0.3022419512,
-0.0475848168,
0.0106714936,
-0.2947008312,
0.2131464779,
-0.1876619458,
-0.2811372876,
0.3004021943,
0.274861902,
0.191281423,
-0.1671638936,
-0.2761872113,
0.172658205,
0.057298433,
0.3439614177,
-0.1737116575,
-0.2655005455,
0.4478879571,
-0.4799711406,
0.0514213853,
0.4397864342,
0.2158054411,
-0.1009260565,
0.2564741373,
0.3604638577,
-0.0498559661,
0.0057903347,
-0.0060213725,
-0.1606791168,
0.1911538988,
0.0216747671,
0.0419140793,
-0.1418725401,
0.2428831607,
0.6975973248,
0.2468794435,
-0.030325409,
-0.1135328785,
0.0522240922,
0.5576226711,
0.0134542054,
-0.0485013053,
0.0479936004,
0.1208854914,
-0.1739584804,
0.1238913611,
0.0689126998,
0.1667800695,
-0.0529844314,
-0.2737361193,
0.2346287668,
0.0185401589,
-0.157869935,
0.1978087574,
-0.0990896448,
0.0686603561,
0.0721911862,
0.1992563009,
0.0100441491,
-0.3035993278,
-0.2533632815,
0.0424586907,
0.1445675939,
-0.2297808379,
0.3444652855,
-0.4669023752,
-0.4023388326,
-0.2357720882,
0.1430747062,
-0.1867649406,
-0.0578527898,
-0.1208834425,
-0.0568392985,
0.1553516984,
0.2601626813,
-0.13328363,
-0.0113903359,
-0.1319015771,
-0.2066187561,
0.0643784851,
-0.2219243795,
-0.203079924,
0.1332083791,
0.4137871265,
-0.047522597,
0.0261728782,
-0.3408566117,
0.096466139,
0.3336158991,
-0.2299675345,
0.308339417,
-0.2643302977,
0.1596698314,
-0.0279839523,
0.1091463193,
-0.0951452628,
-0.3874913454,
0.2449335605,
-0.024535723,
-0.1276833862,
0.0561907105,
-0.1040132791,
-0.2081227303,
-0.2407753766,
0.0273789205,
-0.4849368334,
-0.3486637771,
-0.2008543909,
0.1295461953,
0.1333153397,
0.3928813934,
0.2247521877,
0.1689451337,
0.2177814692,
-0.0570539944,
-0.1314011961,
-0.381948173,
0.259517312,
-0.3200516403,
-0.3355322778,
0.0427412912,
-0.0658443123,
0.5374211073,
-0.2214780301,
-0.1797292233,
-0.1533396244,
-0.0088255424,
0.1046935469,
-0.0650105402,
0.1340195686,
0.0049340911,
-0.0113699902,
-0.0147210769,
-0.1544591337,
-0.1391748339,
-0.0744660795,
0.1369942129,
0.4062228203,
-0.0833960846,
0.2225062847,
-0.2268182933,
0.078774333,
0.2252551317,
0.0042763767,
0.6793308854,
-0.0974559411,
0.3227320313,
-0.1281468421,
-0.0877527073,
0.1625578701,
-0.1000213176,
-0.07270661,
0.1974791288,
-0.0449011326,
-0.2861953974,
-0.3524032831,
0.0150641669,
-0.3409989774,
-0.234087199,
0.0905008689,
0.2625521719,
-0.0397365764,
-0.023013927,
0.1832149625,
0.0406133048,
-0.1779970378,
-0.1238775924,
0.2872678936,
-0.1525916904,
0.2216817439,
-0.2870136499,
-0.5363571048,
-0.1644162089,
0.13381356,
0.2102369964,
0.2769464254,
0.0445462838,
0.1823503375,
0.1378416866,
-0.1647197753,
0.1714298576,
0.0734706968,
0.007199706,
0.0798157975,
0.1017653495,
0.0262050126,
-0.1008871943,
-0.167118147,
0.1911310852,
0.1716031879,
-0.1884015054,
-0.1574798375,
-0.0023052404,
0.0705847964,
0.2752681673,
-0.0750973076,
0.1587518901,
-0.4937389493,
-0.6795372367,
-0.1820589453,
-0.2335929275,
0.2208952755,
0.3266312778,
-0.0434836671,
-0.0135291973,
0.1251822263,
-0.2238434404,
0.2270704955,
0.5767016411,
0.4269610643,
0.2597110868,
-0.0815524012,
-0.1813800931,
-0.0850742683,
0.2476555258,
0.7725039721,
0.0393482819,
-0.2483745217,
0.1788684428,
-0.0974322781,
0.2881153524,
0.2831279039,
-0.0874729753,
-0.1002375185,
-0.1817703992,
-0.0565206744,
-0.101953648,
0.2562604547,
0.1494085789,
0.0205733757,
-0.5256541371,
-0.488411516,
0.5606643558,
-0.0549157672,
0.1898400337,
0.1073902249,
-0.0492882021,
-0.3160760105,
0.2909817994,
0.0824172571,
0.9118976593,
0.2074115425,
0.1326511949,
0.3785892725,
-0.0078508696,
0.266310811,
-0.1112299636,
0.2233990878,
-0.2986946702,
-0.0614564717,
0.0507107452,
0.1321150362,
0.1290603131,
0.0739660561,
-0.3411415219,
0.1588943601,
-0.0305071007,
-0.3309116066,
0.1297969371,
0.3077480197,
-0.2023124397,
-0.250131309,
-0.7101192474,
0.2257067263,
-0.209217146,
0.0350709185,
-0.0871649235,
-0.2560058534,
-0.0722236037,
-0.2950133085,
-0.2078410238,
0.3760319054,
-0.5171034336,
0.1067210138,
-0.0629635751,
-0.5599790215,
0.2495435923,
0.1234670356,
0.104408443,
0.2184448391,
-0.0160449538,
0.2406459153,
0.283339709,
-0.0059497021,
0.0110536991,
0.1758532077,
0.0805311278,
-0.2479121238,
-0.0770082399,
0.2005447298,
0.1386250108,
-0.0912182331,
0.3390095234,
0.0428848714,
-0.2078881264,
-0.1063852906,
-0.3097414672,
-0.1305736601,
0.1471556425,
-0.0394900441,
0.1691490859,
-0.0256104674,
-0.201184541,
-0.0777623504,
0.2628116608,
-0.3546229899,
-0.1116665453,
0.1045364216,
-0.0236601848,
-0.0551134646,
0.470059216,
0.1100139096,
-0.2028771937,
-0.1128230691,
0.2733696401,
-0.1000826582,
-0.4406727254,
-0.0156562738,
0.1384797245,
-0.1954837888,
0.0086421808,
0.706137836,
-0.0132925846,
0.0516713224,
0.2228101343,
-0.3965667188,
-0.3372613788,
0.0339796469,
-0.1442147046,
-0.0090894662,
0.1709854156,
0.4224149883,
0.0119779101,
-0.0714295283,
-0.334558636,
0.0772370175,
-0.185182482,
0.0922175124,
0.0920179188,
-0.1470722556,
0.1361895353,
0.1042296737,
0.1643654108,
0.3269125223,
-0.1279888749,
-0.2219963819,
-0.1826171875,
0.069414489,
-0.0000196604,
-0.3460960984,
-0.2182557583,
0.052458927,
-0.0732845291,
-0.078079991,
0.1275209934,
0.0299433507,
0.1278792173,
0.1545257121,
-0.2598353922,
0.0735441968,
0.0710728243,
0.1250917315,
-0.0021259841,
0.5763776898,
0.2222474515,
0.1196841449,
0.0221082773,
0.0370835215,
-0.0727369264,
-0.0311003421,
-0.2551570237,
0.2031830847,
0.0867754892,
-0.3685718775,
0.3687851131,
0.0811619014,
-0.0743523315,
0.4766412675,
-0.1920271516,
-0.0511039943,
0.267804414,
0.1945383847,
-0.2686938941,
0.0565887392,
-0.182387799,
-0.0601927526,
-0.0239728764,
0.4054143131,
0.1480819881,
-0.0305430535,
0.237119019,
-0.0708749741,
0.436930418,
0.2265251428,
0.3792159855,
0.2138878852,
-0.0676766485,
0.1707871109,
-0.0843178928,
0.110603258,
-0.0269386582,
-0.0761308223,
-0.5743139386,
0.1385023296,
0.0751410052,
0.0983585566,
0.0161981937,
-0.1613383591,
-0.1337963343,
-0.0820502937,
-0.0703255162,
0.3402712047,
0.0914387777,
0.4065175056,
-0.4054415226,
-0.0660917163,
-0.0082068844,
0.1307263821,
-0.1202392653,
0.0487690158,
0.0025689609,
-0.044665616,
-0.3869649768,
0.1005105451,
-0.1038219929,
0.0603700355,
-0.1292277128,
0.3464911878,
-0.1597099602,
0.0560172722,
0.0290418789,
0.0874942169,
0.0793066546,
-0.1478642523,
0.6503375769,
0.2597215176,
0.1448373348,
0.1950770169,
0.1092398167,
0.5741664171,
0.3779681623,
-0.1820832193,
-0.0452342518,
-0.0910713822,
0.0127467494,
0.0713317841,
0.021548694,
0.4151412249,
0.2848601937,
0.2318214029,
0.2036957145,
-0.1636898667,
-0.1569396853,
0.2618771195,
-0.0566184632,
0.1092534661,
0.2053095847,
-0.0973209292,
0.2734780908,
-0.4711077511,
-0.0992673635,
-0.4386304915,
0.3083439469,
0.2360989898,
-0.0013731507,
0.0319076888,
-0.215058744,
0.1161062941,
-0.040356867,
0.5322920084,
0.2266664654,
-0.0033686913,
-0.1569127589,
-0.0840736702,
-0.5758489966,
0.2599771619,
0.0649032146,
-0.4464880824,
-0.1634181887,
-0.1827464253,
0.0211069267,
0.4211797118,
-0.0096591273,
0.3094616234,
0.1508060694,
0.0013075086,
-0.1990276575,
-0.034094464,
-0.1308999211,
0.0468437858,
-0.1482461095,
-0.2397922426,
-0.0290271528,
-0.3242877424,
0.1147617251,
-0.2961994708,
-0.4041754603,
-0.424303174,
0.0271787643,
0.2851336896,
0.170596078,
0.3588989377,
-0.3229242265,
-0.2342015058,
-0.0174816381,
-0.2376621217,
-0.1061405689,
0.343555063,
0.2130292654,
0.3197682202,
0.1029945835,
0.2732107341,
-0.4937640131,
0.3357634842,
-0.0837132707,
-0.271635443,
-0.188009426,
0.0018077834,
-0.0851686075,
-0.0208524987,
0.0997845307,
0.3712541759,
-0.0338046923,
0.1574393362,
-0.1849862039,
-0.4357162118,
0.3454657793,
-0.4225983024,
-0.1698672324,
0.2028682232,
0.1223301068,
-0.1553904563,
0.0797986761,
-0.5110165477,
0.2554682493,
0.0197686311,
-0.1227929518,
-0.2781631052,
0.2959689796,
-0.2903802097,
-0.0786038041,
-0.0585517511,
0.3128237128,
0.2399624139,
-0.1206457093,
-0.0135893254,
-0.2334344983
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Hello @jerryIsHere :) Did it work ?
If so we may change the dataset script to force the utf-8 encoding | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 20 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Hello @jerryIsHere :) Did it work ?
If so we may change the dataset script to force the utf-8 encoding | [
-0.3731937706,
-0.000719345,
-0.0570685677,
0.1422874629,
0.4632264078,
-0.0583363362,
0.01056509,
0.2293294221,
-0.2868662179,
0.0433459505,
0.1535945684,
0.4569694102,
-0.0138360718,
0.3835916221,
0.2669277191,
0.0252131149,
0.0164344199,
0.2814874053,
-0.1030597985,
-0.0219444297,
-0.2794501781,
0.1553265154,
-0.062976107,
0.0027550668,
-0.3882109523,
-0.0570778139,
0.0714772046,
0.2772662342,
-0.3569346964,
-0.5312876701,
0.2094707191,
0.0535363145,
0.1863970757,
0.2738593519,
-0.0001022789,
-0.0029410755,
0.329123199,
-0.2302227765,
-0.1595397294,
-0.2611717284,
-0.2483113408,
-0.3530783057,
0.1106149554,
-0.2077700496,
-0.0237203054,
0.1612143666,
0.0368486531,
-0.1297169179,
0.4614184499,
0.2716952562,
0.3374944031,
0.1603052467,
-0.0636832565,
0.1194713712,
-0.0223569758,
0.1525051296,
-0.0523619168,
0.3465827703,
0.2546725869,
-0.1929520518,
0.0855833218,
0.2532850206,
-0.1368108988,
-0.094841145,
0.0521474667,
0.0395272672,
-0.160570249,
-0.3848972917,
0.1053262427,
0.1600774974,
0.2978847623,
-0.3879603148,
-0.1183259785,
0.0882203281,
0.1210182309,
-0.4723840654,
0.2392138988,
0.3041262031,
-0.2488498688,
0.1334116161,
-0.0709755123,
0.1129441336,
0.0296885446,
-0.0367266499,
0.0147213843,
0.0923564285,
-0.129558593,
-0.0976857319,
0.1248412058,
-0.0498686209,
0.1877579987,
0.0501293764,
-0.201579228,
0.1952293813,
-0.1748969406,
-0.0906856805,
-0.138902396,
0.0374200493,
-0.0177331995,
-0.1268710643,
0.4794389904,
0.1832568645,
-0.0675334036,
0.3135924339,
0.1453904659,
0.0608676113,
-0.1526661217,
0.2708898187,
0.2193610221,
0.0321703702,
0.1343903393,
0.0710695088,
-0.1698642075,
-0.2104027718,
-0.2478929013,
0.2668915689,
0.1573390663,
-0.1860112697,
-0.4112693667,
0.0974364579,
0.1417269558,
0.0561989062,
0.0682380125,
0.2181813866,
0.2298817039,
0.3139409721,
-0.0291758608,
0.2334384471,
-0.3556650281,
-0.31583637,
-0.1523569673,
0.2118056118,
-0.3692723513,
-0.1307553053,
0.1776293069,
-0.0606789477,
0.1488870084,
0.171361208,
0.1450046301,
-0.1141019687,
0.0414623208,
-0.1093736291,
0.1005496234,
0.1388427615,
0.0439045094,
0.0962276384,
0.1858626306,
-0.2839113772,
-0.0842198506,
0.0651568025,
-0.4052483737,
-0.0274739638,
-0.1326570958,
0.3021103144,
-0.0976726636,
-0.0723732859,
-0.5015494823,
0.1596666276,
0.1064519584,
-0.2595109046,
0.0770501867,
-0.1923128217,
-0.0640769452,
-0.1431928277,
0.2095195055,
0.4781809151,
-0.4952637553,
0.0663281754,
0.1981609762,
-0.0513667502,
0.3271405101,
0.0646890402,
-0.1527038664,
-0.0950649753,
-0.1846715659,
0.0148836588,
0.347771883,
-0.3756850064,
-0.2681897581,
0.3038835824,
-0.0430336148,
-0.0552406758,
0.0085129114,
-0.0133373076,
0.0574760586,
-0.1772715002,
0.0595127195,
0.4527750909,
-0.0160306282,
0.2917616665,
-0.2091446966,
-0.256110698,
0.1921692789,
0.1395069063,
-0.2073941976,
-0.1527816355,
0.2245237976,
0.2628910542,
0.2572357655,
-0.0965589136,
-0.2111482024,
0.203938812,
0.1723735034,
-0.2741017044,
-0.1649064869,
0.1530277729,
-0.0532300286,
-0.0128097581,
-0.2910026908,
0.2213007957,
-0.3516930044,
-0.1563197523,
-0.1589292288,
0.0381985009,
-0.4941663444,
-0.2556964159,
0.2810659111,
-0.0190965906,
-0.1264655292,
0.0135041447,
-0.159652248,
0.2963831127,
0.0199436359,
-0.0196307339,
-0.3017684817,
0.2150721103,
-0.1520977914,
-0.2504402399,
0.3062166572,
0.2735081911,
0.0892285034,
-0.1297212988,
-0.1804228872,
0.2587801516,
0.0460719727,
0.3964950442,
-0.2296986133,
-0.2436210364,
0.4404162765,
-0.5327318311,
0.0991477743,
0.394113034,
0.2343509942,
-0.1595861912,
0.2340753824,
0.2926603556,
-0.1530441791,
-0.0467361882,
0.0212417934,
-0.0999414995,
0.2121111602,
0.023097815,
0.0503354296,
-0.2419479042,
0.3193283975,
0.5829187632,
0.3353450298,
-0.0260668118,
-0.1082595289,
0.067452915,
0.5159147382,
-0.0326995477,
-0.0043928321,
0.0391603298,
0.0645850152,
-0.1366205513,
0.088259235,
0.10234043,
0.1932418346,
-0.0185557678,
-0.2185664177,
0.2224381864,
-0.0169930756,
-0.1787492633,
0.143349573,
-0.1276646554,
0.0318578854,
0.0347282514,
0.1080368906,
-0.0078873206,
-0.3578632772,
-0.1810828447,
0.0537050739,
0.1668544859,
-0.2967944741,
0.2733754516,
-0.5112019181,
-0.4090251625,
-0.186880663,
0.1079194099,
-0.1811730266,
-0.0947803557,
-0.0768211633,
-0.0853771418,
0.1153329089,
0.2908652127,
-0.1969731897,
-0.0615724511,
-0.0830113217,
-0.1593246907,
-0.0204550717,
-0.1876848042,
-0.2183429897,
0.1528369039,
0.4614593685,
0.0059017795,
0.1112050861,
-0.3916852176,
0.0732497573,
0.1947648674,
-0.2173336446,
0.2696351707,
-0.2560013235,
0.1230480224,
0.0718326569,
0.1163181514,
0.0312643759,
-0.2786527574,
0.2485305518,
-0.0708809644,
-0.1150762215,
0.1409764737,
-0.0682280064,
-0.2105596066,
-0.2368367016,
0.012649213,
-0.5228255987,
-0.3507962823,
-0.2645413578,
0.1185958609,
0.1428291798,
0.3499616086,
0.1977185756,
0.0584548712,
0.1639472991,
-0.1200961843,
-0.1110016927,
-0.3482827842,
0.3166833222,
-0.3320204914,
-0.4280414283,
0.0193366073,
-0.0038295388,
0.4887194335,
-0.1189452186,
-0.2341216654,
-0.0923674181,
-0.1230493858,
0.1430980861,
-0.0310134925,
0.1473952681,
-0.0255245976,
0.011926515,
-0.0425533988,
-0.1464659274,
0.0079845712,
-0.0698682964,
0.0022525492,
0.2842375636,
-0.0301311649,
0.2277228385,
-0.2086021751,
0.0189594086,
0.2235666364,
-0.0224651508,
0.7035979629,
-0.1742077321,
0.3842792511,
-0.1911884099,
-0.0875157639,
0.1026369557,
-0.076712057,
-0.0156149659,
0.1611465067,
-0.0796988755,
-0.2145682126,
-0.2738919854,
0.0530566387,
-0.2512014806,
-0.2426975965,
0.1096383855,
0.1152198836,
0.0127797984,
-0.0002068478,
0.1531669796,
0.0882374942,
-0.2258842438,
-0.0663612485,
0.1648575515,
-0.159569785,
0.2148160636,
-0.2964558601,
-0.2983585596,
-0.2577538788,
0.11073488,
0.1485259235,
0.33561638,
-0.0790966004,
0.1531948298,
0.1168301031,
-0.1291459799,
0.2168402076,
0.0291318521,
0.1142596826,
0.0879059657,
0.0901456252,
-0.0188894253,
-0.0758939534,
-0.1978046149,
0.1719638258,
0.0955979005,
-0.1960683763,
-0.1699280888,
-0.0016317763,
0.0589857921,
0.3772253692,
-0.0978040174,
0.1263487339,
-0.4287360013,
-0.6874223948,
-0.1177400053,
-0.244257316,
0.2344142199,
0.2473381013,
-0.094996132,
-0.0444275737,
0.0066081081,
-0.2473983169,
0.2189929932,
0.4687684476,
0.4177285433,
0.129585281,
0.0223177057,
-0.1359939426,
-0.1060858294,
0.2562143803,
0.7766751647,
0.0220115036,
-0.2808938026,
0.09669213,
-0.2284712642,
0.2586399913,
0.2258520722,
-0.0765503421,
-0.158178553,
-0.0957819819,
-0.0640958622,
-0.2174803615,
0.2045220882,
0.2207328826,
0.128314361,
-0.6074517369,
-0.5158421397,
0.4817232788,
-0.0257368386,
0.2049155086,
0.1231784374,
-0.0749500394,
-0.3552890718,
0.2622033656,
0.035132207,
0.8382997513,
0.1588290334,
0.2284819335,
0.3226372302,
0.1386990994,
0.1874373108,
-0.0317841545,
0.1091980264,
-0.3560630381,
-0.1851942688,
-0.0195191316,
0.150948137,
0.193173945,
0.1352782995,
-0.311843276,
0.1862612963,
-0.0538871139,
-0.273714304,
0.1516507417,
0.2698063254,
-0.2737753093,
-0.2056011409,
-0.6117540598,
0.2700066566,
-0.1186786145,
0.0272533298,
-0.1151672825,
-0.2042441666,
0.0142219448,
-0.3317555785,
-0.2252710909,
0.3348137736,
-0.4587019384,
0.2300195098,
-0.1353652775,
-0.6156854033,
0.1628254056,
0.1720415652,
0.1507773101,
0.193780601,
-0.0101661347,
0.2571097612,
0.255905807,
0.0317176655,
0.0555354729,
0.1400501281,
0.1517919451,
-0.1858287305,
-0.0883149058,
0.1521257907,
0.1377553791,
-0.0620555356,
0.2877081633,
-0.0062571168,
-0.1587270349,
-0.1283812523,
-0.2758001089,
-0.170501709,
0.184890151,
-0.0551955067,
0.2012416869,
-0.0062443744,
-0.1744207889,
-0.0054243673,
0.1873111129,
-0.3181981146,
-0.1325163245,
0.0828511566,
-0.0555683486,
-0.0788572356,
0.5007189512,
0.2100291848,
-0.2192787826,
-0.1669025421,
0.2493759394,
-0.0017977284,
-0.5435651541,
-0.0312805325,
0.1454029828,
-0.0885960236,
-0.0008255267,
0.6154597402,
-0.0781909674,
-0.0378505625,
0.1249645874,
-0.416433394,
-0.3383078575,
-0.0199523438,
-0.1058945879,
0.0769014657,
0.135371387,
0.3030593395,
0.01790425,
-0.0751928017,
-0.3758339286,
0.0578423776,
-0.1599832773,
0.0512885451,
0.1627022177,
-0.0597326048,
0.1141208857,
0.0571746081,
0.2042424679,
0.2957518697,
-0.0587750748,
-0.2655421197,
-0.1633343399,
0.0448211394,
-0.0447308645,
-0.3438980877,
-0.0863283053,
0.0497448482,
-0.1354932487,
-0.0814274251,
0.1621015221,
0.1329279393,
0.0965034664,
0.1838115007,
-0.2290926576,
0.0540942624,
0.032515686,
0.1618751734,
-0.1049632803,
0.4907985628,
0.1859701127,
0.1443754137,
0.0478412285,
-0.0010487221,
-0.0478378497,
0.0237327311,
-0.2163307667,
0.0968613699,
0.0982679054,
-0.3974514604,
0.403267473,
0.1052453294,
0.0381632745,
0.4829175174,
-0.2567421198,
-0.1113972068,
0.3376916647,
0.2441074997,
-0.3323169053,
0.0228849072,
-0.2274407595,
-0.0486905947,
-0.027072357,
0.354953438,
0.1754572988,
-0.0744631365,
0.2037744224,
-0.0859552994,
0.4425882697,
0.1005485803,
0.3665661216,
0.3080148697,
-0.0493701585,
0.1541155428,
-0.1038608104,
0.1590819359,
-0.0920453444,
0.1089133471,
-0.5868617296,
0.1726321131,
0.050714761,
0.1186175421,
-0.0504695289,
-0.2833318412,
-0.0698189214,
-0.0359476283,
-0.1264657229,
0.3150509894,
0.1728378087,
0.430801183,
-0.3397230804,
-0.0370756797,
-0.074636668,
0.1877141446,
-0.1154496074,
0.0538834073,
0.0222677533,
-0.021878453,
-0.3208213151,
0.118690446,
-0.1208410338,
0.0519775338,
-0.0135728698,
0.3341332674,
-0.1179919988,
-0.0927926749,
0.0595220588,
0.005821642,
-0.0208275095,
-0.1202605069,
0.5656139255,
0.3377194703,
0.1767880172,
0.3259629309,
0.164776057,
0.6169278622,
0.4158921838,
-0.1283581108,
0.0329092853,
-0.199183166,
0.0448216014,
0.0093141822,
0.0949315876,
0.2698282301,
0.3797511756,
0.243494764,
0.2333048433,
-0.1668172628,
-0.1974408627,
0.2925794423,
0.0156133194,
0.0878325701,
0.2161625773,
-0.09289556,
0.2102701068,
-0.5015557408,
-0.0489589907,
-0.4342525899,
0.2403141409,
0.4158196449,
0.0206527635,
0.0559104905,
-0.2033474594,
0.1347760707,
0.0010747957,
0.5677644014,
0.2840279341,
0.0830741525,
-0.0933838636,
-0.0814678445,
-0.7156069875,
0.2470431477,
0.0399613865,
-0.4754849374,
-0.1407996416,
-0.2607810795,
0.101103656,
0.3434420228,
0.0972551331,
0.3271720111,
0.0704677552,
0.0694175363,
-0.1378182173,
-0.0190070122,
-0.1851957589,
0.1184407398,
-0.2628826499,
-0.3089422286,
0.0403943397,
-0.2737837136,
0.1577047408,
-0.307962805,
-0.2911493778,
-0.4004508853,
0.0246143006,
0.2664487958,
0.2022698969,
0.408361882,
-0.2999081016,
-0.2040604353,
-0.1089318842,
-0.2557530105,
-0.1500159055,
0.3890319765,
0.2026680261,
0.1393885612,
0.0956526548,
0.1532766819,
-0.4704892039,
0.3255022466,
-0.0776242763,
-0.0981987789,
-0.2244168073,
0.0946475267,
0.0099898269,
-0.0435831808,
0.1534396708,
0.3403099775,
0.0001792796,
0.142714262,
-0.1330500096,
-0.4824036658,
0.2574145496,
-0.4593120515,
-0.2252650708,
0.1388773769,
0.102402024,
-0.1715396494,
0.0529756583,
-0.502164185,
0.2745055854,
0.0210055392,
-0.1494604051,
-0.2724817991,
0.3049331605,
-0.2336802185,
-0.0641322955,
-0.087209262,
0.3601802886,
0.1789393276,
-0.1736196876,
-0.0067085889,
-0.240354836
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | @lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them.
The problem is not solved | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 30 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
@lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them.
The problem is not solved | [
-0.2841985822,
-0.1710122079,
-0.0102975601,
0.2463470101,
0.4728090465,
-0.0588771403,
-0.1426555216,
0.2119473219,
-0.2602451742,
0.1263463795,
0.0891538933,
0.5027422905,
-0.0454211012,
0.429033488,
0.2850132585,
0.0133227203,
0.0035832212,
0.2751812041,
-0.0077737253,
0.0021376198,
-0.2719277143,
0.1288373917,
-0.1685152799,
0.0082540112,
-0.4515323341,
0.0142078036,
0.0879141167,
0.2322887331,
-0.3210152686,
-0.6467183232,
0.2900664806,
-0.0919904411,
0.2375106961,
0.3235117793,
-0.0001081838,
-0.0482052416,
0.3104087114,
-0.277841419,
-0.0658103302,
-0.2856350541,
-0.2337790281,
-0.343039006,
0.1013974026,
-0.225087747,
-0.0894931778,
0.2258189321,
-0.0545105711,
-0.1139666587,
0.4601174295,
0.2725273073,
0.2595207393,
0.1287809312,
-0.021799067,
0.0607359223,
0.0604671054,
0.1154146045,
-0.0905229747,
0.4867529869,
0.3114894629,
-0.1195525676,
0.1933288872,
0.2543049455,
-0.1568315625,
-0.133475557,
0.1259100884,
-0.0169644319,
0.0053899023,
-0.4357085228,
0.0417734496,
0.2204736173,
0.1514527351,
-0.3889329731,
-0.0276960265,
0.1341764182,
0.1199854091,
-0.5919210315,
0.2534968555,
0.3236524463,
-0.2409829497,
0.1225273907,
-0.0020335205,
0.1651621163,
0.0704387426,
-0.1112985164,
0.0444017202,
0.13255319,
-0.2128742337,
-0.0954211354,
0.1789368242,
0.0546290055,
0.2867626548,
0.090434745,
-0.2125889659,
0.1940510571,
-0.3190437555,
-0.0655717254,
-0.1915601492,
-0.0587910339,
-0.0675602332,
-0.1182295829,
0.4792559147,
0.0995844752,
0.0326143987,
0.2687475681,
0.106062904,
0.077769123,
-0.1224479526,
0.2007590234,
0.1557710767,
0.0766421705,
0.1295703202,
0.0229568947,
-0.2260318547,
-0.1936636567,
-0.2553223372,
0.3502628505,
0.1382746845,
-0.2279367894,
-0.435672611,
0.0755715221,
0.0437259264,
0.1526125669,
0.130805701,
0.2008615881,
0.293081969,
0.3658078909,
0.0010361865,
0.3005888462,
-0.3199252486,
-0.3942805231,
-0.1051794738,
0.3204547167,
-0.4212424755,
-0.1009721234,
0.1355400383,
-0.1225453317,
0.1391238123,
0.2384171337,
0.2263338417,
-0.3725572228,
0.0250781197,
-0.1242955327,
-0.0242590811,
0.1046297401,
0.022330109,
0.0954800621,
0.194607988,
-0.2149743289,
-0.0951239467,
0.0950683057,
-0.5300652981,
-0.0877711996,
0.0242651124,
0.2465445548,
-0.0689613894,
0.0110312635,
-0.6024032831,
0.0946129262,
0.1463535875,
-0.2219100446,
0.1035976857,
-0.2148194015,
0.0085425116,
-0.1859184951,
0.2275684327,
0.4329826534,
-0.4388877451,
0.0616353974,
0.1866443157,
0.0247416664,
0.3251603246,
-0.030898083,
-0.2035871148,
-0.0952485353,
-0.147941798,
-0.0823003724,
0.3361433148,
-0.454246521,
-0.2818061709,
0.210929215,
-0.0842545554,
-0.0061460724,
0.0338435359,
-0.0713118613,
0.0243239477,
-0.2501994669,
0.0208878536,
0.3124951422,
0.0346343219,
0.2238522321,
-0.2625689805,
-0.2556949556,
0.1888910532,
0.0224906355,
-0.2124091387,
-0.2279864401,
0.169841066,
0.244456172,
0.2650097907,
-0.0716838613,
-0.2540250719,
0.2266708165,
0.1636254936,
-0.265448451,
-0.1530473828,
0.1478767693,
0.097591877,
-0.0085667716,
-0.4412299693,
0.1540108621,
-0.1883799881,
-0.1166941002,
-0.1519980133,
0.0756862834,
-0.5332607627,
-0.2902415991,
0.2259462923,
-0.0512885936,
-0.103630811,
-0.0128428452,
-0.1843511015,
0.2484761029,
-0.0960382372,
-0.0238133296,
-0.3227476776,
0.1692885458,
-0.147987783,
-0.2545019686,
0.3124354184,
0.2807562649,
0.2038685679,
-0.1880599558,
-0.3029398322,
0.2458580881,
0.0449905545,
0.3558739722,
-0.3245794475,
-0.2304285467,
0.4206212461,
-0.6723700166,
0.1462450624,
0.432742238,
0.2300488949,
-0.0863216296,
0.3771478534,
0.2802092135,
0.0099498462,
-0.0249162409,
-0.0998433605,
-0.1123463735,
0.1350066066,
0.0347358398,
0.1497472376,
-0.1532126963,
0.3822410107,
0.6770515442,
0.2885442972,
-0.0659379959,
-0.0031925789,
0.0499929599,
0.4282435477,
-0.0313407518,
0.0099422997,
0.0277372412,
0.0115203178,
-0.1405823678,
0.0482859574,
0.067497775,
0.1577581912,
-0.0938324556,
-0.3045616746,
0.2788316607,
0.0654538199,
-0.1355652958,
0.1910293996,
-0.1055885404,
-0.0699122995,
0.0142461732,
0.0924217999,
0.040595036,
-0.1860480458,
-0.1129704937,
0.0957057551,
0.1482973099,
-0.3401216269,
0.2751015425,
-0.4626469314,
-0.3754617572,
-0.1783540994,
0.2071151584,
-0.128683731,
-0.0076486263,
-0.1607838571,
-0.1041116789,
0.1516873538,
0.2843092978,
-0.1858736128,
-0.0620627031,
-0.1134631857,
-0.1641198546,
0.1164784357,
-0.1277105063,
-0.2553989291,
0.0823453516,
0.4200479388,
0.0251667965,
0.0639338046,
-0.3856788576,
0.1357679367,
0.3003233373,
-0.1755381674,
0.2783759534,
-0.2725764811,
0.1561867893,
0.0260643903,
0.0388390347,
-0.0439629667,
-0.2212330848,
0.2425480932,
-0.14990668,
-0.0040792087,
0.1408833712,
-0.0309935417,
-0.2017134428,
-0.1660741866,
-0.008595054,
-0.5145347118,
-0.3367132843,
-0.3198549449,
0.0043237493,
0.1315590143,
0.2935813367,
0.1360128075,
0.1235326529,
0.1453146189,
-0.1120189726,
-0.0669116601,
-0.4351954162,
0.2787835598,
-0.2855580449,
-0.3827347755,
0.056774132,
-0.0542960614,
0.5393147469,
-0.1494330168,
-0.1855554432,
-0.059588585,
-0.0793233737,
0.0459491462,
-0.003210664,
0.1624265313,
-0.0027853821,
-0.070889391,
0.0175639503,
-0.1337157041,
0.0254942123,
-0.0617821813,
0.0362774134,
0.3804637194,
0.0331328847,
0.1845367551,
-0.2000240386,
0.0022229643,
0.2838158309,
0.0751432106,
0.7266829014,
-0.1042952016,
0.334374249,
-0.1572367251,
-0.0879112557,
0.0311768893,
-0.1539883465,
0.008196068,
0.0513678864,
-0.0408372283,
-0.123536244,
-0.3065726757,
-0.0719730482,
-0.1756374389,
-0.254078716,
0.0641206056,
0.1964413077,
0.1248774081,
-0.0756761581,
0.1900191754,
0.115394555,
-0.2332875431,
0.0341153517,
0.3092290461,
-0.1363596767,
0.2283604145,
-0.3142038584,
-0.4231188893,
-0.1252250224,
0.1707865447,
0.2169892639,
0.321967423,
0.0325644873,
0.1843998581,
0.1240589693,
-0.1191465557,
0.110594742,
0.1513095796,
0.1104794219,
0.1094783545,
0.0363934897,
0.0851013213,
-0.1229365319,
-0.1389255524,
0.0926548615,
0.0919784978,
-0.3064922094,
-0.1430081129,
-0.0295896903,
0.0537064485,
0.4073209167,
-0.094846122,
0.1092240661,
-0.4352788329,
-0.6628597975,
-0.1123474762,
-0.2616869807,
0.2751930356,
0.2804514766,
-0.0930491984,
-0.0211577043,
0.0791030526,
-0.2505543828,
0.3101433814,
0.427491188,
0.5339711308,
0.0862646326,
-0.0194545817,
-0.1762208343,
-0.2426548153,
0.2761381269,
0.696228981,
-0.0227933601,
-0.2288331538,
0.1570194215,
-0.1308868229,
0.2720613182,
0.2541863024,
-0.1872229725,
-0.0783880875,
-0.2135689259,
-0.1060024127,
-0.1555952728,
0.2363245189,
0.2061838061,
0.0780974627,
-0.6163370609,
-0.5784110427,
0.6196982861,
0.0039473888,
0.1832073033,
0.1434500962,
-0.0224705152,
-0.3126705587,
0.138760075,
0.0617132224,
0.9569506049,
0.210005641,
0.1338703036,
0.3063668013,
0.0935852155,
0.1403225809,
-0.1279687434,
0.2171007842,
-0.332646966,
-0.2194081843,
0.0028503535,
0.0785795674,
0.148081392,
-0.001091752,
-0.2661411762,
0.2339379489,
-0.0966950729,
-0.3270172775,
0.1215314791,
0.1934321523,
-0.2453077734,
-0.1436849833,
-0.6070854068,
0.214099288,
-0.1180017442,
0.0181744304,
-0.1240861714,
-0.2341250628,
-0.0462034084,
-0.3025850654,
-0.1978775114,
0.3659678996,
-0.4864295125,
0.1834526807,
-0.1319802403,
-0.6856116652,
0.2966012061,
-0.0068878825,
0.0750281215,
0.2151509225,
0.0087228827,
0.2325279266,
0.3472608328,
-0.0084366165,
0.1008885056,
0.1394305974,
0.0247579012,
-0.1841706336,
-0.043343775,
0.2549688816,
0.1161741838,
-0.0388154872,
0.2637770772,
-0.0586364828,
-0.123666361,
-0.1759617329,
-0.2906428576,
-0.2101518363,
0.2039057016,
-0.0643699169,
0.1580637544,
0.0173809323,
-0.2333698571,
-0.0397104025,
0.1144285873,
-0.318439126,
-0.1402507871,
0.046860598,
0.0103987586,
-0.082884185,
0.4898571074,
0.2013560832,
-0.1491770595,
-0.091268599,
0.3218548298,
0.0427364334,
-0.5850661993,
0.0545307435,
0.1139187962,
-0.1064215824,
0.0597927868,
0.7707698345,
-0.0121221291,
-0.0816620812,
0.1693047881,
-0.3554032445,
-0.3297328949,
-0.0021988403,
-0.1268312186,
0.0535097346,
0.1177990437,
0.5053520799,
0.0303914621,
-0.0944209546,
-0.3083256781,
0.0938748047,
-0.0797487274,
-0.00145139,
0.1456511319,
-0.0619984493,
0.1321709454,
0.1597165018,
0.1371440291,
0.3783656955,
-0.1036974266,
-0.1838033646,
-0.1208276227,
0.0895378441,
-0.0762760714,
-0.3509171605,
-0.1385746151,
0.0530449413,
-0.0840034783,
-0.0165411644,
0.1091460437,
0.053791143,
0.0979353935,
0.1658829749,
-0.3130360544,
-0.0078536663,
-0.0178287979,
0.2861250043,
-0.0905451924,
0.4674900174,
0.152681306,
0.088424027,
0.0615561865,
0.0038006853,
-0.1924202591,
-0.0162331201,
-0.2317231745,
0.0429795533,
0.1086517125,
-0.4080072343,
0.3844201863,
0.1662027836,
-0.0784979463,
0.5113184452,
-0.2503391206,
-0.0002713033,
0.2907700539,
0.1652011871,
-0.3032809794,
0.0985561013,
-0.2944167852,
0.0109411841,
-0.1226771772,
0.4289172888,
0.2969358265,
-0.1355917454,
0.2463412136,
-0.0419787057,
0.4657472372,
0.1641961038,
0.4294068515,
0.3339245617,
0.1176097021,
0.183543399,
-0.1204460114,
0.1563707441,
-0.0424380489,
-0.0288280863,
-0.625331223,
0.1836434305,
0.083086729,
0.0889217779,
-0.0404973216,
-0.2828098834,
-0.1842343509,
-0.0523002036,
-0.1952906847,
0.3339409232,
0.0554022826,
0.4945180416,
-0.4045982659,
-0.0543087348,
-0.0903535858,
0.1913444549,
-0.1062503383,
0.1158465371,
0.175166592,
-0.0295302626,
-0.3728176355,
0.051000759,
-0.0478916802,
0.1516237259,
-0.098498337,
0.3364899158,
-0.1681472659,
0.0062474948,
0.0209679604,
0.1837593764,
0.074599795,
-0.1302243769,
0.565500319,
0.3868286014,
0.16326572,
0.2651094496,
0.1187301353,
0.5911537409,
0.4245759249,
-0.1783137769,
-0.0057316325,
-0.0481449328,
0.0702980161,
0.1987103075,
0.0354100093,
0.2802945077,
0.4603324831,
0.187200889,
0.1704153717,
-0.1349003315,
-0.2581366599,
0.1844439059,
0.0249450728,
-0.0015243784,
0.2883338034,
-0.0720066503,
0.2568311691,
-0.5061606169,
-0.1153297797,
-0.4890583456,
0.2965936065,
0.4165181518,
0.0372213498,
-0.0408970267,
-0.2159249634,
0.099610135,
-0.0284941178,
0.4844786525,
0.2472029477,
0.0303105097,
-0.2621784806,
-0.1003776938,
-0.656193912,
0.2546976209,
0.0283437483,
-0.4872551858,
-0.1307217777,
-0.3052959442,
-0.0057945019,
0.3557798266,
0.1714763641,
0.3289459646,
0.085104689,
0.0911222696,
-0.1206824183,
-0.0237274375,
-0.2309013158,
0.0887989998,
-0.15668571,
-0.2004085481,
0.0185228139,
-0.2647873163,
0.0986329988,
-0.2584553361,
-0.341183126,
-0.2736743689,
0.0481206588,
0.3000489175,
0.1353304237,
0.3911931217,
-0.1834630221,
-0.2070966959,
-0.0924068913,
-0.174121663,
-0.1101754457,
0.2745245099,
0.2171795815,
0.1259853393,
0.0533536486,
0.1425207853,
-0.5296489,
0.3337310553,
-0.0269118529,
-0.2261539102,
-0.2503291965,
0.042420812,
-0.0791866332,
-0.0027169152,
0.2878602445,
0.3772039115,
0.0333363414,
0.2308594584,
-0.1974362731,
-0.4907914698,
0.2464108467,
-0.4184903502,
-0.1275347322,
0.0717022419,
0.2166999429,
-0.1613464803,
0.0805049762,
-0.5184623003,
0.2307831794,
0.0320795402,
-0.0563876517,
-0.2104316652,
0.3002870381,
-0.2732471228,
-0.0560419261,
-0.0295713842,
0.3224098086,
0.1971320212,
-0.1095011607,
0.073623836,
-0.2415112108
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
| ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 24 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
| [
-0.281769067,
-0.077122435,
-0.0259541087,
0.1864887029,
0.4318788946,
-0.1063414887,
-0.0490795486,
0.2102421969,
-0.288875252,
0.078931883,
0.1698378772,
0.5185146332,
-0.0157340113,
0.4039366543,
0.2165162712,
-0.0277955458,
-0.0087144906,
0.3307390213,
-0.0386376642,
0.0391564108,
-0.3182016611,
0.1808056831,
-0.0628182366,
0.0498372093,
-0.3340268731,
-0.1292742491,
0.1371209323,
0.334736526,
-0.3895090222,
-0.5701818466,
0.2702988386,
-0.0080772936,
0.170627743,
0.3130137026,
-0.0001040535,
0.0268082451,
0.3452883959,
-0.3027346432,
-0.1040400937,
-0.2532046139,
-0.2504179776,
-0.3094663918,
0.1723183095,
-0.1982566416,
-0.0262209699,
0.2419231385,
-0.0710229278,
-0.1036928073,
0.4995190501,
0.2284306437,
0.2823842764,
0.1334478855,
0.0270902291,
0.119196482,
0.0230808873,
0.2401788086,
-0.0793571323,
0.4386380315,
0.2769224644,
-0.1497910321,
0.2019457072,
0.2887744308,
-0.1177523583,
-0.0590950586,
0.097138606,
0.0272608399,
-0.1220089346,
-0.3863955438,
0.047832001,
0.1814052463,
0.337605536,
-0.3324699104,
-0.0737318099,
0.1352526248,
0.1053183004,
-0.4322820902,
0.3052654266,
0.3276410103,
-0.3073071241,
0.0905288756,
-0.0683730096,
0.1381130517,
0.0039157672,
-0.0165489055,
0.0366804264,
0.025112791,
-0.1426300853,
-0.0910671949,
0.1715583503,
-0.110881798,
0.1577509046,
0.0657358393,
-0.2696865797,
0.2028371096,
-0.1358709186,
-0.1643539518,
-0.1352390498,
-0.1784210801,
-0.0712778419,
-0.1799982786,
0.628413558,
0.0887387395,
-0.0453394242,
0.3436101675,
0.2137923539,
0.0779400766,
-0.1613691449,
0.2298022956,
0.1764535755,
0.1067806035,
0.1351502389,
0.0063297316,
-0.1947846562,
-0.2007734627,
-0.3806662858,
0.2614672482,
0.2055314779,
-0.1674136668,
-0.3905965686,
0.1570672393,
-0.025128793,
0.1251739264,
0.1215744242,
0.2305427492,
0.2509420514,
0.2337394208,
0.1035003811,
0.3014072776,
-0.2691759765,
-0.2696079314,
-0.0902691931,
0.2240217477,
-0.3366371095,
-0.1306651682,
0.1875254661,
0.0248260275,
0.150721699,
0.1681639552,
0.1875312924,
-0.1822354198,
0.083100453,
-0.0185788907,
0.06664294,
0.1819322109,
0.0184237231,
0.0592943132,
0.1957463175,
-0.3177240193,
-0.149690792,
0.0478969477,
-0.4498773217,
-0.1029238626,
-0.0498547442,
0.2764463425,
-0.0709629729,
0.0148943998,
-0.5774102211,
0.1033244208,
0.1036704481,
-0.306520611,
0.1104099825,
-0.1724873334,
0.0652480274,
-0.1789132953,
0.1632582545,
0.4239065945,
-0.5196291804,
0.0614094175,
0.2629777491,
-0.0087284353,
0.3078124821,
0.0395207256,
-0.2188352495,
0.0014088142,
-0.1103208885,
-0.0673662275,
0.34277457,
-0.3594681323,
-0.2083868831,
0.2648145258,
-0.0599898398,
-0.0064672427,
-0.0183020756,
-0.0459114686,
-0.0296960324,
-0.1674282253,
0.1635742933,
0.407384783,
0.0208942089,
0.331974268,
-0.1895999312,
-0.200138703,
0.1352940649,
0.1335033625,
-0.3661079109,
-0.1996989697,
0.1727053821,
0.3472841084,
0.232628718,
-0.1098584309,
-0.2995853424,
0.1958721876,
0.1872799844,
-0.2911572158,
-0.1688217372,
0.272703886,
-0.0299200136,
-0.0008161837,
-0.4668937325,
0.1937797666,
-0.3488874435,
-0.1252828687,
-0.1011167914,
0.1086003482,
-0.4706578851,
-0.2607015669,
0.2740674019,
-0.0427690111,
-0.0989651904,
0.0541106649,
-0.1565454006,
0.173828572,
0.0019520782,
-0.0128228879,
-0.3405914903,
0.1497585326,
-0.1362094879,
-0.2563151419,
0.3186993897,
0.2369577438,
0.1342217177,
-0.1979387701,
-0.2061990499,
0.2130199969,
0.0390107185,
0.3725278974,
-0.2939711511,
-0.2491042614,
0.4123366475,
-0.5082931519,
0.0771568269,
0.4808595479,
0.2183995098,
-0.1461537629,
0.2769643068,
0.2817264497,
-0.0891662538,
0.0151478034,
-0.0292359516,
-0.1517889202,
0.1802475005,
0.0448530503,
0.0785500929,
-0.145723179,
0.354016006,
0.676011622,
0.2317336053,
-0.0618654378,
-0.0612975061,
0.063148126,
0.4979126155,
-0.0228533503,
0.0224456377,
0.030660281,
0.0818221867,
-0.1498588175,
0.0854415372,
0.0991884395,
0.1967512965,
-0.0726004392,
-0.2659806013,
0.162104547,
-0.0040250975,
-0.1762969941,
0.189349398,
-0.1335133165,
-0.0095680682,
0.0479489118,
0.135029614,
-0.0119344816,
-0.2644740343,
-0.2243678719,
0.0472706445,
0.1501174122,
-0.282851249,
0.2840697765,
-0.4692808986,
-0.3395821452,
-0.1189216971,
0.0577479154,
-0.1735457331,
-0.0477439202,
-0.0287639722,
-0.087550126,
0.0200845934,
0.2474018484,
-0.1192871183,
-0.0076294108,
-0.0873214826,
-0.1683950573,
-0.0243215598,
-0.2341930717,
-0.2052874416,
0.1376559287,
0.4320600927,
-0.0060565323,
0.0468512811,
-0.4066325724,
0.1306012124,
0.3167105913,
-0.188170895,
0.2786334455,
-0.2370864153,
0.0836381465,
0.0733191371,
0.1783913672,
0.0843785256,
-0.3423645794,
0.2534839511,
0.0106193852,
-0.1843848675,
0.1638585478,
-0.0660435259,
-0.1703945398,
-0.2623523772,
0.031226797,
-0.478166312,
-0.3827652931,
-0.145687297,
0.1230575666,
0.1545904577,
0.2949495912,
0.2861062586,
0.1185110658,
0.1604104936,
-0.0210370999,
-0.071176149,
-0.3474283814,
0.2403918058,
-0.3694213927,
-0.3852406442,
0.0362640135,
-0.0017282329,
0.5735810995,
-0.2455367595,
-0.2102107853,
-0.012437907,
-0.0979464948,
0.0303756706,
-0.1026785821,
0.0817887858,
0.0242634751,
0.0206767768,
-0.0392614678,
-0.1288286299,
-0.023988612,
-0.0752909631,
-0.0287439711,
0.3422813416,
-0.0258509852,
0.2903345525,
-0.2431196421,
0.037947353,
0.2327429056,
-0.0770641342,
0.6564682126,
-0.0829387754,
0.3366740942,
-0.2007138878,
-0.0529079624,
0.0831653327,
-0.1412674487,
-0.0648583844,
0.1083848551,
-0.0754473954,
-0.2820370793,
-0.3335748911,
0.0537838675,
-0.2663483024,
-0.2430244535,
0.0889941007,
0.1951133162,
-0.0806269944,
-0.0360128209,
0.1178687289,
0.0675625801,
-0.1302367598,
-0.0453022867,
0.2454380244,
-0.1497393399,
0.2119572908,
-0.2705282569,
-0.4818197489,
-0.1639062017,
0.1904547513,
0.1681248397,
0.2538116276,
-0.026094418,
0.0711108744,
0.1143477708,
-0.1675315499,
0.2137318552,
0.1218516454,
0.0823778212,
0.125548467,
0.0904082432,
0.0639790744,
-0.0746586472,
-0.2222864777,
0.1211323142,
0.1885785908,
-0.2162658721,
-0.2339186519,
0.0046442454,
-0.025585575,
0.3330484331,
-0.0405117795,
0.1393742561,
-0.4960223138,
-0.6708529592,
-0.2037332207,
-0.2221940458,
0.2060865313,
0.2809028327,
-0.0897951648,
-0.0868963897,
0.0504810102,
-0.2398332357,
0.1881610602,
0.5552309752,
0.4350996315,
0.1240933612,
-0.0356481299,
-0.220103085,
-0.1016194075,
0.371055454,
0.8140740991,
0.1218463331,
-0.2139304429,
0.1597453654,
-0.1061505675,
0.194942072,
0.2183973491,
-0.0612574071,
-0.1229308099,
-0.2011160702,
-0.047109697,
-0.1970368028,
0.2360364348,
0.2261996269,
0.0052682823,
-0.5391127467,
-0.4374729991,
0.5951077938,
-0.1041430384,
0.1791023165,
0.1939284801,
-0.0497262292,
-0.2902445197,
0.2526357174,
0.0939047411,
0.8820834756,
0.2124819458,
0.197195977,
0.3946864605,
0.1023964211,
0.2337597758,
-0.1697785556,
0.1595805585,
-0.2948201001,
-0.0567248948,
-0.0166517589,
0.0715667233,
0.1229254454,
0.1062174663,
-0.3144182563,
0.0424728543,
-0.0723966956,
-0.3561918437,
0.0593951494,
0.212486729,
-0.2269321531,
-0.2082308829,
-0.6637167931,
0.2391315699,
-0.1073244214,
0.0407226868,
-0.1362827569,
-0.26451841,
-0.0510923155,
-0.384580791,
-0.1963124424,
0.3531444371,
-0.4750063121,
0.1848691404,
-0.0700018331,
-0.6309321523,
0.1859447211,
0.0950208232,
0.132997483,
0.1886107028,
-0.0468603261,
0.232634604,
0.2573445141,
-0.0418463387,
-0.0256651435,
0.1446772963,
0.0865652785,
-0.2290066034,
-0.0461318307,
0.2251650989,
0.0787734166,
-0.0925494209,
0.3337954283,
0.0486083254,
-0.2959440351,
-0.1502699554,
-0.3046675026,
-0.1649680436,
0.1636932641,
-0.0122374985,
0.1836997718,
0.0649411902,
-0.2007924467,
-0.1235959828,
0.1584540308,
-0.3354061842,
-0.1280153394,
-0.0002244092,
-0.0564103238,
-0.0518175624,
0.4692661762,
0.1955725253,
-0.1823514849,
-0.1286048889,
0.3528127968,
0.0209736731,
-0.5445840359,
0.021662442,
0.2507888377,
-0.2140463591,
0.0216917228,
0.7245564461,
-0.0386076905,
-0.0383131951,
0.1979742348,
-0.3346596658,
-0.4100529552,
0.1211122945,
-0.17654185,
0.1115832999,
0.1292647868,
0.3700281382,
-0.0438421555,
-0.0467107072,
-0.3405134082,
0.0951455012,
-0.1919039041,
-0.0264839809,
0.1189279035,
-0.084854871,
0.1138952523,
0.1564536095,
0.1555797607,
0.3289299905,
-0.1472267509,
-0.2335825562,
-0.100958243,
0.0682492331,
-0.0222879276,
-0.2691428065,
-0.1357531399,
0.0717203468,
-0.0849234164,
-0.0229941197,
0.1489898413,
-0.0507920682,
0.1142266318,
0.1481943876,
-0.2287457287,
0.0628196597,
0.0075676143,
0.1854740828,
-0.1000137776,
0.5562204123,
0.1064176187,
0.0211145598,
-0.0779820681,
-0.000673016,
-0.12468265,
0.069360368,
-0.2328164726,
0.1099680364,
0.143317908,
-0.3258742988,
0.3833557069,
-0.0472301394,
-0.022543408,
0.4821298122,
-0.2560997009,
-0.0375839397,
0.2865121365,
0.2163230479,
-0.2558055818,
-0.0219413899,
-0.2864891887,
-0.0266388413,
-0.0596192256,
0.3174259663,
0.0948873758,
-0.0968193859,
0.2679111063,
-0.0562100075,
0.4560809731,
0.1287519038,
0.3024080396,
0.3055933118,
-0.1382282376,
0.1300305873,
-0.131955862,
0.1824096292,
0.0500273071,
-0.0265695062,
-0.6331772804,
0.0941196308,
0.0548142418,
0.0723896176,
-0.0161440521,
-0.2497698367,
-0.2015663534,
-0.0490619391,
-0.0829802081,
0.3896671832,
0.172081545,
0.3763702512,
-0.4089492559,
-0.0280418061,
-0.1358758062,
0.1379608065,
-0.0701371953,
0.0554984882,
-0.040929351,
-0.0583389178,
-0.2832137048,
0.085039705,
-0.0863704085,
0.1195401177,
-0.0830629095,
0.2690286934,
-0.1116133705,
-0.0280172098,
0.0860884413,
0.0169623271,
-0.0092139188,
-0.1316576898,
0.5656225681,
0.3985663354,
0.1152796149,
0.2964436412,
0.1866957545,
0.6348478794,
0.442738086,
-0.2009817958,
0.0176077783,
-0.2134802043,
0.0193561725,
0.0494366027,
0.1225807369,
0.323718667,
0.2292331904,
0.2328834087,
0.2080929726,
-0.1593469679,
-0.2050781548,
0.23380889,
0.0916534439,
0.1269598305,
0.2348293364,
-0.2353520393,
0.2718703151,
-0.4492450058,
-0.0878825784,
-0.4653196037,
0.2442933619,
0.2965213954,
0.0449355617,
0.0403482877,
-0.2311996222,
0.1190266237,
-0.0631498322,
0.6006461978,
0.1987867802,
0.1034516692,
-0.1107359082,
-0.0290538501,
-0.6104624867,
0.2797621787,
-0.0068357815,
-0.4517887533,
-0.1234368607,
-0.2283342779,
0.131938383,
0.4181396961,
0.0715557113,
0.3477073908,
0.0696173832,
0.0989479125,
-0.1631032526,
-0.0020973394,
-0.2136657387,
0.0870611742,
-0.1896214187,
-0.2382358611,
0.0256430842,
-0.3435178399,
0.1415509433,
-0.2849486768,
-0.2998346984,
-0.3997803628,
0.1126063317,
0.3344656825,
0.2275513113,
0.3273842335,
-0.2716760635,
-0.2994093597,
-0.0551986992,
-0.2854253948,
-0.0677865297,
0.3536015153,
0.2097642124,
0.2202963233,
0.0422312096,
0.2010895908,
-0.4806056619,
0.2990705371,
-0.1135337055,
-0.1927040219,
-0.2164247334,
0.0568377525,
-0.0278045814,
-0.0177573822,
0.197173804,
0.331928134,
0.0158204213,
0.1581098139,
-0.1731144786,
-0.4464833736,
0.3486944139,
-0.4384198487,
-0.1625085622,
0.295471698,
0.0785427764,
-0.2457389534,
0.1090267152,
-0.5252718329,
0.2714562714,
0.0139727052,
-0.0921184123,
-0.2960337698,
0.2218853086,
-0.2321227491,
-0.1918735504,
-0.0756715164,
0.4190499783,
0.1878013015,
-0.0788553208,
-0.0127316788,
-0.2181257755
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | @lhoestq
The error message is same as before:
Exception has occurred: UnicodeDecodeError
'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence
File "D:\python\test\test.py", line 3, in <module>
dataset = load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png)
I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function
these python script was found under this directory
C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
| ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 63 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
@lhoestq
The error message is same as before:
Exception has occurred: UnicodeDecodeError
'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence
File "D:\python\test\test.py", line 3, in <module>
dataset = load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png)
I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function
these python script was found under this directory
C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
| [
-0.2993039191,
-0.0795088783,
-0.0254608057,
0.2176792473,
0.3856868744,
-0.0703269839,
-0.1006559953,
0.1843706071,
-0.2766495049,
0.0560926683,
0.1345290691,
0.4247641563,
-0.0865387693,
0.2728082538,
0.2161012292,
-0.0068472927,
-0.0502491891,
0.2241972834,
0.1564086229,
0.0707990751,
-0.4088910818,
0.1733014435,
-0.1744894832,
0.1244190186,
-0.4139835835,
-0.0595940948,
0.0413279012,
0.3134811521,
-0.2633449435,
-0.6551198959,
0.1879900247,
-0.0460013039,
0.1435696185,
0.3817634284,
-0.000106594,
-0.0980057716,
0.2307549268,
-0.2170887142,
-0.1518952101,
-0.276779592,
-0.3016502559,
-0.309387356,
0.1195949912,
-0.3082412779,
0.0811882317,
0.1373252869,
0.0110623371,
-0.3305061758,
0.4484875202,
0.3554725647,
0.2603322864,
0.1282584667,
0.0217569191,
0.1405824274,
0.0245090164,
0.0218689665,
-0.0638803765,
0.4434993863,
0.2685889006,
-0.0473263972,
0.1204438955,
0.1458222419,
-0.1865745485,
-0.0480094813,
0.0152622377,
0.044720456,
0.0667639449,
-0.440767467,
0.1138864383,
0.1189367324,
0.0809881687,
-0.3776184916,
-0.185968861,
0.0942308232,
0.1264688671,
-0.6105188727,
0.237109974,
0.4000206888,
-0.3269695938,
0.159957096,
-0.0670776144,
0.0638428256,
0.0541389547,
-0.0907463208,
-0.0465914719,
0.1650672406,
-0.1873858422,
-0.0774284303,
0.1572608054,
0.0634272918,
0.1613902897,
0.0171972327,
-0.1779075712,
0.1812133044,
-0.2354558259,
0.0056718895,
-0.1401466131,
-0.0122231366,
-0.056979645,
-0.0703790486,
0.4700905979,
0.1602921337,
-0.0891897827,
0.2671578825,
0.037450105,
0.1032640263,
-0.216734007,
0.1008805037,
0.1906234175,
0.1225569844,
0.1977970898,
0.075273633,
-0.2027530968,
-0.2452731282,
-0.1989913583,
0.451569289,
0.3463511467,
-0.1463846713,
-0.4804706573,
0.0671457127,
0.0153361401,
0.0724574849,
0.097496517,
0.1500560343,
0.1725723743,
0.3843929768,
-0.0482335724,
0.2677054405,
-0.3312211931,
-0.2914782763,
-0.0979885757,
0.2515812218,
-0.3490155339,
-0.0358147398,
0.1118651778,
-0.1107490361,
0.1102606654,
0.2400001734,
0.170383051,
-0.3305485845,
0.0894225985,
-0.1719462425,
-0.0011079233,
0.0261317305,
0.0958599746,
0.155036062,
0.1559720486,
-0.3678235412,
-0.0557275862,
0.0636261106,
-0.5577608943,
-0.1297597438,
-0.1729637831,
0.2627519369,
-0.0124776019,
-0.0123803001,
-0.5066608191,
0.0706067979,
0.1725931019,
-0.2303979248,
0.0631194562,
-0.1705555469,
-0.1377055496,
-0.2525262237,
0.1753314137,
0.4754906297,
-0.2941105068,
0.0538601056,
0.1609712541,
0.0338650905,
0.3461769819,
0.0864405632,
-0.2136353254,
-0.1357931048,
-0.2194357812,
-0.0354540423,
0.3955557942,
-0.4324066639,
-0.2422581017,
0.3587152958,
-0.2437880635,
-0.0083460687,
0.0660074577,
-0.1317993701,
0.0356074832,
-0.2514542043,
0.1312208474,
0.4155411422,
0.0266560763,
0.274602592,
-0.1828944385,
-0.3092407882,
0.2006271183,
0.0163545404,
-0.2178278863,
-0.2202053219,
0.2515699863,
0.3486473858,
0.2898350954,
-0.1736855954,
-0.1671794206,
0.212867111,
0.0270126108,
-0.216755718,
-0.2222600728,
0.0945964679,
0.022303259,
-0.0189574491,
-0.3267048597,
0.0898944661,
-0.3444603682,
-0.1623486727,
-0.1593014747,
0.0376582146,
-0.6050461531,
-0.2833511531,
0.2350181639,
0.2086822391,
-0.0824369416,
0.0819687843,
-0.2075416893,
0.2771049142,
0.0008027413,
-0.0396682397,
-0.3657069504,
0.0936848223,
-0.1336217672,
-0.1018196344,
0.2282003313,
0.3284243941,
0.1678860486,
-0.1420122683,
-0.2412916273,
0.3130164444,
0.0796095356,
0.3886027932,
-0.2427392155,
-0.1854430288,
0.4853191376,
-0.6272904873,
0.1525296569,
0.4805999994,
0.2121468037,
-0.1064736247,
0.3261397779,
0.3260165453,
-0.0221675579,
-0.0876559392,
0.020877298,
-0.1277966797,
0.1704484373,
-0.0059430236,
0.1041060165,
-0.2580584288,
0.3132898211,
0.6806162,
0.3463378549,
-0.0056932648,
-0.0863396749,
-0.0046065496,
0.5590988994,
-0.0820824727,
0.0221953224,
0.0778365582,
0.1216898337,
-0.1580357552,
-0.0382323302,
0.086044319,
0.2751681209,
-0.0825377032,
-0.1489648521,
0.2428865284,
0.0354849994,
-0.257378459,
0.1527563483,
-0.0567200556,
0.0502872095,
0.0647865236,
0.16667521,
0.0959484428,
-0.2578537762,
-0.3063185513,
0.0870973319,
0.1154112965,
-0.3568193018,
0.3141885698,
-0.5408015847,
-0.3548945785,
-0.2717303336,
0.1222764179,
-0.1007573381,
-0.0870125741,
-0.1659289002,
-0.0778105184,
0.1684073806,
0.1757585406,
-0.2078566402,
0.0004748144,
-0.0593757443,
-0.0908878222,
0.1813367307,
-0.1437170208,
-0.2546927929,
0.0867510512,
0.4046461284,
-0.0034864859,
0.0353802145,
-0.395105958,
0.0685482845,
0.1820476353,
-0.119526647,
0.2201739997,
-0.2149031758,
0.1363782436,
-0.0043687704,
0.006755841,
0.0071472395,
-0.290643692,
0.1497113854,
-0.0239726249,
-0.0502181798,
0.1258328855,
-0.0785777122,
-0.187487185,
-0.2346597463,
0.0157001968,
-0.5259250998,
-0.4137796462,
-0.2053126544,
0.0765400752,
0.2234554291,
0.2994024754,
-0.0135564236,
0.2073115706,
0.2510853708,
-0.0007842442,
-0.121512346,
-0.3657850325,
0.3067183793,
-0.4246501029,
-0.4335760176,
0.0322741084,
-0.0820376948,
0.4345401227,
-0.0832581669,
-0.1792016178,
-0.0581073835,
-0.1336795241,
0.0765963346,
-0.0586903542,
0.1000945494,
-0.011169903,
0.0214982051,
-0.0183022786,
-0.0689401403,
0.0800177455,
-0.1598851681,
0.0732784271,
0.326739341,
0.0562296286,
0.225590542,
-0.1048820093,
-0.0407768674,
0.3091383278,
0.1325104535,
0.6449679136,
-0.1720909178,
0.2896551788,
-0.0610421337,
-0.0595873967,
-0.010182864,
-0.18365556,
-0.056068182,
0.1665944308,
-0.0855595618,
-0.1660767198,
-0.2576841712,
0.047412917,
-0.2950179279,
-0.2238307595,
0.0523655526,
0.1114466786,
0.1309529543,
-0.1122146249,
0.1643205881,
0.0339246467,
-0.2491914481,
-0.0222500935,
0.3163500428,
-0.1691475064,
0.1459115744,
-0.2220987231,
-0.3437351286,
-0.2073236108,
0.1932173371,
0.3202220798,
0.36629951,
0.0591942258,
0.2135511488,
0.1143077016,
-0.1909125894,
0.165367946,
0.074249506,
0.0477264188,
0.1528623402,
0.1147703901,
0.0004945479,
-0.086835444,
-0.2772710621,
0.2468750924,
0.0710148662,
-0.2654930651,
-0.1259056628,
-0.0268590115,
0.1045969948,
0.3931482136,
-0.1350220293,
0.2678692937,
-0.4257535338,
-0.7568019629,
-0.1499164402,
-0.2945362926,
0.2177585214,
0.3300012052,
-0.072768718,
0.0765948445,
0.0575870425,
-0.2534158826,
0.2762099504,
0.3764482737,
0.370862186,
0.2668076456,
-0.1186250895,
-0.1426454931,
-0.2091728747,
0.2116286755,
0.6942178011,
0.1674206257,
-0.2489531338,
0.1772019565,
-0.1624292731,
0.2050909549,
0.2624577582,
-0.1384049356,
-0.0221752822,
-0.1742611825,
-0.004603615,
-0.1279200613,
0.1411250383,
0.2708052099,
0.0400171727,
-0.5778194666,
-0.5629861951,
0.5285753012,
0.0018850547,
0.1206889898,
0.1148113161,
-0.0753370225,
-0.2992390692,
0.1864057332,
0.1224783137,
0.8694340587,
0.2407933921,
0.1287991256,
0.4219372272,
0.0710681155,
0.1791025251,
-0.0133960498,
0.2008656561,
-0.223732084,
-0.1441676766,
-0.0482101291,
0.1069192216,
0.169576332,
-0.0610565506,
-0.3289296925,
0.2480931431,
-0.0318164118,
-0.3604765236,
0.157213062,
0.2678995728,
-0.2972077727,
-0.1847030669,
-0.5931872725,
0.1891243607,
-0.1117912382,
0.0649577379,
-0.1340327114,
-0.1960577369,
-0.0200167671,
-0.276728034,
-0.2806452513,
0.3329106867,
-0.4735085666,
0.3480066359,
-0.2584131062,
-0.529086113,
0.2686243951,
0.1564142257,
0.2244635522,
0.0829586014,
0.0273847748,
0.1534836888,
0.2622379065,
0.0240560491,
0.0552039891,
0.076748915,
0.1274210811,
-0.1599382311,
-0.079519175,
0.3281883597,
0.1406795979,
-0.0697798058,
0.2809198797,
-0.0097972546,
-0.1568863392,
-0.0493089966,
-0.2253403217,
-0.260235846,
0.135981068,
-0.0604949445,
0.1317283809,
-0.0802660435,
-0.1057087258,
-0.107396841,
0.0571068227,
-0.3944146633,
-0.099721238,
0.1367489994,
0.0153045934,
-0.0763814226,
0.5025991201,
0.1954505146,
-0.1406811625,
-0.104896225,
0.3054180741,
-0.1084146798,
-0.5312291384,
-0.0495973863,
0.0164842829,
-0.0170058254,
0.0806871578,
0.6536360979,
-0.0109748775,
0.0688044578,
0.1723842174,
-0.5049067736,
-0.2466584593,
0.016613612,
-0.123302646,
0.0090256119,
0.1266394109,
0.4019543231,
0.0770139918,
-0.0840223506,
-0.3070729077,
0.1770122051,
-0.1739886105,
-0.0136990594,
0.2161898166,
-0.0522600263,
0.1325296015,
0.1732369214,
0.1574270874,
0.3606141508,
-0.0934452713,
-0.1727008671,
-0.1912989914,
0.0932843834,
-0.0934175774,
-0.3760540187,
-0.1042428315,
0.0646766871,
-0.0465691686,
-0.0101369899,
0.1986921728,
0.0797904581,
0.1309219152,
0.2023887783,
-0.2446155846,
0.0136062009,
-0.0848861411,
0.1965003163,
-0.0774522722,
0.5980933905,
0.1646556705,
0.2236828655,
0.0172847565,
-0.0131131141,
-0.3025081754,
0.0197590664,
-0.161550045,
0.0791382641,
0.0524099618,
-0.3789253831,
0.3416695595,
0.1473592669,
-0.1021379754,
0.4704589546,
-0.3041959405,
-0.0333040133,
0.2028286457,
0.1615918279,
-0.2177616656,
0.04600133,
-0.2467534542,
-0.1125782952,
-0.0840740278,
0.4584673941,
0.2320083082,
-0.0806797743,
0.1945518106,
-0.0239911284,
0.3604412973,
0.2142912745,
0.4479632378,
0.3134161532,
0.0202893578,
0.1337033659,
-0.1337767094,
0.1738450527,
0.0654901415,
0.1365725994,
-0.5954399705,
0.2841954827,
0.0992020592,
0.194631815,
-0.0844500512,
-0.311091423,
-0.0892354697,
-0.0549092107,
-0.2381764352,
0.317943573,
0.1723588705,
0.3926716149,
-0.441676259,
-0.0227641985,
-0.1770834923,
0.2958935499,
-0.0724510327,
0.0080595305,
0.0955117196,
-0.034978725,
-0.4344460368,
0.0805490315,
-0.0886062309,
0.1283376664,
-0.0331966765,
0.3416312039,
-0.1514340937,
-0.0637247413,
0.0173055828,
0.108075127,
0.080984436,
-0.2101389915,
0.5812783837,
0.4417740703,
0.14717035,
0.2122597694,
0.1768317074,
0.5937768221,
0.4060043991,
-0.2153435498,
0.0126568582,
-0.0964887962,
0.0308233351,
0.1480907649,
0.0102316504,
0.2071187794,
0.4157859385,
0.2502592504,
0.186178416,
-0.1576273292,
-0.1346199214,
0.310469836,
0.054428149,
-0.0621568151,
0.30126068,
-0.0716729239,
0.2231061757,
-0.3759076893,
-0.0721327364,
-0.4998145998,
0.2332313657,
0.3207104802,
0.0169822183,
0.0273132194,
-0.1229553893,
0.1045160741,
0.0163003039,
0.4972699881,
0.2941485345,
0.0312460922,
-0.1358422637,
-0.2252735794,
-0.7696903348,
0.2917547524,
0.0701573044,
-0.4844245017,
-0.1144130304,
-0.2295144796,
-0.1175688356,
0.3979945481,
0.0498128496,
0.2959580719,
0.1677707583,
0.0109779723,
-0.1803513318,
0.0211551338,
-0.0218763761,
0.0617011935,
-0.2551729083,
-0.3233394325,
0.1144114062,
-0.3997052312,
0.1131576374,
-0.3319920301,
-0.2369956374,
-0.3685524762,
0.0032365203,
0.2550114691,
0.2010787725,
0.3229778111,
-0.3041162491,
-0.2139410973,
-0.1175045893,
-0.1041313559,
-0.0419158451,
0.3619714975,
0.1920212358,
0.2813419402,
0.0825633183,
0.1538799852,
-0.5075466633,
0.418390125,
-0.0698079243,
-0.1183641925,
-0.2643516362,
0.1811921,
-0.0990328267,
-0.0012426701,
0.2663117051,
0.3861820996,
0.013814887,
0.2909948528,
-0.0476448722,
-0.5047468543,
0.2918061316,
-0.4830419719,
-0.1419982314,
0.1137423143,
0.2829332948,
-0.2061606497,
0.0223948341,
-0.4061277509,
0.2821894288,
0.1225741729,
-0.0387648903,
-0.3610475361,
0.305799216,
-0.3156980276,
-0.1741197556,
-0.0470322929,
0.328420043,
0.1485316902,
-0.1605900377,
0.1165082306,
-0.219447419
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Hi there !
I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me.
Thank you ! | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 72 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Hi there !
I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me.
Thank you ! | [
-0.3488940895,
0.0580563769,
-0.0053168614,
0.2148149461,
0.2911391556,
0.0693921298,
-0.0231634527,
0.1682783812,
-0.1171182916,
-0.0088032922,
0.0351623893,
0.3814254403,
0.059285257,
0.2256456316,
0.2042711675,
0.1376581341,
0.0813011602,
0.2279613018,
0.0762694776,
-0.0321262516,
-0.2550890744,
0.2474254668,
-0.1208336726,
0.1178523377,
-0.3460618556,
-0.1771094203,
0.1752643436,
0.2684678137,
-0.2989812791,
-0.5578819513,
0.3264293671,
-0.042031154,
0.1637300998,
0.3156365454,
-0.000107127,
-0.1720656306,
0.4879133403,
-0.2730461657,
-0.0977526754,
-0.2996375561,
-0.0662688389,
-0.1792028397,
0.2087060362,
-0.1951279789,
0.164209336,
0.236198768,
0.0254220068,
-0.2193972915,
0.2429872602,
0.2548007369,
0.251270622,
0.0758319199,
-0.0124273598,
0.0530118831,
0.1059625447,
0.0892355666,
-0.0343468636,
0.4207038283,
0.4167108536,
-0.0661736354,
0.1576463431,
0.1413361877,
-0.2976844311,
-0.1031860411,
0.1930611283,
0.1217104644,
-0.1926508993,
-0.5360170603,
0.0280172043,
0.2379919291,
0.4053962529,
-0.4262819588,
-0.2080037594,
0.0869112089,
0.2992160618,
-0.4392407238,
0.207883507,
0.4138445854,
-0.3085671663,
0.1394881904,
-0.0505689755,
0.1756735891,
0.1524311751,
-0.0138393296,
0.0176997259,
-0.0796571746,
-0.0850763842,
-0.0789386928,
0.1076147705,
-0.0334568024,
0.2237876356,
0.0531089827,
-0.1419590116,
0.0521734729,
-0.0420183055,
-0.0374316871,
-0.1653201133,
0.0665673912,
-0.0967044532,
0.0523699857,
0.3962656856,
0.1933191568,
-0.1017116532,
0.3944357038,
0.2274759263,
0.0416720137,
-0.2219595462,
0.2559438348,
0.3583297133,
0.1660339832,
0.0576861985,
-0.0020178698,
-0.1636368632,
-0.1274363697,
-0.1428080201,
0.2887330651,
0.1514274925,
-0.1898154765,
-0.4294268489,
0.1617305428,
0.1705233306,
0.2196199,
0.1940182745,
0.183828339,
0.1750239283,
0.3112074137,
0.0333498716,
0.3036218584,
-0.2544293106,
-0.2565977573,
-0.0809630156,
0.1975771636,
-0.2479849756,
-0.1120387539,
0.2367901057,
-0.0987467691,
0.1741169244,
0.2018454075,
0.2456617504,
-0.1505302042,
0.0676359758,
-0.1074691191,
0.2129865289,
0.2414593995,
0.1607816219,
0.2428203821,
0.1067943871,
-0.231348291,
-0.1709671468,
0.0372148007,
-0.4215361476,
-0.1010326892,
-0.0597744994,
0.2072862834,
-0.0817630365,
-0.1171906441,
-0.6567407846,
0.073089838,
0.0092075216,
-0.367939055,
0.0697243735,
-0.1777154207,
-0.0362021439,
-0.0768478811,
0.1931198984,
0.5341473222,
-0.4658973813,
0.1469021291,
0.0349593498,
0.0121598141,
0.2244075835,
0.1452995092,
-0.138791889,
-0.1420613378,
-0.315838784,
0.1119502112,
0.3089250624,
-0.5038154125,
-0.3365871012,
0.3986086547,
-0.0998630151,
-0.0152450474,
-0.0035208357,
0.0348179825,
0.1104175001,
-0.2140942365,
0.0104300277,
0.3849822581,
-0.0740711093,
0.1820015609,
-0.1900572032,
-0.1728016138,
0.1346138865,
-0.032770142,
-0.1712051928,
-0.1084193587,
0.1116732657,
0.1699970216,
0.2300957292,
0.0933081657,
-0.1538110822,
0.1082641855,
0.2403592467,
-0.0081667453,
-0.073368758,
0.1044959947,
0.079627268,
0.067335546,
-0.2456247509,
0.1067883968,
-0.4861818254,
-0.2660393715,
-0.1546813697,
0.0328308381,
-0.3553245366,
-0.0886504352,
0.2059870809,
-0.0387345441,
-0.2071615756,
0.0492849424,
-0.3249139786,
0.1765432209,
0.1097030938,
0.0658431202,
-0.2932020724,
0.1220302284,
-0.1851797551,
-0.2235824168,
0.2431553304,
0.1649619639,
0.1026880741,
-0.0626985058,
-0.1499414891,
0.2574967146,
0.0730737597,
0.344971478,
-0.2452045381,
-0.2048246711,
0.5607064366,
-0.5482066274,
0.113046959,
0.4191701114,
0.2602440417,
-0.1504663676,
0.2045989484,
0.2479988337,
-0.1719041318,
0.0086717661,
0.0719210804,
-0.0847105756,
0.2972039878,
0.1503051668,
0.0177872367,
-0.3461952209,
0.2551011741,
0.5953896046,
0.2146582007,
-0.0987162963,
-0.1114514917,
0.1296664178,
0.443941623,
-0.0543931276,
-0.0165179912,
0.0682233572,
0.0208386574,
-0.0622437708,
-0.0035001801,
0.0270832367,
0.0906311497,
-0.0888237059,
-0.2187938094,
0.2120046914,
0.0657971501,
-0.2460460514,
0.1466576904,
-0.0243354756,
-0.1499831527,
0.0709516406,
0.0682790056,
0.1316544116,
-0.2474686205,
-0.2776134014,
0.0352980383,
0.0612462573,
-0.3537084758,
0.2199955881,
-0.4938853979,
-0.381069988,
-0.1177897528,
0.0698184073,
-0.0420001484,
-0.1311086118,
-0.0912832394,
0.1379750222,
0.1113821045,
0.1218912601,
-0.3576263487,
-0.0745344535,
-0.1458537281,
-0.1930758208,
0.030477548,
-0.2158691436,
-0.1704758108,
0.0831769481,
0.4746141732,
0.092866987,
0.0708578452,
-0.4188652039,
0.2015620172,
0.0766292512,
-0.1373046339,
0.2315510213,
-0.2333491445,
0.1168906167,
0.0479769632,
0.0582226291,
-0.0004438424,
-0.4387208223,
0.1450604349,
-0.1077363864,
-0.02113216,
0.2000150383,
-0.0105558699,
-0.3811512291,
-0.1138436049,
0.0026008799,
-0.4156637788,
-0.2895945013,
-0.1918065697,
0.0485389382,
0.0491559729,
0.1971785575,
0.1036537662,
0.1325834095,
0.2278993577,
-0.0076733306,
-0.0012111741,
-0.3418914974,
0.4118303359,
-0.3309630454,
-0.4681511521,
0.2416667342,
0.0385170653,
0.370306164,
-0.2364396304,
-0.2635748684,
-0.0220804382,
-0.1116253063,
0.1798572242,
0.1413113028,
0.0253993385,
-0.0990378112,
-0.0507817864,
-0.0319889709,
-0.0363837518,
-0.0893609375,
-0.114113003,
-0.0868043303,
0.1754241437,
0.0025574435,
0.268050462,
-0.3292317986,
-0.0546301268,
0.2706370056,
0.0768693835,
0.7014579773,
-0.1841564029,
0.3847276866,
-0.2749555111,
-0.1120505929,
-0.1152989492,
-0.1782616526,
-0.0452872999,
0.1329734623,
-0.0346846655,
-0.364323169,
-0.3445568085,
-0.0151836155,
-0.3853970766,
-0.3656522334,
0.0515641868,
-0.0386586897,
-0.0795244351,
-0.0491096787,
0.1858219951,
0.1852455735,
-0.3853035867,
0.0595191754,
0.3000607789,
-0.0337145664,
0.1691734642,
-0.2003351003,
-0.4145608842,
-0.023872003,
0.064664863,
0.1260299087,
0.3964132965,
-0.0625856519,
0.1580932885,
0.0996638387,
-0.070034124,
0.2098916918,
0.0011675806,
0.1445216984,
0.133265391,
0.0414975248,
-0.0035134477,
-0.073607713,
-0.1917608827,
0.1426026523,
0.075923346,
-0.2320161313,
-0.1212173477,
0.0906408653,
-0.0179133397,
0.4438254535,
-0.0154710161,
0.1246912852,
-0.3756382763,
-0.6495367289,
-0.1162416041,
-0.2178597748,
0.2925517559,
0.1491615623,
-0.0827391371,
-0.0954448655,
-0.0313665345,
-0.2161991745,
0.259901315,
0.36670506,
0.4251412153,
0.0928976089,
0.1322708428,
-0.1587824821,
-0.2337960154,
0.4214050174,
0.7679150105,
-0.0410798863,
-0.3446141183,
0.0866516531,
-0.2720610201,
0.1166199818,
0.2882126868,
-0.1064956859,
-0.3059368134,
-0.0120730009,
-0.1494903415,
-0.0843590796,
-0.0203366224,
0.2839379311,
-0.0101467092,
-0.5025901794,
-0.5565866828,
0.5252873302,
0.0544941463,
0.148449719,
0.1141891256,
0.1410294026,
-0.3060487211,
0.3216564655,
0.0084048295,
0.8980355263,
0.1697077453,
0.052055493,
0.1316680014,
0.0856748372,
0.2320006937,
-0.1181475446,
0.1271192431,
-0.2963447273,
-0.2047524154,
-0.0603119992,
0.1422051042,
0.0265936982,
0.1766860336,
-0.3149735928,
0.2057438642,
-0.1948060244,
-0.2809527516,
0.002501559,
0.4298157096,
-0.4101654291,
-0.1963338405,
-0.3811074197,
0.221443966,
-0.0037672915,
0.0592157133,
-0.0165952425,
-0.123368971,
-0.0648110583,
-0.1962016225,
-0.5394252539,
0.2126027048,
-0.4355991185,
0.2661518157,
-0.1694539785,
-0.6015492678,
0.2076185793,
0.0584993772,
0.231920287,
0.204570502,
0.003377201,
0.1583483517,
0.4542041421,
-0.1000344753,
0.1493109763,
0.0307282377,
0.262571156,
-0.2266549021,
-0.1099128202,
0.1795324683,
0.1999659836,
0.0505418889,
0.4349759221,
0.0638069808,
-0.194910571,
-0.0802447721,
-0.4043857753,
-0.3073029518,
0.1276114136,
0.0048040273,
0.1415297687,
0.0007688263,
-0.0947988778,
-0.0846794173,
0.1823082119,
-0.293083787,
-0.1149967313,
0.1405194998,
-0.1353620142,
-0.211899668,
0.4401684403,
0.2668434083,
-0.2931905985,
-0.0937639251,
0.2529411018,
0.0810001343,
-0.6456250548,
-0.0327517912,
0.1414752752,
-0.0271259472,
0.0768990219,
0.5570616126,
-0.0146493064,
-0.0392854363,
-0.0212187208,
-0.4366119802,
-0.1500801891,
0.1035268828,
-0.0610396042,
0.0435238741,
0.0346661918,
0.2332763821,
0.1965369433,
-0.3172605932,
-0.2861512303,
0.1628327966,
-0.1895154715,
-0.0744391456,
0.1498775333,
0.0548624359,
0.0498877428,
0.033446677,
0.098644942,
0.3002924323,
0.0585888922,
-0.1640836,
-0.0407445915,
0.0971773937,
-0.08339414,
-0.3801465333,
-0.0983818918,
0.0328742675,
-0.1393336952,
-0.0724402517,
0.1072917581,
0.2493108958,
0.1552938074,
0.1637898982,
-0.2214391381,
-0.0776813403,
-0.0907817781,
0.2290744781,
-0.0882276073,
0.6197980046,
0.1204075441,
0.0937778428,
0.0755982473,
0.0117448736,
-0.0024527321,
0.0852477998,
-0.3687499464,
0.0874378905,
0.2601130307,
-0.2806626856,
0.4758727849,
0.3395781219,
0.0342617556,
0.6537336111,
-0.192458421,
-0.1549038589,
0.2746969163,
0.1757349372,
-0.2116664052,
0.0447174981,
-0.1870621294,
-0.0186886229,
-0.1748131812,
0.2415547371,
0.2729085386,
-0.0701916739,
0.1137247905,
-0.1272246987,
0.679685235,
0.0675559491,
0.445405364,
0.1634873897,
0.0051596644,
0.2355175763,
-0.1626000255,
0.2476622909,
0.0433173925,
0.1495418698,
-0.6107835174,
0.0075275828,
0.1179186925,
0.1389141083,
-0.0233901069,
-0.3540790379,
-0.1168870628,
-0.1897132993,
-0.0814372003,
0.2204176337,
0.077803351,
0.4481519163,
-0.3725142181,
0.0363467783,
-0.0800347552,
0.2290073037,
-0.034646526,
0.0572871566,
0.1025851667,
-0.0603951551,
-0.3064061105,
0.0626409054,
-0.1271177977,
0.1142823771,
-0.1865487546,
0.4548631012,
-0.0956261307,
-0.1367361993,
0.0715414882,
-0.1400911361,
0.1747958511,
-0.1992778927,
0.3945744932,
0.4614480436,
0.2651831806,
0.3899480999,
0.1301811785,
0.7003709078,
0.4630871713,
-0.2856805027,
0.1554400027,
-0.1311312914,
-0.0159363672,
0.1274092644,
0.0577636883,
0.2666424215,
0.3672748506,
0.1465815902,
0.1811801344,
-0.1162869707,
-0.1475503743,
0.1802453399,
0.2748168409,
0.0868371725,
0.2116271406,
-0.2151837647,
0.2226523012,
-0.6005720496,
-0.1891816705,
-0.3627198339,
0.1600748897,
0.5220954418,
-0.1226461306,
-0.1263445169,
-0.1507478654,
0.1021171585,
0.0949998647,
0.4163969159,
0.3352280557,
0.1280606538,
-0.1833305955,
0.0290788971,
-0.7274275422,
0.2501837909,
0.1206398085,
-0.4472250938,
-0.0691539198,
-0.0969259366,
-0.0752483979,
0.317058146,
0.0283108819,
0.3503973186,
-0.0214043763,
0.2206029594,
0.0137889097,
0.0328275487,
-0.2921743393,
0.0086514298,
-0.2400584519,
-0.182552889,
0.0216026846,
-0.5079545975,
0.084715575,
-0.2318253964,
-0.4743777514,
-0.3261172175,
0.2696190774,
0.3063949347,
0.1306883693,
0.5721479654,
-0.1645708084,
-0.2164476216,
-0.2139155865,
-0.2999969721,
-0.1513900161,
0.5063722134,
0.1918576807,
0.0153997513,
0.0620902702,
0.1250704229,
-0.4375209808,
0.3358761668,
-0.1156733558,
-0.1946090758,
-0.3811295331,
-0.0392204672,
-0.0960307121,
-0.0140086021,
0.1611046493,
0.3276618719,
0.0059702867,
0.1686802357,
-0.1238928735,
-0.6365166306,
0.3105711341,
-0.3692488074,
-0.0626580343,
0.0510924086,
0.2514260113,
-0.1500352621,
0.1229875833,
-0.5103999376,
0.2605609596,
-0.0195221379,
-0.1634384096,
-0.3511122167,
0.1121343449,
-0.2120517939,
-0.0391763039,
-0.1606922448,
0.3674105406,
0.2209971249,
-0.2025868893,
-0.0319332704,
-0.1216388419
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | > Hi there !
> I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
> I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me.
> Thank you !
Hello !
Glad you managed to fix this issue on your side.
Do you mind opening a PR for IMDB ? | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 97 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
> Hi there !
> I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
> I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me.
> Thank you !
Hello !
Glad you managed to fix this issue on your side.
Do you mind opening a PR for IMDB ? | [
-0.3819620907,
0.0328491218,
-0.0154809477,
0.2028753161,
0.3120901287,
0.0689587891,
0.005816231,
0.1825689226,
-0.083671324,
0.0293345749,
0.0140702985,
0.4008608162,
0.0577815697,
0.2399226576,
0.1625404656,
0.1409793943,
0.0723040327,
0.2220347822,
0.1050567403,
-0.0275193918,
-0.2586426735,
0.2288961411,
-0.1308450103,
0.1349902302,
-0.3728034794,
-0.1832355857,
0.1941954941,
0.2883251905,
-0.2690776587,
-0.5402292609,
0.3226150572,
-0.0409628972,
0.152574569,
0.304299444,
-0.0001053745,
-0.1787819117,
0.5192813277,
-0.2602533102,
-0.1324338615,
-0.2859142125,
-0.0765627325,
-0.1620349437,
0.2123644352,
-0.1953218281,
0.1557099372,
0.252700001,
0.0229268372,
-0.2271055132,
0.2151814997,
0.2319760919,
0.26766029,
0.0608118065,
-0.0186495148,
0.0458022654,
0.0669803619,
0.1003601179,
-0.0261969306,
0.4292516708,
0.4187470376,
-0.0728276148,
0.1366803646,
0.1390879005,
-0.2907060385,
-0.1177426428,
0.2308937013,
0.1356048137,
-0.1527101398,
-0.539737761,
0.0303563923,
0.2396235317,
0.4043299258,
-0.4341340661,
-0.2198885679,
0.0727625117,
0.2851530313,
-0.4451400042,
0.2295991629,
0.3813072145,
-0.3105046153,
0.1312861741,
-0.0726722851,
0.1851215214,
0.1598811746,
-0.0166886579,
0.0241955724,
-0.121352762,
-0.0719852597,
-0.0958217159,
0.0644969568,
-0.075563997,
0.2218589038,
0.0408136249,
-0.1298450977,
0.0311497245,
-0.0231444333,
-0.0654445589,
-0.1572764814,
0.0888465494,
-0.103169404,
0.0526710264,
0.3892244995,
0.1904301792,
-0.1060630605,
0.3926351666,
0.2187593728,
0.076483503,
-0.1863274723,
0.2649511099,
0.369094789,
0.1792967767,
0.0352391303,
-0.0075882007,
-0.1356831491,
-0.1409618855,
-0.1185562313,
0.289142549,
0.1462385654,
-0.181783244,
-0.4506697357,
0.1488845646,
0.1540306956,
0.2377270311,
0.1990225464,
0.1871266961,
0.1694629043,
0.3224521577,
0.0406056233,
0.2857057452,
-0.2505061328,
-0.2612251937,
-0.0903879851,
0.1797527373,
-0.2592475414,
-0.1103612706,
0.2183030695,
-0.101804547,
0.1758918017,
0.2183072269,
0.286207974,
-0.1571925581,
0.0534931831,
-0.0925324708,
0.2198350579,
0.2458465844,
0.1864882261,
0.2278590351,
0.1167298332,
-0.2549140155,
-0.14827241,
0.0122957854,
-0.4237725437,
-0.1114710942,
-0.0551037565,
0.2240452915,
-0.0579551943,
-0.0987669677,
-0.6468678117,
0.0615717247,
0.0012061174,
-0.3656572998,
0.0753831565,
-0.1864983141,
-0.0492682718,
-0.0849164873,
0.1986237466,
0.5331297517,
-0.4609875381,
0.1437169313,
0.0010172576,
0.0304281432,
0.2228223085,
0.1494708955,
-0.1381026357,
-0.1621315479,
-0.3192887604,
0.1065661386,
0.2765077055,
-0.5096930861,
-0.2977875471,
0.4063529074,
-0.093693167,
-0.0049825362,
-0.0029610691,
0.0064356178,
0.1321466118,
-0.2374905348,
0.0350816697,
0.356659472,
-0.0839656144,
0.1826423854,
-0.2123106122,
-0.1224607304,
0.097246632,
-0.0655149966,
-0.1674877852,
-0.1106646508,
0.1359252334,
0.158993572,
0.221543774,
0.1049711481,
-0.1610753089,
0.1081029996,
0.2616814077,
0.0201455839,
-0.0755082965,
0.1233403161,
0.0588508174,
0.0779781118,
-0.2107321918,
0.0863467082,
-0.439886421,
-0.2682014406,
-0.1456340104,
0.0335428342,
-0.3326473534,
-0.0839554444,
0.2256684452,
-0.0241779517,
-0.2100740373,
0.0258990563,
-0.3468072712,
0.1851455271,
0.0887816325,
0.0475904197,
-0.2662092745,
0.1227074638,
-0.1663832068,
-0.2624226213,
0.2336538285,
0.149412021,
0.1016341001,
-0.04740192,
-0.1530423611,
0.2827341557,
0.069858782,
0.3505370319,
-0.2592073977,
-0.1781458259,
0.5491707325,
-0.5299207568,
0.1276387572,
0.3686939776,
0.2468719482,
-0.1486336291,
0.2010567486,
0.2885652781,
-0.1976454854,
0.01616605,
0.0763600096,
-0.0940710753,
0.2952253222,
0.112800777,
0.0039010358,
-0.3647908568,
0.2632722259,
0.5909792781,
0.2062432468,
-0.1096373871,
-0.1240625009,
0.1479020268,
0.4497825205,
-0.0390717462,
-0.0305701289,
0.0685048103,
0.0158064645,
-0.0551203825,
-0.0131514724,
-0.0006506232,
0.0780512393,
-0.0851646587,
-0.2253018469,
0.2005333602,
0.05985393,
-0.2409397364,
0.169655025,
-0.0282122269,
-0.1508951783,
0.101019226,
0.0679655522,
0.1174644306,
-0.2235127687,
-0.260394901,
0.0180318635,
0.0348622911,
-0.3721188009,
0.1928664893,
-0.4626434445,
-0.344440937,
-0.0923713893,
0.062786825,
-0.0048270645,
-0.1374606192,
-0.074668996,
0.1510362327,
0.1117163301,
0.1418265253,
-0.3286171556,
-0.0649261028,
-0.1468442231,
-0.1589345336,
0.0047204075,
-0.2141063809,
-0.1598007232,
0.0984134674,
0.4974024892,
0.0695274547,
0.0424907282,
-0.4195206761,
0.1661722958,
0.0735996813,
-0.1208949089,
0.2249323428,
-0.2262672484,
0.1265571713,
0.0426303968,
0.0500892326,
0.0114444094,
-0.453096807,
0.1485357881,
-0.123547025,
-0.0203630254,
0.2205784768,
-0.0266792364,
-0.3890245259,
-0.1062776297,
-0.0042592096,
-0.3799139261,
-0.2897253036,
-0.1875099093,
0.0466420054,
0.0419531688,
0.2030293643,
0.1531606466,
0.1282237619,
0.2437353879,
-0.0116908364,
-0.0117252842,
-0.3491707146,
0.3963184953,
-0.3242888451,
-0.4361438751,
0.2484275997,
0.01812906,
0.3712931275,
-0.2505524755,
-0.2293866575,
-0.0445740223,
-0.1163300946,
0.2337528467,
0.1334400326,
0.0063668978,
-0.1004880667,
-0.0388954096,
-0.0566141382,
-0.0311202239,
-0.0822282657,
-0.1118073091,
-0.082301572,
0.1642274857,
-0.0008165048,
0.325759083,
-0.3444710672,
-0.0641672835,
0.2906716764,
0.0664938763,
0.6802043319,
-0.1825073659,
0.3822164536,
-0.2870156467,
-0.1066952422,
-0.1105034649,
-0.1770841926,
-0.0840746015,
0.1418686062,
-0.0455124825,
-0.3872095346,
-0.3534779251,
-0.0205646195,
-0.3872495294,
-0.3599242568,
0.0646852478,
-0.0233651083,
-0.083387211,
-0.051474072,
0.1716669947,
0.1632599235,
-0.3739401698,
0.070982337,
0.2905243635,
0.0032343513,
0.1390344948,
-0.1456487328,
-0.4058152735,
0.0373885818,
0.0740532279,
0.1374884099,
0.3621405363,
-0.0664486215,
0.1329340488,
0.1096548438,
-0.0678951442,
0.2257569581,
-0.0245676767,
0.151181072,
0.1217980608,
0.0325782448,
0.0282569192,
-0.0670829341,
-0.2033534348,
0.1408221126,
0.0898729041,
-0.2273915112,
-0.1217872053,
0.0814792886,
-0.0189187359,
0.4337354898,
-0.0289858673,
0.1312066168,
-0.3555260897,
-0.6048948169,
-0.1163030416,
-0.213559553,
0.3056265116,
0.131364584,
-0.0855508,
-0.0886628479,
-0.0354815461,
-0.2256161273,
0.2622630894,
0.3639516234,
0.4189309478,
0.0952567011,
0.1512112617,
-0.1506408155,
-0.2962845564,
0.4755999744,
0.7579311728,
-0.0628824458,
-0.3353410661,
0.0696814805,
-0.2625264823,
0.122596778,
0.2908005416,
-0.0995927155,
-0.3634562194,
-0.0428485535,
-0.135262534,
-0.0904112235,
-0.0461257696,
0.2596378624,
0.0115137249,
-0.4596989751,
-0.5531421304,
0.493663758,
0.068786554,
0.1376951933,
0.106533125,
0.151217714,
-0.3186250329,
0.3118926287,
0.0499965735,
0.8768309951,
0.1690898091,
0.0178327952,
0.1353871077,
0.1137557179,
0.1773055643,
-0.1257159859,
0.1167737246,
-0.3097363114,
-0.2357067168,
-0.0424280763,
0.1386723816,
0.0176190976,
0.2051662505,
-0.3177805543,
0.1894602776,
-0.2238884717,
-0.3268327415,
0.0049137003,
0.4409636855,
-0.4308354557,
-0.1852423549,
-0.3423237205,
0.2386997342,
0.0068173837,
0.0410209186,
0.0084727081,
-0.1343966722,
-0.0586548895,
-0.1826477051,
-0.5604509115,
0.204567641,
-0.4502363503,
0.2335242033,
-0.1552653164,
-0.5828347206,
0.2049242705,
0.0524211265,
0.2246321887,
0.2009427994,
0.0352863185,
0.1392655224,
0.4998711348,
-0.087682575,
0.1361323744,
0.0344668403,
0.3020974696,
-0.2286531627,
-0.0887025073,
0.1868338138,
0.209414497,
0.0480542481,
0.4210776687,
0.0568984523,
-0.181482017,
-0.0926156938,
-0.3883618116,
-0.3068868518,
0.1135512814,
-0.0009191321,
0.162693128,
-0.012549649,
-0.0806987137,
-0.082221292,
0.1979566664,
-0.2848179042,
-0.1028458178,
0.120929338,
-0.1530725509,
-0.1807938665,
0.4431287944,
0.255002439,
-0.3089765608,
-0.0976347104,
0.2654067278,
0.089582555,
-0.6359016299,
0.0107244402,
0.175041303,
-0.0135917021,
0.0732012987,
0.5347981453,
-0.0093496703,
-0.0093095265,
-0.0575877056,
-0.4145113826,
-0.1540645808,
0.111131385,
-0.0529178828,
0.0361155868,
0.0036037953,
0.2317664474,
0.1910300702,
-0.3191353083,
-0.3135761023,
0.1277841926,
-0.1809906363,
-0.0826671049,
0.1218073741,
0.0374049768,
0.0613200516,
0.0458122268,
0.1207921952,
0.2752503157,
0.0704005957,
-0.18560642,
-0.0310356263,
0.0935355052,
-0.0945867151,
-0.3848308921,
-0.1018100604,
0.0509497225,
-0.138248682,
-0.0940425768,
0.1085342839,
0.2424843013,
0.1397392601,
0.1503270864,
-0.2062703371,
-0.0738325864,
-0.0967537388,
0.2157618552,
-0.0656298101,
0.6222363114,
0.0835403204,
0.0899161845,
0.0687400699,
0.0016751635,
-0.0090176258,
0.091668129,
-0.3974385262,
0.1120014712,
0.2612664998,
-0.2647682726,
0.4513234496,
0.3277534544,
0.024849264,
0.6391990781,
-0.1918763369,
-0.1447708607,
0.2480617315,
0.1942305565,
-0.1797552258,
0.0820862725,
-0.1910091937,
-0.0413828194,
-0.1458641291,
0.2278404832,
0.2588406801,
-0.0676346272,
0.1220640093,
-0.1367560029,
0.6583896279,
0.0565243885,
0.4018709064,
0.169289127,
0.0072387303,
0.2384666055,
-0.1481666118,
0.2285071015,
0.0441471301,
0.1129241511,
-0.5978398323,
0.0120289605,
0.0928184092,
0.1366984546,
-0.0247605424,
-0.3500495851,
-0.0962139741,
-0.2052509189,
-0.1049080864,
0.2066027224,
0.07698825,
0.4065270722,
-0.3523641527,
0.0463087335,
-0.0728029162,
0.2305919081,
-0.0307384469,
0.0494088084,
0.0797047541,
-0.0599666461,
-0.335524559,
0.0768497661,
-0.1499579996,
0.1301868707,
-0.1789730936,
0.496809274,
-0.0891896412,
-0.0880019963,
0.069665432,
-0.1445422173,
0.2056098431,
-0.2087630033,
0.4046178758,
0.4655505717,
0.2585847378,
0.3722355366,
0.1180809438,
0.7204272747,
0.4647769332,
-0.2893509567,
0.1401362568,
-0.117988281,
-0.0371785574,
0.1352973729,
0.0572051257,
0.2359021902,
0.3432408571,
0.1024343967,
0.2056761086,
-0.1445982158,
-0.1523902416,
0.1710338444,
0.2750338316,
0.0960644931,
0.1789359152,
-0.1939712912,
0.2216332853,
-0.6160328984,
-0.1946114898,
-0.3276048005,
0.141303733,
0.5070895553,
-0.1426658183,
-0.1561325639,
-0.1630193442,
0.1189668104,
0.0971947238,
0.3863834739,
0.3257064819,
0.1111596301,
-0.1812243164,
0.0590066127,
-0.6790172458,
0.2511719167,
0.1505208015,
-0.4328426123,
-0.0628223345,
-0.0845030323,
-0.0707967579,
0.299831301,
0.0380313471,
0.3017369509,
-0.0169893857,
0.2377491444,
0.0184393171,
0.0462245569,
-0.2748253345,
-0.0114821717,
-0.2171440721,
-0.1663307548,
0.0131078521,
-0.538506031,
0.1001398563,
-0.2253275216,
-0.4575335383,
-0.2884436548,
0.3197563291,
0.2966777086,
0.1021386087,
0.5777384639,
-0.1906375587,
-0.2266545445,
-0.1735036224,
-0.302467227,
-0.155837968,
0.5097600818,
0.1807523072,
0.0282096043,
0.0652350858,
0.0682396516,
-0.4261286855,
0.3391426504,
-0.1371012181,
-0.2331568003,
-0.3533232808,
-0.036474783,
-0.1109624356,
-0.0156723596,
0.1409451514,
0.3411544561,
0.0085547855,
0.1746235639,
-0.1367999017,
-0.6540453434,
0.3415572643,
-0.3543438613,
-0.0692149103,
0.0435865857,
0.2550292611,
-0.1510985941,
0.1150418594,
-0.4863815904,
0.2621543109,
-0.0149343777,
-0.1655165404,
-0.3533982038,
0.1019227356,
-0.1916578561,
-0.0216969904,
-0.1677826941,
0.3394939899,
0.214702934,
-0.1901501715,
-0.055405207,
-0.1051220596
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | > This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
> Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
> See issues #242 and #307
Sorry for not responding for about a month.
I have just found that it is necessary to change / add the environment variable as what was told in #242.
Everything works after I add the new environment variable and restart my PC.
I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use. | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 115 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
> This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
> Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
> See issues #242 and #307
Sorry for not responding for about a month.
I have just found that it is necessary to change / add the environment variable as what was told in #242.
Everything works after I add the new environment variable and restart my PC.
I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use. | [
-0.3218463063,
0.0410402678,
-0.0172629934,
0.1921313703,
0.3841376305,
-0.0418330431,
0.053384766,
0.1839186996,
-0.2438147515,
0.0746562704,
0.1122437268,
0.4671258032,
0.1107989475,
0.3263351023,
0.2156342566,
0.0793419555,
0.1215933859,
0.2935245037,
0.0367934704,
0.0253928676,
-0.4600172341,
0.1801846027,
-0.1028250679,
0.1062121689,
-0.2276374847,
-0.1009323299,
0.0553657711,
0.273496449,
-0.2023731768,
-0.5459725857,
0.1896324158,
-0.0750285462,
0.2605704963,
0.2277506739,
-0.0001059823,
-0.0440535694,
0.2804324329,
-0.1803228855,
-0.1569126397,
-0.288973242,
-0.1975436211,
-0.3678894341,
0.1078185365,
-0.2368741781,
0.0635780767,
0.2137290835,
-0.0024226506,
-0.213617444,
0.4395005405,
0.3770245314,
0.2794307172,
0.1354237646,
-0.1147259995,
0.1099154204,
0.0541250184,
0.0573217161,
-0.0186663903,
0.5010843873,
0.2131779343,
-0.2339812368,
0.029831877,
0.1721235663,
-0.24235107,
-0.0580996834,
0.097324729,
0.1594383568,
-0.2101521641,
-0.4088994861,
0.1295930594,
0.1351367533,
0.3100126386,
-0.324975431,
-0.1276597679,
0.0083150854,
0.1066843048,
-0.7205761075,
0.3261366487,
0.426810652,
-0.245601967,
0.1342459917,
0.0609914362,
0.2269622535,
0.0461214408,
-0.0214391258,
0.0695761815,
-0.0316438563,
-0.2375248373,
-0.0469958037,
0.2229001969,
-0.0380633399,
0.092456907,
0.0012148166,
-0.210627228,
0.0815220997,
-0.2083331198,
0.0376018807,
-0.1750784665,
0.031568855,
-0.1538996994,
-0.0620154515,
0.5168817043,
0.154645279,
0.0136295594,
0.3213182986,
0.104925476,
0.0797770545,
-0.1220798939,
0.1708957553,
0.379280895,
-0.0342668109,
0.1415133923,
-0.0152552603,
-0.2251727134,
-0.347530961,
-0.2094828337,
0.3959981501,
0.2165503949,
-0.1523402184,
-0.4361652434,
0.1212784499,
0.0980657265,
0.0702150539,
0.0240606125,
0.2243415564,
0.2047695965,
0.3466664553,
0.0168047789,
0.2039867938,
-0.3592664003,
-0.2429448068,
-0.0173091292,
0.1819056123,
-0.3688889742,
-0.0697529987,
0.2735367119,
-0.1578790992,
0.0549857393,
0.2533171773,
0.1688398868,
-0.2118097693,
-0.0451451056,
-0.2011537552,
0.1154903919,
0.134848699,
0.0499351025,
0.2183388025,
0.1298354864,
-0.3230083287,
-0.0904249996,
0.0744726807,
-0.5151636004,
-0.0060917409,
-0.0799661502,
0.2387244999,
-0.1374501437,
-0.0513865463,
-0.4799756706,
0.1780169904,
0.0198981576,
-0.4306438863,
0.010103629,
-0.2054032534,
-0.135472551,
-0.213500455,
0.1875982434,
0.5726644397,
-0.5493265986,
0.2175497413,
0.2308416367,
0.0270517133,
0.2820723951,
0.1310221404,
-0.1339085102,
-0.1769121438,
-0.170634672,
-0.0320753083,
0.2616344392,
-0.2815623283,
-0.2736171484,
0.3523000181,
-0.0072573805,
-0.0457919762,
0.0350058079,
-0.1634367704,
0.193396911,
-0.2519919276,
0.0321125947,
0.3793455362,
0.0374854356,
0.3035109341,
-0.2011086494,
-0.1544059515,
0.2732437551,
0.0107408138,
-0.2936500311,
-0.2032540739,
0.2821953595,
0.1416627467,
0.1744513363,
-0.1511707902,
-0.1337526888,
0.1587602943,
0.2327428609,
-0.2096038014,
-0.0254871529,
0.1805099547,
-0.0249593183,
-0.0260686465,
-0.2298217118,
0.0581734069,
-0.2890237868,
-0.1495994031,
-0.0929417014,
0.0466048419,
-0.3246445358,
-0.2399465144,
0.2032573819,
0.0369510837,
-0.1426317692,
-0.0014227385,
-0.1411515176,
0.2768869102,
0.0107318154,
-0.0139017915,
-0.1724307239,
0.1861792058,
-0.0900349095,
-0.2032658756,
0.2726714313,
0.3069350421,
0.1852348745,
-0.1314295828,
-0.2873487175,
0.2914461792,
0.0348335728,
0.3578836322,
-0.2649576366,
-0.2401686907,
0.457837671,
-0.4840072989,
0.0709461793,
0.4611471891,
0.3018133938,
-0.0979865864,
0.154510051,
0.3615801036,
-0.1767526269,
0.0195954815,
-0.0165708102,
-0.1244196668,
0.2131323814,
0.0307012666,
0.0570870563,
-0.1943310946,
0.3480561376,
0.584890604,
0.2559980154,
0.0374701917,
-0.1499476582,
-0.0009216677,
0.5480140448,
-0.0926615819,
-0.073047474,
0.121999152,
0.0281347781,
-0.1021297276,
0.0819737464,
0.0354266539,
0.3410062194,
-0.1184015498,
-0.269351244,
0.2631339431,
0.0719555095,
-0.249324277,
0.1785948426,
-0.0663465858,
-0.0398107395,
0.0016246152,
0.1092249081,
0.2062706649,
-0.2464141101,
-0.089653261,
0.1819761992,
0.1307781786,
-0.3706769347,
0.3590084612,
-0.5268561244,
-0.4222702384,
-0.2778965831,
0.2370272875,
-0.1506248266,
0.0565888807,
-0.2060832679,
-0.0146385655,
0.0048540705,
0.1809753776,
-0.1959634274,
0.0591054782,
-0.1677373797,
-0.1239161119,
0.1611837745,
-0.2020172477,
-0.3256497085,
0.1091829538,
0.4991661012,
-0.0672032088,
0.0567063875,
-0.3631935716,
0.1340763271,
0.1923755407,
-0.1332844347,
0.1386750937,
-0.1958272159,
0.2174886018,
-0.0461456068,
0.0197296776,
-0.094022207,
-0.4398111701,
0.1757383049,
-0.0620790571,
0.0180765036,
0.1688303798,
-0.0519438013,
-0.2897467613,
-0.2744269967,
-0.1558917612,
-0.5099146962,
-0.3886059523,
-0.1136435419,
-0.1147130579,
0.0890479311,
0.3229116201,
0.0256179683,
0.0290211644,
0.1873551309,
-0.1173403189,
-0.0495330654,
-0.1487428695,
0.3419561088,
-0.4083913267,
-0.5525044203,
0.1008483544,
-0.0198438764,
0.3197478056,
-0.1563618779,
-0.189693734,
-0.006978347,
-0.1507256329,
0.1050704047,
0.0035449569,
0.1002132371,
-0.0547259934,
-0.0470753722,
-0.0254629962,
-0.1998526156,
-0.1922401488,
-0.0613546446,
0.0895953402,
0.2490136623,
0.0475215241,
0.249283731,
-0.2908987403,
0.0163078494,
0.3181402087,
0.0356077775,
0.5225813985,
-0.1361581385,
0.4234560132,
-0.0275135301,
-0.0585542172,
0.1832724065,
-0.3034589887,
-0.0593871698,
0.3025196195,
-0.0573700592,
-0.2925336361,
-0.3560013473,
-0.0560592264,
-0.399135828,
-0.4300522208,
0.2192283869,
0.0196993388,
0.0863972902,
-0.0032782415,
0.1869965047,
0.0527209491,
-0.3269920349,
-0.0897171423,
0.3263345361,
-0.0792775378,
0.1276280433,
-0.2166727185,
-0.5177028775,
-0.1570399851,
0.1196626425,
0.1495020688,
0.4917267263,
-0.0036260353,
0.131759584,
0.059584897,
-0.1126442179,
0.1731648445,
0.1403089315,
0.0347484723,
0.2260691971,
0.1334953606,
0.0010701,
-0.1015533209,
-0.2331474274,
0.1813057512,
0.0255565327,
-0.2500879765,
-0.1180430204,
-0.0594410822,
0.025844831,
0.449421376,
-0.1025724038,
0.1163971126,
-0.4000311792,
-0.53931427,
-0.0066743181,
-0.2123167813,
0.1392353773,
0.219372496,
-0.253837496,
0.0415286347,
0.0574586764,
-0.2547735572,
0.3427101374,
0.4044585824,
0.4600490928,
0.1762463003,
0.0257120095,
-0.2020938396,
-0.0036789987,
0.2242468446,
0.694976449,
-0.0148345558,
-0.3524723649,
0.1786700785,
-0.2261417359,
0.3051573932,
0.2745775282,
-0.2305903286,
-0.0252358243,
-0.119888261,
-0.0643103868,
-0.2265754044,
0.1373446584,
0.2278237939,
0.1492486149,
-0.6115510464,
-0.5212312937,
0.4964289069,
-0.0708810389,
0.1042996347,
0.1622758359,
-0.0925316885,
-0.2440130264,
0.2267636359,
0.0110181514,
0.8180406094,
0.1871767193,
0.1551419199,
0.2317282706,
0.0124782966,
0.2823655307,
-0.0824644789,
0.1657139361,
-0.2303946167,
-0.1943760514,
0.051592458,
0.161933735,
0.2197642177,
0.0098030595,
-0.3544759154,
0.1651540995,
0.1574189514,
-0.1693668514,
0.1786858141,
0.2002146691,
-0.2210115492,
-0.304435879,
-0.546343267,
0.1954889148,
-0.0740822405,
0.0194922555,
-0.0677195638,
-0.2836328745,
0.0822209418,
-0.2928805351,
-0.2578261495,
0.3182099462,
-0.5277627707,
0.1614254713,
-0.1627803743,
-0.6413747072,
0.3334994614,
0.1623920202,
0.1746073216,
0.2281081527,
-0.0163871422,
0.1101089492,
0.255858928,
0.0816320926,
0.025546439,
0.1103222072,
0.1319285184,
-0.1720839143,
-0.029833274,
0.210411191,
0.049755048,
0.1005040184,
0.373916328,
0.0870172605,
-0.1857059151,
-0.148485437,
-0.1668729633,
-0.2551543415,
0.1653782278,
-0.0172036216,
0.1532732397,
-0.0348779559,
-0.0256397314,
0.0324693546,
-0.0089333737,
-0.4061693847,
-0.1536927819,
0.0468811318,
-0.1016246602,
-0.1706159115,
0.492205888,
0.1520534754,
-0.2427228242,
-0.089872852,
0.2722654641,
-0.1683487147,
-0.499150604,
-0.0479399003,
0.2028666884,
0.0255378652,
0.0953288376,
0.6194523573,
-0.0614956096,
0.0107835708,
0.0822402239,
-0.5254036784,
-0.2215739936,
-0.0073888223,
-0.0767015293,
-0.0994525477,
0.1991026402,
0.2663199604,
0.0984673202,
-0.1928878427,
-0.3095080256,
0.0479180776,
-0.0177297145,
0.0585789718,
0.2214009613,
0.0117228087,
0.1854633987,
0.0903159305,
0.109625861,
0.3042014241,
-0.0431340486,
-0.1653183252,
-0.1965868622,
0.1016259715,
-0.0849458724,
-0.335591197,
-0.0742775425,
0.0007750164,
0.0120749651,
-0.1772140563,
0.1821673065,
0.0850232616,
0.0071398676,
0.1622146666,
-0.3617423177,
0.1223222688,
-0.0545534454,
0.2537568212,
-0.1959926486,
0.5454297662,
0.1013529226,
0.1406719983,
0.074645102,
0.0525413677,
-0.1080557778,
-0.075110279,
-0.3167440295,
0.0266649164,
0.1425265521,
-0.3232631981,
0.3874886632,
0.1754030883,
-0.041246824,
0.5807671547,
-0.1149186715,
0.0385224894,
0.4276028275,
0.1528722346,
-0.2509970963,
0.1376318932,
-0.3420260549,
-0.0307525285,
-0.1033079624,
0.2464758456,
0.2873434126,
-0.2221656144,
0.2221741229,
-0.182141915,
0.4188605547,
0.1687108725,
0.4179493189,
0.5055609941,
0.2075407505,
0.2703205645,
-0.119503893,
0.1081863567,
-0.0125816483,
0.0693637505,
-0.5291960239,
0.0862780288,
0.133126393,
0.2308525443,
-0.1569826454,
-0.4490403831,
-0.0620260723,
-0.1416442543,
-0.1820911169,
0.3372344673,
0.0895041898,
0.5444586277,
-0.5150149465,
-0.0241567362,
-0.0906512216,
0.1710394472,
-0.0851530731,
0.0186974164,
0.100198634,
0.0202855524,
-0.2237952352,
0.1610753536,
-0.1375222355,
0.1272425056,
-0.0745181963,
0.3670583665,
-0.1495955437,
-0.031094417,
0.0380571596,
0.0136259431,
0.0813052654,
-0.1314342767,
0.4910909235,
0.2642467618,
0.1730853915,
0.2993215621,
0.099136509,
0.6880449057,
0.4429653883,
-0.0856583491,
0.0140998149,
-0.1428179443,
0.0847915038,
0.1277452856,
0.1018151641,
0.3066110611,
0.4459539652,
0.1761085093,
0.1773951799,
-0.1048400775,
-0.0791590437,
0.1718278527,
0.0267850365,
-0.0118570626,
0.0672973767,
-0.0916434377,
0.216959402,
-0.4925688803,
-0.1169272661,
-0.330747664,
0.2565572262,
0.4066553712,
0.1152114645,
0.0020710696,
-0.1124934703,
0.1001631543,
0.1549315453,
0.4857949913,
0.1887947768,
0.1078947186,
-0.1383640915,
-0.0711543337,
-0.7003784776,
0.2771180272,
0.123869583,
-0.3950075805,
-0.1486749053,
-0.3675146997,
0.0559086837,
0.2969878614,
-0.0918396264,
0.2815228999,
0.0999480188,
0.0551987924,
-0.1643672585,
-0.0053277947,
-0.1478889585,
0.064938128,
-0.2525986135,
-0.2197632045,
0.0949417055,
-0.2618755102,
0.0492762439,
-0.2654635608,
-0.2644870579,
-0.3507197499,
0.0578469671,
0.345844239,
0.2307626903,
0.4740205109,
-0.2685821056,
-0.0703147352,
-0.1581528038,
-0.1835353374,
0.0014245799,
0.3380475938,
0.1791274846,
0.0468651466,
0.0372322462,
0.15754354,
-0.4053704143,
0.1725750566,
-0.098100692,
-0.080311656,
-0.1913541108,
0.0461894125,
0.0541714504,
-0.1207834929,
0.2979143858,
0.4182401001,
-0.0798113197,
0.0535574406,
-0.1110071987,
-0.5214462876,
0.2054066956,
-0.6085336804,
-0.1537295878,
0.1054371968,
0.304887563,
-0.2272163033,
0.1380756795,
-0.463804394,
0.2531894147,
0.0248386115,
-0.1234540567,
-0.3444531858,
0.1683740914,
-0.2985506654,
-0.13778162,
-0.0892172158,
0.4464711845,
0.1969403625,
-0.305091083,
0.1170786396,
-0.2842419446
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default.
Closing this one, but feel free to re-open if you gave other questions | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 32 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default.
Closing this one, but feel free to re-open if you gave other questions | [
-0.2920767963,
-0.115466699,
-0.048505228,
0.1429698169,
0.3976850212,
-0.13868545,
-0.0299378484,
0.2073107064,
-0.3486036956,
0.1107885018,
0.1741642356,
0.4716803432,
0.0220730379,
0.3367837965,
0.2393410355,
-0.0221369471,
0.034644451,
0.2812208235,
-0.0362175852,
-0.0421611108,
-0.27051422,
0.1711588055,
-0.0659665167,
-0.0170624517,
-0.3997241855,
-0.0124580525,
0.0486949235,
0.2974314988,
-0.3648321927,
-0.4751561284,
0.195189774,
0.0119114649,
0.1359136999,
0.2594551444,
-0.0001011886,
-0.0771027654,
0.3384812176,
-0.237466678,
-0.0726835504,
-0.2214622796,
-0.2162151933,
-0.3395409882,
0.0997420028,
-0.1581599414,
-0.0460248329,
0.2871541977,
0.0547698252,
-0.0264534559,
0.4907978773,
0.2225222439,
0.3361176848,
0.1082952768,
-0.0871384218,
0.0970924422,
0.0383864604,
0.1536253095,
-0.0810596421,
0.4045355916,
0.2657889128,
-0.2489143759,
0.1300008148,
0.3025207222,
-0.1547402591,
-0.1583585143,
0.0455348305,
0.0050726687,
-0.0771132782,
-0.4147138596,
0.078635931,
0.1539193839,
0.1933078915,
-0.3020582795,
-0.055919569,
0.0919889286,
0.1005072966,
-0.5315517783,
0.2414300144,
0.2892901301,
-0.2620904148,
0.0932657197,
-0.0564311221,
0.1054808125,
0.0520003699,
-0.0431903303,
0.032556273,
0.132736057,
-0.119257763,
-0.1243226528,
0.1317433417,
0.0007686696,
0.1545885205,
0.0858947933,
-0.2029137909,
0.2109209597,
-0.1349482834,
-0.1016721427,
-0.119392246,
-0.0037291136,
-0.0798949376,
-0.145708099,
0.5618261099,
0.1537454277,
-0.0523677319,
0.3236984313,
0.1299591511,
0.0667190924,
-0.1919053942,
0.1937865764,
0.2312005907,
0.048426386,
0.1330810934,
0.0626806021,
-0.173425898,
-0.2025742382,
-0.3286468983,
0.2584734857,
0.1405036151,
-0.1802669168,
-0.3870396316,
0.0865401477,
0.0774647295,
0.1144332364,
0.0800360963,
0.1966689974,
0.2150233537,
0.3200769424,
-0.0310162324,
0.2661577165,
-0.340572238,
-0.3002046049,
-0.1536054164,
0.2318944931,
-0.4263073802,
-0.1337782294,
0.1555857956,
-0.0103650959,
0.155893892,
0.207373485,
0.1698080152,
-0.1240435913,
0.0667796582,
-0.0724975094,
0.0879873857,
0.1300012618,
-0.0004066935,
0.0970364064,
0.1606966853,
-0.2576763034,
-0.0956005231,
0.069686614,
-0.4069734216,
-0.0201011747,
-0.0522614531,
0.3179691434,
-0.075324662,
-0.0466687568,
-0.4660191536,
0.191384092,
0.1194683015,
-0.3060788214,
0.1238183901,
-0.1691366881,
-0.0626118034,
-0.1708723605,
0.1583508849,
0.4247143567,
-0.4670238495,
0.0496593527,
0.2211830169,
-0.0012427062,
0.3695967197,
0.058758948,
-0.1565059274,
-0.142892614,
-0.1330501735,
-0.0047206813,
0.3198841214,
-0.3632707894,
-0.2036392987,
0.2700956762,
-0.0475944355,
-0.0306831524,
-0.017387582,
-0.0106357913,
0.053015396,
-0.1864282638,
0.0972903669,
0.4720681608,
0.0049762353,
0.2972853184,
-0.2908042669,
-0.21389772,
0.1408781707,
0.0919192359,
-0.2211560011,
-0.2059460878,
0.153409794,
0.3134852648,
0.2427744418,
-0.0770801306,
-0.2892001867,
0.1630905122,
0.2696894109,
-0.263469696,
-0.1851073354,
0.2320986241,
0.0784947872,
-0.0356949568,
-0.3901941478,
0.2268238366,
-0.2439685166,
-0.1308949143,
-0.093657434,
0.0231818743,
-0.4545503259,
-0.2627985775,
0.2949182987,
-0.0049350476,
-0.1328279972,
0.0112288091,
-0.1847513169,
0.2601161301,
0.0009449383,
-0.0335316584,
-0.2378198057,
0.1849799603,
-0.1797090173,
-0.2675314248,
0.2869932353,
0.2790138423,
0.1291238517,
-0.144708842,
-0.157281816,
0.286049068,
0.0124835912,
0.4131272137,
-0.2609882355,
-0.2436146289,
0.5184405446,
-0.5575979352,
0.070004113,
0.4544995129,
0.1927971095,
-0.1603339612,
0.243435055,
0.2702004611,
-0.0523841567,
-0.0549967736,
0.0412184447,
-0.1327363253,
0.1504894495,
0.0241406485,
0.0469060242,
-0.1603648365,
0.3626900315,
0.6080380082,
0.2547623217,
-0.0487531833,
-0.1286945194,
0.1122959182,
0.4738336802,
-0.0103485445,
-0.0013964117,
0.0326429904,
0.084879905,
-0.1663376987,
0.1038347334,
0.0503443107,
0.1257792711,
-0.0344344601,
-0.2082012147,
0.2009343058,
-0.0656058118,
-0.2105453163,
0.1600576788,
-0.1011011899,
-0.0115902266,
0.0224151723,
0.1100705564,
0.0249630529,
-0.3192923665,
-0.1397743821,
0.023509685,
0.0939735994,
-0.2500427961,
0.2658503056,
-0.4543835819,
-0.4244671464,
-0.1767518073,
0.0882070437,
-0.2056943327,
-0.0796078295,
0.010362139,
-0.0777701512,
0.0670161769,
0.2921091318,
-0.1647593677,
-0.0042428337,
-0.1236000881,
-0.0989779085,
-0.0117901424,
-0.1825900972,
-0.2122240216,
0.1677799821,
0.4413805008,
-0.0398412794,
0.1024438962,
-0.3816800714,
0.0646963641,
0.2964735329,
-0.3084109426,
0.2883992195,
-0.2581627667,
0.1106207594,
-0.0010715444,
0.0948398337,
-0.0560662672,
-0.314855516,
0.2171659619,
-0.119895786,
-0.0971308649,
0.1169729754,
-0.0459103249,
-0.1961919814,
-0.2785634696,
0.0642170683,
-0.4410552382,
-0.3425576091,
-0.202385962,
0.1259260625,
0.0929157808,
0.415661931,
0.2045499384,
0.0987192467,
0.1759499758,
-0.0851392224,
-0.1331691295,
-0.3334019482,
0.2693321705,
-0.3517208099,
-0.4344563484,
-0.0000724674,
-0.0121586202,
0.5023620129,
-0.1869821399,
-0.2606025934,
-0.1026283354,
-0.0670834705,
0.05553516,
-0.0144216679,
0.13798365,
-0.0324570164,
-0.0005476937,
-0.0640170053,
-0.1284195185,
0.0312204491,
-0.0455348678,
0.0314092189,
0.3433046341,
-0.0890801176,
0.1688875556,
-0.2043138146,
0.070365265,
0.1695309728,
0.0827559978,
0.6934220791,
-0.0739770904,
0.4205711484,
-0.1995116323,
-0.0481580012,
0.1415819973,
-0.1206925884,
-0.0635128394,
0.1851136535,
-0.049211964,
-0.2864259779,
-0.3336733878,
0.0551530048,
-0.2285636514,
-0.2171088308,
0.0999130979,
0.1652225554,
-0.0143464953,
0.012988802,
0.1171456724,
0.0883734375,
-0.2286765128,
-0.0144520327,
0.1805527508,
-0.1751569659,
0.171031177,
-0.286960125,
-0.3914888501,
-0.1915305406,
0.080062665,
0.1745440513,
0.2313802242,
-0.0802425668,
0.0730665177,
0.1344737113,
-0.1544649452,
0.1718644351,
0.125707075,
0.0307809375,
0.095423989,
0.1099883839,
0.0595222935,
-0.0545947179,
-0.2330916822,
0.1247989535,
0.1994680464,
-0.2205102146,
-0.1688950807,
0.0259047374,
0.0339107439,
0.31658566,
-0.0589164943,
0.1562266499,
-0.4766592681,
-0.6225411892,
-0.1087162048,
-0.1997413337,
0.2200853527,
0.2296120226,
-0.1289590001,
-0.0488641895,
0.0438688286,
-0.2837005258,
0.2512354553,
0.5140666366,
0.4233028293,
0.121160984,
-0.0226252396,
-0.1903214157,
-0.1330407858,
0.1896952689,
0.7450623512,
0.0363705084,
-0.2097328007,
0.1391443908,
-0.1770809889,
0.2507609427,
0.2999682128,
-0.040704798,
-0.175312981,
-0.1670931727,
-0.0752965584,
-0.1916788816,
0.2307223082,
0.2340689898,
0.0813333839,
-0.5356981754,
-0.4480488002,
0.5573653579,
-0.0504170209,
0.172690317,
0.1419835836,
-0.0903690159,
-0.3141257465,
0.2411763221,
0.0783975795,
0.9852371216,
0.2112356871,
0.2190214097,
0.3602868617,
0.1238721907,
0.168317318,
-0.0752923191,
0.1940020025,
-0.3183618188,
-0.1474910378,
0.0280088335,
0.1500529349,
0.1256137341,
0.0791478455,
-0.3388418555,
0.1087121889,
-0.0423833281,
-0.2682107389,
0.1092870235,
0.2032420188,
-0.2257401347,
-0.1824251562,
-0.6316769123,
0.271288842,
-0.0699543804,
0.036846593,
-0.1795902401,
-0.218174383,
-0.011334897,
-0.3394552767,
-0.1856636703,
0.3587394357,
-0.4648074508,
0.1656638384,
-0.1256932765,
-0.6603453755,
0.0589869991,
0.1018802524,
0.1422087252,
0.1705820709,
-0.031631358,
0.2886003256,
0.3289836943,
-0.0333039425,
0.0538527966,
0.1803848594,
0.1164435223,
-0.2379676849,
-0.0408894494,
0.2168305218,
0.1136522368,
-0.050730139,
0.2746552229,
-0.0139091248,
-0.168786943,
-0.0425473079,
-0.2854607701,
-0.1196892411,
0.190865621,
-0.0586596541,
0.2239396721,
-0.0279350821,
-0.2230917513,
-0.0733640119,
0.1914936602,
-0.2924986482,
-0.164585948,
0.0671760589,
-0.0564567298,
-0.105113104,
0.4461654425,
0.1842793822,
-0.2075341046,
-0.1513285786,
0.2436151803,
-0.0754423589,
-0.5386852622,
-0.0066286642,
0.1410816014,
-0.1534481347,
0.003485265,
0.6803987026,
-0.0269046724,
-0.0568691343,
0.1441955119,
-0.3272306323,
-0.3443569839,
0.0150199048,
-0.1162099615,
0.0749121159,
0.0879411101,
0.346992135,
0.0539476536,
-0.0673552975,
-0.3985675573,
0.0662678331,
-0.1426668316,
0.0488450639,
0.1289652437,
-0.1215148121,
0.1071468368,
0.1047938392,
0.2029965967,
0.3219654858,
-0.0979110077,
-0.2832180262,
-0.1359744221,
0.0565712638,
0.0017054882,
-0.3379482925,
-0.0889107138,
0.0667093918,
-0.0858611465,
0.0071736113,
0.1423537433,
0.0524304248,
0.093116723,
0.1324239075,
-0.2461746186,
0.1586413682,
0.1053989679,
0.1628988683,
-0.0696343705,
0.559764564,
0.1636886746,
0.0628754944,
0.0059852763,
-0.0253744107,
-0.0447146371,
0.0505546443,
-0.2376690656,
0.10622859,
0.1044625938,
-0.3597466648,
0.4122331738,
0.0589299053,
-0.0163109601,
0.457033664,
-0.2496932745,
-0.0978308469,
0.3505035341,
0.2655178905,
-0.3189130723,
0.073812291,
-0.2843263447,
-0.0188767109,
-0.0421067402,
0.3487903178,
0.208937034,
-0.1145655885,
0.277454555,
-0.0404059887,
0.3768444359,
0.1393834502,
0.3384265006,
0.319906354,
-0.0633216798,
0.1767776906,
-0.1449138671,
0.1443763971,
-0.0619788952,
-0.0065901312,
-0.6218464971,
0.1565927267,
0.0202314835,
0.0615849532,
0.0130639533,
-0.2305773944,
-0.1371742934,
-0.0970710069,
-0.1079706699,
0.3458488286,
0.15333803,
0.4684993029,
-0.3881830573,
-0.0618437566,
-0.0999528319,
0.2083486617,
-0.1023444012,
0.0380972065,
0.0167677905,
-0.0260500964,
-0.3448731601,
0.1241514757,
-0.1106196567,
0.1190154105,
-0.0481753796,
0.3128444552,
-0.108042106,
-0.0022143805,
0.0105923405,
-0.0133059677,
0.0652084723,
-0.0903546885,
0.5817037225,
0.3365058303,
0.1659685224,
0.2955409288,
0.1637488306,
0.5992533565,
0.4194280803,
-0.1985060573,
0.0197413173,
-0.1594897509,
0.0386608653,
0.0385331362,
0.1191367283,
0.3507336974,
0.3548159897,
0.221470058,
0.2291057259,
-0.2119884342,
-0.158911854,
0.2516644597,
0.0198070258,
0.1084339395,
0.1820881963,
-0.1276623607,
0.2285719961,
-0.5063564777,
-0.1043687463,
-0.4751029015,
0.284363091,
0.3184303343,
0.0251299571,
0.0145881958,
-0.1881728917,
0.1490681469,
0.0117614949,
0.5455563664,
0.2461998463,
0.0812006444,
-0.1053361893,
-0.0941713974,
-0.7023861408,
0.2900263965,
0.0358982123,
-0.4220153391,
-0.2040276378,
-0.2144600451,
0.0586930066,
0.3786675632,
0.0576025546,
0.2639368176,
0.0873134285,
0.0427205153,
-0.1206454188,
0.0599488989,
-0.1676315218,
0.0728153512,
-0.2522139847,
-0.2338364422,
0.0252858158,
-0.3026719689,
0.1665267646,
-0.2468509078,
-0.3811717629,
-0.4446495473,
0.0948223546,
0.2352757156,
0.1897631437,
0.3141133487,
-0.28098315,
-0.2891318202,
-0.0594041049,
-0.2559397817,
-0.0849944949,
0.3175147474,
0.1799066514,
0.139593944,
0.1158799157,
0.1496807337,
-0.4539955556,
0.36918208,
-0.0407514013,
-0.1503040045,
-0.2544986904,
0.0400626101,
0.0016040958,
-0.0154122962,
0.1373396814,
0.3708093464,
-0.0436606593,
0.1041944772,
-0.1964032948,
-0.4943508208,
0.2880332172,
-0.4873785973,
-0.1555863321,
0.1463109106,
0.1133804396,
-0.1505159438,
0.0910943151,
-0.5280274153,
0.2367156446,
-0.0112895444,
-0.1485494822,
-0.2645402551,
0.2816722393,
-0.2627759874,
-0.0958282799,
-0.0795658678,
0.3230294585,
0.1931323558,
-0.1097928286,
0.0396767445,
-0.2406681329
] |
https://github.com/huggingface/datasets/issues/345 | Supporting documents in ELI5 | Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster:
https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl
In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages.
https://yjernite.github.io/lfqa.html#task_description
Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though! | I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( | 130 | Supporting documents in ELI5
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster:
https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl
In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages.
https://yjernite.github.io/lfqa.html#task_description
Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though! | [
0.0806759149,
-0.1414159536,
-0.1308178157,
-0.0987008959,
-0.3395776451,
-0.0216141809,
-0.2173516899,
0.2103037089,
0.050301075,
-0.0259132702,
0.1280903071,
-0.2411946356,
0.1008691415,
0.1427407116,
-0.244580701,
0.1461947858,
0.0276546534,
0.2660851777,
0.2416868955,
-0.1947775483,
-0.017842995,
0.1976367682,
0.1432035714,
-0.1716152877,
-0.3346631229,
0.2507554591,
-0.2730871439,
0.1042412445,
-0.2372618914,
-0.0662402287,
0.1023937166,
0.2378304005,
-0.036256589,
-0.056539394,
-0.0001082366,
0.0151388953,
0.099826254,
-0.1303935945,
-0.0717165321,
0.0352359116,
0.3620175719,
-0.4477027357,
0.1384598464,
-0.1620795876,
-0.3059387803,
-0.1202641353,
0.2798631191,
0.3556275368,
0.3528578281,
-0.0046443092,
0.1948396564,
0.0135869961,
0.1496861279,
0.0355121829,
0.3426301181,
0.3699348569,
-0.2522276938,
-0.2625690401,
0.2649266422,
-0.2322939783,
0.069733724,
0.3647730649,
0.0875470936,
-0.112997748,
0.3730434477,
0.1021437794,
0.0469900779,
-0.6132786274,
0.2595946491,
0.2510035038,
0.3036838174,
0.2703653276,
-0.120733507,
-0.3047218919,
-0.2468188256,
0.2858925462,
0.1955961287,
0.2177015692,
-0.1502864361,
0.1511640549,
0.0314803533,
-0.1184745133,
-0.0182719678,
0.309307456,
0.1452440172,
0.162855044,
-0.088198103,
-0.1460664272,
0.2186288834,
-0.1449056864,
-0.6590021253,
0.1220766306,
0.2056595385,
0.1340455413,
0.0484928377,
-0.1340939254,
0.1747569591,
0.1377398819,
0.5864339471,
0.059615545,
-0.0866414979,
0.1273577213,
-0.0404515192,
0.0465864316,
0.0889000744,
0.0602401271,
0.0087471241,
-0.2209198326,
0.2579368353,
0.1123383716,
-0.0838558897,
0.0046390831,
0.0627127513,
0.3078452349,
-0.3241543472,
-0.5395182371,
0.1201750487,
-0.1676556766,
-0.1507179737,
0.1569001675,
-0.1685594916,
0.0254626963,
-0.2234401703,
0.5335276127,
0.0401800908,
-0.0055816537,
-0.013697884,
0.038695734,
-0.1921841055,
-0.1128756925,
-0.0731188729,
-0.1688322574,
-0.109716773,
0.1998763233,
0.1995475888,
-0.3310859501,
0.5541297197,
-0.2196206152,
0.2041630894,
0.0977546796,
0.193216309,
0.0301172491,
0.2535436153,
0.3538281322,
0.154512167,
0.0394502617,
-0.0487941876,
-0.1594579369,
-0.2483039498,
-0.247927472,
0.0697252303,
-0.3629741669,
-0.4516445994,
0.2046123892,
0.1505706459,
0.20506607,
0.0230997801,
0.5333045721,
-0.3146408498,
-0.1038457379,
0.1686960906,
0.3648090363,
-0.3038464487,
-0.1020547673,
0.4092983007,
0.251921922,
0.4009885192,
-0.3729686141,
-0.060663119,
0.3335621357,
-0.0977840424,
0.3365207911,
-0.0658703148,
-0.2021239251,
-0.0332729109,
0.3529548645,
0.2694992721,
-0.242778331,
-0.5641846657,
0.2591610551,
-0.0024538483,
0.2508820295,
0.0845526904,
0.0684895515,
0.0826150551,
-0.2189552784,
0.0249454863,
0.2849489152,
0.0519594401,
0.0720636994,
-0.361559391,
-0.4118732512,
0.0270239823,
0.1433935016,
-0.0667520463,
-0.2504671216,
0.0029694724,
-0.0645666197,
-0.0254446976,
-0.0772940293,
0.1527875513,
0.3830135167,
0.1348630339,
0.199021861,
0.1052661389,
-0.0190329645,
-0.3713849783,
0.2328277379,
-0.0967209265,
0.4336291254,
0.1736373603,
-0.3850112855,
-0.0803899765,
-0.0744086802,
-0.1050056368,
-0.4436504543,
0.2301823795,
-0.1027262136,
0.2857618034,
0.0918077305,
-0.0282302909,
-0.2864753306,
-0.2602206171,
0.0710942894,
-0.1651406884,
0.3315620124,
-0.3213316798,
0.0342531204,
0.0782489851,
0.1614311188,
-0.1242558211,
0.1105071902,
0.1942817569,
-0.0071297665,
-0.3551359475,
-0.0379279666,
0.4002790749,
0.7665848136,
0.2776436806,
-0.3818296194,
0.1005619988,
0.199564606,
-0.0353209488,
-0.1732579023,
-0.3145938814,
0.0889277905,
0.2785706818,
0.3200398386,
0.1890919209,
-0.0571338199,
0.0382561125,
0.09031827,
-0.1557935178,
-0.1499129832,
0.377161473,
-0.1340331435,
0.0639237538,
0.0019983049,
-0.1482245475,
0.413878113,
0.1723028868,
0.1056226492,
0.1920791119,
0.5266594887,
-0.138229996,
-0.4718620181,
-0.1715260148,
-0.3971882463,
0.0164451282,
0.2203440666,
0.1913430989,
0.0278093629,
0.1325484514,
0.0655030012,
0.105001308,
0.0083912648,
-0.0028979988,
0.072853677,
0.2263055742,
0.2209693938,
-0.264266938,
-0.1024461165,
-0.3160076439,
-0.0796575174,
0.1014829129,
-0.0092378864,
0.2213157564,
-0.2507488728,
0.2634442747,
-0.0781892836,
-0.4147418737,
-0.3153251708,
0.2948235273,
0.1135602966,
-0.1521186084,
0.0933334455,
-0.0359082483,
0.1366749108,
-0.1347662807,
0.2000322044,
-0.4448848367,
-0.1261648983,
-0.1927217394,
0.0864221528,
-0.0453941897,
0.4896546602,
0.1996758133,
-0.1918670684,
-0.0891261622,
-0.6268859506,
-0.6305288672,
0.2847005427,
-0.1327684075,
0.1055975556,
0.247007221,
0.3481208086,
-0.3925290406,
-0.4493707716,
0.2627797723,
-0.4444779158,
-0.1999733597,
-0.2748990357,
-0.1903126389,
0.0225152373,
0.0493833907,
-0.1188695207,
-0.2579314113,
-0.2666805685,
0.3291161656,
0.2762425244,
-0.0609604493,
-0.0458910316,
0.0205531027,
0.1251768172,
0.2258083224,
0.2626571655,
-0.2936743796,
-0.0474501811,
0.2918274105,
-0.3029045761,
-0.2832893729,
-0.0370078087,
-0.1125949174,
-0.232483536,
-0.1866957098,
-0.3569922745,
-0.3837315142,
-0.1370199174,
0.0548835173,
-0.0264957044,
0.0882042125,
0.1968399435,
-0.0107377991,
-0.203334108,
0.1613601893,
-0.0292125419,
-0.0383645259,
0.0866158158,
0.0075269546,
-0.2022760659,
0.2060186863,
0.062934272,
0.7775630355,
0.2560120225,
0.0957142189,
0.3554353714,
0.0965007469,
0.3023885489,
-0.330703944,
-0.0481678247,
0.0820791423,
0.0261231884,
0.1000513583,
0.5637344122,
0.2327353507,
-0.1557636708,
-0.1026144475,
-0.5225751996,
-0.3188152313,
-0.269300729,
0.232387349,
0.2323058397,
0.2514646053,
-0.0427639857,
0.031349618,
0.0448824279,
-0.4328539073,
0.1710645854,
0.1494752467,
0.0656205639,
0.0672155991,
-0.2274292409,
0.0286747422,
-0.9157412052,
0.2903389335,
0.1272511631,
-0.2261868417,
-0.2038736343,
0.0086206393,
0.1673074812,
-0.1656236053,
0.3456694484,
-0.2442622334,
-0.22963579,
-0.2217075229,
-0.0772223473,
-0.118478477,
0.0776620805,
0.0778404772,
0.0282879733,
0.3759853542,
-0.0090691475,
-0.6138383746,
-0.1671898514,
0.2821725011,
-0.0146170696,
-0.0445768982,
0.0969723761,
-0.3596686125,
-0.4528430402,
-0.5167992711,
-0.1217092276,
0.2898417413,
-0.1836679131,
-0.1271050274,
0.1153055653,
0.1621759385,
0.1249370128,
0.1095975935,
0.1497634053,
0.0782527551,
0.0392140746,
0.0177035443,
0.4854706526,
0.1623133272,
0.1095937714,
0.4987750053,
0.0102824206,
-0.0290295873,
0.0863298401,
0.092633456,
0.0507370457,
0.3944362104,
0.4012106657,
0.0613244958,
0.2153004259,
0.1702978909,
-0.1811873317,
-0.0273432564,
0.4937494099,
-0.1580028534,
-0.1015143245,
0.0634480715,
0.4403324723,
-0.0228715446,
0.0520249344,
-0.1205277368,
0.8181393743,
0.0034935514,
0.6203839183,
0.0245089792,
1.0834466219,
0.0712133646,
0.2355078161,
-0.0662082732,
0.1022236198,
0.4590818882,
-0.5924047232,
-0.0719935745,
-0.171634227,
-0.3579326272,
-0.0282046627,
0.2058292031,
-0.2424089611,
0.0943544805,
-0.2666329145,
0.1641508937,
0.1665956974,
0.0792631656,
-0.1323837489,
0.5353415608,
-0.2092645019,
-0.2426697612,
-0.293199122,
0.160605669,
0.1370086223,
0.4707175195,
-0.0683387965,
-0.0239953939,
-0.0310570262,
-0.1576666981,
-0.4364047348,
-0.0868462175,
-0.0571711399,
0.0721725076,
0.2667093873,
-0.0620510951,
0.0479141064,
0.172625497,
0.1590502709,
-0.1449034959,
-0.4947536886,
0.1609764695,
-0.0852401108,
-0.2354752719,
0.221770674,
-0.3119464517,
0.3180814385,
-0.1570399553,
-0.205039829,
0.2423342764,
-0.1365591437,
-0.0473492108,
-0.1830670685,
-0.2662456632,
-0.2832184434,
-0.1319665164,
-0.0575909354,
0.254899621,
-0.5066121817,
-0.1073726565,
0.1360843182,
0.0619511604,
0.1497883201,
-0.1424947381,
0.3879222274,
-0.0254305564,
-0.1647311151,
0.4760459661,
-0.0733071417,
-0.1303654015,
0.3072897792,
0.0134333922,
-0.2064889222,
-0.0190458372,
-0.1087078527,
0.2752625644,
-0.2821533084,
-0.1286258399,
0.1442894042,
-0.1705995053,
0.0885858312,
0.7039008737,
0.123725377,
-0.1236468479,
-0.1176972613,
-0.0933520719,
0.1011836827,
0.4985333979,
0.0505788364,
0.072510682,
0.0642407909,
-0.1272993833,
0.2589458227,
0.2433391809,
-0.3592049479,
-0.0717603266,
-0.4390501976,
0.018407641,
-0.1205718517,
-0.1613070667,
0.4346774817,
0.2047705799,
0.0707754567,
0.0910656378,
-0.0933140516,
-0.18083781,
0.0803187564,
0.1305054873,
0.106649965,
0.0202970058,
-0.1118560508,
0.0898529738,
-0.1579395384,
-0.318577081,
0.0888933614,
-0.171565488,
0.0360233337,
-0.0528543927,
-0.1689071506,
0.0717956349,
-0.0415924899,
-0.071880281,
0.1163445711,
0.4744986892,
0.0726782605,
-0.0939534232,
-0.2063881606,
-0.1261645406,
0.2610612512,
0.2690452337,
0.2563706934,
-0.2336862981,
0.2742328644,
0.1976020336,
-0.2272608727,
0.0177479982,
0.0360475406,
0.1653277278,
-0.1373500526,
0.1518939883,
0.1155492663,
0.2441235334,
-0.2058786303,
-0.0913567394,
0.3557409048,
-0.2692944407,
0.3280307353,
0.1972303838,
0.6575439572,
-0.1029171944,
0.2686089575,
0.1029348075,
0.1431604624,
-0.3198328614,
-0.2167583853,
-0.344630599,
0.0643811226,
-0.0358219557,
-0.1502172649,
0.0252594091,
0.6202681661,
-0.1843102872,
0.0242388919,
0.23005189,
-0.2149216682,
0.4202447236,
0.2570253909,
-0.0216608774,
0.182620123,
0.1664553732,
0.2891642153,
0.3017503321,
-0.0999804661,
0.0564868413,
0.0933229774,
-0.0102171712,
-0.4102501273,
0.3412422836,
0.0440334119,
-0.0449782796,
0.2121957093,
-0.2977991998,
-0.1784311086,
0.1179584414,
-0.0404759198,
-0.1816558987,
-0.2485123128,
-0.1287421435,
0.0907337442,
-0.0210817903,
0.2186369896,
-0.1247329414,
0.6175799966,
-0.0710849762,
0.1010067612,
0.1910882443,
-0.1985788494,
-0.0609306581,
0.3612087965,
0.2990721166,
-0.089574039,
-0.4420964122,
0.1821319163,
0.0637874678,
-0.0583395325,
-0.1847285628,
0.0843779147,
0.2508337796,
-0.3955078125,
0.0231663696,
0.0982852727,
-0.3194876611,
-0.5002754927,
-0.2329953015,
0.3162247539,
0.062484283,
-0.479446739,
-0.1802380979,
-0.0294059776,
-0.060603641,
0.0291257426,
-0.3866060376,
0.1661676466,
-0.1591115445,
0.0206477065,
0.0503562167,
-0.2859902978,
0.0850376114,
0.0807040632,
0.4946758747,
0.3730098903,
0.1127117947,
0.0598622262,
-0.4312784076,
-0.1302333176,
0.1595833898,
-0.2466770709,
-0.0424955152,
0.4238417447,
0.3498510122,
0.2614301741,
0.3045890927,
0.0297178999,
-0.2874190211,
-0.2152035832,
-0.0699588507,
-0.0957849696,
0.0840467885,
-0.243326053,
0.1507637799,
0.0208423361,
0.0374241583,
0.0005402592,
-0.2379781306,
0.0414123796,
-0.2940927744,
-0.0217356198,
-0.1969221681,
0.3018134534,
0.0099937087,
0.2058707327,
-0.176458329,
-0.2507236004,
-0.4384672046,
0.0337837525,
0.1012851894,
0.0593901239,
0.1374853998,
0.0188353043,
-0.0253788549,
-0.065253295,
-0.1125297025,
-0.0281355456,
0.1453643441,
0.242572993,
0.1292924881,
-0.2725092471,
-0.0987304524,
-0.1670643836,
0.1415546834,
0.0640586093,
0.4082986414,
-0.1655518264,
-0.3016098142,
-0.2824159563,
-0.1516110599,
0.2724374235,
-0.1437879354,
0.141982764,
-0.1527416408,
0.1226042435,
0.4253351092,
0.0978573412,
-0.3977630436,
-0.0714542642,
0.110163793,
0.3151710033,
-0.2627432048,
-0.262763232,
0.129418537,
-0.1696703881,
-0.2428096384,
-0.051626984,
-0.0634538755,
-0.065464817,
-0.2057819963,
-0.1455374807
] |
https://github.com/huggingface/datasets/issues/345 | Supporting documents in ELI5 | Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it.
Two follow-up points/questions about my original question:
1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl?
2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response. | I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( | 256 | Supporting documents in ELI5
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it.
Two follow-up points/questions about my original question:
1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl?
2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response. | [
0.16188097,
-0.045203317,
-0.0387862921,
-0.0477256775,
-0.3124104142,
0.0002395938,
-0.1353976279,
0.1302300692,
-0.02192045,
-0.0501845293,
0.0941167325,
-0.2651154101,
0.1130611598,
0.144380495,
-0.1669064909,
0.1842309386,
0.0264951773,
0.2427611947,
0.346519649,
-0.3121984601,
0.0172465034,
0.2343266457,
0.1443895549,
-0.1357312202,
-0.3666526973,
0.2833316028,
-0.2998781204,
0.1768080592,
-0.2238977998,
-0.0061547495,
0.0662747249,
0.2734148204,
0.0293229222,
-0.2047089487,
-0.0001143989,
0.0644621253,
-0.0929927826,
-0.1426994056,
-0.1507159919,
-0.180653125,
0.2431354076,
-0.3142081797,
-0.0273025092,
-0.0974221826,
-0.1486666948,
-0.2026416212,
0.2346535921,
0.2599250376,
0.3535692394,
-0.0374874137,
0.1049090922,
0.0820605382,
0.016126303,
0.1020365357,
0.1941461414,
0.3405365348,
-0.244333759,
-0.0740674436,
0.3869932592,
-0.2022093683,
0.0654284582,
0.2211507708,
0.0566233546,
-0.1823205948,
0.2999620736,
0.03824424,
0.0203537904,
-0.6953433156,
0.2636000216,
0.3578397036,
0.4532784522,
0.2831232548,
-0.221317634,
-0.4320504963,
-0.11774569,
0.2731928229,
-0.030247869,
0.3697188497,
-0.0638157353,
0.3528542817,
0.0016578324,
-0.2023564726,
-0.075034067,
0.363219738,
0.2741084397,
0.056665834,
-0.1507906318,
-0.0997989401,
0.124980785,
0.0599624887,
-0.4961788952,
-0.0230370481,
0.1168769151,
-0.0398268215,
0.1816923916,
-0.1658809334,
0.093745783,
0.3632126749,
0.6906948686,
0.2466047704,
0.0316819958,
-0.011936821,
-0.2202201933,
0.0572158806,
0.2629971206,
-0.0168861505,
-0.0620114841,
-0.1783061475,
0.1461057663,
-0.0312416088,
0.1357302815,
-0.0091117937,
-0.042268604,
0.5626630187,
-0.5317934752,
-0.593288362,
0.2085095346,
-0.2363731116,
-0.1962756068,
0.157307744,
-0.2473309785,
-0.0459486134,
-0.1888716668,
0.4357137084,
0.1879491806,
0.0037182611,
-0.3072891235,
0.1680947691,
0.0074785543,
-0.3712283671,
-0.0267667025,
-0.1037180126,
-0.1844663918,
0.1345673949,
0.1396351457,
-0.3869446814,
0.6252253056,
-0.2365908772,
0.3478044271,
0.1796341091,
0.1624157876,
-0.0185367446,
0.3222463429,
0.3538753986,
0.1069955826,
0.0527894273,
0.0617660917,
-0.0122317374,
-0.269457072,
-0.2196466029,
-0.006661403,
-0.4560047984,
-0.4140790403,
0.0596289895,
0.0276852679,
0.2341443896,
0.1031516269,
0.513455689,
-0.4354710281,
-0.1399754733,
0.2109806985,
0.2206293792,
-0.396132946,
-0.2374758869,
0.3468029201,
0.2940278351,
0.3394906223,
-0.4009532034,
-0.0533858947,
0.2656393647,
-0.1998758763,
0.3898680508,
-0.2220279574,
-0.2204244137,
-0.0046832631,
0.3456551433,
0.3490613699,
-0.1972571909,
-0.7282790542,
0.2450959831,
0.11849989,
0.3259022534,
0.1589939743,
-0.0551897511,
0.0623806603,
-0.3640518188,
-0.0432474092,
0.1965421289,
-0.0435869247,
-0.1194299459,
-0.2560024261,
-0.4202411175,
-0.0762735009,
0.1884012818,
-0.1058001444,
-0.1561290473,
0.0355003141,
-0.0632957295,
0.0083655901,
-0.0580609366,
0.147529006,
0.3281919658,
0.1072341874,
0.1590900272,
0.0168097243,
0.0722487569,
-0.3731557727,
0.3071220219,
-0.0141973412,
0.3480273485,
0.3044204116,
-0.3181043267,
0.0587489307,
-0.0931869224,
-0.0007660252,
-0.6210436225,
0.1355814338,
-0.0142500969,
0.1797038168,
0.0173151139,
-0.2134846896,
-0.0974057242,
-0.1941882074,
0.1273108125,
-0.1348648071,
0.3530065715,
-0.2602703273,
0.0966938287,
0.0792051181,
0.4140845835,
-0.1390439719,
0.0689709559,
0.2654939592,
-0.0479334332,
-0.3764591515,
-0.0900985152,
0.2554417551,
0.8737131357,
0.3631455898,
-0.3448280394,
0.2278608531,
0.0666806698,
-0.0577499121,
-0.1940208077,
-0.2126737684,
0.0391616225,
0.1341944486,
0.3453151882,
0.3507529795,
0.0651238412,
-0.0663318485,
0.0633669719,
-0.2704554498,
-0.2145714164,
0.4714909494,
-0.1026434004,
0.2174862921,
0.0538594462,
-0.2446395457,
0.411378324,
0.2338641882,
0.1658736616,
-0.0037704199,
0.424156785,
-0.253443718,
-0.3952466846,
0.0571385548,
-0.1831644177,
0.2414887547,
0.2258033752,
0.2277130038,
0.0635995641,
0.1560088992,
0.0568043068,
0.0174491573,
0.1503197998,
-0.0517088808,
0.0024009342,
0.1140675172,
0.376413852,
-0.211766988,
-0.2193944156,
-0.3091650009,
-0.2785674334,
0.072430186,
0.070555985,
0.1820525825,
-0.3416144848,
0.1765883565,
-0.0956144482,
-0.4134990573,
-0.2661289275,
0.2347910702,
0.1461954266,
-0.0589659438,
-0.0071641761,
-0.25092417,
0.2849390805,
-0.4807710648,
0.3026829064,
-0.3664852977,
-0.0576581694,
-0.201464802,
0.0328034125,
0.0083476556,
0.3727059364,
0.2562308908,
-0.0921006054,
-0.1207938865,
-0.5289493799,
-0.452175796,
0.3688605428,
-0.2268683612,
0.113374956,
0.1305220127,
0.196761921,
-0.3303305805,
-0.2646191418,
0.108888641,
-0.3639266491,
-0.093484275,
-0.3351454437,
-0.0973837078,
-0.0986822993,
-0.0030948035,
-0.0411963612,
-0.3535020649,
-0.2808041573,
0.3430300057,
0.22540389,
-0.1302048862,
0.0172077622,
-0.0800355449,
0.112352334,
0.1259934902,
0.3323070407,
-0.2970349789,
-0.1613460928,
0.1960988343,
-0.2074229866,
-0.2651273012,
-0.0386922508,
-0.0539250337,
-0.0615292266,
-0.1005945802,
-0.4254781604,
-0.3604821563,
0.0556921102,
-0.0251168814,
-0.070363678,
0.0615717396,
0.0977729931,
0.0125412876,
-0.0685769841,
0.0065078652,
0.0051071248,
-0.1429710537,
0.1419215947,
0.0686365888,
-0.0926286504,
0.1250012666,
0.2023940384,
0.7989221811,
0.4217322171,
0.1286454201,
0.4140594006,
0.2201204747,
0.4891660213,
-0.2331579775,
-0.0684254915,
0.1044607908,
-0.0167273581,
0.2873295546,
0.5585058928,
0.3046328425,
0.0850376487,
-0.0615950823,
-0.475753963,
-0.2863049209,
-0.1630812734,
0.2455818653,
0.0341197327,
0.2572927475,
0.0019509827,
-0.0227635503,
0.1661114246,
-0.3102349043,
0.0538971387,
0.1662834585,
0.2355103791,
0.1411301792,
-0.3051784337,
0.1529217362,
-0.8590836525,
0.231111899,
-0.0189008638,
-0.1874372512,
-0.2980822027,
0.0848466903,
0.1466864198,
0.0557168685,
0.3235031664,
-0.3109865785,
-0.3885935545,
-0.2066272348,
-0.0179767478,
-0.0430690944,
0.094753556,
0.105995141,
0.0098151276,
0.4081768394,
-0.1639484614,
-0.4936894774,
-0.2149724662,
0.2640775442,
-0.0316418484,
0.0092505002,
0.1360556483,
-0.1757678092,
-0.2938087881,
-0.550494194,
-0.4285241067,
0.2547285855,
-0.3438404799,
-0.2193064392,
0.2031396925,
0.255787015,
0.0077915499,
0.2721951306,
0.1839650124,
-0.0555269308,
-0.085664086,
-0.0926734358,
0.5099770427,
0.3596837819,
0.2354166359,
0.7077590227,
0.0179831982,
-0.0893133506,
0.1664326042,
0.0522186011,
0.2376981676,
0.4825987518,
0.3366219401,
0.0189696196,
0.0892785341,
-0.0071080644,
-0.1003565341,
-0.0050263619,
0.4554409385,
-0.3331573904,
-0.1282138526,
0.0333349369,
0.3052024245,
-0.1238714606,
0.0464241765,
-0.0847177058,
0.9499081969,
0.1301210523,
0.5122741461,
-0.0499967895,
1.1526867151,
0.2842029333,
0.3870043457,
-0.1136417463,
-0.053283494,
0.5818104148,
-0.5025377274,
-0.1942023039,
-0.0220447537,
-0.3868575394,
-0.1671907306,
0.0516409688,
-0.2265333086,
0.2156896144,
-0.0801803991,
0.2316940874,
0.3886115551,
0.0542906448,
0.0149284946,
0.4949814379,
-0.257552743,
-0.168165952,
-0.1999785602,
0.0432277881,
0.1722922623,
0.4088797867,
-0.149888739,
-0.1088573039,
-0.2044106126,
-0.1663979292,
-0.5499112606,
-0.0497839525,
0.0601076819,
-0.061446175,
0.355202049,
-0.0797139406,
0.3253507018,
0.1505557597,
0.3010341823,
-0.3107365072,
-0.596595943,
0.0113914022,
-0.0683425665,
-0.2154919356,
0.2730762362,
-0.1934506446,
0.4823543727,
-0.1064095274,
-0.1110984236,
0.3303716779,
-0.0982627347,
-0.0512319766,
-0.4185142219,
-0.2416196018,
-0.1881917268,
-0.1779617965,
-0.070572339,
0.3471908867,
-0.4256944358,
-0.1267221123,
0.048054859,
0.1066825762,
0.331663996,
-0.2672722936,
0.3429391086,
0.0106949359,
-0.236014083,
0.3876952529,
-0.158710897,
-0.0637342706,
0.271755904,
-0.2133660764,
-0.1275206208,
0.0727553517,
-0.106448032,
0.283975184,
-0.4165969789,
-0.2355314046,
0.1129473969,
-0.1551660299,
-0.1096848771,
0.4567146897,
0.1899129748,
-0.0448389277,
-0.2044053078,
-0.1590969115,
0.1070047468,
0.5737264752,
-0.1819012463,
0.0827107579,
-0.0194353536,
-0.0116754454,
0.2233770788,
0.1554017365,
-0.2522447705,
-0.0365173668,
-0.3129370213,
-0.0768672079,
0.0278430022,
-0.0764378607,
0.3367639482,
0.1138091236,
-0.0922477022,
-0.0516175516,
-0.1766046286,
-0.042803593,
0.0224403869,
0.1930937171,
0.3122954071,
-0.0885730758,
-0.1383559108,
0.0868224725,
-0.1138548851,
-0.3022903204,
0.1337784827,
-0.2211061865,
0.0707970336,
0.0809219852,
-0.1911886185,
0.1946782917,
-0.1025144458,
0.0423027538,
0.1174940541,
0.5127566457,
0.2672609389,
-0.0269919429,
-0.2109585553,
-0.1394847482,
-0.0087482352,
0.2265078872,
0.3295252025,
-0.25033921,
0.3612288535,
0.3472688794,
0.0261633378,
-0.1014581919,
-0.0064436216,
0.181585148,
-0.2297012657,
0.2761465907,
0.2086244226,
0.1057320014,
-0.1489962488,
-0.083741188,
0.339587599,
-0.1748007983,
0.2245009094,
0.191462189,
0.8282389641,
-0.1262876838,
0.3334262967,
-0.1276557148,
0.1897800118,
-0.2044485956,
-0.181761235,
-0.2316094488,
0.0415632948,
0.1843355745,
-0.1679463089,
0.0841621608,
0.5764595866,
-0.3147500753,
-0.0840197802,
0.1850128025,
-0.2706156075,
0.25174281,
0.4075970054,
-0.0716696084,
0.1097723693,
0.1970787644,
0.4905519783,
0.2935715318,
-0.1452922672,
-0.0370131545,
0.1738227904,
0.1525017768,
-0.2693371177,
0.163602069,
0.1845991313,
-0.050892476,
0.1807231903,
-0.1903871149,
-0.2371998876,
0.1965668499,
-0.2412138879,
-0.2911821306,
-0.2178948522,
-0.143245995,
-0.0616887175,
-0.1196152717,
0.2244769335,
-0.0884871781,
0.3507430851,
-0.0996968672,
0.1117533743,
0.0399556421,
-0.1257641762,
-0.0004623603,
0.3130820692,
0.3190273643,
-0.1744493693,
-0.1170387045,
-0.0126745272,
0.2129798234,
0.0158328135,
-0.2076570839,
0.1143770963,
0.28401196,
-0.2482049018,
0.1243275926,
-0.0195966829,
-0.1539878398,
-0.3735150099,
-0.1696232408,
0.230363816,
-0.1834689528,
-0.3113377392,
-0.1564997286,
-0.1659862995,
0.1074686944,
0.0604183376,
-0.2830293179,
0.2151737362,
-0.1071442217,
0.054103855,
0.0130197359,
-0.2539302409,
0.0379406363,
0.1356278807,
0.3063029349,
0.5627688766,
0.1095671579,
-0.0617808029,
-0.3986172974,
-0.1172650233,
0.1899099797,
-0.2081124038,
-0.0411839299,
0.3487135172,
0.1832493544,
0.3635133803,
0.3037836552,
-0.0953092203,
-0.2481219023,
-0.2477927804,
-0.1816630065,
-0.0233042985,
-0.0725573301,
-0.1085304618,
0.2357601821,
-0.010763838,
0.2202777117,
0.0317004509,
-0.1569306105,
-0.1226209328,
-0.305793792,
0.0225639995,
-0.2268681526,
0.3308987617,
-0.0405959636,
0.1599254906,
-0.1917667985,
-0.209421888,
-0.4069240391,
-0.0480840616,
0.1296696961,
0.047734648,
0.1616852134,
0.0094909128,
-0.0973556116,
-0.2759915888,
-0.0923779383,
0.0149700791,
-0.0296081603,
0.1296309978,
0.1409838945,
-0.307449013,
-0.0239942614,
-0.1898321807,
0.1414301842,
0.0891476572,
0.3798629045,
-0.2511126697,
-0.3843090832,
-0.2604123652,
0.0579463914,
0.2941581607,
-0.1104184166,
0.2896012962,
-0.0296141803,
0.1552997828,
0.4543701708,
0.0183809251,
-0.5039556623,
-0.2176715434,
0.2137530297,
0.1811882854,
-0.375446707,
-0.2439009398,
0.1902196258,
-0.1772358268,
-0.2124371082,
-0.0106057627,
-0.1518123746,
-0.1758589745,
0.1100062281,
-0.1202373877
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | I couldn't reproduce on my side.
It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation.
Could you try to enable logging, try again and send the logs ?
```python
import logging
logging.basicConfig(level=logging.INFO)
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 45 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
I couldn't reproduce on my side.
It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation.
Could you try to enable logging, try again and send the logs ?
```python
import logging
logging.basicConfig(level=logging.INFO)
``` | [
-0.1410693228,
-0.0569874272,
-0.0082133301,
0.2086570412,
0.0776497126,
0.0907958299,
0.1833025217,
0.5251755118,
0.0987316146,
0.1542321593,
0.0162980221,
0.0769965202,
-0.3141202331,
-0.043774426,
-0.0335895158,
0.0359017625,
-0.1871678978,
0.2515124679,
0.0448876992,
-0.0229967982,
-0.2874319851,
0.2817905545,
-0.2087393254,
-0.0366007164,
-0.4835279584,
-0.2941967845,
0.0143962866,
0.3698371649,
0.0376475118,
-0.3093646765,
-0.0541154444,
-0.1348573267,
-0.1841389537,
0.102971077,
-0.0001130321,
0.1136062592,
0.3911182284,
-0.1433287263,
-0.4867381155,
0.0093757948,
-0.2104340494,
-0.4906260073,
0.0880896375,
-0.3546804786,
-0.1552340835,
0.0253198966,
0.094564274,
-0.2195382118,
0.496927768,
0.390468508,
0.2402192056,
0.5636106133,
0.0662313774,
0.1633446217,
-0.0887695253,
-0.1809552461,
-0.1458711475,
-0.0048660059,
-0.3178360462,
-0.1510139555,
-0.0242430586,
0.4289471209,
-0.092620261,
0.1253478676,
-0.0872374624,
0.1102501675,
0.0889439732,
-0.1658466458,
0.0938814655,
0.1360182464,
-0.0329075307,
-0.0759069845,
-0.2113917172,
-0.4385612905,
-0.0160643794,
-0.3980178237,
0.2251276076,
0.2127170116,
-0.1745027453,
0.065380469,
-0.3212835193,
0.0384898596,
-0.0294718314,
0.2034059465,
0.0819333643,
0.4111944139,
-0.1002978608,
0.0258117151,
0.0555453449,
-0.0901163742,
0.1567517221,
-0.1769278795,
0.1543254405,
0.077836439,
-0.1457697153,
-0.0452778041,
0.1644647121,
-0.1484151483,
0.0430355296,
-0.0675475821,
0.1789102405,
-0.0621050261,
0.1744742244,
0.086874254,
0.0470655635,
0.3125296831,
-0.0163509026,
0.2686333358,
0.1245982274,
0.2852092087,
0.0025195235,
0.0181033816,
0.1172017977,
-0.0053182743,
0.1188477501,
0.2207995057,
0.3734847307,
-0.0592547879,
-0.327632159,
0.1337224692,
-0.2627147436,
-0.2590236664,
-0.0015642417,
0.256218195,
-0.0583014227,
0.3132662773,
-0.0608432442,
-0.0814522579,
-0.3839428127,
-0.1547315717,
-0.3804471493,
0.1700799614,
-0.1844009161,
0.0808092207,
0.2795962095,
-0.0796255618,
0.4572217464,
-0.2497541904,
-0.0141821634,
-0.1472637951,
0.2093331367,
-0.0398358367,
0.0250500366,
0.2831859589,
-0.1309727728,
0.1706080288,
0.2590435743,
0.1690690815,
-0.2127458006,
-0.0859968513,
-0.0040092804,
-0.6050630808,
0.1887344271,
0.2487291694,
0.0593622997,
-0.0686995238,
0.6144137383,
0.0758781657,
0.2487532943,
0.0350489765,
-0.1620906144,
-0.0698394403,
-0.0113205845,
-0.1684925407,
0.0756478831,
0.4380224347,
-0.2325228304,
-0.2369066626,
-0.0135409646,
-0.141926825,
0.5154548287,
0.4340139329,
-0.1053205654,
0.043939095,
-0.126549229,
0.153826952,
0.2003802508,
-0.154539451,
-0.3955637515,
0.1898383051,
-0.0884124711,
0.2039060593,
0.2070536017,
0.1967762411,
-0.0294460952,
0.1016341895,
0.0539139695,
0.5395387411,
-0.2290880531,
0.1055222824,
-0.4344430268,
-0.4346442223,
0.3582524061,
0.0564582944,
0.2241697758,
-0.0408379771,
-0.0627058372,
0.4361118674,
0.2115100175,
-0.111062929,
0.0374838561,
0.0333378166,
-0.151663512,
-0.1143530756,
0.0171923172,
-0.0431707725,
-0.4885508716,
0.1375231296,
-0.1571972072,
0.3005172908,
-0.050177671,
-0.1014920771,
-0.2627060711,
-0.194733575,
-0.1750025302,
-0.2838498652,
0.2178564668,
0.2274240106,
0.2097195536,
0.0044355392,
-0.2784239054,
0.3022139072,
-0.0314070396,
0.1214025393,
-0.5230285525,
0.2627041042,
-0.2279075682,
-0.1810560673,
0.263964057,
0.4298871756,
0.2641761601,
-0.1530769914,
-0.2832181156,
0.2833618522,
-0.0861627981,
0.2315970361,
-0.148044616,
-0.1591016054,
0.1137663051,
-0.0814557448,
0.1697772741,
0.4025972486,
-0.0342430249,
-0.1033014208,
-0.1191939563,
0.4826926589,
0.0484580994,
0.0898779184,
0.1499337107,
-0.1141223907,
0.0772693157,
-0.1309576333,
0.113028273,
-0.5237566233,
0.3187467754,
-0.1696306467,
0.2132307738,
-0.0878213793,
-0.250007838,
0.0530380644,
0.6815172434,
-0.0259577855,
0.0975138694,
0.0207602698,
-0.1026207879,
-0.202081129,
-0.1837859899,
0.1597255021,
0.338671416,
0.2413775474,
0.1866380721,
0.2474578917,
-0.1729581505,
-0.2860012949,
0.2723777294,
0.0954685062,
0.2538039982,
0.3859495819,
0.006087807,
-0.0024017892,
-0.531466186,
-0.02483139,
0.0135072013,
0.3741948903,
-0.2236364484,
-0.2018272728,
-0.4316603541,
-0.4015903473,
-0.1702877581,
-0.2987870872,
-0.1874075979,
-0.5853304267,
0.0800147206,
0.0300566982,
-0.1252744496,
0.1624237597,
-0.1581038982,
0.2318921536,
0.2769705653,
-0.0165656582,
-0.1927295625,
-0.0813187957,
-0.1340953708,
0.0754104629,
0.175627023,
0.0380114354,
0.328263402,
-0.1323554516,
-0.1795411259,
-0.0246302467,
-0.4010377526,
0.0776723921,
0.0673699751,
0.1397411376,
0.304790765,
0.1800096035,
0.3312229216,
-0.3353326023,
0.197252959,
-0.2418714911,
-0.2770200372,
-0.0081247147,
0.0024521016,
0.1431992054,
-0.2382312417,
-0.4810168445,
-0.43263641,
-0.5125102401,
0.1009554863,
0.0488469303,
0.4066633284,
0.2704299092,
-0.286316663,
0.1968382448,
-0.1210166514,
0.1822268963,
-0.2584162652,
-0.1776083261,
0.250297755,
-0.2715799809,
-0.2704791427,
-0.1265954971,
-0.1486995667,
0.2048909217,
-0.2855256498,
-0.4239243567,
-0.3295072317,
-0.1458871514,
-0.0527007878,
0.1072000936,
-0.0558418259,
0.2296747416,
-0.0121128028,
-0.1654176563,
-0.0335119516,
-0.3873257041,
0.0534176789,
0.1250743866,
0.0702094585,
-0.0927718133,
0.6258091331,
0.062266238,
0.5375287533,
0.3718983829,
0.0934446827,
0.2314644605,
0.1095012501,
0.1484317183,
-0.0122383861,
-0.3427924216,
0.2506152987,
0.1518255025,
0.0592512377,
0.3488014042,
-0.0516512729,
-0.3857153058,
-0.0800834373,
-0.3046742976,
-0.4658902884,
-0.2806209922,
0.1811252534,
0.1248167604,
0.257915169,
0.2710351944,
0.1946984977,
-0.1767566353,
-0.1700818837,
-0.1458093226,
0.1727719009,
0.0059873648,
-0.0366931334,
-0.1083941683,
0.0141895842,
-0.6109690666,
0.2600290179,
0.006670333,
0.6111476421,
-0.1570564657,
-0.0673667789,
-0.0168539919,
-0.2866098583,
0.3602803051,
-0.3092956245,
-0.0543414503,
0.1828867942,
-0.1095795408,
-0.3564965129,
-0.1205784529,
-0.1527361125,
0.0463258922,
0.5042911172,
0.5133959055,
-0.2715701461,
-0.2822860181,
0.4173494577,
0.1056820899,
-0.1925456524,
-0.2405325174,
-0.2602202296,
-0.2365472466,
-0.3589507341,
-0.0029189212,
-0.3549584448,
0.280667305,
0.0347828381,
-0.0494444445,
-0.0367942341,
-0.2479301542,
0.1712221801,
0.0238344111,
-0.0075590811,
0.2060530782,
0.1902966648,
0.2586178184,
0.3282208145,
-0.2777054608,
0.3211953342,
-0.043693997,
0.0135160955,
-0.0866975114,
0.1257399321,
0.0457254499,
0.4861238301,
0.017081406,
-0.0189170018,
0.2016194463,
0.3254522383,
-0.0044429717,
-0.033122085,
0.4496919811,
-0.061969962,
-0.4111624956,
-0.1648905873,
0.2997182906,
0.1231900826,
0.1361616701,
-0.1300018281,
-0.1973909289,
-0.243721962,
0.1276025623,
0.1129899472,
0.7832140326,
0.2591177225,
0.06482324,
0.3565957844,
-0.1549979299,
0.6783714294,
-0.2112057954,
0.2569591403,
-0.3706094027,
-0.331223011,
-0.0379184037,
-0.110877119,
0.3169815838,
0.1003665403,
-0.1770121902,
0.4902183712,
-0.1291064918,
-0.0994328782,
-0.0617543831,
0.463735491,
-0.2605729103,
-0.1433640271,
-0.4001679718,
0.1066974178,
-0.1958625168,
0.3526175618,
-0.1023911908,
-0.1949197948,
0.2577715516,
-0.2590811849,
-0.0749826878,
0.2773517966,
-0.2684626281,
0.1398489326,
0.0061618765,
0.2401973307,
-0.2210499495,
-0.382738471,
0.3137291372,
-0.135518223,
-0.0385883711,
-0.0691944063,
-0.2621512711,
-0.0241814498,
-0.1012062803,
0.106012255,
0.4224325716,
-0.2187232524,
-0.1145566478,
0.0203037709,
-0.1885792166,
-0.1630531996,
-0.0189782735,
-0.0354847461,
0.1039878204,
-0.1709195077,
-0.1970957369,
0.0954248905,
-0.231049329,
-0.3154529333,
0.1461788267,
-0.0577431768,
-0.2906801701,
0.3077002764,
-0.0858524218,
-0.280965507,
-0.2579650283,
0.2445216626,
0.1696912497,
0.0508795641,
0.4922748506,
0.022502752,
-0.2898047268,
-0.2790829241,
-0.0300641935,
0.026359776,
-0.3613365591,
0.1998147815,
-0.0870135203,
-0.0155758876,
0.275527209,
0.2051901072,
0.1997066438,
0.2912750244,
-0.2323928922,
-0.5686836839,
-0.1438725144,
0.0629846081,
-0.0053666062,
0.2893785536,
0.0466337092,
0.564001441,
0.0183576047,
0.3612834513,
-0.355859071,
0.0370596349,
-0.2532140911,
0.1774705648,
0.1644683182,
-0.2871333361,
0.4796303511,
0.3361739516,
0.1896097809,
0.1844837964,
-0.3276685774,
-0.2398813367,
-0.1398789287,
0.1459912807,
0.0528673008,
-0.1507482976,
0.1091264114,
0.0210521482,
-0.162660867,
-0.0761600509,
-0.0131699676,
-0.1183908954,
-0.0879902765,
0.2467848659,
-0.0422546975,
-0.0603146292,
0.120273374,
0.0563642383,
-0.1231210604,
0.3887265921,
-0.0118621141,
0.230624333,
-0.2371811867,
0.0459101684,
-0.1055980846,
-0.1075529307,
0.0492283143,
0.014071079,
0.2833746076,
-0.4350685477,
-0.2895485759,
0.1623044908,
0.2314195931,
0.2564554513,
-0.0285924803,
-0.1506041735,
0.1654754877,
0.2218014449,
-0.3195350468,
0.0245436952,
0.3671755195,
-0.0035077017,
0.3218828738,
0.3530762494,
0.1187407821,
0.019552689,
-0.0508772917,
0.0890133604,
0.2165190578,
-0.2659981847,
0.0368567668,
0.2631329298,
-0.1103860885,
-0.015080628,
0.3015815616,
-0.1218025312,
0.3009927571,
0.2377935648,
-0.0317761078,
0.4294941723,
-0.0397180356,
0.3304134309,
-0.0069704694,
-0.2167674303,
0.1839848459,
0.4842493534,
-0.1120004952,
0.3832814693,
0.0147897135,
0.410564363,
-0.2803668082,
0.0144453803,
-0.1774632335,
0.4721759558,
-0.1400122494,
0.0913876444,
-0.0336259529,
-0.0987378657,
-0.2867730856,
-0.0064011025,
0.0785611123,
0.0901596025,
0.1506232321,
0.1159301177,
-0.0376423337,
-0.3303665221,
-0.1878766418,
0.1589913368,
0.2382989675,
-0.3991441429,
0.3074402213,
0.2775503993,
-0.0423321128,
-0.1595375389,
0.6101231575,
0.343123883,
0.3848831356,
-0.1388491988,
-0.0203317907,
0.1635617763,
-0.0777897835,
-0.0890925452,
0.3411318362,
0.1897566319,
-0.0746390671,
0.364636451,
0.1043185666,
-0.278414607,
-0.0463372394,
0.0937769935,
-0.241616413,
-0.1392457038,
0.2932828367,
-0.04942533,
0.2100276351,
-0.2220620364,
0.0304332431,
-0.6043115258,
-0.0503049083,
0.193435505,
-0.0807916373,
0.2918083668,
0.0341566838,
0.1002931893,
-0.1915133148,
0.4911067486,
0.0694367737,
-0.0748940259,
-0.3047780395,
-0.2246828228,
-0.579849422,
0.1475733966,
-0.1549479812,
-0.0564669333,
0.0097488575,
0.281364888,
-0.2015342861,
0.0494434312,
0.0776405111,
0.3546507061,
-0.0404422209,
-0.1575726122,
-0.3835544586,
0.0163157936,
0.005404192,
-0.2268490046,
0.0736883208,
-0.4133268595,
0.2439870685,
-0.201167956,
0.036815308,
-0.1237299889,
0.0597290583,
-0.0689730868,
0.4797642827,
0.012968705,
0.5052638054,
0.2816343307,
-0.2362824678,
-0.3487400711,
-0.165610984,
-0.1421878934,
-0.2967923582,
0.1579180807,
0.3191113174,
0.5874745846,
0.0172951985,
0.0549574271,
-0.3607901931,
0.3801416755,
0.0239441674,
-0.1877513826,
0.0241978224,
0.3261171877,
-0.2411891967,
0.2674723268,
0.2473868281,
0.3860733807,
0.1126278937,
0.1490356475,
-0.2446983755,
-0.371393472,
0.5164569616,
-0.1831860542,
-0.2234717607,
-0.0118960701,
0.1257261485,
0.0264657792,
-0.1279569119,
-0.4188548625,
0.0567012504,
0.3580687344,
-0.1017917618,
-0.089166671,
0.2000731379,
0.2182817459,
-0.2056008875,
-0.0198609438,
-0.0954742059,
0.3953031898,
-0.431452632,
0.2040594518,
-0.0773263872
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | here's the log
```
>>> import nlp
import logging
logging.basicConfig(level=logging.INFO)
nlp.load_dataset('cnn_dailymail', '3.0.0')
>>> import logging
>>> logging.basicConfig(level=logging.INFO)
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
INFO:nlp.utils.info_utils:All the checksums matched successfully.
INFO:nlp.builder:Generating split train
INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
INFO:nlp.builder:Generating split validation
INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
INFO:nlp.builder:Generating split test
INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 223 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
here's the log
```
>>> import nlp
import logging
logging.basicConfig(level=logging.INFO)
nlp.load_dataset('cnn_dailymail', '3.0.0')
>>> import logging
>>> logging.basicConfig(level=logging.INFO)
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
INFO:nlp.utils.info_utils:All the checksums matched successfully.
INFO:nlp.builder:Generating split train
INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
INFO:nlp.builder:Generating split validation
INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
INFO:nlp.builder:Generating split test
INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | [
-0.1410693228,
-0.0569874272,
-0.0082133301,
0.2086570412,
0.0776497126,
0.0907958299,
0.1833025217,
0.5251755118,
0.0987316146,
0.1542321593,
0.0162980221,
0.0769965202,
-0.3141202331,
-0.043774426,
-0.0335895158,
0.0359017625,
-0.1871678978,
0.2515124679,
0.0448876992,
-0.0229967982,
-0.2874319851,
0.2817905545,
-0.2087393254,
-0.0366007164,
-0.4835279584,
-0.2941967845,
0.0143962866,
0.3698371649,
0.0376475118,
-0.3093646765,
-0.0541154444,
-0.1348573267,
-0.1841389537,
0.102971077,
-0.0001130321,
0.1136062592,
0.3911182284,
-0.1433287263,
-0.4867381155,
0.0093757948,
-0.2104340494,
-0.4906260073,
0.0880896375,
-0.3546804786,
-0.1552340835,
0.0253198966,
0.094564274,
-0.2195382118,
0.496927768,
0.390468508,
0.2402192056,
0.5636106133,
0.0662313774,
0.1633446217,
-0.0887695253,
-0.1809552461,
-0.1458711475,
-0.0048660059,
-0.3178360462,
-0.1510139555,
-0.0242430586,
0.4289471209,
-0.092620261,
0.1253478676,
-0.0872374624,
0.1102501675,
0.0889439732,
-0.1658466458,
0.0938814655,
0.1360182464,
-0.0329075307,
-0.0759069845,
-0.2113917172,
-0.4385612905,
-0.0160643794,
-0.3980178237,
0.2251276076,
0.2127170116,
-0.1745027453,
0.065380469,
-0.3212835193,
0.0384898596,
-0.0294718314,
0.2034059465,
0.0819333643,
0.4111944139,
-0.1002978608,
0.0258117151,
0.0555453449,
-0.0901163742,
0.1567517221,
-0.1769278795,
0.1543254405,
0.077836439,
-0.1457697153,
-0.0452778041,
0.1644647121,
-0.1484151483,
0.0430355296,
-0.0675475821,
0.1789102405,
-0.0621050261,
0.1744742244,
0.086874254,
0.0470655635,
0.3125296831,
-0.0163509026,
0.2686333358,
0.1245982274,
0.2852092087,
0.0025195235,
0.0181033816,
0.1172017977,
-0.0053182743,
0.1188477501,
0.2207995057,
0.3734847307,
-0.0592547879,
-0.327632159,
0.1337224692,
-0.2627147436,
-0.2590236664,
-0.0015642417,
0.256218195,
-0.0583014227,
0.3132662773,
-0.0608432442,
-0.0814522579,
-0.3839428127,
-0.1547315717,
-0.3804471493,
0.1700799614,
-0.1844009161,
0.0808092207,
0.2795962095,
-0.0796255618,
0.4572217464,
-0.2497541904,
-0.0141821634,
-0.1472637951,
0.2093331367,
-0.0398358367,
0.0250500366,
0.2831859589,
-0.1309727728,
0.1706080288,
0.2590435743,
0.1690690815,
-0.2127458006,
-0.0859968513,
-0.0040092804,
-0.6050630808,
0.1887344271,
0.2487291694,
0.0593622997,
-0.0686995238,
0.6144137383,
0.0758781657,
0.2487532943,
0.0350489765,
-0.1620906144,
-0.0698394403,
-0.0113205845,
-0.1684925407,
0.0756478831,
0.4380224347,
-0.2325228304,
-0.2369066626,
-0.0135409646,
-0.141926825,
0.5154548287,
0.4340139329,
-0.1053205654,
0.043939095,
-0.126549229,
0.153826952,
0.2003802508,
-0.154539451,
-0.3955637515,
0.1898383051,
-0.0884124711,
0.2039060593,
0.2070536017,
0.1967762411,
-0.0294460952,
0.1016341895,
0.0539139695,
0.5395387411,
-0.2290880531,
0.1055222824,
-0.4344430268,
-0.4346442223,
0.3582524061,
0.0564582944,
0.2241697758,
-0.0408379771,
-0.0627058372,
0.4361118674,
0.2115100175,
-0.111062929,
0.0374838561,
0.0333378166,
-0.151663512,
-0.1143530756,
0.0171923172,
-0.0431707725,
-0.4885508716,
0.1375231296,
-0.1571972072,
0.3005172908,
-0.050177671,
-0.1014920771,
-0.2627060711,
-0.194733575,
-0.1750025302,
-0.2838498652,
0.2178564668,
0.2274240106,
0.2097195536,
0.0044355392,
-0.2784239054,
0.3022139072,
-0.0314070396,
0.1214025393,
-0.5230285525,
0.2627041042,
-0.2279075682,
-0.1810560673,
0.263964057,
0.4298871756,
0.2641761601,
-0.1530769914,
-0.2832181156,
0.2833618522,
-0.0861627981,
0.2315970361,
-0.148044616,
-0.1591016054,
0.1137663051,
-0.0814557448,
0.1697772741,
0.4025972486,
-0.0342430249,
-0.1033014208,
-0.1191939563,
0.4826926589,
0.0484580994,
0.0898779184,
0.1499337107,
-0.1141223907,
0.0772693157,
-0.1309576333,
0.113028273,
-0.5237566233,
0.3187467754,
-0.1696306467,
0.2132307738,
-0.0878213793,
-0.250007838,
0.0530380644,
0.6815172434,
-0.0259577855,
0.0975138694,
0.0207602698,
-0.1026207879,
-0.202081129,
-0.1837859899,
0.1597255021,
0.338671416,
0.2413775474,
0.1866380721,
0.2474578917,
-0.1729581505,
-0.2860012949,
0.2723777294,
0.0954685062,
0.2538039982,
0.3859495819,
0.006087807,
-0.0024017892,
-0.531466186,
-0.02483139,
0.0135072013,
0.3741948903,
-0.2236364484,
-0.2018272728,
-0.4316603541,
-0.4015903473,
-0.1702877581,
-0.2987870872,
-0.1874075979,
-0.5853304267,
0.0800147206,
0.0300566982,
-0.1252744496,
0.1624237597,
-0.1581038982,
0.2318921536,
0.2769705653,
-0.0165656582,
-0.1927295625,
-0.0813187957,
-0.1340953708,
0.0754104629,
0.175627023,
0.0380114354,
0.328263402,
-0.1323554516,
-0.1795411259,
-0.0246302467,
-0.4010377526,
0.0776723921,
0.0673699751,
0.1397411376,
0.304790765,
0.1800096035,
0.3312229216,
-0.3353326023,
0.197252959,
-0.2418714911,
-0.2770200372,
-0.0081247147,
0.0024521016,
0.1431992054,
-0.2382312417,
-0.4810168445,
-0.43263641,
-0.5125102401,
0.1009554863,
0.0488469303,
0.4066633284,
0.2704299092,
-0.286316663,
0.1968382448,
-0.1210166514,
0.1822268963,
-0.2584162652,
-0.1776083261,
0.250297755,
-0.2715799809,
-0.2704791427,
-0.1265954971,
-0.1486995667,
0.2048909217,
-0.2855256498,
-0.4239243567,
-0.3295072317,
-0.1458871514,
-0.0527007878,
0.1072000936,
-0.0558418259,
0.2296747416,
-0.0121128028,
-0.1654176563,
-0.0335119516,
-0.3873257041,
0.0534176789,
0.1250743866,
0.0702094585,
-0.0927718133,
0.6258091331,
0.062266238,
0.5375287533,
0.3718983829,
0.0934446827,
0.2314644605,
0.1095012501,
0.1484317183,
-0.0122383861,
-0.3427924216,
0.2506152987,
0.1518255025,
0.0592512377,
0.3488014042,
-0.0516512729,
-0.3857153058,
-0.0800834373,
-0.3046742976,
-0.4658902884,
-0.2806209922,
0.1811252534,
0.1248167604,
0.257915169,
0.2710351944,
0.1946984977,
-0.1767566353,
-0.1700818837,
-0.1458093226,
0.1727719009,
0.0059873648,
-0.0366931334,
-0.1083941683,
0.0141895842,
-0.6109690666,
0.2600290179,
0.006670333,
0.6111476421,
-0.1570564657,
-0.0673667789,
-0.0168539919,
-0.2866098583,
0.3602803051,
-0.3092956245,
-0.0543414503,
0.1828867942,
-0.1095795408,
-0.3564965129,
-0.1205784529,
-0.1527361125,
0.0463258922,
0.5042911172,
0.5133959055,
-0.2715701461,
-0.2822860181,
0.4173494577,
0.1056820899,
-0.1925456524,
-0.2405325174,
-0.2602202296,
-0.2365472466,
-0.3589507341,
-0.0029189212,
-0.3549584448,
0.280667305,
0.0347828381,
-0.0494444445,
-0.0367942341,
-0.2479301542,
0.1712221801,
0.0238344111,
-0.0075590811,
0.2060530782,
0.1902966648,
0.2586178184,
0.3282208145,
-0.2777054608,
0.3211953342,
-0.043693997,
0.0135160955,
-0.0866975114,
0.1257399321,
0.0457254499,
0.4861238301,
0.017081406,
-0.0189170018,
0.2016194463,
0.3254522383,
-0.0044429717,
-0.033122085,
0.4496919811,
-0.061969962,
-0.4111624956,
-0.1648905873,
0.2997182906,
0.1231900826,
0.1361616701,
-0.1300018281,
-0.1973909289,
-0.243721962,
0.1276025623,
0.1129899472,
0.7832140326,
0.2591177225,
0.06482324,
0.3565957844,
-0.1549979299,
0.6783714294,
-0.2112057954,
0.2569591403,
-0.3706094027,
-0.331223011,
-0.0379184037,
-0.110877119,
0.3169815838,
0.1003665403,
-0.1770121902,
0.4902183712,
-0.1291064918,
-0.0994328782,
-0.0617543831,
0.463735491,
-0.2605729103,
-0.1433640271,
-0.4001679718,
0.1066974178,
-0.1958625168,
0.3526175618,
-0.1023911908,
-0.1949197948,
0.2577715516,
-0.2590811849,
-0.0749826878,
0.2773517966,
-0.2684626281,
0.1398489326,
0.0061618765,
0.2401973307,
-0.2210499495,
-0.382738471,
0.3137291372,
-0.135518223,
-0.0385883711,
-0.0691944063,
-0.2621512711,
-0.0241814498,
-0.1012062803,
0.106012255,
0.4224325716,
-0.2187232524,
-0.1145566478,
0.0203037709,
-0.1885792166,
-0.1630531996,
-0.0189782735,
-0.0354847461,
0.1039878204,
-0.1709195077,
-0.1970957369,
0.0954248905,
-0.231049329,
-0.3154529333,
0.1461788267,
-0.0577431768,
-0.2906801701,
0.3077002764,
-0.0858524218,
-0.280965507,
-0.2579650283,
0.2445216626,
0.1696912497,
0.0508795641,
0.4922748506,
0.022502752,
-0.2898047268,
-0.2790829241,
-0.0300641935,
0.026359776,
-0.3613365591,
0.1998147815,
-0.0870135203,
-0.0155758876,
0.275527209,
0.2051901072,
0.1997066438,
0.2912750244,
-0.2323928922,
-0.5686836839,
-0.1438725144,
0.0629846081,
-0.0053666062,
0.2893785536,
0.0466337092,
0.564001441,
0.0183576047,
0.3612834513,
-0.355859071,
0.0370596349,
-0.2532140911,
0.1774705648,
0.1644683182,
-0.2871333361,
0.4796303511,
0.3361739516,
0.1896097809,
0.1844837964,
-0.3276685774,
-0.2398813367,
-0.1398789287,
0.1459912807,
0.0528673008,
-0.1507482976,
0.1091264114,
0.0210521482,
-0.162660867,
-0.0761600509,
-0.0131699676,
-0.1183908954,
-0.0879902765,
0.2467848659,
-0.0422546975,
-0.0603146292,
0.120273374,
0.0563642383,
-0.1231210604,
0.3887265921,
-0.0118621141,
0.230624333,
-0.2371811867,
0.0459101684,
-0.1055980846,
-0.1075529307,
0.0492283143,
0.014071079,
0.2833746076,
-0.4350685477,
-0.2895485759,
0.1623044908,
0.2314195931,
0.2564554513,
-0.0285924803,
-0.1506041735,
0.1654754877,
0.2218014449,
-0.3195350468,
0.0245436952,
0.3671755195,
-0.0035077017,
0.3218828738,
0.3530762494,
0.1187407821,
0.019552689,
-0.0508772917,
0.0890133604,
0.2165190578,
-0.2659981847,
0.0368567668,
0.2631329298,
-0.1103860885,
-0.015080628,
0.3015815616,
-0.1218025312,
0.3009927571,
0.2377935648,
-0.0317761078,
0.4294941723,
-0.0397180356,
0.3304134309,
-0.0069704694,
-0.2167674303,
0.1839848459,
0.4842493534,
-0.1120004952,
0.3832814693,
0.0147897135,
0.410564363,
-0.2803668082,
0.0144453803,
-0.1774632335,
0.4721759558,
-0.1400122494,
0.0913876444,
-0.0336259529,
-0.0987378657,
-0.2867730856,
-0.0064011025,
0.0785611123,
0.0901596025,
0.1506232321,
0.1159301177,
-0.0376423337,
-0.3303665221,
-0.1878766418,
0.1589913368,
0.2382989675,
-0.3991441429,
0.3074402213,
0.2775503993,
-0.0423321128,
-0.1595375389,
0.6101231575,
0.343123883,
0.3848831356,
-0.1388491988,
-0.0203317907,
0.1635617763,
-0.0777897835,
-0.0890925452,
0.3411318362,
0.1897566319,
-0.0746390671,
0.364636451,
0.1043185666,
-0.278414607,
-0.0463372394,
0.0937769935,
-0.241616413,
-0.1392457038,
0.2932828367,
-0.04942533,
0.2100276351,
-0.2220620364,
0.0304332431,
-0.6043115258,
-0.0503049083,
0.193435505,
-0.0807916373,
0.2918083668,
0.0341566838,
0.1002931893,
-0.1915133148,
0.4911067486,
0.0694367737,
-0.0748940259,
-0.3047780395,
-0.2246828228,
-0.579849422,
0.1475733966,
-0.1549479812,
-0.0564669333,
0.0097488575,
0.281364888,
-0.2015342861,
0.0494434312,
0.0776405111,
0.3546507061,
-0.0404422209,
-0.1575726122,
-0.3835544586,
0.0163157936,
0.005404192,
-0.2268490046,
0.0736883208,
-0.4133268595,
0.2439870685,
-0.201167956,
0.036815308,
-0.1237299889,
0.0597290583,
-0.0689730868,
0.4797642827,
0.012968705,
0.5052638054,
0.2816343307,
-0.2362824678,
-0.3487400711,
-0.165610984,
-0.1421878934,
-0.2967923582,
0.1579180807,
0.3191113174,
0.5874745846,
0.0172951985,
0.0549574271,
-0.3607901931,
0.3801416755,
0.0239441674,
-0.1877513826,
0.0241978224,
0.3261171877,
-0.2411891967,
0.2674723268,
0.2473868281,
0.3860733807,
0.1126278937,
0.1490356475,
-0.2446983755,
-0.371393472,
0.5164569616,
-0.1831860542,
-0.2234717607,
-0.0118960701,
0.1257261485,
0.0264657792,
-0.1279569119,
-0.4188548625,
0.0567012504,
0.3580687344,
-0.1017917618,
-0.089166671,
0.2000731379,
0.2182817459,
-0.2056008875,
-0.0198609438,
-0.0954742059,
0.3953031898,
-0.431452632,
0.2040594518,
-0.0773263872
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | > here's the log
>
> ```
> >>> import nlp
> import logging
> logging.basicConfig(level=logging.INFO)
> nlp.load_dataset('cnn_dailymail', '3.0.0')
> >>> import logging
> >>> logging.basicConfig(level=logging.INFO)
> >>> nlp.load_dataset('cnn_dailymail', '3.0.0')
> INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
> INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
> INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
> INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
> INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
> INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
> INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
> Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
> INFO:nlp.utils.info_utils:All the checksums matched successfully.
> INFO:nlp.builder:Generating split train
> INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
> INFO:nlp.builder:Generating split validation
> INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
> INFO:nlp.builder:Generating split test
> INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
> builder_instance.download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
> self._download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
> verify_splits(self.info.splits, split_dict)
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
> raise NonMatchingSplitsSizesError(str(bad_splits))
> nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
> ```
With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side.
Which version are you using for reproducing your bug?
```
>> nlp.load_dataset('cnn_dailymail', '3.0.0')
8.90k/8.90k [00:18<00:00, 486B/s]
Downloading: 100%
9.37k/9.37k [00:00<00:00, 234kB/s]
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Downloading:
159M/? [00:09<00:00, 16.7MB/s]
Downloading:
376M/? [00:06<00:00, 62.6MB/s]
Downloading:
2.11M/? [00:06<00:00, 333kB/s]
Downloading:
46.4M/? [00:02<00:00, 18.4MB/s]
Downloading:
2.43M/? [00:00<00:00, 2.62MB/s]
Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data.
{'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490),
'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113),
'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)}
>> ...
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 376 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
> here's the log
>
> ```
> >>> import nlp
> import logging
> logging.basicConfig(level=logging.INFO)
> nlp.load_dataset('cnn_dailymail', '3.0.0')
> >>> import logging
> >>> logging.basicConfig(level=logging.INFO)
> >>> nlp.load_dataset('cnn_dailymail', '3.0.0')
> INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
> INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
> INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
> INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
> INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
> INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
> INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
> Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
> INFO:nlp.utils.info_utils:All the checksums matched successfully.
> INFO:nlp.builder:Generating split train
> INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
> INFO:nlp.builder:Generating split validation
> INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
> INFO:nlp.builder:Generating split test
> INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
> builder_instance.download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
> self._download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
> verify_splits(self.info.splits, split_dict)
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
> raise NonMatchingSplitsSizesError(str(bad_splits))
> nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
> ```
With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side.
Which version are you using for reproducing your bug?
```
>> nlp.load_dataset('cnn_dailymail', '3.0.0')
8.90k/8.90k [00:18<00:00, 486B/s]
Downloading: 100%
9.37k/9.37k [00:00<00:00, 234kB/s]
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Downloading:
159M/? [00:09<00:00, 16.7MB/s]
Downloading:
376M/? [00:06<00:00, 62.6MB/s]
Downloading:
2.11M/? [00:06<00:00, 333kB/s]
Downloading:
46.4M/? [00:02<00:00, 18.4MB/s]
Downloading:
2.43M/? [00:00<00:00, 2.62MB/s]
Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data.
{'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490),
'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113),
'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)}
>> ...
``` | [
-0.1410693228,
-0.0569874272,
-0.0082133301,
0.2086570412,
0.0776497126,
0.0907958299,
0.1833025217,
0.5251755118,
0.0987316146,
0.1542321593,
0.0162980221,
0.0769965202,
-0.3141202331,
-0.043774426,
-0.0335895158,
0.0359017625,
-0.1871678978,
0.2515124679,
0.0448876992,
-0.0229967982,
-0.2874319851,
0.2817905545,
-0.2087393254,
-0.0366007164,
-0.4835279584,
-0.2941967845,
0.0143962866,
0.3698371649,
0.0376475118,
-0.3093646765,
-0.0541154444,
-0.1348573267,
-0.1841389537,
0.102971077,
-0.0001130321,
0.1136062592,
0.3911182284,
-0.1433287263,
-0.4867381155,
0.0093757948,
-0.2104340494,
-0.4906260073,
0.0880896375,
-0.3546804786,
-0.1552340835,
0.0253198966,
0.094564274,
-0.2195382118,
0.496927768,
0.390468508,
0.2402192056,
0.5636106133,
0.0662313774,
0.1633446217,
-0.0887695253,
-0.1809552461,
-0.1458711475,
-0.0048660059,
-0.3178360462,
-0.1510139555,
-0.0242430586,
0.4289471209,
-0.092620261,
0.1253478676,
-0.0872374624,
0.1102501675,
0.0889439732,
-0.1658466458,
0.0938814655,
0.1360182464,
-0.0329075307,
-0.0759069845,
-0.2113917172,
-0.4385612905,
-0.0160643794,
-0.3980178237,
0.2251276076,
0.2127170116,
-0.1745027453,
0.065380469,
-0.3212835193,
0.0384898596,
-0.0294718314,
0.2034059465,
0.0819333643,
0.4111944139,
-0.1002978608,
0.0258117151,
0.0555453449,
-0.0901163742,
0.1567517221,
-0.1769278795,
0.1543254405,
0.077836439,
-0.1457697153,
-0.0452778041,
0.1644647121,
-0.1484151483,
0.0430355296,
-0.0675475821,
0.1789102405,
-0.0621050261,
0.1744742244,
0.086874254,
0.0470655635,
0.3125296831,
-0.0163509026,
0.2686333358,
0.1245982274,
0.2852092087,
0.0025195235,
0.0181033816,
0.1172017977,
-0.0053182743,
0.1188477501,
0.2207995057,
0.3734847307,
-0.0592547879,
-0.327632159,
0.1337224692,
-0.2627147436,
-0.2590236664,
-0.0015642417,
0.256218195,
-0.0583014227,
0.3132662773,
-0.0608432442,
-0.0814522579,
-0.3839428127,
-0.1547315717,
-0.3804471493,
0.1700799614,
-0.1844009161,
0.0808092207,
0.2795962095,
-0.0796255618,
0.4572217464,
-0.2497541904,
-0.0141821634,
-0.1472637951,
0.2093331367,
-0.0398358367,
0.0250500366,
0.2831859589,
-0.1309727728,
0.1706080288,
0.2590435743,
0.1690690815,
-0.2127458006,
-0.0859968513,
-0.0040092804,
-0.6050630808,
0.1887344271,
0.2487291694,
0.0593622997,
-0.0686995238,
0.6144137383,
0.0758781657,
0.2487532943,
0.0350489765,
-0.1620906144,
-0.0698394403,
-0.0113205845,
-0.1684925407,
0.0756478831,
0.4380224347,
-0.2325228304,
-0.2369066626,
-0.0135409646,
-0.141926825,
0.5154548287,
0.4340139329,
-0.1053205654,
0.043939095,
-0.126549229,
0.153826952,
0.2003802508,
-0.154539451,
-0.3955637515,
0.1898383051,
-0.0884124711,
0.2039060593,
0.2070536017,
0.1967762411,
-0.0294460952,
0.1016341895,
0.0539139695,
0.5395387411,
-0.2290880531,
0.1055222824,
-0.4344430268,
-0.4346442223,
0.3582524061,
0.0564582944,
0.2241697758,
-0.0408379771,
-0.0627058372,
0.4361118674,
0.2115100175,
-0.111062929,
0.0374838561,
0.0333378166,
-0.151663512,
-0.1143530756,
0.0171923172,
-0.0431707725,
-0.4885508716,
0.1375231296,
-0.1571972072,
0.3005172908,
-0.050177671,
-0.1014920771,
-0.2627060711,
-0.194733575,
-0.1750025302,
-0.2838498652,
0.2178564668,
0.2274240106,
0.2097195536,
0.0044355392,
-0.2784239054,
0.3022139072,
-0.0314070396,
0.1214025393,
-0.5230285525,
0.2627041042,
-0.2279075682,
-0.1810560673,
0.263964057,
0.4298871756,
0.2641761601,
-0.1530769914,
-0.2832181156,
0.2833618522,
-0.0861627981,
0.2315970361,
-0.148044616,
-0.1591016054,
0.1137663051,
-0.0814557448,
0.1697772741,
0.4025972486,
-0.0342430249,
-0.1033014208,
-0.1191939563,
0.4826926589,
0.0484580994,
0.0898779184,
0.1499337107,
-0.1141223907,
0.0772693157,
-0.1309576333,
0.113028273,
-0.5237566233,
0.3187467754,
-0.1696306467,
0.2132307738,
-0.0878213793,
-0.250007838,
0.0530380644,
0.6815172434,
-0.0259577855,
0.0975138694,
0.0207602698,
-0.1026207879,
-0.202081129,
-0.1837859899,
0.1597255021,
0.338671416,
0.2413775474,
0.1866380721,
0.2474578917,
-0.1729581505,
-0.2860012949,
0.2723777294,
0.0954685062,
0.2538039982,
0.3859495819,
0.006087807,
-0.0024017892,
-0.531466186,
-0.02483139,
0.0135072013,
0.3741948903,
-0.2236364484,
-0.2018272728,
-0.4316603541,
-0.4015903473,
-0.1702877581,
-0.2987870872,
-0.1874075979,
-0.5853304267,
0.0800147206,
0.0300566982,
-0.1252744496,
0.1624237597,
-0.1581038982,
0.2318921536,
0.2769705653,
-0.0165656582,
-0.1927295625,
-0.0813187957,
-0.1340953708,
0.0754104629,
0.175627023,
0.0380114354,
0.328263402,
-0.1323554516,
-0.1795411259,
-0.0246302467,
-0.4010377526,
0.0776723921,
0.0673699751,
0.1397411376,
0.304790765,
0.1800096035,
0.3312229216,
-0.3353326023,
0.197252959,
-0.2418714911,
-0.2770200372,
-0.0081247147,
0.0024521016,
0.1431992054,
-0.2382312417,
-0.4810168445,
-0.43263641,
-0.5125102401,
0.1009554863,
0.0488469303,
0.4066633284,
0.2704299092,
-0.286316663,
0.1968382448,
-0.1210166514,
0.1822268963,
-0.2584162652,
-0.1776083261,
0.250297755,
-0.2715799809,
-0.2704791427,
-0.1265954971,
-0.1486995667,
0.2048909217,
-0.2855256498,
-0.4239243567,
-0.3295072317,
-0.1458871514,
-0.0527007878,
0.1072000936,
-0.0558418259,
0.2296747416,
-0.0121128028,
-0.1654176563,
-0.0335119516,
-0.3873257041,
0.0534176789,
0.1250743866,
0.0702094585,
-0.0927718133,
0.6258091331,
0.062266238,
0.5375287533,
0.3718983829,
0.0934446827,
0.2314644605,
0.1095012501,
0.1484317183,
-0.0122383861,
-0.3427924216,
0.2506152987,
0.1518255025,
0.0592512377,
0.3488014042,
-0.0516512729,
-0.3857153058,
-0.0800834373,
-0.3046742976,
-0.4658902884,
-0.2806209922,
0.1811252534,
0.1248167604,
0.257915169,
0.2710351944,
0.1946984977,
-0.1767566353,
-0.1700818837,
-0.1458093226,
0.1727719009,
0.0059873648,
-0.0366931334,
-0.1083941683,
0.0141895842,
-0.6109690666,
0.2600290179,
0.006670333,
0.6111476421,
-0.1570564657,
-0.0673667789,
-0.0168539919,
-0.2866098583,
0.3602803051,
-0.3092956245,
-0.0543414503,
0.1828867942,
-0.1095795408,
-0.3564965129,
-0.1205784529,
-0.1527361125,
0.0463258922,
0.5042911172,
0.5133959055,
-0.2715701461,
-0.2822860181,
0.4173494577,
0.1056820899,
-0.1925456524,
-0.2405325174,
-0.2602202296,
-0.2365472466,
-0.3589507341,
-0.0029189212,
-0.3549584448,
0.280667305,
0.0347828381,
-0.0494444445,
-0.0367942341,
-0.2479301542,
0.1712221801,
0.0238344111,
-0.0075590811,
0.2060530782,
0.1902966648,
0.2586178184,
0.3282208145,
-0.2777054608,
0.3211953342,
-0.043693997,
0.0135160955,
-0.0866975114,
0.1257399321,
0.0457254499,
0.4861238301,
0.017081406,
-0.0189170018,
0.2016194463,
0.3254522383,
-0.0044429717,
-0.033122085,
0.4496919811,
-0.061969962,
-0.4111624956,
-0.1648905873,
0.2997182906,
0.1231900826,
0.1361616701,
-0.1300018281,
-0.1973909289,
-0.243721962,
0.1276025623,
0.1129899472,
0.7832140326,
0.2591177225,
0.06482324,
0.3565957844,
-0.1549979299,
0.6783714294,
-0.2112057954,
0.2569591403,
-0.3706094027,
-0.331223011,
-0.0379184037,
-0.110877119,
0.3169815838,
0.1003665403,
-0.1770121902,
0.4902183712,
-0.1291064918,
-0.0994328782,
-0.0617543831,
0.463735491,
-0.2605729103,
-0.1433640271,
-0.4001679718,
0.1066974178,
-0.1958625168,
0.3526175618,
-0.1023911908,
-0.1949197948,
0.2577715516,
-0.2590811849,
-0.0749826878,
0.2773517966,
-0.2684626281,
0.1398489326,
0.0061618765,
0.2401973307,
-0.2210499495,
-0.382738471,
0.3137291372,
-0.135518223,
-0.0385883711,
-0.0691944063,
-0.2621512711,
-0.0241814498,
-0.1012062803,
0.106012255,
0.4224325716,
-0.2187232524,
-0.1145566478,
0.0203037709,
-0.1885792166,
-0.1630531996,
-0.0189782735,
-0.0354847461,
0.1039878204,
-0.1709195077,
-0.1970957369,
0.0954248905,
-0.231049329,
-0.3154529333,
0.1461788267,
-0.0577431768,
-0.2906801701,
0.3077002764,
-0.0858524218,
-0.280965507,
-0.2579650283,
0.2445216626,
0.1696912497,
0.0508795641,
0.4922748506,
0.022502752,
-0.2898047268,
-0.2790829241,
-0.0300641935,
0.026359776,
-0.3613365591,
0.1998147815,
-0.0870135203,
-0.0155758876,
0.275527209,
0.2051901072,
0.1997066438,
0.2912750244,
-0.2323928922,
-0.5686836839,
-0.1438725144,
0.0629846081,
-0.0053666062,
0.2893785536,
0.0466337092,
0.564001441,
0.0183576047,
0.3612834513,
-0.355859071,
0.0370596349,
-0.2532140911,
0.1774705648,
0.1644683182,
-0.2871333361,
0.4796303511,
0.3361739516,
0.1896097809,
0.1844837964,
-0.3276685774,
-0.2398813367,
-0.1398789287,
0.1459912807,
0.0528673008,
-0.1507482976,
0.1091264114,
0.0210521482,
-0.162660867,
-0.0761600509,
-0.0131699676,
-0.1183908954,
-0.0879902765,
0.2467848659,
-0.0422546975,
-0.0603146292,
0.120273374,
0.0563642383,
-0.1231210604,
0.3887265921,
-0.0118621141,
0.230624333,
-0.2371811867,
0.0459101684,
-0.1055980846,
-0.1075529307,
0.0492283143,
0.014071079,
0.2833746076,
-0.4350685477,
-0.2895485759,
0.1623044908,
0.2314195931,
0.2564554513,
-0.0285924803,
-0.1506041735,
0.1654754877,
0.2218014449,
-0.3195350468,
0.0245436952,
0.3671755195,
-0.0035077017,
0.3218828738,
0.3530762494,
0.1187407821,
0.019552689,
-0.0508772917,
0.0890133604,
0.2165190578,
-0.2659981847,
0.0368567668,
0.2631329298,
-0.1103860885,
-0.015080628,
0.3015815616,
-0.1218025312,
0.3009927571,
0.2377935648,
-0.0317761078,
0.4294941723,
-0.0397180356,
0.3304134309,
-0.0069704694,
-0.2167674303,
0.1839848459,
0.4842493534,
-0.1120004952,
0.3832814693,
0.0147897135,
0.410564363,
-0.2803668082,
0.0144453803,
-0.1774632335,
0.4721759558,
-0.1400122494,
0.0913876444,
-0.0336259529,
-0.0987378657,
-0.2867730856,
-0.0064011025,
0.0785611123,
0.0901596025,
0.1506232321,
0.1159301177,
-0.0376423337,
-0.3303665221,
-0.1878766418,
0.1589913368,
0.2382989675,
-0.3991441429,
0.3074402213,
0.2775503993,
-0.0423321128,
-0.1595375389,
0.6101231575,
0.343123883,
0.3848831356,
-0.1388491988,
-0.0203317907,
0.1635617763,
-0.0777897835,
-0.0890925452,
0.3411318362,
0.1897566319,
-0.0746390671,
0.364636451,
0.1043185666,
-0.278414607,
-0.0463372394,
0.0937769935,
-0.241616413,
-0.1392457038,
0.2932828367,
-0.04942533,
0.2100276351,
-0.2220620364,
0.0304332431,
-0.6043115258,
-0.0503049083,
0.193435505,
-0.0807916373,
0.2918083668,
0.0341566838,
0.1002931893,
-0.1915133148,
0.4911067486,
0.0694367737,
-0.0748940259,
-0.3047780395,
-0.2246828228,
-0.579849422,
0.1475733966,
-0.1549479812,
-0.0564669333,
0.0097488575,
0.281364888,
-0.2015342861,
0.0494434312,
0.0776405111,
0.3546507061,
-0.0404422209,
-0.1575726122,
-0.3835544586,
0.0163157936,
0.005404192,
-0.2268490046,
0.0736883208,
-0.4133268595,
0.2439870685,
-0.201167956,
0.036815308,
-0.1237299889,
0.0597290583,
-0.0689730868,
0.4797642827,
0.012968705,
0.5052638054,
0.2816343307,
-0.2362824678,
-0.3487400711,
-0.165610984,
-0.1421878934,
-0.2967923582,
0.1579180807,
0.3191113174,
0.5874745846,
0.0172951985,
0.0549574271,
-0.3607901931,
0.3801416755,
0.0239441674,
-0.1877513826,
0.0241978224,
0.3261171877,
-0.2411891967,
0.2674723268,
0.2473868281,
0.3860733807,
0.1126278937,
0.1490356475,
-0.2446983755,
-0.371393472,
0.5164569616,
-0.1831860542,
-0.2234717607,
-0.0118960701,
0.1257261485,
0.0264657792,
-0.1279569119,
-0.4188548625,
0.0567012504,
0.3580687344,
-0.1017917618,
-0.089166671,
0.2000731379,
0.2182817459,
-0.2056008875,
-0.0198609438,
-0.0954742059,
0.3953031898,
-0.431452632,
0.2040594518,
-0.0773263872
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either
1) corrupted cached files
2) decoding errors
I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1) | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 74 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either
1) corrupted cached files
2) decoding errors
I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1) | [
-0.1410693228,
-0.0569874272,
-0.0082133301,
0.2086570412,
0.0776497126,
0.0907958299,
0.1833025217,
0.5251755118,
0.0987316146,
0.1542321593,
0.0162980221,
0.0769965202,
-0.3141202331,
-0.043774426,
-0.0335895158,
0.0359017625,
-0.1871678978,
0.2515124679,
0.0448876992,
-0.0229967982,
-0.2874319851,
0.2817905545,
-0.2087393254,
-0.0366007164,
-0.4835279584,
-0.2941967845,
0.0143962866,
0.3698371649,
0.0376475118,
-0.3093646765,
-0.0541154444,
-0.1348573267,
-0.1841389537,
0.102971077,
-0.0001130321,
0.1136062592,
0.3911182284,
-0.1433287263,
-0.4867381155,
0.0093757948,
-0.2104340494,
-0.4906260073,
0.0880896375,
-0.3546804786,
-0.1552340835,
0.0253198966,
0.094564274,
-0.2195382118,
0.496927768,
0.390468508,
0.2402192056,
0.5636106133,
0.0662313774,
0.1633446217,
-0.0887695253,
-0.1809552461,
-0.1458711475,
-0.0048660059,
-0.3178360462,
-0.1510139555,
-0.0242430586,
0.4289471209,
-0.092620261,
0.1253478676,
-0.0872374624,
0.1102501675,
0.0889439732,
-0.1658466458,
0.0938814655,
0.1360182464,
-0.0329075307,
-0.0759069845,
-0.2113917172,
-0.4385612905,
-0.0160643794,
-0.3980178237,
0.2251276076,
0.2127170116,
-0.1745027453,
0.065380469,
-0.3212835193,
0.0384898596,
-0.0294718314,
0.2034059465,
0.0819333643,
0.4111944139,
-0.1002978608,
0.0258117151,
0.0555453449,
-0.0901163742,
0.1567517221,
-0.1769278795,
0.1543254405,
0.077836439,
-0.1457697153,
-0.0452778041,
0.1644647121,
-0.1484151483,
0.0430355296,
-0.0675475821,
0.1789102405,
-0.0621050261,
0.1744742244,
0.086874254,
0.0470655635,
0.3125296831,
-0.0163509026,
0.2686333358,
0.1245982274,
0.2852092087,
0.0025195235,
0.0181033816,
0.1172017977,
-0.0053182743,
0.1188477501,
0.2207995057,
0.3734847307,
-0.0592547879,
-0.327632159,
0.1337224692,
-0.2627147436,
-0.2590236664,
-0.0015642417,
0.256218195,
-0.0583014227,
0.3132662773,
-0.0608432442,
-0.0814522579,
-0.3839428127,
-0.1547315717,
-0.3804471493,
0.1700799614,
-0.1844009161,
0.0808092207,
0.2795962095,
-0.0796255618,
0.4572217464,
-0.2497541904,
-0.0141821634,
-0.1472637951,
0.2093331367,
-0.0398358367,
0.0250500366,
0.2831859589,
-0.1309727728,
0.1706080288,
0.2590435743,
0.1690690815,
-0.2127458006,
-0.0859968513,
-0.0040092804,
-0.6050630808,
0.1887344271,
0.2487291694,
0.0593622997,
-0.0686995238,
0.6144137383,
0.0758781657,
0.2487532943,
0.0350489765,
-0.1620906144,
-0.0698394403,
-0.0113205845,
-0.1684925407,
0.0756478831,
0.4380224347,
-0.2325228304,
-0.2369066626,
-0.0135409646,
-0.141926825,
0.5154548287,
0.4340139329,
-0.1053205654,
0.043939095,
-0.126549229,
0.153826952,
0.2003802508,
-0.154539451,
-0.3955637515,
0.1898383051,
-0.0884124711,
0.2039060593,
0.2070536017,
0.1967762411,
-0.0294460952,
0.1016341895,
0.0539139695,
0.5395387411,
-0.2290880531,
0.1055222824,
-0.4344430268,
-0.4346442223,
0.3582524061,
0.0564582944,
0.2241697758,
-0.0408379771,
-0.0627058372,
0.4361118674,
0.2115100175,
-0.111062929,
0.0374838561,
0.0333378166,
-0.151663512,
-0.1143530756,
0.0171923172,
-0.0431707725,
-0.4885508716,
0.1375231296,
-0.1571972072,
0.3005172908,
-0.050177671,
-0.1014920771,
-0.2627060711,
-0.194733575,
-0.1750025302,
-0.2838498652,
0.2178564668,
0.2274240106,
0.2097195536,
0.0044355392,
-0.2784239054,
0.3022139072,
-0.0314070396,
0.1214025393,
-0.5230285525,
0.2627041042,
-0.2279075682,
-0.1810560673,
0.263964057,
0.4298871756,
0.2641761601,
-0.1530769914,
-0.2832181156,
0.2833618522,
-0.0861627981,
0.2315970361,
-0.148044616,
-0.1591016054,
0.1137663051,
-0.0814557448,
0.1697772741,
0.4025972486,
-0.0342430249,
-0.1033014208,
-0.1191939563,
0.4826926589,
0.0484580994,
0.0898779184,
0.1499337107,
-0.1141223907,
0.0772693157,
-0.1309576333,
0.113028273,
-0.5237566233,
0.3187467754,
-0.1696306467,
0.2132307738,
-0.0878213793,
-0.250007838,
0.0530380644,
0.6815172434,
-0.0259577855,
0.0975138694,
0.0207602698,
-0.1026207879,
-0.202081129,
-0.1837859899,
0.1597255021,
0.338671416,
0.2413775474,
0.1866380721,
0.2474578917,
-0.1729581505,
-0.2860012949,
0.2723777294,
0.0954685062,
0.2538039982,
0.3859495819,
0.006087807,
-0.0024017892,
-0.531466186,
-0.02483139,
0.0135072013,
0.3741948903,
-0.2236364484,
-0.2018272728,
-0.4316603541,
-0.4015903473,
-0.1702877581,
-0.2987870872,
-0.1874075979,
-0.5853304267,
0.0800147206,
0.0300566982,
-0.1252744496,
0.1624237597,
-0.1581038982,
0.2318921536,
0.2769705653,
-0.0165656582,
-0.1927295625,
-0.0813187957,
-0.1340953708,
0.0754104629,
0.175627023,
0.0380114354,
0.328263402,
-0.1323554516,
-0.1795411259,
-0.0246302467,
-0.4010377526,
0.0776723921,
0.0673699751,
0.1397411376,
0.304790765,
0.1800096035,
0.3312229216,
-0.3353326023,
0.197252959,
-0.2418714911,
-0.2770200372,
-0.0081247147,
0.0024521016,
0.1431992054,
-0.2382312417,
-0.4810168445,
-0.43263641,
-0.5125102401,
0.1009554863,
0.0488469303,
0.4066633284,
0.2704299092,
-0.286316663,
0.1968382448,
-0.1210166514,
0.1822268963,
-0.2584162652,
-0.1776083261,
0.250297755,
-0.2715799809,
-0.2704791427,
-0.1265954971,
-0.1486995667,
0.2048909217,
-0.2855256498,
-0.4239243567,
-0.3295072317,
-0.1458871514,
-0.0527007878,
0.1072000936,
-0.0558418259,
0.2296747416,
-0.0121128028,
-0.1654176563,
-0.0335119516,
-0.3873257041,
0.0534176789,
0.1250743866,
0.0702094585,
-0.0927718133,
0.6258091331,
0.062266238,
0.5375287533,
0.3718983829,
0.0934446827,
0.2314644605,
0.1095012501,
0.1484317183,
-0.0122383861,
-0.3427924216,
0.2506152987,
0.1518255025,
0.0592512377,
0.3488014042,
-0.0516512729,
-0.3857153058,
-0.0800834373,
-0.3046742976,
-0.4658902884,
-0.2806209922,
0.1811252534,
0.1248167604,
0.257915169,
0.2710351944,
0.1946984977,
-0.1767566353,
-0.1700818837,
-0.1458093226,
0.1727719009,
0.0059873648,
-0.0366931334,
-0.1083941683,
0.0141895842,
-0.6109690666,
0.2600290179,
0.006670333,
0.6111476421,
-0.1570564657,
-0.0673667789,
-0.0168539919,
-0.2866098583,
0.3602803051,
-0.3092956245,
-0.0543414503,
0.1828867942,
-0.1095795408,
-0.3564965129,
-0.1205784529,
-0.1527361125,
0.0463258922,
0.5042911172,
0.5133959055,
-0.2715701461,
-0.2822860181,
0.4173494577,
0.1056820899,
-0.1925456524,
-0.2405325174,
-0.2602202296,
-0.2365472466,
-0.3589507341,
-0.0029189212,
-0.3549584448,
0.280667305,
0.0347828381,
-0.0494444445,
-0.0367942341,
-0.2479301542,
0.1712221801,
0.0238344111,
-0.0075590811,
0.2060530782,
0.1902966648,
0.2586178184,
0.3282208145,
-0.2777054608,
0.3211953342,
-0.043693997,
0.0135160955,
-0.0866975114,
0.1257399321,
0.0457254499,
0.4861238301,
0.017081406,
-0.0189170018,
0.2016194463,
0.3254522383,
-0.0044429717,
-0.033122085,
0.4496919811,
-0.061969962,
-0.4111624956,
-0.1648905873,
0.2997182906,
0.1231900826,
0.1361616701,
-0.1300018281,
-0.1973909289,
-0.243721962,
0.1276025623,
0.1129899472,
0.7832140326,
0.2591177225,
0.06482324,
0.3565957844,
-0.1549979299,
0.6783714294,
-0.2112057954,
0.2569591403,
-0.3706094027,
-0.331223011,
-0.0379184037,
-0.110877119,
0.3169815838,
0.1003665403,
-0.1770121902,
0.4902183712,
-0.1291064918,
-0.0994328782,
-0.0617543831,
0.463735491,
-0.2605729103,
-0.1433640271,
-0.4001679718,
0.1066974178,
-0.1958625168,
0.3526175618,
-0.1023911908,
-0.1949197948,
0.2577715516,
-0.2590811849,
-0.0749826878,
0.2773517966,
-0.2684626281,
0.1398489326,
0.0061618765,
0.2401973307,
-0.2210499495,
-0.382738471,
0.3137291372,
-0.135518223,
-0.0385883711,
-0.0691944063,
-0.2621512711,
-0.0241814498,
-0.1012062803,
0.106012255,
0.4224325716,
-0.2187232524,
-0.1145566478,
0.0203037709,
-0.1885792166,
-0.1630531996,
-0.0189782735,
-0.0354847461,
0.1039878204,
-0.1709195077,
-0.1970957369,
0.0954248905,
-0.231049329,
-0.3154529333,
0.1461788267,
-0.0577431768,
-0.2906801701,
0.3077002764,
-0.0858524218,
-0.280965507,
-0.2579650283,
0.2445216626,
0.1696912497,
0.0508795641,
0.4922748506,
0.022502752,
-0.2898047268,
-0.2790829241,
-0.0300641935,
0.026359776,
-0.3613365591,
0.1998147815,
-0.0870135203,
-0.0155758876,
0.275527209,
0.2051901072,
0.1997066438,
0.2912750244,
-0.2323928922,
-0.5686836839,
-0.1438725144,
0.0629846081,
-0.0053666062,
0.2893785536,
0.0466337092,
0.564001441,
0.0183576047,
0.3612834513,
-0.355859071,
0.0370596349,
-0.2532140911,
0.1774705648,
0.1644683182,
-0.2871333361,
0.4796303511,
0.3361739516,
0.1896097809,
0.1844837964,
-0.3276685774,
-0.2398813367,
-0.1398789287,
0.1459912807,
0.0528673008,
-0.1507482976,
0.1091264114,
0.0210521482,
-0.162660867,
-0.0761600509,
-0.0131699676,
-0.1183908954,
-0.0879902765,
0.2467848659,
-0.0422546975,
-0.0603146292,
0.120273374,
0.0563642383,
-0.1231210604,
0.3887265921,
-0.0118621141,
0.230624333,
-0.2371811867,
0.0459101684,
-0.1055980846,
-0.1075529307,
0.0492283143,
0.014071079,
0.2833746076,
-0.4350685477,
-0.2895485759,
0.1623044908,
0.2314195931,
0.2564554513,
-0.0285924803,
-0.1506041735,
0.1654754877,
0.2218014449,
-0.3195350468,
0.0245436952,
0.3671755195,
-0.0035077017,
0.3218828738,
0.3530762494,
0.1187407821,
0.019552689,
-0.0508772917,
0.0890133604,
0.2165190578,
-0.2659981847,
0.0368567668,
0.2631329298,
-0.1103860885,
-0.015080628,
0.3015815616,
-0.1218025312,
0.3009927571,
0.2377935648,
-0.0317761078,
0.4294941723,
-0.0397180356,
0.3304134309,
-0.0069704694,
-0.2167674303,
0.1839848459,
0.4842493534,
-0.1120004952,
0.3832814693,
0.0147897135,
0.410564363,
-0.2803668082,
0.0144453803,
-0.1774632335,
0.4721759558,
-0.1400122494,
0.0913876444,
-0.0336259529,
-0.0987378657,
-0.2867730856,
-0.0064011025,
0.0785611123,
0.0901596025,
0.1506232321,
0.1159301177,
-0.0376423337,
-0.3303665221,
-0.1878766418,
0.1589913368,
0.2382989675,
-0.3991441429,
0.3074402213,
0.2775503993,
-0.0423321128,
-0.1595375389,
0.6101231575,
0.343123883,
0.3848831356,
-0.1388491988,
-0.0203317907,
0.1635617763,
-0.0777897835,
-0.0890925452,
0.3411318362,
0.1897566319,
-0.0746390671,
0.364636451,
0.1043185666,
-0.278414607,
-0.0463372394,
0.0937769935,
-0.241616413,
-0.1392457038,
0.2932828367,
-0.04942533,
0.2100276351,
-0.2220620364,
0.0304332431,
-0.6043115258,
-0.0503049083,
0.193435505,
-0.0807916373,
0.2918083668,
0.0341566838,
0.1002931893,
-0.1915133148,
0.4911067486,
0.0694367737,
-0.0748940259,
-0.3047780395,
-0.2246828228,
-0.579849422,
0.1475733966,
-0.1549479812,
-0.0564669333,
0.0097488575,
0.281364888,
-0.2015342861,
0.0494434312,
0.0776405111,
0.3546507061,
-0.0404422209,
-0.1575726122,
-0.3835544586,
0.0163157936,
0.005404192,
-0.2268490046,
0.0736883208,
-0.4133268595,
0.2439870685,
-0.201167956,
0.036815308,
-0.1237299889,
0.0597290583,
-0.0689730868,
0.4797642827,
0.012968705,
0.5052638054,
0.2816343307,
-0.2362824678,
-0.3487400711,
-0.165610984,
-0.1421878934,
-0.2967923582,
0.1579180807,
0.3191113174,
0.5874745846,
0.0172951985,
0.0549574271,
-0.3607901931,
0.3801416755,
0.0239441674,
-0.1877513826,
0.0241978224,
0.3261171877,
-0.2411891967,
0.2674723268,
0.2473868281,
0.3860733807,
0.1126278937,
0.1490356475,
-0.2446983755,
-0.371393472,
0.5164569616,
-0.1831860542,
-0.2234717607,
-0.0118960701,
0.1257261485,
0.0264657792,
-0.1279569119,
-0.4188548625,
0.0567012504,
0.3580687344,
-0.1017917618,
-0.089166671,
0.2000731379,
0.2182817459,
-0.2056008875,
-0.0198609438,
-0.0954742059,
0.3953031898,
-0.431452632,
0.2040594518,
-0.0773263872
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | Yes thanks for the support! I cleared out my cache folder and everything works fine now | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 16 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
Yes thanks for the support! I cleared out my cache folder and everything works fine now | [
-0.1410693228,
-0.0569874272,
-0.0082133301,
0.2086570412,
0.0776497126,
0.0907958299,
0.1833025217,
0.5251755118,
0.0987316146,
0.1542321593,
0.0162980221,
0.0769965202,
-0.3141202331,
-0.043774426,
-0.0335895158,
0.0359017625,
-0.1871678978,
0.2515124679,
0.0448876992,
-0.0229967982,
-0.2874319851,
0.2817905545,
-0.2087393254,
-0.0366007164,
-0.4835279584,
-0.2941967845,
0.0143962866,
0.3698371649,
0.0376475118,
-0.3093646765,
-0.0541154444,
-0.1348573267,
-0.1841389537,
0.102971077,
-0.0001130321,
0.1136062592,
0.3911182284,
-0.1433287263,
-0.4867381155,
0.0093757948,
-0.2104340494,
-0.4906260073,
0.0880896375,
-0.3546804786,
-0.1552340835,
0.0253198966,
0.094564274,
-0.2195382118,
0.496927768,
0.390468508,
0.2402192056,
0.5636106133,
0.0662313774,
0.1633446217,
-0.0887695253,
-0.1809552461,
-0.1458711475,
-0.0048660059,
-0.3178360462,
-0.1510139555,
-0.0242430586,
0.4289471209,
-0.092620261,
0.1253478676,
-0.0872374624,
0.1102501675,
0.0889439732,
-0.1658466458,
0.0938814655,
0.1360182464,
-0.0329075307,
-0.0759069845,
-0.2113917172,
-0.4385612905,
-0.0160643794,
-0.3980178237,
0.2251276076,
0.2127170116,
-0.1745027453,
0.065380469,
-0.3212835193,
0.0384898596,
-0.0294718314,
0.2034059465,
0.0819333643,
0.4111944139,
-0.1002978608,
0.0258117151,
0.0555453449,
-0.0901163742,
0.1567517221,
-0.1769278795,
0.1543254405,
0.077836439,
-0.1457697153,
-0.0452778041,
0.1644647121,
-0.1484151483,
0.0430355296,
-0.0675475821,
0.1789102405,
-0.0621050261,
0.1744742244,
0.086874254,
0.0470655635,
0.3125296831,
-0.0163509026,
0.2686333358,
0.1245982274,
0.2852092087,
0.0025195235,
0.0181033816,
0.1172017977,
-0.0053182743,
0.1188477501,
0.2207995057,
0.3734847307,
-0.0592547879,
-0.327632159,
0.1337224692,
-0.2627147436,
-0.2590236664,
-0.0015642417,
0.256218195,
-0.0583014227,
0.3132662773,
-0.0608432442,
-0.0814522579,
-0.3839428127,
-0.1547315717,
-0.3804471493,
0.1700799614,
-0.1844009161,
0.0808092207,
0.2795962095,
-0.0796255618,
0.4572217464,
-0.2497541904,
-0.0141821634,
-0.1472637951,
0.2093331367,
-0.0398358367,
0.0250500366,
0.2831859589,
-0.1309727728,
0.1706080288,
0.2590435743,
0.1690690815,
-0.2127458006,
-0.0859968513,
-0.0040092804,
-0.6050630808,
0.1887344271,
0.2487291694,
0.0593622997,
-0.0686995238,
0.6144137383,
0.0758781657,
0.2487532943,
0.0350489765,
-0.1620906144,
-0.0698394403,
-0.0113205845,
-0.1684925407,
0.0756478831,
0.4380224347,
-0.2325228304,
-0.2369066626,
-0.0135409646,
-0.141926825,
0.5154548287,
0.4340139329,
-0.1053205654,
0.043939095,
-0.126549229,
0.153826952,
0.2003802508,
-0.154539451,
-0.3955637515,
0.1898383051,
-0.0884124711,
0.2039060593,
0.2070536017,
0.1967762411,
-0.0294460952,
0.1016341895,
0.0539139695,
0.5395387411,
-0.2290880531,
0.1055222824,
-0.4344430268,
-0.4346442223,
0.3582524061,
0.0564582944,
0.2241697758,
-0.0408379771,
-0.0627058372,
0.4361118674,
0.2115100175,
-0.111062929,
0.0374838561,
0.0333378166,
-0.151663512,
-0.1143530756,
0.0171923172,
-0.0431707725,
-0.4885508716,
0.1375231296,
-0.1571972072,
0.3005172908,
-0.050177671,
-0.1014920771,
-0.2627060711,
-0.194733575,
-0.1750025302,
-0.2838498652,
0.2178564668,
0.2274240106,
0.2097195536,
0.0044355392,
-0.2784239054,
0.3022139072,
-0.0314070396,
0.1214025393,
-0.5230285525,
0.2627041042,
-0.2279075682,
-0.1810560673,
0.263964057,
0.4298871756,
0.2641761601,
-0.1530769914,
-0.2832181156,
0.2833618522,
-0.0861627981,
0.2315970361,
-0.148044616,
-0.1591016054,
0.1137663051,
-0.0814557448,
0.1697772741,
0.4025972486,
-0.0342430249,
-0.1033014208,
-0.1191939563,
0.4826926589,
0.0484580994,
0.0898779184,
0.1499337107,
-0.1141223907,
0.0772693157,
-0.1309576333,
0.113028273,
-0.5237566233,
0.3187467754,
-0.1696306467,
0.2132307738,
-0.0878213793,
-0.250007838,
0.0530380644,
0.6815172434,
-0.0259577855,
0.0975138694,
0.0207602698,
-0.1026207879,
-0.202081129,
-0.1837859899,
0.1597255021,
0.338671416,
0.2413775474,
0.1866380721,
0.2474578917,
-0.1729581505,
-0.2860012949,
0.2723777294,
0.0954685062,
0.2538039982,
0.3859495819,
0.006087807,
-0.0024017892,
-0.531466186,
-0.02483139,
0.0135072013,
0.3741948903,
-0.2236364484,
-0.2018272728,
-0.4316603541,
-0.4015903473,
-0.1702877581,
-0.2987870872,
-0.1874075979,
-0.5853304267,
0.0800147206,
0.0300566982,
-0.1252744496,
0.1624237597,
-0.1581038982,
0.2318921536,
0.2769705653,
-0.0165656582,
-0.1927295625,
-0.0813187957,
-0.1340953708,
0.0754104629,
0.175627023,
0.0380114354,
0.328263402,
-0.1323554516,
-0.1795411259,
-0.0246302467,
-0.4010377526,
0.0776723921,
0.0673699751,
0.1397411376,
0.304790765,
0.1800096035,
0.3312229216,
-0.3353326023,
0.197252959,
-0.2418714911,
-0.2770200372,
-0.0081247147,
0.0024521016,
0.1431992054,
-0.2382312417,
-0.4810168445,
-0.43263641,
-0.5125102401,
0.1009554863,
0.0488469303,
0.4066633284,
0.2704299092,
-0.286316663,
0.1968382448,
-0.1210166514,
0.1822268963,
-0.2584162652,
-0.1776083261,
0.250297755,
-0.2715799809,
-0.2704791427,
-0.1265954971,
-0.1486995667,
0.2048909217,
-0.2855256498,
-0.4239243567,
-0.3295072317,
-0.1458871514,
-0.0527007878,
0.1072000936,
-0.0558418259,
0.2296747416,
-0.0121128028,
-0.1654176563,
-0.0335119516,
-0.3873257041,
0.0534176789,
0.1250743866,
0.0702094585,
-0.0927718133,
0.6258091331,
0.062266238,
0.5375287533,
0.3718983829,
0.0934446827,
0.2314644605,
0.1095012501,
0.1484317183,
-0.0122383861,
-0.3427924216,
0.2506152987,
0.1518255025,
0.0592512377,
0.3488014042,
-0.0516512729,
-0.3857153058,
-0.0800834373,
-0.3046742976,
-0.4658902884,
-0.2806209922,
0.1811252534,
0.1248167604,
0.257915169,
0.2710351944,
0.1946984977,
-0.1767566353,
-0.1700818837,
-0.1458093226,
0.1727719009,
0.0059873648,
-0.0366931334,
-0.1083941683,
0.0141895842,
-0.6109690666,
0.2600290179,
0.006670333,
0.6111476421,
-0.1570564657,
-0.0673667789,
-0.0168539919,
-0.2866098583,
0.3602803051,
-0.3092956245,
-0.0543414503,
0.1828867942,
-0.1095795408,
-0.3564965129,
-0.1205784529,
-0.1527361125,
0.0463258922,
0.5042911172,
0.5133959055,
-0.2715701461,
-0.2822860181,
0.4173494577,
0.1056820899,
-0.1925456524,
-0.2405325174,
-0.2602202296,
-0.2365472466,
-0.3589507341,
-0.0029189212,
-0.3549584448,
0.280667305,
0.0347828381,
-0.0494444445,
-0.0367942341,
-0.2479301542,
0.1712221801,
0.0238344111,
-0.0075590811,
0.2060530782,
0.1902966648,
0.2586178184,
0.3282208145,
-0.2777054608,
0.3211953342,
-0.043693997,
0.0135160955,
-0.0866975114,
0.1257399321,
0.0457254499,
0.4861238301,
0.017081406,
-0.0189170018,
0.2016194463,
0.3254522383,
-0.0044429717,
-0.033122085,
0.4496919811,
-0.061969962,
-0.4111624956,
-0.1648905873,
0.2997182906,
0.1231900826,
0.1361616701,
-0.1300018281,
-0.1973909289,
-0.243721962,
0.1276025623,
0.1129899472,
0.7832140326,
0.2591177225,
0.06482324,
0.3565957844,
-0.1549979299,
0.6783714294,
-0.2112057954,
0.2569591403,
-0.3706094027,
-0.331223011,
-0.0379184037,
-0.110877119,
0.3169815838,
0.1003665403,
-0.1770121902,
0.4902183712,
-0.1291064918,
-0.0994328782,
-0.0617543831,
0.463735491,
-0.2605729103,
-0.1433640271,
-0.4001679718,
0.1066974178,
-0.1958625168,
0.3526175618,
-0.1023911908,
-0.1949197948,
0.2577715516,
-0.2590811849,
-0.0749826878,
0.2773517966,
-0.2684626281,
0.1398489326,
0.0061618765,
0.2401973307,
-0.2210499495,
-0.382738471,
0.3137291372,
-0.135518223,
-0.0385883711,
-0.0691944063,
-0.2621512711,
-0.0241814498,
-0.1012062803,
0.106012255,
0.4224325716,
-0.2187232524,
-0.1145566478,
0.0203037709,
-0.1885792166,
-0.1630531996,
-0.0189782735,
-0.0354847461,
0.1039878204,
-0.1709195077,
-0.1970957369,
0.0954248905,
-0.231049329,
-0.3154529333,
0.1461788267,
-0.0577431768,
-0.2906801701,
0.3077002764,
-0.0858524218,
-0.280965507,
-0.2579650283,
0.2445216626,
0.1696912497,
0.0508795641,
0.4922748506,
0.022502752,
-0.2898047268,
-0.2790829241,
-0.0300641935,
0.026359776,
-0.3613365591,
0.1998147815,
-0.0870135203,
-0.0155758876,
0.275527209,
0.2051901072,
0.1997066438,
0.2912750244,
-0.2323928922,
-0.5686836839,
-0.1438725144,
0.0629846081,
-0.0053666062,
0.2893785536,
0.0466337092,
0.564001441,
0.0183576047,
0.3612834513,
-0.355859071,
0.0370596349,
-0.2532140911,
0.1774705648,
0.1644683182,
-0.2871333361,
0.4796303511,
0.3361739516,
0.1896097809,
0.1844837964,
-0.3276685774,
-0.2398813367,
-0.1398789287,
0.1459912807,
0.0528673008,
-0.1507482976,
0.1091264114,
0.0210521482,
-0.162660867,
-0.0761600509,
-0.0131699676,
-0.1183908954,
-0.0879902765,
0.2467848659,
-0.0422546975,
-0.0603146292,
0.120273374,
0.0563642383,
-0.1231210604,
0.3887265921,
-0.0118621141,
0.230624333,
-0.2371811867,
0.0459101684,
-0.1055980846,
-0.1075529307,
0.0492283143,
0.014071079,
0.2833746076,
-0.4350685477,
-0.2895485759,
0.1623044908,
0.2314195931,
0.2564554513,
-0.0285924803,
-0.1506041735,
0.1654754877,
0.2218014449,
-0.3195350468,
0.0245436952,
0.3671755195,
-0.0035077017,
0.3218828738,
0.3530762494,
0.1187407821,
0.019552689,
-0.0508772917,
0.0890133604,
0.2165190578,
-0.2659981847,
0.0368567668,
0.2631329298,
-0.1103860885,
-0.015080628,
0.3015815616,
-0.1218025312,
0.3009927571,
0.2377935648,
-0.0317761078,
0.4294941723,
-0.0397180356,
0.3304134309,
-0.0069704694,
-0.2167674303,
0.1839848459,
0.4842493534,
-0.1120004952,
0.3832814693,
0.0147897135,
0.410564363,
-0.2803668082,
0.0144453803,
-0.1774632335,
0.4721759558,
-0.1400122494,
0.0913876444,
-0.0336259529,
-0.0987378657,
-0.2867730856,
-0.0064011025,
0.0785611123,
0.0901596025,
0.1506232321,
0.1159301177,
-0.0376423337,
-0.3303665221,
-0.1878766418,
0.1589913368,
0.2382989675,
-0.3991441429,
0.3074402213,
0.2775503993,
-0.0423321128,
-0.1595375389,
0.6101231575,
0.343123883,
0.3848831356,
-0.1388491988,
-0.0203317907,
0.1635617763,
-0.0777897835,
-0.0890925452,
0.3411318362,
0.1897566319,
-0.0746390671,
0.364636451,
0.1043185666,
-0.278414607,
-0.0463372394,
0.0937769935,
-0.241616413,
-0.1392457038,
0.2932828367,
-0.04942533,
0.2100276351,
-0.2220620364,
0.0304332431,
-0.6043115258,
-0.0503049083,
0.193435505,
-0.0807916373,
0.2918083668,
0.0341566838,
0.1002931893,
-0.1915133148,
0.4911067486,
0.0694367737,
-0.0748940259,
-0.3047780395,
-0.2246828228,
-0.579849422,
0.1475733966,
-0.1549479812,
-0.0564669333,
0.0097488575,
0.281364888,
-0.2015342861,
0.0494434312,
0.0776405111,
0.3546507061,
-0.0404422209,
-0.1575726122,
-0.3835544586,
0.0163157936,
0.005404192,
-0.2268490046,
0.0736883208,
-0.4133268595,
0.2439870685,
-0.201167956,
0.036815308,
-0.1237299889,
0.0597290583,
-0.0689730868,
0.4797642827,
0.012968705,
0.5052638054,
0.2816343307,
-0.2362824678,
-0.3487400711,
-0.165610984,
-0.1421878934,
-0.2967923582,
0.1579180807,
0.3191113174,
0.5874745846,
0.0172951985,
0.0549574271,
-0.3607901931,
0.3801416755,
0.0239441674,
-0.1877513826,
0.0241978224,
0.3261171877,
-0.2411891967,
0.2674723268,
0.2473868281,
0.3860733807,
0.1126278937,
0.1490356475,
-0.2446983755,
-0.371393472,
0.5164569616,
-0.1831860542,
-0.2234717607,
-0.0118960701,
0.1257261485,
0.0264657792,
-0.1279569119,
-0.4188548625,
0.0567012504,
0.3580687344,
-0.1017917618,
-0.089166671,
0.2000731379,
0.2182817459,
-0.2056008875,
-0.0198609438,
-0.0954742059,
0.3953031898,
-0.431452632,
0.2040594518,
-0.0773263872
] |
https://github.com/huggingface/datasets/issues/329 | [Bug] FileLock dependency incompatible with filesystem | Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12.
The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package.
When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker.
```bash
echo "hello world" >> hello.txt
ls -l
-rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt
``` | I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. | 118 | [Bug] FileLock dependency incompatible with filesystem
I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12.
The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package.
When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker.
```bash
echo "hello world" >> hello.txt
ls -l
-rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt
``` | [
0.0329924934,
0.0771604255,
-0.0250304658,
0.0279645603,
0.0889833644,
0.1513945907,
0.3646976352,
0.0651532039,
0.7094060183,
-0.0978959501,
0.0909678265,
-0.0051194336,
0.0214460064,
-0.3159701824,
-0.2095370591,
0.2686364949,
0.1863838136,
0.0667653903,
0.0055686831,
0.0047016852,
-0.069323577,
0.3521536887,
-0.1633293182,
-0.2751578987,
-0.7754431367,
0.1206446663,
0.0365542918,
0.0431684889,
-0.2784684896,
0.0024245267,
0.416051209,
0.5284096599,
-0.0816126987,
0.4965886176,
-0.0001226855,
-0.1948300004,
0.2004579604,
-0.0361196734,
-0.1746514291,
-0.2741998136,
-0.2164896578,
-0.3265874386,
0.1097058728,
-0.1128877327,
0.194453612,
-0.2241574824,
0.091987513,
-0.4995852709,
0.3337174058,
-0.0410729051,
0.0680703446,
0.2360711247,
0.2542809844,
-0.0269482452,
0.3872796893,
-0.2296985239,
-0.2215996832,
0.568156004,
0.4567056,
-0.2117682099,
-0.1409670413,
-0.0369957387,
-0.0129712345,
-0.0679327324,
0.5948628187,
-0.197696954,
0.3488732576,
-0.2678507864,
-0.1012827381,
0.3191520274,
0.6145641804,
-0.0441020355,
-0.5926793814,
-0.2471346855,
0.3272884488,
0.1455293,
0.5233203769,
0.0666400045,
-0.0742337331,
0.3606705666,
0.0522743948,
-0.1590828001,
0.0457447097,
0.0224096347,
-0.1197816208,
0.2216326147,
0.1453603357,
0.0084853815,
0.1708889902,
-0.0806063339,
0.3088316321,
-0.1967709064,
0.0066909422,
0.0987598225,
-0.4549658597,
0.1360243261,
0.0213122889,
0.1014315858,
-0.1403491199,
-0.2220833004,
-0.4776563048,
0.1874590516,
0.0509253107,
0.3599928617,
0.1120273992,
0.1694357395,
0.0524430051,
0.0851674452,
0.2234935164,
-0.0380135477,
-0.2711602449,
0.0675252452,
-0.0540339649,
-0.109427385,
0.1089458838,
-0.0756203607,
0.0264971536,
-0.3769018948,
0.1710461825,
0.1699298471,
0.0443217345,
0.3801299334,
0.1577483267,
0.0316454731,
0.1108213812,
0.4331050217,
0.1974972636,
0.0049862959,
-0.1965516359,
0.3437238336,
-0.0323615968,
-0.0984643474,
0.069049485,
0.0930995718,
0.03244045,
0.2763170898,
0.1785526872,
0.1565663218,
0.3272791803,
0.1014767811,
0.2352110595,
-0.1581269652,
-0.1276831031,
0.3931938112,
-0.1377976984,
0.0754465684,
0.0243200585,
-0.0310192574,
-0.0276711546,
0.036791224,
-0.1925078928,
0.0691402406,
-0.0996999145,
0.0263192728,
-0.380828172,
0.1100184396,
0.1620586216,
-0.2464064807,
-0.1027879417,
-0.4254746437,
0.0668770373,
-0.4721822143,
-0.0609575845,
-0.0015062761,
-0.0517789423,
0.3292971253,
-0.2778438628,
-0.0546497405,
0.259072125,
-0.0380633548,
-0.1223071516,
0.2285179347,
-0.0811449662,
0.1059944108,
-0.207804352,
0.0991859511,
-0.0261376593,
-0.4818362594,
-0.7829108834,
0.2422855049,
-0.2895567119,
0.255776912,
0.1629286408,
0.3792765737,
0.1021163985,
-0.2274314463,
0.0992247537,
0.3591865599,
0.1214846075,
-0.2170900255,
-0.0638451353,
-0.2845762074,
-0.2017313689,
0.0688606054,
0.0111604948,
0.222348839,
0.0180593934,
0.6689192057,
0.2116289884,
0.0055398443,
0.005058154,
0.5441518426,
0.6210243106,
0.0836991966,
0.0081205163,
-0.132274732,
-0.6575936079,
0.5051036477,
-0.4428119063,
-0.0797980949,
-0.2008100003,
-0.0727459416,
0.1174281389,
-0.0122001618,
-0.069109939,
0.147226423,
0.0574349687,
-0.0790044442,
0.0755309761,
0.175071612,
0.0899826363,
0.3439257741,
0.0125082918,
-0.020002557,
-0.0590691604,
-0.0895980224,
0.163096711,
-0.1867702603,
0.0538616516,
-0.0638035014,
0.1063677222,
-0.2141561657,
-0.1605976075,
0.236982882,
0.3473389745,
0.2953687608,
-0.2741960287,
0.380143255,
0.0418264531,
0.4804564714,
-0.1965431869,
-0.0898997709,
0.1089192107,
-0.2300199568,
0.0361249,
0.0947789475,
-0.2191522568,
0.0928042978,
-0.2077876925,
0.056161005,
0.0911781192,
0.0453531109,
-0.1688563824,
-0.0269351825,
0.2806839049,
-0.0091583449,
0.2706622779,
-0.1058411598,
0.6271886826,
0.0670902207,
0.3668435216,
0.1496050954,
0.0516432337,
0.0494000539,
0.0035033752,
-0.1143359989,
0.0166758858,
0.3775185943,
0.4988293648,
0.1017266884,
0.2889339924,
-0.2164710909,
0.2117232978,
-0.290410012,
0.0543170534,
-0.1254849583,
-0.2110742033,
0.3450729251,
0.1341910362,
-0.1068300158,
0.1315163523,
-0.2868650258,
0.1256858855,
0.0205749199,
0.126894936,
0.1132571325,
-0.3515272439,
0.5667670965,
0.2086835653,
0.1933233887,
-0.2534322441,
-0.4644887149,
0.1059639379,
0.7339767218,
0.1522963345,
0.0692450628,
-0.4219465256,
-0.0498631373,
0.0390345752,
-0.3337161839,
-0.0399521217,
-0.3362486959,
-0.0026224405,
-0.1162400842,
0.5531211495,
0.0384058617,
0.1448246241,
0.1003432125,
-0.3246202767,
-0.3931280673,
-0.1838716716,
0.1499125361,
-0.0926099494,
0.4356098175,
0.0584887527,
0.1634123474,
-0.1018638238,
0.0385642983,
-0.0192833357,
-0.3886204958,
-0.0294425413,
-0.0975789949,
-0.030310465,
-0.1097449586,
-0.2369120568,
0.1718400121,
-0.1660527736,
-0.3670013547,
0.3042767048,
-0.3411254883,
-0.2106984556,
0.2431465536,
0.0185859501,
0.2877355814,
-0.0033967374,
-0.0847149566,
0.0122465333,
-0.459141165,
0.2137269676,
0.1240147352,
-0.4351313412,
-0.1326474994,
0.1863020808,
-0.406722039,
0.2642199993,
-0.4266267717,
-0.2256042063,
-0.3255859017,
0.2897675931,
-0.0849461854,
-0.0755461901,
0.4451620579,
-0.2783597112,
0.0496294238,
-0.4187122881,
0.3278365433,
0.1877294332,
0.0333669111,
-0.0206507295,
0.0646265373,
-0.2048720866,
0.1377077401,
0.5131197572,
-0.0706710815,
0.0123603987,
0.1415621489,
0.3056558967,
0.4387529492,
-0.3285652995,
-0.1682540029,
-0.1418815851,
-0.0881155729,
-0.1464124769,
-0.0282607321,
-0.1522278935,
-0.0631075278,
-0.1003582701,
-0.0561152212,
-0.060450986,
-0.300537765,
0.0356877111,
0.1938849092,
0.170302555,
0.2378976792,
-0.010171596,
-0.0816974714,
-0.1531499922,
0.1253317446,
0.2319325954,
0.4605024755,
0.0418452956,
-0.0895566344,
0.2507179081,
-0.1388715208,
0.1664325148,
0.0581350252,
0.3817954063,
-0.0692601427,
-0.0027474335,
-0.0256755892,
-0.3396191001,
0.3149641454,
0.0228524618,
0.1409365535,
0.2082722038,
0.1402717382,
-0.2288290113,
-0.1793695092,
-0.1924062222,
0.2797607481,
0.4190057218,
0.195825845,
-0.1657379717,
-0.1652558595,
-0.6652334332,
0.376387924,
-0.0641949698,
-0.5701954961,
-0.1203794926,
0.2926162183,
-0.2946737111,
-0.0075141955,
-0.0453767143,
0.0121912034,
0.089153029,
0.1238368228,
-0.2526248693,
-0.1297717839,
-0.1409839094,
-0.1335090995,
0.0248143747,
-0.1612217873,
0.247148037,
0.0566675514,
-0.2681398094,
0.1358755976,
0.1964804381,
0.1946493089,
0.1310192794,
0.3067689538,
-0.2398163676,
-0.2409114689,
0.4729896784,
-0.0340855904,
0.1218699813,
0.0318529084,
-0.0542270727,
0.0342297852,
0.0109437061,
0.1316777021,
-0.0267077219,
0.4426619112,
0.0681159347,
0.0203918684,
0.1507994235,
-0.1900192499,
0.4326275587,
0.3856017292,
-0.0337895341,
0.0248092078,
-0.0407205336,
0.8245957494,
0.0921499059,
0.1442941427,
-0.036253646,
-0.0155593501,
0.2752339244,
-0.4026062191,
0.0966881961,
-0.1102207154,
-0.4013604522,
-0.0234981049,
-0.294213593,
0.3266855776,
-0.183565408,
0.0453545302,
0.1467427462,
-0.1992113143,
-0.1096250489,
-0.0855047256,
0.3566527963,
-0.4257874787,
-0.3449667394,
-0.1093272865,
0.1533338577,
0.2002199888,
0.1391862035,
-0.0824589282,
-0.1181073785,
-0.2436950505,
-0.0548406653,
-0.2625561059,
0.0846149623,
-0.0476021431,
0.4155933857,
-0.3947257698,
0.1000959426,
-0.0801596493,
0.0445270427,
0.0227881875,
0.3616429567,
-0.3698625863,
0.1039461717,
-0.0302532073,
-0.14153561,
0.1491734535,
-0.164069891,
0.2833952904,
-0.0795298517,
-0.1332874298,
-0.2885746062,
-0.1448112726,
-0.2349164337,
0.22403045,
-0.0890771449,
0.1189408079,
0.2076826841,
-0.8349127173,
0.0561656021,
-0.1746173352,
-0.0080149509,
0.0594590455,
0.1896304339,
-0.1696868986,
0.1729540974,
-0.3796272576,
-0.1412031949,
-0.0095263552,
0.632799387,
-0.1575656682,
-0.3251601756,
0.4551858604,
0.1251763254,
-0.0939948857,
-0.1562015265,
0.3597621918,
-0.1781919748,
-0.2810074389,
-0.1570887417,
-0.1280914545,
0.0217504781,
-0.1071637943,
-0.0376134962,
0.2150368243,
-0.1415712833,
0.0009855456,
-0.4553613365,
-0.2899052501,
-0.0132946773,
-0.3651158214,
0.0708683357,
-0.2607094944,
-0.3543857932,
-0.2182279825,
0.2064198405,
-0.2022309303,
0.1624434888,
-0.2028410584,
-0.1324502379,
0.3135017753,
-0.1432558447,
0.2176746428,
-0.31778723,
-0.0388180465,
0.4003424048,
-0.1684279442,
-0.0534729026,
-0.3270485103,
0.1815368533,
0.1397500932,
0.3898145258,
0.1737301946,
-0.3615196943,
-0.08784049,
0.0177420843,
0.0914113075,
0.2003788203,
0.1327968985,
-0.1036612839,
-0.0074624722,
0.8132430911,
-0.1819959581,
0.1114890948,
0.0792984962,
-0.142063871,
0.0595960692,
0.0092009222,
0.0988997072,
0.2614958882,
-0.5912236571,
0.0871779844,
0.0094878348,
0.1891730577,
0.3638569713,
-0.122279793,
0.0873580948,
0.3062609136,
0.2429109365,
0.3095578849,
0.1071130559,
-0.1949278414,
0.3150211573,
0.0827361047,
-0.1386360228,
-0.1861429065,
0.3364925385,
0.000091843,
-0.0383740366,
-0.1212083325,
0.2178881466,
-0.2060876042,
-0.1286368072,
0.3628094196,
0.2267932147,
0.0419035405,
-0.1312204301,
-0.0241872463,
0.143537581,
0.1016445681,
0.1517171115,
0.0697904676,
0.0558384508,
0.3068056405,
-0.3838957846,
-0.0301961638,
-0.1403518021,
0.1081604883,
0.0049637672,
-0.129721716,
0.1225392595,
0.1950866729,
0.4629551768,
0.1371626258,
-0.2884199321,
-0.0618605167,
-0.325245738,
-0.0417996086,
-0.0186614115,
0.1944169551,
-0.1048466042,
-0.1307232231,
0.5430274606,
-0.0533542559,
-0.0094789229,
-0.2325729132,
0.125062421,
0.1852501929,
-0.037981689,
0.3821389079,
0.2015944421,
-0.1882235706,
-0.3295244277,
0.0993861631,
0.2410272062,
-0.2834418416,
-0.139507696,
0.1950463057,
0.1730167419,
0.1247147843,
0.0686643347,
0.2102266997,
0.3694633543,
-0.3128955364,
0.0123258028,
-0.1889052093,
-0.0972295329,
-0.0744771808,
0.3880659044,
-0.0245933291,
-0.0494765416,
0.1560752094,
0.0182435028,
-0.203735128,
0.1637204736,
0.1346607059,
0.2287753671,
-0.1798717678,
0.3555247784,
0.3213661909,
0.2588975132,
0.1141772568,
0.3011617959,
-0.2230374664,
-0.1569639444,
0.0158117283,
0.1607813686,
0.0891636312,
-0.0217629746,
0.0613141246,
-0.2351770252,
0.2948063314,
0.2314912677,
-0.0113278031,
-0.2304639518,
0.3384530246,
-0.6397735476,
0.1641093045,
-0.219255358,
-0.4225707054,
-0.0913714617,
0.2267867476,
0.2722911537,
0.2294967771,
-0.0486784577,
0.0103649972,
-0.0766912624,
0.0255012605,
-0.2985698879,
0.2668829262,
0.2643011808,
-0.160185501,
-0.1551841199,
-0.4845209122,
-0.0849695727,
-0.1766770482,
0.0021152273,
0.0124990903,
-0.2989182174,
0.1190501601,
0.1107705534,
0.3183737397,
0.2013280839,
0.3909294605,
-0.0760907009,
-0.4142148793,
-0.5229350328,
-0.0357376747,
-0.1828195006,
-0.3264655471,
0.0246373564,
0.4542932808,
-0.6023715138,
-0.3832443357,
-0.3101326227,
0.4385448694,
-0.2643038034,
-0.2452707887,
-0.3281893432,
0.1080600023,
-0.2162433863,
0.3898150623,
0.1635173708,
0.3700904548,
0.1109336391,
0.2532016337,
-0.4738082886,
0.0268702097,
0.3253876269,
-0.4806061685,
-0.2813549936,
0.1587109715,
0.1845038235,
0.0396691784,
-0.2161521465,
-0.158163026,
0.3095881045,
0.0067396821,
-0.0276306067,
-0.0821888745,
0.0420233086,
0.055139415,
0.0974707305,
-0.1874361634,
0.0811235532,
0.0602795109,
-0.1005463973,
-0.2201517671,
-0.0833189338
] |
https://github.com/huggingface/datasets/issues/329 | [Bug] FileLock dependency incompatible with filesystem | Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67.
I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue. | I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. | 31 | [Bug] FileLock dependency incompatible with filesystem
I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67.
I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue. | [
-0.0220691375,
-0.070331417,
-0.0241179429,
0.0477827005,
0.0648071319,
0.0538178608,
0.2719027102,
-0.0904822722,
0.7102738619,
-0.0634485632,
-0.0230356473,
-0.0301014949,
0.1403871775,
-0.4040715098,
-0.283572942,
0.2419639528,
0.2077275664,
0.0305829234,
-0.2452180088,
-0.0770897716,
-0.1613954902,
0.4342417121,
-0.0815225542,
-0.234752968,
-0.559855938,
0.1654608846,
-0.0396311209,
0.1403407753,
-0.3457121551,
0.1898193657,
0.3417883813,
0.6025444269,
-0.0452573076,
0.5372433662,
-0.0001287701,
-0.2627757192,
0.2452049851,
-0.0852423161,
-0.2170967162,
-0.10173852,
-0.0870478302,
-0.1840788126,
0.2249265909,
-0.1094866693,
0.1608501375,
0.1228190511,
-0.0150860222,
-0.5285053253,
0.2650884986,
-0.1673844457,
-0.0002369856,
0.1131125093,
0.1672379524,
-0.1510145664,
0.3145913184,
-0.2097326517,
-0.1848719716,
0.4976548553,
0.4717493951,
-0.0901191682,
-0.2479741871,
0.0887352824,
0.0257889908,
0.0382367335,
0.6046133637,
-0.2951396704,
0.466986388,
-0.2977609336,
-0.3035380244,
0.2270717919,
0.5503917933,
-0.0176634453,
-0.5384922028,
-0.1820754856,
0.3580969274,
-0.0000867219,
0.4926609695,
0.0541599728,
-0.1355171949,
0.350300163,
0.015288597,
-0.1867275685,
0.0734808445,
0.0515651926,
-0.166838482,
0.0551698469,
0.1540463418,
0.0693726018,
0.236033231,
-0.1417634785,
0.0047061793,
-0.2013448179,
-0.1389342844,
0.065519318,
-0.5184339285,
0.0440694466,
-0.0237709004,
0.0005390053,
0.0014869549,
-0.1775719374,
-0.4711022377,
0.1959103793,
-0.107287541,
0.4131366313,
0.107274875,
0.1250374913,
0.1560992599,
-0.2706224322,
0.3129887283,
-0.0366701297,
-0.2005045861,
0.123497434,
-0.0997186005,
-0.2006220818,
-0.0706192255,
-0.0085444264,
0.0244504884,
-0.4772164822,
0.1940932274,
0.2955317795,
0.1394580007,
0.4006763399,
0.1581330597,
0.1941502839,
0.1847221106,
0.4262396395,
0.2075468004,
0.0793269947,
-0.1944482774,
0.1226029396,
0.0305181965,
-0.1448901445,
0.1050763205,
0.1360038966,
0.0371015184,
0.2895999253,
0.1767877489,
0.1284879446,
0.2166539431,
0.117414616,
-0.0327691175,
-0.0519721135,
-0.1933223605,
0.4518732727,
-0.1418785453,
0.1657253504,
0.0007301698,
0.1726855338,
-0.0379010141,
0.077388607,
-0.3118937314,
-0.0237898901,
-0.1736695766,
-0.0390763469,
-0.435988605,
0.0211998783,
-0.1416533887,
-0.2198771685,
-0.2442764193,
-0.3579331636,
0.0514370203,
-0.5044811964,
-0.0349156633,
0.0546138622,
-0.0038451666,
0.3324384391,
-0.4034095407,
-0.0246993061,
0.2663725019,
-0.1798489392,
0.0174749047,
0.303140372,
-0.0489034504,
-0.0927237272,
-0.1638786495,
-0.009584141,
0.1985516101,
-0.4244551659,
-0.6493108273,
0.1907722205,
-0.3349514008,
0.1472036391,
0.1931840777,
0.2882729173,
-0.0813932717,
-0.1296013445,
0.0087063117,
0.3986358643,
0.1607895494,
-0.1987580955,
-0.1371514052,
-0.2944770455,
-0.1860229075,
0.1477249116,
-0.0508104526,
0.1526194364,
0.0321161635,
0.5327266455,
0.2337104529,
-0.0062223603,
-0.0406283475,
0.6131657958,
0.6778343916,
0.1461273581,
0.1264191866,
-0.1563684642,
-0.547994256,
0.385872066,
-0.3822483718,
0.020035537,
-0.1693597585,
-0.0390053093,
0.1234150156,
-0.0224511307,
-0.0536845773,
0.1614671499,
-0.0189639535,
-0.1154928654,
0.0692486539,
0.0914661363,
0.1012218893,
0.4054682553,
-0.1135653183,
0.0921656862,
-0.1364718229,
-0.0361968875,
0.1138328165,
-0.2384924889,
0.0204264466,
-0.0355386026,
0.0971084088,
-0.2887966633,
-0.2271141857,
0.4242852628,
0.2979375124,
0.1792168319,
-0.0711190253,
0.355124563,
0.0821091682,
0.5420103073,
-0.2560352981,
-0.1445958465,
0.06487111,
-0.1487626582,
-0.1179763973,
0.0460424051,
-0.1618243903,
0.1645623595,
-0.2425417751,
-0.0333048142,
0.1862594783,
0.1448426098,
-0.094209902,
0.1040543988,
0.3544763029,
0.0335771367,
-0.1036465168,
-0.1695371866,
0.434625268,
0.0932003185,
0.2976518869,
0.0829859078,
0.0781312063,
0.1071163788,
-0.0289709624,
-0.0915029496,
0.1539363861,
0.2255529016,
0.4854836464,
0.097224094,
0.1201266795,
-0.3374755383,
0.120746702,
-0.2458669096,
0.0951206982,
-0.0483835228,
-0.2100302279,
0.2208931893,
0.2606560886,
-0.1177728251,
0.0648325309,
-0.4731079638,
0.108985424,
0.0579157211,
0.0545384251,
-0.0150621701,
-0.2951619625,
0.4948144257,
0.1755046695,
0.3769625425,
-0.2835226357,
-0.4526466131,
0.1798098832,
0.8311287761,
0.1327475309,
0.0647039339,
-0.401101023,
0.1000805795,
0.1955148429,
-0.3513920009,
-0.2648266554,
-0.2396947891,
0.0074709062,
-0.1677086055,
0.4072368741,
0.1740887612,
0.1044061631,
0.1826918274,
-0.1740871072,
-0.481585145,
-0.1713529229,
0.2042209804,
-0.0078629153,
0.4539898038,
0.0329959989,
0.1318006068,
-0.1141724214,
-0.0199320838,
0.1900191158,
-0.3241442144,
-0.0359501578,
-0.0779606402,
-0.0392703041,
-0.1526338756,
-0.2805637717,
0.215297848,
-0.1210354939,
-0.3584308624,
0.2134421021,
-0.2896823287,
-0.2595070899,
0.0396319665,
0.0766236037,
0.2536055148,
-0.1284697801,
-0.1014170051,
0.0218411256,
-0.4564401805,
0.2862500846,
0.0493833125,
-0.5032612681,
-0.0686941296,
0.2903506756,
-0.4942887127,
0.1319264174,
-0.4954322577,
-0.3179028332,
-0.246088922,
0.1960787326,
0.0353220329,
-0.0818380788,
0.4039615393,
-0.2405236512,
0.0513253398,
-0.3743171096,
0.2550767362,
0.1589969099,
0.1650805473,
0.0968526974,
-0.0252176877,
-0.1344373226,
-0.0114859296,
0.6712637544,
-0.1627850831,
-0.1171942279,
0.1715483814,
0.2996032834,
0.2783552706,
-0.3603678942,
-0.1101804972,
-0.0983461887,
-0.0916987732,
0.0093126865,
0.0218714271,
-0.0106868455,
-0.1097529978,
-0.1348099858,
-0.1368597597,
0.0612047836,
-0.3520057201,
0.0050266092,
0.2663822174,
-0.1018700823,
0.2015019655,
-0.1082896814,
-0.058930248,
-0.1559250057,
0.2489108592,
0.401643008,
0.4164839685,
0.085480243,
-0.0278369356,
0.0806598961,
-0.1156343967,
0.2246973962,
-0.0763711631,
0.3127212226,
-0.0328805633,
0.0389624462,
0.010672994,
-0.3546395302,
0.4242367148,
-0.0576989986,
0.1282721758,
0.1406542361,
0.0565012097,
-0.2863335311,
-0.1601762474,
-0.2828541398,
-0.0436639078,
0.387149781,
0.2369049937,
-0.1635140628,
-0.2345159501,
-0.4966439307,
0.3092567623,
-0.1080524698,
-0.5445771813,
-0.0965398178,
0.3303976953,
-0.3534878492,
0.047793299,
-0.1198703647,
0.156253919,
-0.013197354,
0.1064741462,
-0.2379438579,
-0.0273868386,
-0.0754134655,
-0.0080911759,
0.0163862575,
-0.0439738967,
0.2349881083,
0.0385371037,
-0.0726483315,
0.1333613843,
0.2118766159,
0.4685257971,
0.2167075276,
0.4319481254,
-0.2559487522,
-0.128878057,
0.4705717564,
-0.0090790093,
-0.042952206,
-0.1804577857,
0.0817566216,
0.0764365569,
0.161820218,
0.1221978664,
0.004696683,
0.3768508136,
0.1502004415,
0.1201420873,
0.0793379918,
-0.2263433933,
0.5570194125,
0.4297811389,
0.1192739159,
0.1248108372,
-0.0013749221,
1.0098522902,
0.1102246195,
0.0891090408,
0.1218447164,
0.0338148437,
0.2011272162,
-0.6567310691,
0.0791684464,
0.0160582252,
-0.2834215462,
-0.0612606518,
-0.2211588621,
0.3837389052,
-0.2212117761,
0.10364566,
0.2203224748,
0.1064145789,
-0.1884319335,
-0.1864146739,
0.320371449,
-0.4331745803,
-0.460529536,
0.0465040393,
0.0883575007,
0.2271876484,
0.2807311118,
-0.0668821782,
-0.1008884609,
-0.1867899597,
-0.1367333829,
-0.240166828,
0.0603207946,
-0.0571214966,
0.2376734167,
-0.6428996325,
0.0503375418,
-0.1325327754,
0.1312490106,
-0.0716647804,
0.2758537531,
-0.3406359255,
0.1956919581,
0.0455399603,
-0.0971593112,
0.109852083,
-0.0986962616,
0.2272893935,
-0.1277884245,
-0.0428794064,
-0.267903477,
-0.1020253599,
-0.1175600067,
0.1526530981,
-0.1130960137,
0.0399341546,
0.1098316982,
-0.7515417933,
0.1185877323,
-0.1799272448,
0.0076036882,
0.0078584068,
0.2270798087,
-0.2111290991,
0.0875642076,
-0.4490458667,
-0.1456822455,
-0.0969457105,
0.690775454,
-0.1882466823,
-0.4291857183,
0.3878201544,
0.1820187122,
-0.0248329304,
-0.1662539542,
0.2785249949,
0.1498803943,
-0.5977128148,
-0.1147992238,
-0.0817319602,
-0.1916285604,
0.073722139,
0.1710989922,
0.1712403148,
-0.2321946025,
-0.0244574025,
-0.4262323081,
-0.1898559034,
0.0371149406,
-0.376542896,
0.1015167832,
-0.1818582714,
-0.4537022114,
-0.1810142249,
0.0585199445,
-0.1408688277,
0.2131167203,
-0.1011468396,
-0.0680403411,
0.2884109318,
-0.0186858177,
0.2443313152,
-0.1946049035,
-0.0744403973,
0.3325657248,
-0.129065156,
0.0094960304,
-0.300260514,
0.1881702393,
0.1192868426,
0.4957099259,
0.1154989377,
-0.3775985241,
-0.0708093792,
-0.0054676859,
0.0890509859,
0.1156487241,
0.0807780176,
-0.10398902,
0.3058719635,
0.6972976327,
-0.0860885158,
0.1983678937,
0.2485138178,
-0.0549639612,
-0.1351301521,
-0.101970166,
-0.0427585989,
0.1243596151,
-0.5576984882,
0.0499535091,
0.0696816891,
0.3294982016,
0.3463842273,
-0.0850844532,
0.0267595164,
0.2640784681,
0.4375235438,
0.3466062546,
0.1543825716,
-0.145199731,
0.3441729844,
0.0757539645,
-0.1017274335,
-0.2094868422,
0.4380948842,
0.0302220192,
-0.010404407,
-0.0076367892,
0.1041409373,
-0.1241198182,
0.1275944114,
0.3202594221,
0.4867455363,
-0.0664862841,
-0.1694221795,
0.1280143112,
0.175062716,
0.0314672217,
0.2002260536,
0.1004300788,
0.150533855,
0.4474327862,
-0.3802279234,
0.0218055099,
0.2399679124,
0.0390007645,
0.0401873626,
-0.0057541379,
-0.0691167414,
0.1953558326,
0.5384968519,
0.1521590203,
-0.252393961,
0.0875380561,
-0.310875535,
-0.2210140079,
-0.1560130417,
0.2961385846,
-0.0756294578,
-0.0382716656,
0.3463688493,
-0.1114040464,
0.0399676114,
-0.1754452139,
0.052584216,
0.1362797618,
0.1210569069,
0.3864114583,
0.3674780726,
-0.3956401944,
-0.3698973656,
0.0938780233,
0.2836429477,
-0.2083597183,
-0.0337961689,
0.2968219817,
0.0612660982,
0.3407031894,
0.057925798,
0.2708123326,
0.2780503631,
-0.2221734226,
0.0769171268,
-0.1248654425,
-0.0818737298,
-0.0950933099,
0.3482887447,
0.0078955255,
-0.0478941165,
0.2252547145,
0.0159999672,
-0.1737379283,
0.164774552,
0.0418883935,
0.2347174287,
-0.1700986177,
0.4057605863,
0.2302636802,
0.3443793952,
0.1322939694,
0.1089441255,
-0.2730687559,
-0.0650889352,
-0.0936831236,
0.0874608979,
0.0296584312,
-0.0366877057,
0.0316548496,
-0.2727533281,
0.2277415395,
0.2071666569,
-0.0866369307,
-0.2552132607,
0.3333534002,
-0.6523105502,
0.1505025029,
-0.1023139358,
-0.4395859838,
-0.2222522348,
0.3195899427,
0.2867954969,
0.2792302966,
-0.0373552404,
-0.1852326095,
-0.139614448,
0.2462439686,
-0.32462731,
0.3226270378,
0.1380729228,
-0.0423328876,
-0.1567662656,
-0.4385937154,
-0.0080302991,
-0.1300818473,
-0.0691766813,
0.1633478552,
-0.3762868941,
0.1774119437,
0.0282087829,
0.2553615868,
0.1002022773,
0.3817993402,
0.0496054441,
-0.3303432465,
-0.5639332533,
-0.2779226005,
-0.0836467668,
-0.3346695006,
-0.0548276417,
0.447478205,
-0.5062485337,
-0.2603894174,
-0.3515315354,
0.2791647017,
-0.284442246,
-0.1108863279,
-0.3698860407,
0.1871896833,
-0.2657651603,
0.4052441418,
0.1279307753,
0.3573996127,
0.1689557582,
0.3010960519,
-0.4526659548,
-0.0991738141,
0.4318039715,
-0.4769827425,
-0.2671387792,
0.1060701758,
0.2468597591,
0.2311086357,
-0.1564674526,
-0.2125075758,
0.2675843835,
-0.0525469296,
0.1363870054,
-0.0372591503,
0.0257630236,
0.173292473,
-0.0254706461,
-0.2425494939,
-0.0126669463,
0.0613081604,
-0.0972382724,
-0.1867421567,
-0.1274039298
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`.
This should help you get what you call "Dataset1".
Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
| We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 72 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`.
This should help you get what you call "Dataset1".
Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
| [
-0.2403900176,
-0.1519307047,
-0.0046680351,
0.138801828,
-0.1991833001,
0.1661746204,
0.0855338424,
0.3236586452,
0.1992565691,
-0.1408096701,
0.0522021018,
0.6768648624,
-0.4008251429,
0.1611254662,
0.2155928612,
-0.2229902893,
0.1336966753,
0.0569894612,
0.1327416301,
0.1123381332,
0.0333926342,
-0.1810870022,
0.13364999,
0.0569472872,
-0.0264413022,
-0.2280299217,
-0.1203993484,
0.1118860617,
0.0269778315,
0.0009551178,
0.4616038799,
0.1885265559,
-0.0171255916,
0.320882827,
-0.0001178061,
0.1305477619,
0.0574896857,
0.0988212824,
-0.2189415544,
-0.2057290822,
-0.1271967143,
-0.1774254292,
0.1727925986,
-0.1873127073,
0.0866854265,
-0.377035737,
0.1852133572,
-0.2320505083,
0.7697010636,
0.1443222016,
0.1043770686,
0.0922687724,
-0.124608323,
0.2189230472,
-0.2451390326,
0.3413789868,
0.0497780479,
0.1736003458,
-0.0169573613,
-0.2067798674,
-0.0755042806,
0.0774041563,
-0.1792523414,
0.0272163358,
0.2267156541,
-0.057582669,
-0.0144061632,
-0.1606175452,
0.0055113849,
0.3372308016,
-0.005829304,
-0.2154867947,
-0.2079761326,
-0.6004968882,
0.1435126215,
-0.1713548601,
-0.1086236313,
0.2095341533,
-0.1596319377,
0.2616222203,
0.0679494888,
-0.5672594309,
-0.0091923606,
0.0720448345,
0.0448701419,
0.2262706906,
0.1848959029,
0.2127393633,
0.2443891019,
0.0795685053,
0.3197900355,
-0.255005151,
-0.0211976841,
0.0234171003,
-0.155324623,
-0.2513638139,
-0.1570298076,
-0.572524488,
0.0786039159,
0.2976175547,
0.3420595825,
0.0134498095,
-0.3720587194,
0.1997281164,
0.151620701,
-0.2357714325,
-0.1162771806,
0.3510949612,
-0.0139147425,
-0.2985033989,
0.0886311755,
0.1362758428,
-0.4068130255,
-0.0246961862,
-0.2755963206,
-0.001734765,
0.303938657,
0.2416284233,
-0.1230667904,
-0.4214794934,
-0.2392182052,
-0.1486855298,
0.1763509661,
-0.0079225609,
0.0141328182,
0.5878421068,
-0.0423437655,
0.4042406082,
-0.1854724437,
-0.2160090059,
0.0273767337,
-0.0208283998,
-0.1518220901,
0.0427037552,
0.1486828327,
0.4183574319,
0.1775202751,
-0.0463539809,
-0.253701508,
-0.0799323693,
0.4683656394,
0.0026972902,
-0.0315183774,
-0.0669808984,
-0.0444805659,
0.0338095985,
0.0545953624,
-0.0170921795,
-0.2666882575,
0.1472136229,
-0.1560300738,
-0.1347334087,
-0.0913872272,
0.0619667731,
-0.0013744832,
-0.2966221869,
-0.6264994144,
0.6202910542,
0.2018989921,
-0.0099178785,
0.0208920762,
-0.0113557912,
-0.3717826903,
-0.2209552675,
0.0867061391,
0.1400281489,
-0.3647663891,
-0.3302682936,
-0.2051741928,
-0.0137739778,
-0.1466052234,
0.4300250411,
-0.2711232901,
0.1972022057,
0.0315718092,
-0.0230288971,
0.609084487,
-0.2180974633,
-0.036523167,
0.1634850502,
-0.181009993,
-0.1027964801,
0.1132745296,
0.1215592399,
0.0628551543,
-0.1734141707,
-0.0528562181,
0.7855042815,
-0.3208653331,
0.0275788009,
0.1742579937,
-0.2888342142,
0.2234944105,
0.2195891738,
-0.0326545686,
0.0045389696,
-0.2716992497,
-0.0584680773,
0.2219848037,
-0.1346553117,
0.3524713218,
-0.091104798,
-0.1485605389,
-0.0693352744,
-0.1277199686,
-0.2041723579,
-0.539206028,
-0.0095581161,
0.0517540537,
-0.0288863331,
0.1372354031,
-0.1356145591,
0.0528920516,
-0.0021243435,
0.0300063156,
0.0323187672,
-0.0159961041,
0.0022271483,
0.0753964558,
-0.30976969,
-0.3593778312,
0.0514100119,
0.0316314884,
0.1768801212,
-0.3762128055,
0.5385990739,
0.2853186429,
0.0463967435,
-0.0958448872,
0.276273638,
-0.1842875779,
0.0196102094,
0.172297582,
0.0894771367,
-0.2095708996,
0.3988025188,
0.3215487301,
0.2255490273,
0.2627267241,
-0.4603500068,
0.3501000702,
0.0316814221,
-0.0697625279,
-0.1383182555,
-0.2709315419,
0.3280028403,
0.1001759395,
0.4635065794,
-0.0369855314,
0.2488965541,
0.1319745481,
-0.1381082535,
-0.2372633964,
0.1167027876,
0.011380312,
-0.0981430113,
0.288834691,
-0.0873023048,
-0.4452436864,
0.3614442348,
0.3100601137,
-0.0912934914,
0.0130846128,
0.061850436,
-0.2570585608,
-0.0112764919,
-0.107684724,
0.5400255322,
0.0879029557,
0.2115105242,
0.2821084857,
0.0279926602,
-0.2887629569,
0.0348278247,
0.2299976051,
0.1382594407,
0.5379908085,
-0.0090585258,
0.1656316072,
-0.2080516517,
0.0035571414,
-0.2566024959,
0.3904086053,
0.0426652282,
-0.0485815778,
0.4440462887,
-0.3302445412,
-0.4055001736,
-0.6255350113,
-0.1446957588,
-0.0908598304,
-0.2803326547,
-0.0969089791,
0.2085824907,
-0.0711976662,
0.2793181241,
-0.055382736,
0.2379256487,
-0.2599777281,
-0.0371601619,
0.0208120104,
-0.5158360004,
-0.0122365411,
0.0440672487,
0.5248749256,
0.2014619559,
0.2286100835,
0.4384925067,
-0.209571898,
-0.110724777,
-0.1922600269,
0.1964453608,
-0.1147722304,
-0.0068920548,
0.1081255749,
-0.1384059489,
0.170103699,
-0.260387361,
-0.1260142624,
-0.0806493163,
-0.1264218837,
-0.1522290409,
-0.1260613799,
0.2722680867,
-0.0650105104,
-0.1946342289,
-0.3711028397,
-0.2666156292,
0.3674734235,
0.0190249383,
0.2201633304,
0.3498852849,
0.1230058819,
0.0886918157,
0.0806675255,
-0.0853571072,
0.1626695395,
-0.0287242364,
-0.0575834252,
-0.279826045,
0.1778042167,
-0.2847962379,
-0.3303153217,
0.3567447364,
0.1205292344,
-0.2028898597,
0.3326490521,
-0.0591552295,
-0.0081522707,
-0.1078236848,
-0.2849697173,
0.0736615434,
0.109272413,
0.0739224628,
-0.0420350656,
0.1928338706,
0.1713174731,
0.0816801861,
0.1657757163,
0.2389998734,
0.2205334157,
0.153252542,
0.8823812604,
0.0961877033,
-0.2332429588,
-0.209487319,
0.1341324598,
-0.3067850769,
0.1412737072,
-0.0705722943,
-0.1416853815,
-0.0307904929,
0.0928698331,
0.0504511893,
0.0544683374,
-0.3637417257,
0.0279163811,
0.0164342672,
-0.0976038948,
-0.3104011416,
0.34447667,
-0.6596315503,
0.008933505,
-0.0463720299,
-0.3165361583,
-0.3431258202,
-0.0066953753,
-0.3269064426,
-0.0686532259,
0.1676105559,
-0.0292696394,
-0.5071271658,
0.2579827011,
-0.4315716326,
0.1202669814,
-0.0834001303,
0.0603629127,
0.2149146497,
-0.1606000662,
-0.0080816019,
-0.1677449346,
0.7057888508,
-0.0820002332,
0.0358329192,
-0.092918843,
0.2638984323,
-0.5462855697,
0.1581640542,
-0.1408658177,
0.4263218641,
0.1450160444,
0.1092651039,
-0.3436116874,
-0.3307374418,
0.1954764575,
-0.0901959836,
-0.2377160341,
0.0916704834,
0.1204435676,
-0.0763523355,
-0.2651778758,
-0.0840472877,
0.1225111261,
-0.1332663894,
-0.1493369937,
-0.085470058,
-0.2304699719,
-0.0773839206,
0.1313548237,
-0.0339748673,
-0.1385275275,
0.0584502369,
0.2399115413,
-0.02633995,
0.1379602551,
0.1820325106,
0.4787065089,
0.0689759403,
-0.4266798496,
-0.0599455573,
0.1805774868,
0.3776088357,
-0.0757097527,
0.3494693637,
0.46289289,
0.5009769201,
-0.1913427413,
-0.2140135169,
0.1475137025,
-0.1411331743,
0.1573566049,
-0.4000529647,
-0.5321150422,
0.4567713141,
0.2663407922,
0.0034416339,
0.3851115406,
-0.2737952769,
-0.3635837734,
0.3545490801,
0.1856123954,
0.7174010277,
-0.1879118234,
0.2493954003,
0.2364905775,
-0.4876545966,
0.8625789881,
-0.4363304675,
0.0064868084,
-0.1172528192,
0.0915807039,
-0.0858599916,
-0.1608452946,
-0.1302590072,
0.6075696349,
-0.0718342513,
0.175315693,
0.2298946828,
-0.3705948591,
-0.0043974956,
0.4035181701,
-0.0108016152,
-0.3210257888,
-0.0747729316,
-0.0025707535,
-0.3699761927,
-0.2056079954,
0.0852032304,
-0.2210649699,
-0.1099656671,
0.0532785803,
-0.1914247721,
0.1074025184,
0.0554042496,
0.0998196974,
0.1233323812,
-0.4270585179,
0.2436645925,
-0.0507096611,
0.1934258193,
-0.3095842004,
-0.1150324419,
0.061068505,
-0.1171868443,
0.0524721108,
-0.0921590403,
-0.2186588645,
0.3866886795,
0.1606969833,
-0.2823697031,
-0.1151412204,
0.0793830603,
-0.2370331585,
0.040581353,
-0.1036422998,
0.1019341424,
0.3212155402,
-0.1311905384,
0.4480589032,
-0.3300969601,
-0.1316239983,
0.0037202018,
0.0989348218,
-0.1084952503,
-0.1570864469,
-0.043849688,
-0.0517285503,
0.1102962047,
-0.0456445068,
0.1898004413,
0.0328047611,
0.4517894387,
0.438262403,
0.1849961579,
-0.1834535003,
-0.1205484644,
0.3161777556,
-0.5272355676,
0.0348596275,
-0.2859781086,
-0.1961444914,
0.1881085187,
-0.1107750684,
0.0254110284,
0.3236617744,
-0.1766675711,
-0.3987576067,
-0.2347111702,
0.5112711191,
-0.1878656149,
0.0873798802,
-0.0445175916,
0.2155916244,
-0.0062348838,
0.3952156305,
-0.1837540269,
0.2079980671,
0.1332277209,
0.3373393118,
0.0425124876,
-0.0526202917,
-0.0974916369,
0.0780472234,
-0.0534389243,
-0.0628125742,
0.041490268,
-0.1153305098,
-0.2196517289,
0.1184237599,
-0.0277114399,
-0.1209552214,
0.0800829008,
-0.2183683366,
-0.06777931,
-0.0934068337,
-0.1152940914,
-0.288554728,
0.0195914786,
0.2287468463,
0.0717815161,
0.0809648558,
-0.2614687383,
0.1132054478,
0.1173839793,
-0.0293145757,
-0.1184694692,
0.4501012862,
0.246317476,
-0.1423181295,
-0.5291053653,
-0.0361751914,
0.2934218943,
0.0178206898,
0.041250594,
-0.0635457188,
-0.0937132165,
-0.0815745667,
0.2306849808,
0.4306111336,
0.0399842449,
0.2269215137,
0.2728826404,
0.1234996691,
-0.076156944,
0.1316495687,
0.4431098104,
-0.2541215122,
0.1279859245,
0.3206244111,
-0.1318926215,
0.1309423745,
-0.2874295115,
0.0343134701,
-0.0642109811,
-0.2025078088,
0.4111102819,
0.2690482736,
-0.1702833772,
-0.1183944046,
0.1516784132,
-0.068579264,
0.3975034058,
0.1099758297,
0.2115634829,
0.4511910081,
0.2925950289,
-0.0665416196,
0.5318665504,
-0.1450625807,
-0.3541173339,
-0.1324115396,
0.1264009923,
0.2644668818,
0.2252118438,
0.6926087737,
0.2272463292,
-0.2828001678,
0.0556716286,
0.4929947257,
0.0644733757,
-0.3106922209,
-0.6167652607,
0.1454279572,
-0.1103951707,
-0.0357383303,
0.0141255045,
-0.2954677343,
0.2550462484,
0.1459864527,
0.1808394343,
-0.3622288108,
0.2633672655,
0.1927808076,
0.0450937711,
-0.0546775237,
0.1777577549,
0.1717294157,
-0.1702221185,
0.0209483039,
0.0810635313,
0.097705029,
-0.0676141679,
-0.4525377154,
0.0962838158,
0.1943970323,
-0.0693977699,
-0.1371862292,
0.1222012341,
0.2356626689,
0.008483436,
0.2597693503,
0.0195140168,
-0.1069608852,
-0.079224892,
0.3964887559,
-0.0399051532,
-0.3999808729,
0.446827203,
0.2478084713,
-0.2203107774,
0.206221655,
0.229576081,
-0.374042958,
-0.1238935441,
0.3689210117,
-0.2390843034,
-0.0505559854,
0.0956807435,
0.0219324995,
-0.0627145469,
0.4967685044,
0.140880689,
0.400429368,
0.0384272262,
0.0547650307,
-0.3039270341,
-0.1496277899,
-0.1999981105,
-0.0380620956,
-0.3141908646,
0.1837073117,
0.2592155039,
0.3747391999,
-0.1363190264,
0.0206893906,
0.2875971794,
0.3725082576,
-0.0866806284,
-0.2635838687,
0.0417834371,
0.3251542449,
0.2149629295,
-0.3820337951,
-0.1086415276,
0.4458054602,
-0.203588888,
0.0533746593,
-0.0341528319,
0.3256239891,
-0.1564892679,
0.0859089792,
0.0061816545,
0.3960811198,
-0.0536641814,
-0.3540635407,
-0.3446361125,
-0.1459414661,
-0.5333602428,
0.2980468273,
-0.074512437,
0.5710756779,
-0.582433641,
0.1992215365,
-0.0548031293,
-0.552059412,
-0.0332470685,
-0.0165013783,
-0.4366422892,
0.2478282452,
-0.2463941425,
0.1747564524,
0.0671191588,
0.4830774069,
0.0326564275,
0.0731238797,
-0.108362481,
0.0193063766,
0.2219754755,
-0.1630266309,
-0.0337866135,
0.0701636747,
-0.056348443,
0.155771479,
0.1068742499,
-0.5881655812,
-0.0457234755,
0.2437048554,
-0.299369216,
-0.0371275134,
0.1695755124,
0.2203140855,
-0.0677682161,
-0.1151805744,
0.3601846397,
0.0467820019,
-0.3041183352,
0.0224007927,
-0.3639566004
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working -
```
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source)
60
61 def __init__(self, source):
---> 62 self._open(source)
63
64
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
But I'm going to give the generator_dataset_builder a try.
1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 87 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working -
```
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source)
60
61 def __init__(self, source):
---> 62 self._open(source)
63
64
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
But I'm going to give the generator_dataset_builder a try.
1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch | [
-0.2709981501,
-0.1708686501,
-0.0142525258,
0.2424218059,
-0.0901529416,
0.0373771675,
0.0722796917,
0.3559102714,
0.0219825376,
-0.1569152325,
0.0568319224,
0.6875867844,
-0.3158583939,
0.0238230731,
0.1384809762,
-0.1774834394,
0.16973795,
0.0175786391,
0.1954475641,
0.1319140494,
0.0567813516,
-0.107214421,
0.0791313127,
0.1026269123,
-0.1071949527,
-0.2519373894,
-0.0987826809,
0.0902696922,
-0.0763715506,
-0.1416807026,
0.3796567619,
0.138633877,
-0.0551864244,
0.3206910491,
-0.0001226709,
0.2056130469,
0.171561107,
0.1351352483,
-0.2004488111,
-0.1448927671,
-0.1280783117,
-0.1294981688,
0.1882866174,
-0.1889582574,
0.1550607383,
-0.3981491029,
0.0495882109,
-0.1102557033,
0.7451304197,
0.243246153,
0.0788234398,
0.0991886333,
-0.0036851889,
0.2266286165,
-0.1186312437,
0.3455072641,
0.0820627213,
0.24437204,
0.0720904469,
-0.2155693024,
-0.1497939974,
0.1466437429,
-0.1729086041,
0.0248666294,
0.2092568725,
-0.0760233253,
0.1784178019,
-0.0695757642,
0.0831778347,
0.3103860915,
0.0022006703,
-0.2151122838,
-0.2066605985,
-0.5397033691,
0.1270540059,
-0.2709567249,
-0.0706040934,
0.2371490896,
-0.2252682,
0.2454850823,
-0.0589899197,
-0.4718380868,
-0.0915903151,
0.0282217953,
-0.0222263448,
0.2925259769,
0.2098948061,
0.3022346795,
0.1680296659,
0.03372778,
0.3152106106,
-0.2900067568,
-0.0619791038,
0.0518530197,
-0.1652065217,
-0.24729532,
-0.0889396742,
-0.5191529989,
0.0715017095,
0.2056324929,
0.3251101673,
-0.0732595623,
-0.2554785013,
0.1540991366,
0.1518893391,
-0.2257802486,
-0.1276622564,
0.3733851612,
-0.0609765761,
-0.2684909701,
0.0765158311,
0.12598297,
-0.2788672149,
-0.11889489,
-0.1605693996,
0.0677718744,
0.2837854624,
0.2333721966,
-0.1346602142,
-0.3933130205,
-0.386433959,
-0.2138632089,
0.1876251847,
0.030806886,
0.0291462559,
0.5331359506,
-0.0671073943,
0.4122141898,
-0.2591355741,
-0.2082479745,
0.0152529208,
-0.0591532215,
-0.2480622977,
-0.0027155553,
0.109996438,
0.4786126912,
0.1313546449,
-0.0131073715,
-0.2265705466,
-0.0390045792,
0.3589453399,
-0.1173248589,
0.0950446576,
-0.0254521966,
-0.1783608943,
0.0185400099,
0.0100759733,
-0.0709419623,
-0.3327417672,
0.2551267147,
-0.1009526774,
-0.1926942766,
0.0021884968,
0.0228181574,
-0.0413333289,
-0.1952394396,
-0.4399904013,
0.6162861586,
0.3059455156,
-0.0188294426,
0.0528091043,
-0.1076052487,
-0.290337503,
-0.2586704195,
0.1246923059,
0.1132115275,
-0.4203319848,
-0.2970169187,
-0.0107070459,
-0.0253951382,
-0.1112260818,
0.4214456677,
-0.2157963365,
0.1598106176,
0.0871578902,
0.0753269419,
0.6000874043,
-0.2497988194,
-0.0632774234,
0.2026133537,
-0.1168497205,
-0.1562632024,
0.1286632866,
0.0331943668,
0.020619126,
-0.094570525,
0.0209348965,
0.6081796885,
-0.3583089113,
0.0410195589,
0.0095213046,
-0.3130630851,
0.2251247764,
0.2373589575,
0.0278312955,
-0.190545693,
-0.3208427429,
-0.1956508905,
0.2701672614,
-0.099338986,
0.3689213991,
-0.0595755018,
-0.08423803,
-0.139495939,
-0.0287111942,
-0.1532609016,
-0.5317852497,
0.0004239212,
-0.0153503343,
0.0928584486,
-0.0442913137,
-0.1126267239,
0.0699824393,
0.0900174677,
-0.0436854921,
-0.0526157841,
-0.0137466975,
-0.0741435289,
0.1348848492,
-0.2574141026,
-0.3342534006,
-0.1103571206,
0.008605171,
0.203796342,
-0.3359613717,
0.5445890427,
0.2347194403,
-0.0095279114,
-0.1654925793,
0.2517212331,
-0.092292577,
0.0961073935,
0.1214932799,
0.1124426648,
-0.1708138883,
0.3681159616,
0.1516940594,
0.18060112,
0.3069011867,
-0.4986453652,
0.4170792401,
0.0051070019,
-0.1247827858,
-0.1463015229,
-0.285230875,
0.2827929258,
0.0896428078,
0.5726415515,
0.0074498202,
0.1161556244,
0.0105547756,
-0.1423980743,
-0.2524621785,
0.1537435949,
-0.0168341678,
-0.0068359761,
0.3308142424,
-0.0498399734,
-0.4534571171,
0.365157634,
0.3189688623,
-0.0790390074,
-0.1559529155,
0.0444514826,
-0.2688311338,
-0.0187268518,
0.0327845626,
0.435991466,
0.1295998394,
0.2646865547,
0.343944788,
-0.0234304592,
-0.2978411019,
-0.0521947816,
0.2612977326,
0.1168891266,
0.5971405506,
0.055923406,
0.2753995359,
-0.270534277,
-0.0698103979,
-0.2716558576,
0.4424146116,
0.0593961775,
-0.1237625554,
0.4224998057,
-0.2999273539,
-0.404664278,
-0.6216881871,
-0.2262638211,
-0.1811685562,
-0.3333444893,
0.0100118704,
0.1288982779,
-0.1645736694,
0.3371836543,
0.031246502,
0.0554596558,
-0.1915542036,
0.0031765876,
-0.0736340508,
-0.4876656234,
-0.0550175235,
0.0224790256,
0.5342307091,
0.1249971315,
0.2216803133,
0.5519185662,
-0.3891838491,
-0.0377628729,
-0.3224726021,
0.2598615885,
-0.1278273165,
-0.0251382757,
0.1154050007,
-0.1412091851,
0.2514170408,
-0.2100853026,
0.0457228199,
-0.0451229252,
-0.1329951435,
-0.1487723291,
-0.1853577346,
0.2294774055,
-0.0772331059,
-0.1576829106,
-0.3379788995,
-0.2774730921,
0.4277979136,
0.0270627663,
0.1580067873,
0.335154891,
0.1768140495,
0.0498503298,
0.0437798761,
-0.0661599487,
0.1313050389,
0.0498720519,
-0.0275703799,
-0.1940676123,
0.2004645169,
-0.3057994545,
-0.3318732679,
0.454798013,
0.2158546448,
-0.2086229026,
0.3465016782,
-0.0335921459,
0.1218090877,
-0.0845843926,
-0.2690055966,
0.1025602296,
0.1928118467,
0.0899641216,
-0.0179421194,
0.2616138756,
0.174038142,
0.024775058,
0.1520763636,
0.2242884785,
0.2025140226,
0.1355826259,
0.9615144134,
0.0917423293,
-0.1690102965,
-0.2594365478,
0.0101259882,
-0.3711109161,
0.1074113697,
0.0459490716,
-0.1450534016,
-0.0656834021,
-0.0021033268,
-0.0002097631,
0.0568531975,
-0.4240121245,
0.095617421,
0.0687124282,
-0.1075339615,
-0.3062421083,
0.3730204999,
-0.5912077427,
0.1180318445,
-0.0506453663,
-0.2795494199,
-0.3265398741,
0.0445427336,
-0.2696340084,
-0.1826972812,
0.1530709267,
-0.1265435368,
-0.4512415826,
0.092433393,
-0.5370235443,
0.1233644634,
-0.0071199592,
-0.0968016014,
0.2267796695,
-0.2825099528,
0.0064120749,
-0.2530960143,
0.729844749,
-0.097762987,
0.0527744405,
0.0396023653,
0.2298904359,
-0.5488436818,
0.1013626382,
-0.1378298849,
0.3780580163,
0.2070140392,
0.1954919547,
-0.4321472347,
-0.3591599464,
0.2859166265,
-0.1534585655,
-0.204598859,
0.003412741,
0.1774918437,
-0.0738243386,
-0.2873133421,
-0.0029663744,
0.1983372569,
-0.0111110238,
-0.1593708098,
-0.0543316267,
-0.1382429153,
-0.0134042045,
0.0286667161,
0.0071774526,
-0.0436876491,
-0.108805865,
0.2084567845,
-0.0966156498,
0.0845697969,
0.2789638937,
0.5220509768,
0.055429697,
-0.3628228605,
-0.0905189365,
0.151120767,
0.3655588329,
0.1464164257,
0.3258494735,
0.4495049417,
0.38985461,
-0.0241508577,
-0.1499517709,
0.0184982549,
-0.1162967384,
0.1519063562,
-0.3429190218,
-0.3364131749,
0.5278544426,
0.2442136109,
-0.0316029005,
0.4288014472,
-0.275722295,
-0.3967436552,
0.289490521,
0.2824400961,
0.8820120096,
-0.0412439257,
0.2451672256,
0.4288583994,
-0.4744341671,
0.6899802089,
-0.5011775494,
-0.0081261126,
-0.2250358015,
0.1768209934,
-0.010970111,
-0.1766536236,
-0.1450345814,
0.6129156351,
-0.0589900576,
0.0663666204,
0.3291282356,
-0.3208194375,
0.0056244149,
0.3306919038,
-0.0575523749,
-0.196975857,
-0.1106472909,
-0.0546385199,
-0.2695828974,
-0.2840958834,
0.0886819661,
-0.3098027706,
-0.1838228405,
-0.0833678618,
-0.129593119,
0.0842533931,
-0.0685075372,
0.0788908899,
0.2631236017,
-0.481400013,
0.2369752973,
-0.0980198607,
0.05421222,
-0.4273024797,
-0.1175629124,
0.1090061739,
-0.0264751688,
0.0396040007,
-0.1083836779,
-0.2043939233,
0.3602646291,
0.0853196979,
-0.2321542352,
-0.1213419586,
-0.0468101092,
-0.062349841,
0.0017219607,
-0.1963727623,
0.1519377083,
0.2448468655,
-0.0199870598,
0.4476199448,
-0.3700375259,
-0.0860670581,
-0.0133536384,
0.0342975408,
-0.1728720516,
-0.0901800171,
-0.0315408707,
-0.047366064,
0.08880575,
-0.0653011873,
0.3045382798,
0.0887989551,
0.4743168354,
0.4823846817,
0.128176719,
-0.1675910503,
-0.1615803242,
0.3642774522,
-0.6409151554,
0.086800538,
-0.2537645102,
-0.1523722261,
0.1737758666,
-0.0462128967,
0.06729763,
0.4354812205,
-0.1906708926,
-0.2262095064,
-0.2581787407,
0.5244812965,
-0.145292297,
0.1204873994,
-0.1918353289,
0.3252473474,
0.0749839619,
0.4396366179,
-0.1820240766,
0.2253145874,
0.0979341269,
0.3882695138,
-0.0723963827,
-0.1090583727,
-0.1132071167,
0.0705183446,
-0.0724807829,
-0.0643316731,
0.0123353591,
-0.0894461423,
-0.1491754502,
0.1177709848,
0.0603620484,
-0.1018849686,
0.1024394184,
-0.187331602,
-0.0094597097,
-0.0369713344,
-0.0762718394,
-0.3490604162,
-0.0733240172,
0.1595448852,
0.1517008692,
0.1069018245,
-0.3149266839,
0.1749273837,
0.1201313585,
0.0713575333,
-0.0852649137,
0.4262806475,
0.230299592,
-0.116201967,
-0.4974855185,
-0.0258679036,
0.1137557104,
-0.0623671152,
0.12278267,
-0.1025782824,
-0.1341922581,
-0.258168608,
0.2884766757,
0.4120496511,
0.0171678253,
0.1973018497,
0.1009964496,
0.1181036979,
-0.1254900247,
0.1502050012,
0.3381063342,
-0.3637133241,
0.1236133724,
0.243673265,
-0.1666869074,
0.1396009624,
-0.2355641574,
0.1679413766,
-0.0064405431,
-0.2678117752,
0.3055500388,
0.3528036773,
-0.1886676252,
-0.0293508116,
0.2828597128,
-0.0730520189,
0.3902783394,
0.0133099984,
0.1955374181,
0.4305586219,
0.2297836393,
-0.0683106929,
0.4417046607,
-0.0561186336,
-0.4187367558,
-0.0846249461,
0.1200661883,
0.1204311177,
0.2948896587,
0.7293602228,
0.3205150366,
-0.3478201926,
0.1853824109,
0.5375406742,
-0.0106577035,
-0.2062986046,
-0.7132187486,
0.0688483417,
-0.1676314771,
-0.0260272454,
-0.1149513498,
-0.2241874635,
0.3993257284,
0.180276528,
0.2019366622,
-0.420106411,
0.2862581909,
0.1332344413,
0.1023653001,
-0.1227316856,
0.2345302701,
0.251521945,
-0.1935735792,
0.0052809445,
0.1113870442,
0.2373287231,
0.0086046364,
-0.4945699871,
0.0074285255,
0.2081180811,
-0.1191314533,
-0.1330263317,
0.1433834136,
0.366199106,
0.0611304604,
0.3061699867,
-0.020090526,
-0.0907651782,
-0.0039544217,
0.3932209313,
-0.0377737619,
-0.2537739575,
0.5006622076,
0.1897697747,
-0.3410308063,
0.2525041699,
0.1708342582,
-0.4054371119,
-0.0208983626,
0.3292311728,
-0.2298857868,
-0.0052025085,
0.0529688448,
0.0116044888,
-0.0510984547,
0.5025141835,
0.2102503479,
0.4353618622,
-0.1251079738,
-0.0355422646,
-0.3355431557,
-0.1686943173,
-0.3205321729,
0.0130567458,
-0.2437047958,
0.2071515322,
0.2902575135,
0.3711935282,
-0.0773661807,
0.0834685043,
0.226458922,
0.4366153479,
-0.1140757501,
-0.2237607539,
0.1184248999,
0.2578310072,
0.1375679374,
-0.3139263391,
-0.0115693733,
0.3504675031,
-0.2153019905,
0.0389461331,
-0.0080327317,
0.4428017139,
-0.0256611742,
0.0372272357,
0.0445506461,
0.4479853213,
-0.0112552568,
-0.2736091018,
-0.1870455295,
-0.1563464701,
-0.5374307036,
0.346381247,
-0.0637223423,
0.621684134,
-0.5220503807,
0.1028235331,
-0.027885031,
-0.5713893175,
-0.1363962442,
0.0437542051,
-0.3469473124,
0.1673679352,
-0.1485082507,
0.2270119935,
-0.0076644705,
0.4074023068,
0.1073876992,
0.0546126179,
-0.2766764164,
-0.0632087663,
0.2735041678,
-0.1833561957,
-0.033759363,
0.0563396811,
-0.1401643008,
0.1763145179,
0.1132687107,
-0.6911990643,
-0.0561759733,
0.2711660266,
-0.3308922648,
-0.0930014774,
0.1532916427,
0.3074658811,
-0.0901589915,
-0.159169957,
0.292262733,
0.0803829953,
-0.3020388186,
-0.1117160693,
-0.4423949718
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files.
The error I get now is :
```
Using custom data configuration test
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-29082a31e5b2> in <module>
5 print(ner_datafiles)
6
----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0])
8
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions.
```
If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields . | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 324 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files.
The error I get now is :
```
Using custom data configuration test
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-29082a31e5b2> in <module>
5 print(ner_datafiles)
6
----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0])
8
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions.
```
If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields . | [
-0.261636436,
-0.2061420977,
0.0375018381,
0.3549160063,
-0.1682423651,
0.1174600124,
0.1433505267,
0.4742082953,
0.3013394773,
-0.0251563396,
-0.0413274392,
0.7794689536,
-0.4380650222,
-0.0006889034,
-0.0343451127,
-0.1329026818,
0.0780566186,
0.0321559943,
0.1479657441,
0.1702061743,
-0.0766775534,
0.08151903,
0.1405752748,
0.070138514,
-0.0335840695,
-0.2355924398,
-0.0052829366,
0.3222760856,
-0.0223014094,
-0.0998792648,
0.3949328661,
0.0254253373,
0.0121660857,
0.3701487482,
-0.0001212367,
0.2414511293,
0.1444252729,
0.0434318446,
-0.2983267605,
-0.1597705036,
-0.1191835776,
-0.2082095295,
0.2016610503,
-0.1714547575,
0.0930440053,
-0.3221847713,
0.0103636924,
-0.2175859064,
0.8227087855,
0.1959593743,
0.0853802785,
0.0941179097,
-0.0375261381,
0.1864821017,
-0.152887553,
0.2486986071,
0.0706448555,
0.4197851419,
-0.071919255,
-0.1584838033,
-0.1350351721,
0.1528037041,
-0.2114894837,
0.1532354057,
0.1155341044,
-0.066233471,
0.1061298177,
-0.0129738981,
-0.0425172299,
0.2376263142,
-0.0137328105,
-0.1154446602,
-0.2180210948,
-0.5963212252,
0.0687734485,
-0.3153632879,
0.1451150626,
0.1890841275,
-0.2590256035,
0.2256516516,
0.1236034483,
-0.5307227373,
-0.0557472482,
0.1267888993,
-0.0098405909,
0.3766202629,
0.1091584489,
0.2603290081,
0.2779297233,
0.0567416959,
0.19784531,
-0.1859575659,
-0.1330090612,
-0.0677113459,
-0.1957908571,
-0.2723718584,
-0.193600893,
-0.7956869006,
-0.030102456,
0.2747701108,
0.4105604887,
-0.0649349317,
-0.2221662849,
0.2716938853,
0.2230009288,
-0.1622832716,
-0.1264721453,
0.3251130581,
0.0797923133,
-0.1740465313,
0.1110330075,
0.1423992217,
-0.332944572,
-0.1393830031,
-0.2668756545,
0.0358176976,
0.3838407695,
0.1243890002,
-0.1721636355,
-0.3282207847,
-0.4179404378,
-0.1695617884,
0.1243309379,
0.0437096432,
0.0265699625,
0.4992045164,
0.0284126066,
0.390704453,
-0.188615039,
-0.2341749668,
0.0649522021,
-0.0155807519,
-0.1154916063,
0.0258707907,
0.2306984961,
0.393681556,
0.2521829903,
0.0243461914,
-0.2440882921,
-0.0843086466,
0.3822434247,
-0.0215821844,
-0.0870608166,
0.0885294527,
-0.0290048569,
0.0562349558,
0.1478367448,
-0.1695771515,
-0.3286603391,
0.2814546525,
-0.294326514,
-0.1961502284,
-0.0213514026,
0.0327282175,
-0.0374717452,
-0.2179764807,
-0.5268864036,
0.393555522,
0.3471503854,
-0.1026954874,
-0.0189553499,
-0.1631550938,
-0.3421747386,
-0.2664161921,
-0.0560859367,
0.1445372552,
-0.4778343439,
-0.3250256181,
-0.2092003673,
0.0039788829,
0.0233759973,
0.5663744807,
-0.2850207388,
0.2382001728,
-0.0070044789,
0.0657347888,
0.5314769149,
-0.2201386839,
-0.1084618568,
0.3468540311,
-0.1492506415,
0.0518523082,
0.1439967453,
0.0395886377,
0.0526149124,
-0.1308286488,
0.193721354,
0.6393971443,
-0.2344770133,
-0.0323568881,
-0.0442831665,
-0.2477200031,
0.4179080129,
0.2243717462,
-0.0949274674,
0.0199594758,
-0.3340435028,
-0.0949616432,
0.1253609806,
-0.1228607073,
0.266515702,
0.0090403883,
0.0167939626,
-0.0821826234,
-0.0557359159,
-0.0020880559,
-0.5716662407,
0.0258831251,
-0.1563587934,
0.0483758003,
0.0367051549,
0.0840056241,
0.0246531311,
0.0242606178,
-0.1075538695,
-0.1872882247,
-0.0309741199,
0.1321422458,
0.0364427157,
-0.3403073549,
-0.3291963935,
0.2118789256,
-0.0324938633,
0.2425681502,
-0.4329963028,
0.5431371331,
0.2083959132,
-0.1171970144,
-0.0873507187,
0.048944585,
-0.0986334234,
-0.0070062303,
0.0019491981,
0.1942145973,
-0.0757217556,
0.2442177534,
0.1699138731,
0.0654745176,
0.1595391333,
-0.3383495808,
0.3486052752,
0.2228187919,
-0.0673019588,
-0.1175187603,
-0.2634734213,
0.4534843564,
0.0424078442,
0.432980895,
-0.1104204878,
0.141562745,
0.2285178304,
-0.1195352897,
-0.2843778431,
0.0755170956,
0.0381108783,
-0.198993355,
0.2602618635,
-0.0758710504,
-0.5680078864,
0.1407356113,
0.2386333495,
-0.0199063625,
-0.0573454425,
0.1785091609,
-0.1155245155,
-0.0487362333,
-0.0507614054,
0.5043224096,
0.3902944922,
0.2023363411,
0.1330363452,
0.0527727529,
-0.3332381248,
-0.0390538089,
0.2645005286,
0.0731954128,
0.5722964406,
0.1111421213,
0.1884939671,
-0.2298467606,
-0.0260416735,
-0.2259598672,
0.3757135868,
0.1960817724,
-0.2328561842,
0.3923482299,
-0.3859460652,
-0.3946234882,
-0.6372320056,
-0.1264989227,
-0.2228471041,
-0.4076820612,
-0.0596626922,
0.294182688,
-0.2008380443,
0.3044980466,
-0.0083964262,
0.2533295155,
-0.0969768539,
-0.063314341,
-0.0650338605,
-0.3226174116,
-0.0971217304,
0.0095734037,
0.4663541317,
0.0486907847,
0.1779369116,
0.4626571834,
-0.3111798465,
0.0040367809,
-0.2330505699,
0.2138880044,
-0.1255089194,
0.0886385813,
0.1230218336,
-0.0334313065,
0.3305613101,
-0.3943112195,
0.0101412944,
-0.0132068796,
-0.2062787265,
-0.0949027911,
0.0286064036,
0.3486716449,
-0.1070189625,
-0.3093832135,
-0.3159711957,
-0.3946545124,
0.2259314656,
0.0516271368,
0.2161050737,
0.4295204282,
0.1762687415,
0.0463485532,
0.1555679888,
-0.0262173153,
0.014796094,
-0.0455985516,
0.0338854417,
-0.3673454225,
0.1897361875,
-0.2843199372,
-0.2059622407,
0.4252789617,
0.1152252331,
-0.3176317215,
0.3440875709,
-0.0434318446,
-0.0167124849,
-0.2224961221,
-0.3622525632,
0.0244200993,
0.1780631244,
0.0452706963,
-0.0338765979,
0.1468672305,
0.2260790467,
0.1121595129,
0.2324394584,
0.2633696795,
0.328766644,
0.1926621646,
0.8260395527,
0.0851390585,
-0.1176849455,
-0.0616797358,
0.097435005,
-0.272416383,
0.0375083536,
-0.0940983742,
-0.2391366959,
-0.0824229792,
0.0699936822,
-0.0274070036,
0.0607343689,
-0.4748290181,
-0.0164991375,
0.0384605974,
-0.0694508851,
-0.3480144739,
0.4364905357,
-0.5182205439,
0.0621529035,
-0.1140320823,
-0.3119461536,
-0.2559911609,
0.0514924414,
-0.2783668339,
-0.0520950332,
0.1209163889,
-0.0720346719,
-0.413158536,
0.1993460059,
-0.3643967807,
0.2030837983,
-0.1106475145,
0.2612339556,
0.0975524709,
-0.2444996089,
-0.0281411819,
-0.248693943,
0.7580452561,
-0.074839659,
0.1026745811,
0.0970803276,
0.1042809635,
-0.5244820714,
0.021922173,
-0.2186836153,
0.4839398563,
0.3086549342,
0.3903082907,
-0.3387849331,
-0.280048728,
0.1992188543,
-0.1463639289,
-0.2613398135,
-0.0154224802,
0.0275571607,
-0.1254512221,
-0.4156198204,
-0.0843990222,
0.0651170909,
0.0581830554,
-0.1375561059,
0.0462692082,
-0.1992903799,
-0.1609222889,
0.0917417109,
-0.0153532326,
-0.1788317114,
0.0135657499,
0.2081342041,
-0.1128668189,
0.2214398533,
0.1589300334,
0.6004503965,
0.2492437512,
-0.3162971139,
-0.0304802936,
0.1683488637,
0.2941431105,
0.0430310406,
0.1952895224,
0.3621750772,
0.3023658693,
-0.0650168061,
-0.1220983341,
0.1000131443,
-0.0910298526,
0.0835953727,
-0.4143506885,
-0.3978825808,
0.4033085406,
0.2466866076,
-0.0018950976,
0.4153802097,
-0.3548696637,
-0.3739947975,
0.2413824499,
0.2081923932,
0.8665277362,
-0.0116075948,
0.1625169516,
0.4749665856,
-0.5066373944,
0.7132517099,
-0.4881284833,
0.0508988872,
-0.174019739,
0.226357013,
-0.0386751518,
-0.1600790471,
0.0653528497,
0.5145099163,
-0.1249234602,
0.1910089999,
0.2115530074,
-0.4104619026,
-0.0267953575,
0.4065261185,
-0.0034949649,
-0.2639393806,
-0.2312742472,
-0.0425961167,
-0.4342306852,
-0.0986036211,
0.1534000337,
-0.3186721206,
-0.2109119296,
-0.1321128905,
-0.1447936893,
0.119167842,
0.1216170713,
0.2122846842,
0.2192086428,
-0.4170317054,
0.2105446905,
-0.1337066889,
0.0080595585,
-0.2745546699,
-0.0473290496,
-0.034272857,
-0.2372593582,
0.0514213331,
-0.0789106488,
-0.1207423136,
0.387147963,
0.0204420276,
-0.1895029098,
-0.0873417035,
0.0075707729,
-0.3587487638,
0.1281238496,
-0.0432037599,
-0.0922150537,
0.0538501777,
-0.2129108757,
0.3441672921,
-0.3149489462,
-0.175149098,
-0.0147759635,
0.0627151355,
-0.1868644506,
-0.1603604108,
-0.0179924462,
-0.1548303664,
0.0377542749,
0.1175944954,
0.2087214589,
0.1184319481,
0.5312076211,
0.3709817827,
0.2150755525,
-0.1885428876,
-0.0057037883,
0.2521186173,
-0.4778157771,
0.1372611821,
-0.2956436276,
-0.1687813401,
0.0575584918,
-0.0778488591,
0.1326596737,
0.4425214529,
-0.0469454676,
-0.3981654048,
-0.274764657,
0.4557525218,
-0.1103341952,
0.0998243466,
-0.1173506752,
0.2304961681,
-0.0533958748,
0.3978672028,
-0.1770789772,
0.2526502013,
-0.004827172,
0.3383488357,
0.0565916076,
-0.0688424632,
-0.0623678491,
0.1294481903,
-0.0358811282,
-0.0560733862,
0.0516232662,
-0.0848975778,
-0.1986639947,
0.1135848686,
0.0098095322,
-0.1401913017,
0.0715757087,
-0.2780889869,
-0.0606755391,
0.0399382934,
-0.1343809068,
-0.3121052086,
-0.0911650881,
0.3229661882,
0.0029084242,
0.0850501582,
-0.149603948,
0.2255048901,
0.0032474366,
0.1173815876,
-0.0654400513,
0.3353914022,
0.1935218722,
-0.0999347717,
-0.6856934428,
-0.0532719865,
0.0523256548,
0.0030715279,
0.109237887,
-0.200080201,
-0.131552428,
-0.2898881435,
0.2536651492,
0.4463508725,
-0.0739393234,
0.1958033442,
0.2406323403,
0.0633561537,
-0.0634960011,
0.088220343,
0.4835500419,
-0.3166554272,
0.0711586475,
0.3000303507,
-0.1604156792,
0.1473092884,
-0.3009881973,
0.0527182221,
0.082255207,
-0.1254575849,
0.3439557254,
0.3214911222,
-0.3618199825,
-0.0401012339,
0.1614882648,
-0.1193917692,
0.4025029242,
0.0484441258,
0.2046439499,
0.3204604983,
0.2750093639,
-0.0557660051,
0.4221300483,
-0.3098089397,
-0.3592762649,
-0.000755202,
0.0358412787,
0.2483556718,
0.283680141,
0.5921640396,
0.1722435504,
-0.2773673832,
0.0916700885,
0.522162497,
-0.0121864565,
-0.2795135081,
-0.613896966,
0.062785998,
-0.2234599739,
0.0579087809,
-0.0424849577,
-0.2430529147,
0.2019950151,
0.1961253583,
0.046090018,
-0.4166123569,
0.3033422828,
0.1623995304,
-0.0245267898,
-0.2011001855,
0.2490918338,
0.2544410229,
-0.128400892,
0.0705220774,
0.0348291881,
0.3172623515,
0.0864621252,
-0.3684069812,
-0.0089645097,
0.1396888345,
-0.0774104148,
-0.1733276248,
0.1853987724,
0.2654221952,
0.0629154965,
0.3606314659,
0.0076658968,
-0.0907965228,
0.0281159338,
0.40003407,
0.0957030654,
-0.3185198009,
0.5138176084,
0.1729289442,
-0.2144089788,
0.328723222,
0.0866155848,
-0.4180998802,
-0.1664090902,
0.2632785141,
-0.0345895216,
0.0029007625,
0.145898819,
0.0150298206,
-0.0731464699,
0.6327579618,
0.1750953346,
0.2684527338,
-0.0302810334,
0.04877536,
-0.3237716854,
-0.0966862664,
-0.2670505643,
-0.0193461068,
-0.2650862038,
0.2112197131,
0.3434880972,
0.4839078486,
-0.1652049869,
0.0860879049,
0.2459127158,
0.2894407809,
-0.1610228866,
-0.3069117665,
0.220285058,
0.3486303687,
0.188954398,
-0.3502086103,
-0.0686328039,
0.4095515013,
-0.1618710756,
0.0464933813,
-0.0674898177,
0.2403896451,
0.0328009874,
0.0490161888,
0.1321928054,
0.4877574146,
-0.0335556529,
-0.3763450086,
-0.2149567604,
-0.1724826545,
-0.4667956531,
0.2378898859,
-0.0185570512,
0.7020078897,
-0.5233491659,
0.1436807364,
-0.2510556579,
-0.3602832258,
-0.1742963791,
0.0690402091,
-0.363582015,
0.2612661719,
-0.1166176498,
0.192761898,
-0.0447855964,
0.4278227687,
0.0420891419,
0.1251774579,
-0.3780817091,
0.0384443104,
0.3709774613,
-0.2145704329,
-0.1265934855,
0.2050528675,
-0.1225413382,
0.1562442929,
0.1938427091,
-0.5580323339,
-0.0503834039,
0.2729420364,
-0.299985826,
-0.113279067,
0.1660780758,
0.2374658734,
-0.1107976735,
-0.031058142,
0.2576286197,
0.130767256,
-0.2719534338,
0.038267646,
-0.314701587
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders. | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 43 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders. | [
-0.2255924791,
-0.213975817,
0.0137122273,
0.1874608248,
-0.2855695188,
0.1027285084,
0.085978277,
0.3090704083,
0.2629742026,
-0.1347024441,
0.0771383941,
0.6757095456,
-0.3767236471,
0.1300157607,
0.1040432379,
-0.2021782845,
0.1567044854,
0.0305681303,
0.243240729,
0.1246741489,
-0.0030574985,
-0.1404227614,
0.1567751169,
0.0151138483,
-0.0611152984,
-0.2410471141,
-0.1119402274,
0.1831778884,
0.0436238348,
0.0080809137,
0.4242898822,
0.1682476401,
-0.035753157,
0.3314850926,
-0.0001182203,
0.1242473945,
0.1082485095,
0.1458238363,
-0.2584878802,
-0.1556640714,
-0.1127674133,
-0.1371053457,
0.2131115645,
-0.1448483616,
0.1367441118,
-0.3278984129,
0.1708426476,
-0.1297236681,
0.7699857354,
0.13349998,
0.1088850945,
0.0454336964,
-0.1247144267,
0.2250993699,
-0.2478453666,
0.2831082344,
0.0789033175,
0.2020107657,
0.0115349153,
-0.1621368527,
-0.1638325304,
0.0203957502,
-0.1525956094,
0.1096805334,
0.1250388473,
-0.1221600175,
0.0543635078,
-0.0273974966,
-0.0277143046,
0.3535754383,
-0.0115000391,
-0.1214187369,
-0.166632086,
-0.6308935881,
0.0714956075,
-0.1956182122,
-0.0327246301,
0.1070845798,
-0.1702805459,
0.2213974297,
0.1279786378,
-0.5801435113,
0.0357804857,
0.1103351191,
-0.062391337,
0.329654336,
0.1729612499,
0.1976506412,
0.2552984953,
0.0594153926,
0.3220233619,
-0.2034489959,
-0.0187665075,
-0.0308435857,
-0.15463157,
-0.2607317567,
-0.1478805989,
-0.6261649728,
-0.0011972846,
0.2987721562,
0.3444443345,
0.0295496043,
-0.3762354851,
0.2349631041,
0.1856470853,
-0.2687039077,
-0.1834816039,
0.2808965743,
0.0147725008,
-0.2175779492,
0.0500676483,
0.1455634087,
-0.39281106,
0.0109011037,
-0.3534699976,
-0.0636658594,
0.3451400995,
0.1989927739,
-0.1900561899,
-0.4027467668,
-0.2324143499,
-0.1443460733,
0.1434207261,
0.0017944704,
0.0272261985,
0.5649723411,
-0.0731389374,
0.3858675361,
-0.2132074982,
-0.2311060131,
0.0232886057,
-0.0543793291,
-0.1361841708,
0.0107968934,
0.1071930155,
0.5068042278,
0.151108861,
-0.0194065087,
-0.3058051467,
-0.0769734085,
0.438652277,
-0.0546705723,
-0.0773440972,
-0.0458456092,
-0.0622554794,
0.0818976015,
0.0954199731,
-0.0816647336,
-0.2606012225,
0.2103667706,
-0.1766935885,
-0.1315816343,
0.0219499487,
0.0671398565,
0.0027994355,
-0.3125674725,
-0.5295146704,
0.6395687461,
0.1960007101,
-0.0690219626,
0.0101076197,
-0.0039348761,
-0.3481337428,
-0.2317088991,
-0.0104251299,
0.0529449098,
-0.3890049458,
-0.3615553379,
-0.2279179245,
0.0117452666,
-0.0676149949,
0.4565347433,
-0.243422851,
0.1787771136,
0.0341736153,
0.0166952312,
0.5639644265,
-0.1810502261,
-0.0599438436,
0.2342613488,
-0.2342586368,
0.0363015123,
0.0825458094,
0.143954888,
-0.0381680205,
-0.1814540774,
0.057044439,
0.7605228424,
-0.2868876159,
-0.0040727085,
0.0645714477,
-0.2386100888,
0.3192778826,
0.2190307528,
-0.0627649128,
0.0548263714,
-0.3312345743,
-0.0223844405,
0.2203797549,
-0.0492089838,
0.3052372634,
-0.1040296704,
-0.1216965988,
-0.0869740322,
-0.1141554043,
-0.1505256295,
-0.4700722396,
-0.0176504627,
0.0689649433,
0.0118585275,
0.282979697,
-0.0816038251,
0.055230163,
-0.0188466571,
-0.0217033103,
-0.0096872281,
-0.0076297275,
0.096444428,
0.0328527577,
-0.2809763849,
-0.3709950745,
0.1122871265,
-0.0472181439,
0.2059128582,
-0.380746603,
0.4885465205,
0.2925759852,
0.0159944203,
-0.0933835506,
0.2137659341,
-0.1594693661,
0.0417957939,
0.1802480221,
0.0719096437,
-0.2072030753,
0.4196842313,
0.1911341995,
0.1224551052,
0.184806183,
-0.3710250258,
0.2803336382,
0.1075647995,
-0.1018232182,
-0.1790730804,
-0.2775409818,
0.3033384085,
0.1036186442,
0.4381710589,
-0.0083156219,
0.153819859,
0.1474598795,
-0.1902008355,
-0.2445546389,
0.1409132034,
0.0918479264,
-0.1703171432,
0.2928294837,
-0.0660920218,
-0.5334092379,
0.2663097084,
0.2597095668,
-0.0231015552,
-0.0067642229,
0.0656959042,
-0.227888599,
-0.0272636395,
-0.0800404102,
0.5746638179,
0.1669400334,
0.2245681882,
0.308044225,
0.0128029492,
-0.3045588136,
-0.0158982687,
0.213768661,
0.1295598,
0.5631979108,
0.0116661629,
0.2122718096,
-0.2407269478,
-0.0450092405,
-0.2099661082,
0.4044648409,
0.0407785326,
-0.0848148391,
0.3655429482,
-0.3508612216,
-0.4246237576,
-0.6468884945,
-0.1850210428,
-0.155204922,
-0.3520290256,
-0.0254887771,
0.3039809167,
-0.1339465976,
0.225861609,
-0.0123561211,
0.2932179272,
-0.3522541821,
0.008981172,
0.0060002767,
-0.416336596,
-0.033090733,
0.0651343241,
0.5234523416,
0.1799546927,
0.2201528847,
0.4802729785,
-0.2884747088,
0.0228923075,
-0.1987534016,
0.2183101028,
-0.0874338299,
-0.0297723413,
0.0596474148,
-0.1122585312,
0.2067917287,
-0.2833403051,
-0.1018209159,
-0.0160414204,
-0.1360420734,
-0.1377630681,
-0.0377467312,
0.3285037577,
-0.062962912,
-0.1650237441,
-0.3227212727,
-0.3119982481,
0.350612849,
0.0368761942,
0.1655423492,
0.3113003671,
0.0797172412,
0.0510158241,
0.1713955849,
-0.0293928273,
0.1030355245,
-0.0683859363,
-0.1436235756,
-0.2770158947,
0.2035324126,
-0.2974311411,
-0.2434923351,
0.3983848989,
0.1282062978,
-0.2371732444,
0.4022568166,
-0.057660602,
-0.0482838601,
-0.1453526169,
-0.3861068189,
0.0729032382,
0.0853461474,
0.0584494583,
-0.0381549411,
0.2228051722,
0.1892829686,
0.1013862714,
0.1968119591,
0.2205893695,
0.1887686849,
0.1956260502,
0.8005093336,
0.0264450125,
-0.188214004,
-0.1373374164,
0.1523603052,
-0.3494239748,
0.0859078765,
-0.0366806313,
-0.1492533386,
-0.0511698611,
0.0791833773,
0.0792010427,
0.0323397443,
-0.3823567033,
0.0108706076,
-0.004444038,
-0.0840589255,
-0.278999269,
0.3753067553,
-0.6413503885,
-0.0014688208,
-0.0366078056,
-0.3795253038,
-0.2813991904,
0.0255269054,
-0.396012485,
-0.0763845891,
0.1283547282,
-0.0253084525,
-0.5550843477,
0.2587537467,
-0.4043117464,
0.1065528691,
-0.1497111768,
0.1082973629,
0.1337040514,
-0.2157498002,
-0.0077797608,
-0.2512638867,
0.7265213728,
-0.0621117391,
0.0774381533,
-0.0218982529,
0.2443380654,
-0.5533459187,
0.1186913773,
-0.1643368155,
0.4846508801,
0.2180559486,
0.185585469,
-0.3536521792,
-0.2611513436,
0.1544140875,
-0.1339901239,
-0.2371197343,
0.034615811,
0.0901249424,
-0.0753720999,
-0.2876887023,
-0.0491993017,
0.1133305579,
-0.0835010409,
-0.2009038478,
-0.0356263109,
-0.2293890119,
-0.1023472697,
0.1347273439,
-0.0209326614,
-0.2114556581,
0.0026984196,
0.1948812902,
-0.0913311765,
0.2166855037,
0.1778644174,
0.5501309037,
0.1080019176,
-0.4033303261,
-0.0694693998,
0.1753069758,
0.3590191603,
0.0023805436,
0.4114626646,
0.5049764514,
0.4489444494,
-0.2014079839,
-0.191837877,
0.1467470378,
-0.1210087687,
0.1619019955,
-0.4613930285,
-0.3900202811,
0.4433450103,
0.2551620603,
-0.0187101215,
0.3786331713,
-0.2920506299,
-0.3776567578,
0.3467844725,
0.0968670845,
0.7605618238,
-0.1275996417,
0.2465570569,
0.223418802,
-0.483692646,
0.8631591201,
-0.4748444855,
0.0444690548,
-0.0999275893,
0.1351711452,
-0.0582545474,
-0.1513382345,
-0.0857993662,
0.5734063387,
-0.0948485509,
0.1130849421,
0.2172960639,
-0.3962775469,
0.0110710533,
0.4008000493,
0.0025830944,
-0.2414869517,
-0.1234060749,
-0.004378465,
-0.3816987276,
-0.1698629707,
0.0784131959,
-0.1844027638,
-0.1299358159,
0.0124696912,
-0.1374908388,
0.1000868306,
0.1305065602,
0.0557214208,
0.152975902,
-0.4156394899,
0.1985134631,
-0.1558766961,
0.1504121572,
-0.3637371361,
-0.0930847004,
0.0381142199,
-0.1674919426,
0.0735986158,
-0.0941918716,
-0.2420563549,
0.4414749742,
0.109082289,
-0.2119495124,
-0.1252068728,
0.0377469212,
-0.2322395593,
-0.0288278703,
-0.0495093092,
0.090247035,
0.2352701426,
-0.211611405,
0.4793801606,
-0.3060406148,
-0.1758314222,
0.0093609467,
0.0517832227,
-0.0910814703,
-0.2078321874,
-0.0366813838,
-0.0514277741,
0.0955741778,
0.0240054708,
0.2492680103,
0.0429392383,
0.436922431,
0.3884042501,
0.2362612188,
-0.1736459732,
-0.1126045063,
0.3920325041,
-0.4630274177,
0.0654893667,
-0.3011798561,
-0.2409797162,
0.1630827338,
-0.089340806,
0.0437427461,
0.3343808055,
-0.1670922488,
-0.3785152137,
-0.2100020498,
0.5031381249,
-0.1560942978,
0.1168875545,
-0.0720457509,
0.2750499547,
0.028588539,
0.4572605789,
-0.1817756444,
0.2492101789,
0.0724970475,
0.3490795195,
0.0043701241,
-0.0120641515,
-0.1322570741,
0.1297160983,
-0.0616889708,
-0.0028904034,
0.1225644425,
-0.1128113195,
-0.1961973757,
0.1171424389,
0.0778803974,
-0.1447002739,
0.0897049308,
-0.2446613461,
0.0302839521,
0.0119505133,
-0.1140205935,
-0.3234208226,
-0.0676848739,
0.2282805145,
0.0907380506,
0.1796734631,
-0.2158172727,
0.1726084948,
0.103606306,
-0.00818088,
-0.1344136149,
0.3630337715,
0.2937323153,
-0.0827695057,
-0.5364311337,
-0.0632459,
0.2846279442,
0.0123417862,
-0.0230603125,
-0.1194349378,
-0.0778796226,
-0.2318903804,
0.2651405036,
0.4332117736,
0.0061927368,
0.1934036165,
0.2808114886,
0.122285001,
-0.0499349497,
0.0790429637,
0.4891519845,
-0.3450672626,
0.0849792361,
0.2614115775,
-0.1177533343,
0.1229929328,
-0.3080473542,
0.0012805091,
-0.0316972062,
-0.2097045183,
0.3735482693,
0.2310184836,
-0.2958543897,
-0.083173357,
0.1448839009,
-0.1254049391,
0.32391572,
0.1188220605,
0.2797054946,
0.4925561845,
0.3353676498,
-0.0945811942,
0.5092291236,
-0.190079093,
-0.3325273097,
-0.0650519356,
0.1259596199,
0.2740228772,
0.2377756983,
0.6080204844,
0.2367739379,
-0.253549397,
0.096094951,
0.4803632796,
-0.0080236541,
-0.2975944579,
-0.6598878503,
0.100054048,
-0.1282501072,
-0.0272626393,
-0.0683546364,
-0.2648768723,
0.2347919047,
0.1211790293,
0.1713860929,
-0.3783198297,
0.2370420843,
0.1215775385,
0.0208646301,
-0.0896721631,
0.198806271,
0.1996976137,
-0.1532540619,
0.1174788475,
0.0530358925,
0.1160584763,
-0.0431919135,
-0.4731790423,
0.0513174646,
0.1138666123,
-0.0585206747,
-0.2365321517,
0.1224346384,
0.2920626998,
0.0109608052,
0.3345225155,
0.0191289783,
-0.1169026196,
0.0096041979,
0.4403294027,
-0.0293265991,
-0.4878626466,
0.4588005841,
0.2077511996,
-0.2303960472,
0.2585621178,
0.2308827341,
-0.3879237473,
-0.1584389508,
0.3280765414,
-0.2374747097,
-0.0505248606,
0.1283552796,
0.0263885427,
-0.0424834676,
0.5274134874,
0.1472372711,
0.381522119,
0.0467578694,
-0.0388125554,
-0.3185815811,
-0.0278856941,
-0.2809956968,
-0.0226379,
-0.306227982,
0.147882089,
0.3063934743,
0.3770581484,
-0.2242881954,
0.0479021184,
0.2318758667,
0.3143723011,
-0.0799176469,
-0.2844035625,
0.1349050254,
0.2836182117,
0.1767904758,
-0.2951725423,
-0.058176022,
0.5080991387,
-0.192896992,
0.0708646849,
-0.0207990054,
0.2869108319,
-0.0296809562,
0.0483179614,
0.0642771199,
0.4536291063,
-0.0697831213,
-0.4069776237,
-0.2457737029,
-0.1326286644,
-0.5627468228,
0.2836139798,
-0.0907640755,
0.6159166694,
-0.5590016246,
0.2587600052,
-0.0405213423,
-0.57878685,
-0.0762956664,
0.0816041157,
-0.4081574082,
0.2503029108,
-0.205622524,
0.1880096346,
0.076292783,
0.5517147183,
0.0693135783,
0.0199299604,
-0.2070097774,
0.0604484007,
0.2192197442,
-0.1770370007,
-0.0585655384,
0.0832618475,
-0.0925602093,
0.1186423749,
0.1360613406,
-0.5521397591,
-0.1466623396,
0.2632932067,
-0.3044009805,
-0.0315196477,
0.1822449565,
0.2029423714,
-0.1305775344,
-0.0826252401,
0.313321054,
0.1231718287,
-0.3210164607,
0.0717636719,
-0.3371943533
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable.
Also you are saying that you are still making the dataset grow in size right ?
It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset.
We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ? | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 121 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable.
Also you are saying that you are still making the dataset grow in size right ?
It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset.
We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ? | [
-0.0997776538,
-0.2414994687,
-0.1118135378,
0.1810317039,
0.1970848739,
-0.0152270133,
0.0232526641,
0.488534838,
-0.0912803188,
0.1816317886,
-0.2126609981,
0.0559426695,
-0.2452741861,
0.3290415108,
0.2647451758,
-0.0670859367,
0.0118724601,
-0.0230085813,
-0.1232945099,
0.0525798313,
0.0917731747,
-0.1653289497,
0.0919114277,
-0.120542869,
-0.2654370964,
-0.1660657227,
-0.2189669013,
0.0960970595,
-0.3439058661,
-0.4318134189,
-0.1703830808,
0.218588084,
0.3581571281,
0.6168692708,
-0.0001192068,
-0.2639675736,
-0.1069825366,
-0.3270840645,
-0.3645769954,
0.0406494401,
-0.0091300262,
-0.3253714144,
-0.1189130098,
-0.1130116433,
-0.1868097037,
-0.239130944,
0.1240130961,
-0.2879823446,
0.8988136649,
-0.2257034481,
0.0568251684,
-0.099519439,
-0.1425752193,
0.0200347826,
0.1949754804,
0.264968127,
-0.0998329222,
0.0275655296,
0.7631841898,
0.2729376256,
-0.1379779577,
0.1158569753,
0.1028815284,
-0.2239881158,
0.0953689143,
-0.2059375644,
-0.0160016622,
-0.3111696839,
-0.0992634371,
0.225462541,
0.4971260726,
-0.2312159687,
-0.2989937961,
-0.3494286239,
0.0848995596,
0.0883639753,
-0.0953717381,
0.3142319918,
-0.0064446116,
0.3016770482,
-0.3257997334,
-0.400929153,
-0.4019842446,
-0.0720783398,
0.2573392689,
-0.1161983013,
-0.0808772817,
0.0244955495,
-0.1471568048,
-0.2198115736,
-0.0584719442,
-0.152537927,
0.0715531558,
0.2345582992,
-0.0675152391,
-0.373277545,
-0.1337956637,
-0.1824215949,
0.6460009813,
0.1989931315,
0.1953391135,
-0.0929711163,
0.1765874624,
-0.0864557549,
0.3882072866,
-0.0132769449,
0.006934823,
-0.3535681665,
0.1602529585,
0.0566457175,
0.0154519752,
-0.0166390948,
-0.3482199609,
0.1194501817,
-0.0780946016,
-0.1198165268,
0.2012996227,
0.1279424131,
0.1323255748,
0.1488921046,
-0.1224232018,
0.0335171595,
0.1445461363,
0.238825798,
-0.1281583011,
0.1534228921,
-0.0863455385,
0.0834686086,
0.160950914,
-0.2093752623,
0.0299157947,
-0.0308845527,
-0.1051061004,
0.330355674,
0.2067346126,
-0.0710581616,
0.0653584003,
0.0247824527,
0.3602226675,
-0.4267211556,
0.1748329401,
0.100282073,
0.0175221544,
-0.1147703975,
0.1647480726,
0.0815891325,
-0.2149351984,
-0.1712438613,
-0.2071364671,
0.1294357032,
-0.1964804828,
-0.2423819155,
-0.0544868819,
0.0102974223,
-0.3162891269,
0.214286834,
0.0043267505,
0.3083494604,
0.0286603644,
-0.0267760213,
-0.0905514732,
0.2809025645,
-0.2474738806,
-0.2410404086,
0.1092096567,
0.612267077,
-0.2852084339,
-0.0807600468,
0.6636143923,
0.0836108848,
-0.5348964334,
0.337461412,
-0.0009945201,
0.1033221856,
0.1066337526,
-0.2227988392,
0.3268622756,
-0.4240097404,
-0.3810769022,
0.4306106269,
-0.2452856153,
-0.1893835664,
0.3636596501,
-0.0155091109,
0.7288665771,
-0.2947200537,
-0.0227385703,
0.3314571083,
-0.0771264732,
0.2354421169,
-0.3025570512,
-0.3982692659,
-0.2546401918,
0.283932507,
-0.2140713185,
-0.1160832793,
-0.1799305677,
0.2502493262,
0.2469003946,
-0.1099306196,
0.3165056109,
-0.1018161848,
0.3639549911,
0.083958298,
-0.0795997679,
-0.0867856964,
-0.7564764023,
-0.1431139559,
-0.0840266272,
-0.3280591965,
0.1860295236,
-0.469692409,
-0.3212248981,
-0.0950616896,
-0.0712462068,
-0.0954312682,
-0.0386247933,
-0.162065804,
0.2539695501,
-0.0796838328,
-0.3652374446,
0.1896642298,
-0.0390114412,
0.1111779511,
-0.1952002347,
0.1073801219,
0.1137767956,
-0.0149338404,
0.2077326775,
0.2578848302,
0.0083847148,
-0.3317627609,
0.3545594215,
0.1319757104,
-0.1336447746,
0.0812666789,
0.1226991564,
0.1317261606,
0.3408950269,
0.2437700629,
0.3483714461,
-0.0439618602,
-0.0989810973,
-0.1442310959,
-0.5008671284,
0.3706681728,
-0.2921044528,
0.1103615239,
-0.153238371,
-0.1345477253,
0.1723106802,
0.0691113025,
-0.2613061965,
0.0681075379,
-0.1646814942,
0.1101447493,
0.3442861438,
0.0879934356,
-0.0871091038,
0.1333630979,
0.3919230103,
-0.216986835,
0.0179703683,
0.0516889989,
0.125505358,
-0.0312473252,
-0.0564964227,
-0.2630294561,
0.1382661164,
0.174677968,
-0.1283720434,
0.0647286773,
0.4244447052,
-0.0671782196,
-0.046236217,
0.0543140471,
0.2298889607,
0.2028604597,
0.3700594306,
-0.1126023456,
0.111656338,
0.0417750254,
0.1205795854,
-0.0568960272,
-0.1817296445,
0.0054913084,
0.1262895912,
0.2495287061,
-0.2198901474,
0.2356101722,
-0.21143426,
0.2134433985,
0.2909430861,
0.1771950275,
0.1042567268,
0.0839726254,
0.2970291972,
0.812556684,
0.0710542351,
-0.251211971,
0.1529861093,
-0.2007248998,
0.3018530011,
-0.03714443,
0.3549654186,
-0.4794067144,
0.2100297213,
-0.1089794487,
0.0352244191,
-0.2428146601,
-0.1994036734,
0.1299561858,
-0.0244707149,
0.1560818255,
-0.1350114942,
0.2721753716,
-0.2808152437,
-0.0307090804,
0.1175481007,
-0.047956977,
-0.1901572049,
-0.2650651932,
0.0197286457,
-0.0658898652,
0.0830077156,
-0.3270964921,
-0.2798152268,
-0.2791700065,
0.5616509318,
0.1398448646,
0.0851489455,
-0.3313441277,
0.1775345504,
-0.152815789,
-0.4699174762,
-0.0373298638,
-0.1394498646,
-0.650654614,
0.186830163,
-0.2666991651,
-0.2523919344,
-0.1978534609,
0.0946911126,
-0.1084746122,
-0.0140737453,
-0.2855159342,
-0.3582027555,
0.1891212761,
0.0941205695,
-0.1096179113,
0.2015244365,
0.3242133856,
-0.2208328396,
0.1413423717,
0.0029683025,
-0.1006144211,
0.2027543485,
0.2374799103,
0.3559160233,
-0.1488822103,
0.3959992826,
0.1915977299,
0.8294721842,
0.6231415868,
0.122664921,
-0.1924660206,
0.1587834358,
0.2736451328,
0.027693931,
0.0053977296,
0.471406579,
0.0324954577,
-0.0321167111,
0.2436347455,
0.4521153271,
0.1945266724,
-0.0915700495,
-0.1980015635,
-0.1404839158,
-0.2652003765,
0.3011283278,
0.3607009947,
0.109663114,
-0.0930911079,
-0.1706572622,
-0.1621375233,
-0.2697303593,
-0.1159673408,
0.1859960705,
0.3794800043,
0.2098851353,
-0.574067533,
0.351595968,
-0.2495235503,
0.1586682945,
0.140762046,
-0.1898964942,
0.1042381451,
-0.0806929395,
0.1455284804,
-0.0503931567,
0.6973090172,
0.2146671265,
-0.1506150961,
-0.2447743714,
-0.0417030305,
-0.3592644334,
0.1269331425,
-0.1086165905,
0.4451130331,
0.4036062658,
0.3771091104,
-0.4491507411,
-0.211876303,
0.1248538643,
0.1288120747,
-0.2049938887,
-0.1730591208,
-0.1876726598,
-0.1642362326,
-0.377286911,
0.2050730586,
0.1352116615,
-0.0898911506,
0.1681879014,
-0.0176591296,
0.0716028586,
0.0904715508,
0.0740085319,
0.2989822626,
0.0289300475,
0.2948355973,
0.1590929031,
0.2529340684,
0.1572227031,
0.0500473268,
0.2393589169,
-0.0101682907,
0.0080417665,
0.2292131931,
-0.1190329269,
0.5664662719,
0.5696604848,
0.1238994598,
-0.1912186742,
-0.4843906462,
0.2945774198,
-0.3479849994,
-0.1847198457,
0.181892544,
-0.1415811777,
-0.2552083433,
-0.2871850729,
0.4790968895,
-0.0409049354,
-0.0847549662,
-0.0073109893,
0.2140119523,
0.0477847084,
0.3040319681,
0.075418368,
1.2021838427,
-0.3742401898,
0.4124623537,
0.0296176765,
0.0230721161,
0.5967462659,
-0.6018072367,
0.0579553172,
-0.4674834907,
0.3419055343,
0.0099591073,
-0.1942118108,
0.0003664497,
0.4258293808,
-0.3690877259,
0.1852416098,
-0.0992700234,
0.4017496705,
-0.2606288493,
0.6654486656,
-0.1651353836,
-0.2708646953,
-0.5053535104,
0.0268537011,
-0.1865066737,
-0.1574732512,
-0.1243919134,
-0.1319155246,
-0.116425395,
0.0982787684,
0.0090543889,
-0.2376278043,
-0.1858520806,
0.0519592091,
0.2512979209,
-0.4156518579,
0.3881492913,
0.2541199923,
0.0387786292,
0.2174840271,
-0.071295023,
0.1556492448,
-0.2833271623,
-0.1055983976,
0.073428005,
0.0579540431,
0.1931793541,
-0.0472869501,
-0.2664123774,
0.1490267664,
0.2791379988,
0.0264126416,
-0.5276998281,
0.1213886961,
0.3254842162,
-0.6069250703,
-0.1746606529,
0.0657306165,
-0.1984007955,
0.084704496,
-0.0115273651,
0.112942718,
-0.0726880133,
0.3060578406,
0.5013999343,
-0.1398215592,
0.068715699,
0.1370405704,
-0.1541067213,
-0.2838394344,
0.1902317107,
0.0829014406,
-0.0459968783,
-0.1814293712,
0.7017865777,
-0.052263815,
-0.1654691994,
0.002363811,
-0.0472079217,
-0.2197891921,
-0.2392240018,
-0.1758709103,
0.3445547819,
-0.0046088267,
0.3115485907,
-0.1323167235,
-0.3046638668,
0.2430795431,
0.1918094009,
-0.0892833918,
0.1325092465,
0.05413194,
-0.0426911376,
0.341714263,
-0.2071314752,
0.1975441724,
0.0837184265,
0.0973499492,
-0.0291047376,
-0.2228957415,
0.0407823771,
-0.1490172893,
-0.1275976747,
0.0000935934,
-0.4162393808,
-0.108900696,
-0.1852499545,
0.2129579186,
-0.0048157508,
0.0500319302,
-0.160601303,
-0.2276464999,
-0.0708594844,
-0.0704790205,
0.2910272479,
0.11542961,
0.3595733941,
-0.2725122273,
-0.108747445,
-0.2252638638,
-0.0278413147,
0.1439146399,
0.2232494205,
0.319173038,
0.1773956418,
0.1701990366,
-0.0306841731,
-0.1751803309,
-0.0639687106,
0.4981128573,
0.5956969261,
0.1428245008,
0.2591727376,
-0.0916401744,
0.0654433072,
0.1437787861,
0.1729608029,
0.4379862547,
-0.2449677438,
0.1943521202,
0.0463157594,
0.0678836703,
0.0662230328,
0.151655063,
0.4133434296,
0.0555795394,
-0.0465083756,
0.4429085255,
-0.0431636497,
-0.0476902276,
-0.1148666292,
0.141547367,
0.5450330973,
0.1170209795,
-0.1232798323,
-0.0620593578,
-0.0437409244,
-0.2136628032,
0.4176059961,
0.2818897069,
0.148614049,
-0.0748079494,
-0.1218434423,
0.1668070257,
-0.0911473855,
-0.000537089,
0.2861867845,
0.0570839047,
-0.2213192433,
0.3472091258,
0.3019326925,
-0.0726383328,
-0.0794750974,
0.7899211049,
0.2486392558,
-0.3020102382,
-0.1370298117,
0.1681547463,
0.0844283849,
-0.163967222,
-0.1675735563,
-0.1863091737,
-0.2095090449,
0.0558711998,
-0.2976076007,
-0.5191307068,
0.2120481133,
0.2914508581,
0.3409847617,
-0.1082469821,
0.139407292,
0.1057223827,
0.3179249763,
-0.2273090333,
0.2871840298,
0.1986710429,
0.2035992295,
0.177316457,
0.1962611228,
0.1064812765,
-0.1156353801,
-0.2542617321,
0.3833445609,
-0.3681044579,
0.0694550872,
0.1000270322,
0.0070874067,
0.1284894943,
-0.3347005546,
0.2503022254,
-0.0142430719,
-0.0067664208,
-0.1343009919,
0.1866586059,
-0.4374965727,
-0.2581465244,
-0.2774604559,
-0.1609299779,
-0.2395210862,
-0.1330558509,
-0.0723272935,
-0.4454120696,
0.0130422562,
0.1621601582,
-0.1418962181,
0.2449498028,
-0.0729926899,
0.0302720852,
-0.0948016718,
0.238256976,
0.0311883874,
-0.1155202761,
0.0092399819,
-0.1175477654,
-0.2322064191,
0.0562543795,
-0.1899394691,
0.1283694506,
-0.1862631291,
0.5108602047,
0.1144768223,
0.5743864179,
-0.1525535285,
-0.0378385112,
-0.4141387343,
-0.1009270251,
-0.4872947335,
0.0679347366,
0.0629955158,
0.579443574,
0.2389270365,
-0.0967683047,
0.2277924567,
0.0356468819,
-0.1824697703,
-0.0455814749,
0.1363379359,
-0.344784379,
-0.5008978844,
0.0660582706,
-0.0611400194,
0.0389653258,
0.0871230066,
-0.2023594677,
-0.2704786956,
-0.0451457724,
-0.1055655554,
0.2444247901,
0.2704152167,
0.1172907054,
-0.3241795897,
-0.3725756407,
0.0234500859,
0.002223663,
-0.168112278,
-0.1866527349,
-0.1840442121,
-0.2977955639,
-0.0467760637,
0.2462061048,
-0.0516111068,
0.5003598928,
-0.427385062,
0.1211484447,
-0.1787668467,
-0.025716437,
0.6111913919,
-0.156088993,
-0.2255623043,
0.0675890595,
0.329967469,
0.2188189477,
-0.1582419127,
-0.2939793468,
0.3241057396,
0.1196347401,
-0.012814194,
-0.1734103262,
0.1478222907,
-0.3205632269,
-0.2897045612,
-0.1444608867,
0.2264078259,
-0.0070549576,
-0.0719319284,
-0.1444686055,
-0.2662914097
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way.
If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware.
Are there any compression or optimization algorithms while generating the dataset ?
Otherwise the hardware limit is around 32 GB ram at the moment.
If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 93 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way.
If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware.
Are there any compression or optimization algorithms while generating the dataset ?
Otherwise the hardware limit is around 32 GB ram at the moment.
If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly. | [
-0.0783766881,
-0.3369031549,
-0.1021033376,
0.3794316053,
0.2913860381,
-0.0967135206,
-0.1217117533,
0.5122983456,
-0.0272252634,
0.1946525425,
-0.285615921,
0.0614132397,
-0.2502670884,
0.2593443692,
0.3205590844,
-0.0886087418,
0.1549794227,
0.0823776126,
-0.2040609717,
0.0569107495,
0.0637137964,
-0.103285417,
0.061225649,
-0.1653319001,
-0.3009232283,
-0.1412982792,
-0.288174063,
0.1138914526,
-0.3934970498,
-0.3375557661,
-0.2448665798,
0.217166543,
0.1611698568,
0.6473472118,
-0.0001227837,
-0.1961067468,
-0.14377895,
-0.3495813906,
-0.2894808352,
0.1330735534,
-0.0990353152,
-0.3333493471,
-0.161425814,
-0.1127131879,
-0.1404914707,
-0.2584021389,
0.1062349752,
-0.3380099833,
0.7726531625,
-0.1852615476,
0.006899884,
-0.1393992305,
-0.0483221523,
0.0074565797,
0.247870639,
0.2530166805,
-0.1029361039,
0.0350585096,
0.624014616,
0.3569604456,
-0.0175891872,
0.0792305022,
0.0387503356,
-0.1803487539,
0.0834918767,
-0.1305764019,
-0.0905048698,
-0.3459358513,
-0.0884471983,
0.2567332387,
0.4648340046,
-0.2146344632,
-0.2226941586,
-0.1702955514,
-0.0250917692,
0.1221155524,
0.0624894723,
0.412057817,
-0.1602799445,
0.3520798981,
-0.3435671926,
-0.4413898885,
-0.3995462954,
-0.093554154,
0.2771207094,
-0.0322668739,
-0.1175544858,
-0.0084745688,
-0.1265732646,
-0.1373978108,
-0.1024046019,
-0.139724046,
0.0183653217,
0.1883071363,
-0.0581439212,
-0.3634128571,
-0.3048734069,
-0.2218265384,
0.7251414657,
0.2197365463,
0.3265012801,
-0.04571319,
0.3206256926,
-0.0938944593,
0.2684269845,
-0.0021523905,
-0.2191835493,
-0.4172417819,
0.1518900245,
-0.0420653298,
0.0057597617,
-0.0518733226,
-0.2956550121,
0.169185549,
-0.1634945273,
-0.2331245244,
0.286167413,
0.1393419504,
0.0892822444,
-0.0214982945,
-0.231885314,
0.0085959649,
0.0988225192,
0.2212495655,
-0.1391444355,
0.1223288924,
-0.1243347526,
-0.0346259102,
0.2165813893,
-0.2578245997,
0.0529310778,
0.0112323249,
-0.0714399591,
0.3470555842,
0.2074623555,
-0.0121736135,
0.0128074791,
0.0960283428,
0.3481054306,
-0.3639539182,
0.1384863853,
-0.0333425961,
0.1040717289,
0.0320234299,
0.1444004476,
0.0015518811,
-0.2644880414,
-0.0145271365,
-0.2976857126,
0.0540184006,
-0.2035524547,
-0.3303638101,
-0.0882691741,
-0.0250278041,
-0.1353703439,
0.3116152585,
-0.1619094014,
0.3599741161,
0.0874315798,
0.0490744635,
-0.1137857363,
0.4489846826,
-0.218291536,
-0.2930987179,
0.1602413952,
0.5045282841,
-0.2007538378,
0.0229593348,
0.6979805231,
0.0560174026,
-0.2464075387,
0.4481516778,
-0.0043965946,
0.1359654069,
0.0660853833,
-0.1463231444,
0.2523390651,
-0.4034133255,
-0.3938645422,
0.5243746042,
-0.1237470955,
-0.2651091218,
0.5103117228,
0.0308409519,
0.7380933762,
-0.2041794956,
0.0067873034,
0.4657240212,
-0.0756599307,
0.2678141296,
-0.2925254703,
-0.3666589558,
-0.1064670011,
0.1976787001,
-0.3410524726,
-0.1301358342,
-0.1742991507,
0.269467473,
0.0851778835,
-0.1051845625,
0.3670707345,
-0.1038187891,
0.362627387,
0.0368107073,
-0.0351080708,
-0.0798207298,
-0.7069565654,
-0.175460875,
-0.1475106627,
-0.1815336496,
0.1756397188,
-0.4423538744,
-0.2127517611,
-0.0871237144,
-0.043607071,
-0.0111228926,
-0.0349131413,
-0.119697772,
0.289719969,
-0.2063935697,
-0.4174752235,
0.3462842107,
-0.004427128,
0.0942244381,
-0.0401615947,
0.1176770329,
0.0820626244,
-0.0380719639,
0.2208337635,
0.1245054007,
-0.0227843784,
-0.3221153915,
0.2823006809,
0.1625126004,
-0.1242315471,
0.0515117459,
0.169848457,
0.064946346,
0.3528200984,
0.1846908182,
0.453672111,
0.0004365287,
-0.0661332831,
-0.1742688119,
-0.5200105906,
0.2481520474,
-0.3177939653,
0.1537083089,
-0.0739712045,
-0.1496353298,
0.2833904624,
0.0238925535,
-0.1768896282,
0.0129620964,
-0.0836065561,
0.1472510546,
0.3329168558,
0.2726940811,
-0.1475752741,
0.143681407,
0.383988589,
-0.1751170307,
0.0854559317,
0.1256879866,
0.1638942659,
-0.2880840898,
-0.0547323972,
-0.2870212495,
0.0964186564,
0.2132014036,
-0.1603957862,
0.0219214968,
0.3833084106,
-0.0723186359,
-0.0162215084,
0.0359258689,
0.2771427333,
0.2381758094,
0.3160500228,
-0.060421709,
0.0092024785,
-0.0110465009,
0.2079131305,
-0.0585527681,
-0.0915654227,
-0.0322171748,
0.0701838881,
0.2753454745,
-0.0765449628,
0.2308808714,
-0.2097187489,
0.2561207414,
0.2956337333,
0.0528662205,
0.1372469068,
0.0791647136,
0.4016392231,
0.7862684727,
0.0490036458,
-0.175912112,
0.039161548,
-0.1600471288,
0.3815577328,
-0.0766045824,
0.364877671,
-0.2340542227,
0.285295397,
-0.0613861121,
-0.018728679,
-0.2080342919,
-0.0753425509,
0.2011941969,
0.01413358,
0.1661961526,
-0.1607530862,
0.2517768145,
-0.2142988145,
-0.0036299631,
0.1522034854,
0.1000919864,
-0.3120242953,
-0.1916682571,
-0.1176369339,
-0.1503311396,
0.0887131989,
-0.2238150388,
-0.2860087156,
-0.3231348395,
0.5092949271,
0.0681105703,
0.1934664547,
-0.4624146223,
0.18380633,
-0.0821282119,
-0.4521048665,
0.0322986431,
-0.1644723415,
-0.6774639487,
0.2262756824,
-0.2423989624,
-0.2435350716,
-0.3196677268,
0.1436237991,
-0.0644795969,
0.1405669749,
-0.1824054569,
-0.1861158013,
0.0617916025,
0.0786860064,
-0.0438218862,
0.1198417693,
0.42116642,
-0.1456256509,
0.0989599973,
-0.0075255362,
-0.0118149342,
0.1747242063,
0.2913621366,
0.2135714293,
0.0852979049,
0.4512494802,
0.1385155469,
0.755805254,
0.6317539215,
0.2200106531,
0.0183605161,
0.1004883125,
0.2332386822,
-0.0699923635,
0.029902488,
0.4696425796,
0.0082811499,
0.0165154636,
0.2120722383,
0.3998871446,
0.1686698943,
-0.1937046051,
-0.2370008826,
-0.1864974797,
-0.1431632787,
0.3246113658,
0.3430020809,
0.1465076953,
-0.1356235743,
-0.3484303355,
-0.1745058745,
-0.2955266535,
-0.1150363609,
0.1036042124,
0.3208521605,
0.1508606523,
-0.5605381131,
0.2728165984,
-0.3879009783,
0.0726886615,
0.1514028609,
-0.2291638702,
0.0294449776,
0.0330013707,
0.2058226913,
-0.1313831061,
0.693565309,
0.2362895012,
-0.2052285671,
-0.2848114073,
-0.0359155908,
-0.2962573767,
0.2041636109,
-0.1618207991,
0.5082669854,
0.4002025723,
0.4520648122,
-0.5513502359,
-0.2969152927,
0.0719205737,
0.1676054299,
-0.1722218245,
-0.1284497976,
-0.1660271138,
-0.2056512535,
-0.4376522601,
0.0472208038,
0.229011327,
-0.0335298553,
0.3272566795,
-0.2375563532,
0.0065540471,
0.1567456424,
0.1071837693,
0.2076042295,
0.010835995,
0.0887904242,
0.1709647626,
0.1252225488,
0.1800395399,
0.0761867091,
0.2360606194,
-0.0082590794,
0.1217345223,
0.1745823324,
-0.0739690959,
0.5832383633,
0.5046693087,
0.1077761129,
-0.2305303663,
-0.4071766436,
0.3388231397,
-0.4252403677,
-0.2050827146,
0.1855166405,
-0.1453348547,
-0.3102447093,
-0.1364735663,
0.5063796639,
0.0255235489,
-0.0999762416,
0.0701605007,
0.305207938,
-0.0552939326,
0.3334282935,
0.211961329,
1.3463046551,
-0.4943514466,
0.3390042484,
0.0765282065,
0.0472706445,
0.5080580115,
-0.6566588879,
0.1013208702,
-0.3028970361,
0.4036855996,
-0.0521731526,
-0.1514640898,
0.0093570417,
0.4282866716,
-0.451657474,
0.0899513066,
-0.0964670107,
0.5072119236,
-0.2389474809,
0.6394392252,
-0.1891428679,
-0.435172677,
-0.5924043059,
-0.0121851284,
-0.2395350933,
-0.2794210911,
-0.0270987079,
-0.1196104884,
-0.1436289996,
0.121797435,
-0.0202175509,
-0.1796542555,
-0.1806993634,
0.1566818804,
0.2039216012,
-0.367169559,
0.2174374312,
0.1902774125,
0.0093963789,
0.1367940903,
-0.0319666751,
0.0622282997,
-0.2395299375,
-0.2782291472,
-0.00297297,
0.0376257077,
0.0989114419,
-0.1177294552,
-0.2227041572,
0.024167968,
0.203792721,
-0.0684640482,
-0.3939575255,
0.0621111207,
0.2243218273,
-0.5619938374,
-0.1515210718,
0.0598465912,
-0.2130892873,
0.0352246538,
-0.0463198461,
0.1275072545,
-0.1143168658,
0.3470392227,
0.4972393215,
-0.0826009884,
0.0394031256,
0.1234401315,
0.0842718482,
-0.2444633543,
0.0904161334,
0.017551776,
-0.1470633745,
-0.1831601113,
0.6808384657,
-0.1280509531,
-0.1843751669,
0.1817665994,
-0.1097549051,
-0.2629246414,
-0.2936281264,
-0.1062045321,
0.3944664598,
0.0346633308,
0.2410097718,
-0.1528385133,
-0.3036345243,
0.3529014587,
0.165828988,
-0.0642143339,
0.0199689493,
-0.0322633311,
-0.0536762737,
0.4111750424,
-0.1823550463,
0.1870314926,
-0.0284993015,
0.1000977531,
0.0070200306,
-0.2458524853,
0.0349533148,
-0.0541424528,
-0.1004569307,
-0.058720585,
-0.3416645527,
-0.0649622232,
-0.112652272,
0.2282746583,
0.035027612,
-0.0051639248,
-0.1717702299,
-0.2853635252,
-0.2156922072,
-0.1201679632,
0.2445325851,
0.1376600862,
0.2847689092,
-0.4812833965,
-0.070033066,
-0.2733209431,
-0.0208821632,
0.176497072,
0.2403640151,
0.4069958925,
0.0657456219,
0.1164227724,
0.0257410184,
-0.2583559453,
-0.1290076375,
0.513009131,
0.6452720761,
-0.0499842428,
0.296461612,
-0.1205542535,
-0.0449700095,
0.1943708658,
0.0887431055,
0.3183447421,
-0.2586117089,
0.2076939046,
-0.0824155658,
0.0033088538,
-0.0045902226,
0.0779855028,
0.4187324941,
-0.0612086132,
-0.0862049013,
0.3684052527,
0.0509825796,
-0.1309065819,
-0.1961297542,
0.0988641828,
0.5369049907,
0.1139389277,
-0.2775095999,
-0.138720423,
0.04443698,
-0.1400187612,
0.3737181127,
0.3407341838,
0.2538030744,
0.1215059757,
-0.0502988435,
0.2065767348,
-0.0334901102,
0.1297723055,
0.3383567631,
0.1459896266,
-0.1616293937,
0.5025840402,
0.1897348464,
-0.0794504285,
-0.1083903387,
0.7325357199,
0.205728814,
-0.2239214182,
-0.195145905,
0.2171822637,
0.075138323,
-0.0824085847,
-0.1666921228,
-0.2654823065,
-0.1495412439,
0.1284290254,
-0.155043751,
-0.4121456146,
0.3357381821,
0.3109164238,
0.3543127179,
-0.0016941685,
0.3048439622,
0.1883200407,
0.278880924,
-0.2487305105,
0.3172353804,
0.2447415441,
0.0605279282,
0.0113729145,
0.2793510258,
0.186078757,
0.0290332716,
-0.3341405988,
0.4661575854,
-0.2991471589,
-0.0593524389,
0.0884761736,
0.0756328702,
0.1885122806,
-0.2831536531,
0.0931999832,
-0.0624142177,
0.015281437,
-0.2855527401,
0.2223765105,
-0.2917850018,
0.0057019889,
-0.3255161941,
-0.210881412,
-0.2124381512,
-0.0355387665,
-0.033516638,
-0.4937590063,
-0.142413497,
0.0535330512,
-0.222622633,
0.1521716118,
-0.0021527654,
0.0078372806,
-0.1211433262,
0.3348331153,
-0.0853761584,
-0.0122719854,
0.0159885362,
-0.2567744851,
-0.1191204935,
0.0258223452,
-0.2218970358,
0.095595926,
-0.184951365,
0.6031040549,
0.0857096016,
0.6102771163,
-0.2274636924,
0.0018810991,
-0.3210498095,
-0.0815694779,
-0.4122190177,
0.1538255066,
0.1515183002,
0.5324701667,
0.2032715529,
-0.2592146993,
0.4004766941,
-0.0103035308,
-0.1934351474,
-0.1263656467,
0.2541643977,
-0.2773372531,
-0.4143599272,
0.0231941883,
0.0662836432,
0.0857775211,
0.0313285738,
-0.2379301935,
-0.0508216284,
-0.0020789537,
-0.0265583973,
0.1445008367,
0.4534953535,
-0.0059606517,
-0.3527194262,
-0.2872934043,
0.1072690785,
0.2053966522,
-0.2066510767,
-0.1218010262,
-0.03565659,
-0.3302614093,
-0.096976757,
0.172326982,
0.0188209601,
0.3120366931,
-0.3507350981,
-0.0494741239,
-0.2220898867,
-0.0489442125,
0.4450859725,
-0.095023185,
-0.2620285749,
-0.0134489685,
0.2686888874,
0.1577761024,
-0.0673219636,
-0.3039140403,
0.2149632573,
0.0775250643,
-0.0427086577,
-0.202512309,
0.2626697421,
-0.1757561564,
-0.2539326251,
-0.1284461766,
0.1256447881,
-0.0831006318,
-0.1376431733,
-0.2562359869,
-0.1987883002
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | 15-20 minutes is fine !
Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default.
After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 41 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
15-20 minutes is fine !
Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default.
After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping. | [
-0.1409039497,
-0.2805248201,
-0.1005572304,
0.2925080061,
0.2343990505,
-0.0667674169,
-0.0066275923,
0.4827185869,
-0.0046405708,
0.101258181,
-0.2878575325,
0.017063139,
-0.2403966337,
0.2706011534,
0.2778702974,
-0.0782356039,
0.0859451964,
-0.0013715298,
-0.1129798368,
0.0685324743,
0.1218716428,
-0.178597331,
0.0677227229,
-0.166217953,
-0.3052947521,
-0.1456220448,
-0.1592085063,
0.137563765,
-0.375318855,
-0.3739069104,
-0.2109330595,
0.2612873912,
0.2146435678,
0.5602200031,
-0.0001202043,
-0.161331296,
-0.0782385543,
-0.3438850641,
-0.3753675818,
0.1145759001,
-0.1013669223,
-0.3235393167,
-0.1401278824,
-0.1104311496,
-0.2038572133,
-0.1932174116,
0.1400706023,
-0.3323160708,
0.7989580035,
-0.1259252429,
0.0317239054,
-0.0380416214,
-0.0403265879,
-0.0242628437,
0.2425186336,
0.2816528976,
-0.0964005515,
0.018754743,
0.664738059,
0.3354052305,
-0.1760162413,
0.0907360911,
-0.0098587051,
-0.1400216818,
0.1098085865,
-0.184220165,
-0.1575743407,
-0.2615039945,
-0.0657863095,
0.2858432233,
0.5030139089,
-0.2781634331,
-0.1896305978,
-0.2847803235,
-0.0658236369,
0.1196044534,
0.0054941862,
0.3605893552,
-0.0875720382,
0.3904540539,
-0.2851336002,
-0.4337235391,
-0.3542931676,
-0.0511338748,
0.2782336175,
-0.042149432,
-0.1095743701,
0.0358317196,
-0.1736291051,
-0.1611448228,
-0.1055143178,
-0.1820170432,
-0.0435579233,
0.1951274127,
-0.0500387438,
-0.3236090243,
-0.1228354648,
-0.2667887211,
0.7373469472,
0.2351014614,
0.2762565017,
-0.0252915956,
0.2214844376,
-0.0559959151,
0.349958986,
0.0007973853,
-0.1983939856,
-0.3956944942,
0.1951480508,
0.0411392599,
-0.0147487,
-0.1023098826,
-0.2278899848,
0.1696131527,
-0.1113715619,
-0.2389043719,
0.2255723178,
0.1624681801,
0.0749957934,
0.0988062099,
-0.1190233082,
-0.0564193986,
0.1590623856,
0.2800047398,
-0.1008723602,
0.1065987274,
-0.0931566283,
0.0426951125,
0.2466718405,
-0.2234209776,
0.0033718857,
-0.054961253,
-0.1067690849,
0.2609634697,
0.249768883,
0.0787075609,
0.0633993521,
-0.0406716317,
0.325479418,
-0.2624432147,
0.1954027265,
-0.0300897062,
0.0556433275,
0.0270400569,
0.1214145571,
0.0723469704,
-0.2507171631,
-0.0373628139,
-0.2716752589,
0.0664347187,
-0.1702027768,
-0.361800462,
-0.0369635224,
-0.0000425915,
-0.2681349814,
0.2985505164,
-0.1272267252,
0.3165004253,
0.0211926587,
0.0033344729,
-0.0748793557,
0.4382681251,
-0.2252083719,
-0.2618328035,
0.0783004537,
0.5588119626,
-0.1850253642,
-0.0162684936,
0.6108696461,
-0.0059923017,
-0.3543796539,
0.3948064446,
0.0075897244,
0.1504802704,
0.034625534,
-0.1278948039,
0.2690083086,
-0.4436070025,
-0.4289492071,
0.5240533352,
-0.1946698576,
-0.2246603221,
0.4402688444,
0.0410945974,
0.6278271675,
-0.2429338247,
0.0849854201,
0.4986979365,
-0.0221916325,
0.3013455868,
-0.2948740125,
-0.3466869593,
-0.1763309091,
0.3227971792,
-0.2370017618,
-0.19503887,
-0.2147206962,
0.2757807374,
0.118271105,
-0.0507150963,
0.3458010852,
-0.0659846067,
0.34650141,
-0.0189721249,
-0.1091038659,
-0.0796733722,
-0.7441958189,
-0.1172305271,
-0.0487522557,
-0.1769841164,
0.1242548898,
-0.3950258195,
-0.2437802553,
-0.0272532534,
-0.0753840879,
-0.0389587283,
-0.0110306293,
-0.1466058791,
0.2431040108,
-0.062429633,
-0.4239655435,
0.2198780477,
0.0312685706,
0.1088755578,
-0.0517490171,
0.1104814932,
0.1083669737,
0.0403882004,
0.2250184566,
0.1406450868,
-0.0452482849,
-0.2843993604,
0.3054433167,
0.1263496578,
-0.1156670898,
0.033857666,
0.0939444453,
0.1244294122,
0.3205665946,
0.2131882757,
0.3468077183,
-0.0148208356,
-0.0581189431,
-0.2420779169,
-0.5757759213,
0.2814452052,
-0.320279032,
0.1856945455,
-0.101629138,
-0.1921324283,
0.3548841476,
0.022458801,
-0.2167507112,
0.0203053243,
-0.0939086005,
0.1647086889,
0.4010159671,
0.2314790934,
-0.1395998895,
0.11833065,
0.4107492864,
-0.1698398441,
0.0859566107,
0.1295026839,
0.1112830788,
-0.2252753973,
-0.0007231017,
-0.3508840203,
0.135192737,
0.1990707368,
-0.1331205368,
-0.0045661936,
0.4250625372,
-0.1296105981,
-0.0679169074,
-0.0029469605,
0.2279081047,
0.2689404488,
0.418539077,
-0.1249468178,
0.040938139,
-0.0680256784,
0.1883983165,
-0.0257454533,
-0.0917410031,
-0.0187234692,
0.1817602813,
0.270044297,
0.0131418873,
0.2449395061,
-0.154484719,
0.2557694316,
0.3178785741,
0.1129627079,
0.0277429223,
0.0555844605,
0.3220247924,
0.7086126208,
0.1092419624,
-0.3408539295,
0.027089702,
-0.2112100869,
0.4393978715,
-0.0549040921,
0.4286056459,
-0.3180978894,
0.2616626322,
-0.0354952626,
-0.0042360676,
-0.1711005867,
-0.0890164301,
0.2154260725,
0.0497117192,
0.2052055597,
-0.1179559454,
0.3070599735,
-0.2029968798,
-0.0046426454,
0.1793082356,
0.1094412431,
-0.2314157486,
-0.1409710944,
-0.0624789447,
-0.1398593783,
0.0873499513,
-0.1704574525,
-0.2106009424,
-0.3970165849,
0.5515092611,
0.0806932598,
0.0940168351,
-0.4090313911,
0.1804582924,
-0.123949267,
-0.4157427847,
0.0509496145,
-0.1454326361,
-0.7269209623,
0.2046376169,
-0.1891167164,
-0.2277169228,
-0.3275861144,
0.0779181048,
-0.0304901153,
0.0789903626,
-0.3037674129,
-0.201658681,
0.0868928805,
0.1434852034,
-0.0471299775,
0.0897522047,
0.3968957365,
-0.1114343926,
0.0900505036,
0.0583491847,
-0.0112754768,
0.1375249177,
0.2120563686,
0.2483747751,
-0.0091646174,
0.4458049238,
0.1821146309,
0.78293854,
0.4851697683,
0.2196802348,
0.0542258769,
0.1727018058,
0.2754834592,
-0.1015149802,
0.0198387988,
0.4424995184,
0.0342321843,
-0.0314425938,
0.1802773923,
0.3919911683,
0.1098083705,
-0.2056758553,
-0.295473069,
-0.1570940614,
-0.2163414806,
0.3759025633,
0.4015354812,
0.1393618137,
-0.0524315201,
-0.2696832418,
-0.141092658,
-0.2912504971,
-0.1208148599,
0.1347862333,
0.4174837172,
0.1133312508,
-0.5920680761,
0.3075258732,
-0.3974335194,
0.0312744528,
0.0325437374,
-0.2528342307,
-0.012198505,
-0.0051419889,
0.1667620242,
-0.1427384466,
0.6802514791,
0.232790485,
-0.0449016839,
-0.1984284669,
-0.0244641583,
-0.325137645,
0.2406825423,
-0.1463400275,
0.4969028831,
0.4652559459,
0.4515277743,
-0.5926410556,
-0.2258892208,
0.0128849596,
0.139244929,
-0.1968649328,
-0.2128095478,
-0.1484230757,
-0.2182442844,
-0.4754296541,
0.103696622,
0.2383099198,
-0.0439608097,
0.3554884791,
-0.0784147233,
-0.0193680283,
0.1624198407,
0.0449253097,
0.2307017297,
-0.0484962203,
0.0834058821,
0.2023902088,
0.1278285831,
0.1726063639,
0.1032774672,
0.2818634212,
0.0337033905,
0.0903198868,
0.1233195662,
-0.0085222395,
0.4882118404,
0.5183215737,
0.1435089707,
-0.1499525607,
-0.4515413642,
0.355483979,
-0.4063183963,
-0.1295851618,
0.1299925596,
-0.152333349,
-0.3432393968,
-0.1775956005,
0.4651441276,
-0.0613242686,
-0.1151961163,
-0.0126699246,
0.2484808266,
-0.0358066671,
0.3706610501,
0.1062934473,
1.2893744707,
-0.4414869845,
0.3910548389,
0.0752177089,
0.051557079,
0.5166637301,
-0.7395324111,
0.0685654953,
-0.3477135897,
0.3740769327,
0.0072500235,
-0.1791781187,
-0.0398701467,
0.438375771,
-0.3424453139,
0.1081088781,
-0.1384115219,
0.4814707637,
-0.2609599829,
0.7284733653,
-0.135139361,
-0.389667958,
-0.5786442757,
0.0151581494,
-0.2396694869,
-0.2095907331,
-0.0710888728,
-0.1450629532,
-0.0771522298,
0.0842653513,
-0.061164435,
-0.2490499169,
-0.1270488203,
0.1089503989,
0.2076438516,
-0.3685161769,
0.2751115859,
0.2031454742,
-0.0403280221,
0.2738543749,
-0.0496898815,
0.1429561377,
-0.2844426334,
-0.2363250852,
0.02901485,
0.0374846607,
0.1495346278,
-0.095947966,
-0.2634081841,
0.0929511935,
0.1497385353,
-0.0544797592,
-0.3979588747,
0.1247566566,
0.2053518146,
-0.5689502358,
-0.2819283605,
-0.017832173,
-0.261829406,
0.0751781538,
-0.025300527,
0.1577111036,
-0.0735869184,
0.2400543988,
0.4915740192,
-0.0909969285,
-0.0074916235,
0.1820627749,
-0.0016059594,
-0.2429550886,
0.1702007651,
0.1188003421,
-0.1442970634,
-0.196918413,
0.6800794005,
-0.0105391825,
-0.1847031564,
0.140496403,
-0.0037366694,
-0.2887130082,
-0.3659246564,
-0.2099347115,
0.3386263251,
-0.0608954355,
0.3054252863,
-0.1639447957,
-0.3691944778,
0.3123011887,
0.1857190281,
-0.0890097022,
0.0912580341,
-0.0316651873,
-0.0656615496,
0.3900133371,
-0.207212165,
0.2037012279,
-0.0131285191,
0.0936947316,
-0.0155115621,
-0.2478205115,
0.0741371065,
-0.1320338398,
-0.0739759952,
-0.0639434308,
-0.3755155206,
-0.1119010299,
-0.1430514753,
0.225071907,
0.0496236719,
-0.0759970024,
-0.1169423312,
-0.3477753401,
-0.1839896291,
-0.1219804287,
0.2752690315,
0.1719346493,
0.2944330275,
-0.483178854,
-0.1036857292,
-0.2874083817,
-0.0232173167,
0.2090698779,
0.2285809964,
0.4083470404,
0.1109562516,
0.0994685888,
0.0517554767,
-0.1989714354,
-0.0265354104,
0.5146841407,
0.6444924474,
0.0973292068,
0.350682497,
-0.1245426089,
-0.0084525989,
0.1809657514,
0.1210118756,
0.2879492342,
-0.2791025043,
0.2501027584,
-0.0425304063,
0.0509491451,
-0.0465702936,
0.0771990269,
0.3802141845,
0.0022437584,
0.0142668094,
0.3488171697,
-0.0120905675,
-0.0625252351,
-0.1603216231,
0.1511817425,
0.5711219311,
0.2238796353,
-0.2705691457,
-0.1246121302,
-0.044925414,
-0.1669438183,
0.3977622092,
0.3459733129,
0.2794701159,
0.0859213993,
0.0093364874,
0.1830566674,
-0.0191016048,
0.0822952166,
0.2479449958,
0.0310270339,
-0.1983717233,
0.4128296971,
0.2662299275,
-0.0667299405,
-0.1031137556,
0.6514555216,
0.2968407273,
-0.1370080411,
-0.1608638912,
0.1697642207,
0.0429072641,
-0.1430212408,
-0.1048241779,
-0.2766444087,
-0.1550352722,
0.1510587633,
-0.2287662923,
-0.461001426,
0.2058515996,
0.2624770701,
0.3755552173,
-0.0212108493,
0.3653201759,
0.1804875731,
0.2209102362,
-0.2141548246,
0.3091765344,
0.2817085087,
0.1266262829,
0.1267701834,
0.2018476874,
0.1727319658,
-0.0063073072,
-0.3402144611,
0.4396514595,
-0.3761489987,
-0.0535259768,
-0.050260175,
0.1068721265,
0.2075186819,
-0.2797422111,
0.173198387,
-0.0248784032,
-0.0364814773,
-0.2087844759,
0.2289432734,
-0.3709007204,
-0.0412517264,
-0.3318807781,
-0.224604547,
-0.2519367039,
-0.086491704,
-0.128493309,
-0.4553544521,
-0.0998796597,
0.1338513792,
-0.1839461774,
0.2526099682,
-0.0441519469,
0.0109280711,
-0.1301109493,
0.3143854141,
-0.0782675222,
-0.0487825163,
-0.0527888611,
-0.1989184022,
-0.2017157823,
0.0232768487,
-0.2842141986,
0.1540017128,
-0.1881952435,
0.5003316402,
0.121784322,
0.5847206116,
-0.2400673628,
0.0708098784,
-0.3883979917,
-0.0536919273,
-0.3941107094,
0.0806148052,
0.0448233709,
0.5533948541,
0.1747605652,
-0.2300333083,
0.2786175609,
0.0650686026,
-0.149740994,
-0.160481751,
0.21791704,
-0.3197431862,
-0.4120728076,
0.1225444973,
0.0465594642,
0.0845952556,
0.0053301272,
-0.2420696318,
-0.1329423487,
-0.0373047218,
-0.0050692968,
0.196452111,
0.3821802735,
0.0558501631,
-0.3367775083,
-0.3499858975,
0.0738334283,
0.12019898,
-0.2507036328,
-0.1465730369,
-0.1684763432,
-0.3080816865,
-0.1748038232,
0.2735370696,
-0.0702433214,
0.3493784368,
-0.38274014,
-0.0261937194,
-0.201138258,
-0.0583674125,
0.501427114,
-0.1039117873,
-0.2714807987,
0.0784857273,
0.1943378299,
0.1541591138,
-0.046897158,
-0.3567617834,
0.297819674,
0.0858594477,
-0.0381602906,
-0.2461089343,
0.1744018793,
-0.2112902403,
-0.2963836491,
-0.1303200871,
0.1746080518,
-0.0511537567,
-0.1387958527,
-0.2719121873,
-0.1896782964
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | Wow, that sounds pretty cool.
Actually I have the problem of running out of memory while tokenization on our local machine.
That wouldn't happen again, would it ? | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 28 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
Wow, that sounds pretty cool.
Actually I have the problem of running out of memory while tokenization on our local machine.
That wouldn't happen again, would it ? | [
-0.004863366,
-0.2359239906,
-0.0683036968,
0.2993223965,
0.2564297915,
-0.1159563586,
0.0191382449,
0.4660227001,
-0.0982001647,
0.1532813162,
-0.2599273622,
0.0292081628,
-0.2432350963,
0.2509177029,
0.3011698723,
-0.0480410866,
0.1664877236,
-0.0175051708,
-0.0354579911,
0.0578787737,
0.1524418145,
-0.1213409156,
0.0502191409,
-0.1121685877,
-0.3433027565,
-0.1410205215,
-0.222721085,
0.1154345274,
-0.3829270899,
-0.3995328844,
-0.3136951327,
0.2566598356,
0.2417445481,
0.5677555203,
-0.000122708,
-0.2018594891,
-0.0883840024,
-0.3403652012,
-0.311219722,
0.0545594133,
-0.0006790638,
-0.3438967764,
-0.1172074825,
-0.1090767011,
-0.1672704667,
-0.2621127963,
0.1045964956,
-0.2872920036,
0.8023908138,
-0.1858518869,
0.0164927077,
-0.0162659567,
-0.1020798013,
0.0746311471,
0.1943787336,
0.3218398392,
-0.0402475744,
-0.014388348,
0.6634314656,
0.2563696206,
-0.1557704955,
0.0979118794,
-0.0329950713,
-0.1636568755,
0.0506472364,
-0.1566649079,
-0.1782925874,
-0.1981965601,
-0.0039010358,
0.1783848703,
0.398147732,
-0.3300260603,
-0.1373395622,
-0.2405588031,
-0.110001184,
0.0567666404,
0.0279384498,
0.3217485547,
-0.0983809978,
0.3943788111,
-0.3018190563,
-0.4261780977,
-0.3479032815,
-0.008125673,
0.1863965392,
0.0747399926,
-0.1123986468,
0.0162325073,
-0.2107530087,
-0.208416447,
-0.1750333458,
-0.1212714911,
-0.0562755056,
0.1857764125,
-0.0294534788,
-0.3806008399,
-0.1769763678,
-0.3344237804,
0.7397292256,
0.2407939136,
0.2041112185,
0.0006106278,
0.2247766405,
-0.0235046428,
0.4215137064,
0.0339770652,
-0.1606846154,
-0.2854784131,
0.1769554615,
-0.0767198876,
0.0071583167,
-0.1267490238,
-0.2901686132,
0.2594228685,
-0.119979158,
-0.1985272914,
0.2078861147,
0.1181466728,
0.1250083745,
0.145903036,
-0.1532066315,
-0.0004798194,
0.1926344931,
0.2919613123,
-0.0999253988,
0.1251992732,
-0.1555042863,
0.0132864667,
0.194123745,
-0.2200009078,
0.0151871247,
-0.0488926135,
-0.1426732242,
0.2775091529,
0.1601995677,
0.1904594898,
0.0550614223,
-0.0313022584,
0.3454265893,
-0.3316128552,
0.1718174219,
-0.0120871896,
0.0918696523,
-0.0871029273,
0.0966743007,
0.1071960032,
-0.1860133708,
-0.063455224,
-0.280477196,
0.0286115967,
-0.1590735018,
-0.2859140038,
-0.0899712369,
-0.013199578,
-0.2573436797,
0.2753230035,
-0.1556980908,
0.3370771408,
0.0433546714,
0.0276193451,
-0.076041773,
0.4177356362,
-0.1996263117,
-0.2468788475,
0.086254321,
0.526492238,
-0.2127526551,
-0.0589168407,
0.7256121635,
0.0039114635,
-0.23238419,
0.4522060156,
0.034119539,
0.0996494368,
0.0330233164,
0.0171207786,
0.1975421906,
-0.5084147453,
-0.3917006552,
0.4872525632,
-0.2710966766,
-0.2888275385,
0.4501452148,
-0.0021799195,
0.7244878411,
-0.1779859066,
0.1248249859,
0.4527072906,
-0.0112073207,
0.2866775692,
-0.3418315649,
-0.351770401,
-0.1432749331,
0.2145600766,
-0.2476702631,
-0.2337251157,
-0.167846784,
0.3443210423,
0.1442344785,
-0.0370382965,
0.3658795953,
-0.125807181,
0.4081766605,
0.0815368518,
-0.10751573,
-0.0453490354,
-0.6363106966,
-0.1759152412,
-0.0668963641,
-0.2045734972,
0.0875465125,
-0.4391718209,
-0.2339883,
-0.0397206359,
-0.0037447151,
-0.0227724221,
-0.0105004292,
-0.0721691102,
0.1975910664,
0.0416514277,
-0.4777802527,
0.102779597,
0.0681989864,
0.0919446573,
0.067736052,
0.1153923422,
0.0635745227,
-0.0278060101,
0.1835619509,
0.1694440991,
0.0132664898,
-0.2761829495,
0.3075852692,
0.1365495473,
-0.1376118362,
0.0771175846,
0.0643711686,
0.1885313392,
0.3677639365,
0.2471436709,
0.3335401714,
-0.0359484479,
-0.0795965567,
-0.1956492364,
-0.4011145234,
0.2823254168,
-0.205986321,
0.1607312113,
-0.1087658554,
-0.1630890667,
0.3603008986,
0.0271317363,
-0.1765020788,
-0.0072298418,
-0.108007364,
0.1386487037,
0.3167693317,
0.2005203813,
-0.1099157557,
0.1504929066,
0.4193856716,
-0.1662427038,
0.141076982,
0.0860971063,
0.0657811388,
-0.2105068564,
0.0731402785,
-0.4206044376,
0.1161373481,
0.1916220039,
-0.1124329418,
0.0174668375,
0.4644151628,
-0.1069170013,
-0.054423254,
0.0615021922,
0.1119859964,
0.206802547,
0.3783844709,
-0.1515436918,
0.0632619709,
-0.0613131486,
0.1851515025,
-0.0180075169,
-0.125582099,
0.0122133475,
0.0384268314,
0.2140254378,
-0.0323153064,
0.1993448138,
-0.133793816,
0.2352686822,
0.3411101699,
0.1273873001,
-0.0041491883,
0.047561869,
0.3337054849,
0.7932175994,
0.00337197,
-0.2434070408,
0.0602369048,
-0.2733084559,
0.3194571137,
-0.0889340639,
0.4855743647,
-0.3599855304,
0.3138052225,
0.0023292084,
-0.0271195993,
-0.1954461187,
-0.1236834005,
0.2514009476,
0.0595039912,
0.1228086203,
-0.1811424196,
0.2243695706,
-0.3469934464,
-0.0619624555,
0.1353168488,
0.0441457517,
-0.2819416225,
-0.1478096545,
-0.0207601022,
-0.1053290516,
0.0789891928,
-0.1557482481,
-0.2638141215,
-0.347476244,
0.56192559,
0.0495659187,
0.0918338075,
-0.4269664288,
0.1237897724,
-0.0336596519,
-0.4764587581,
-0.044267226,
-0.2064772099,
-0.6906927824,
0.1290423274,
-0.2044294626,
-0.1791324019,
-0.2571058869,
0.134075284,
-0.0105613274,
0.0266331676,
-0.2865176797,
-0.2164177001,
0.1734155864,
0.0656810477,
-0.0573247299,
0.1034620628,
0.3878517747,
-0.1101518497,
0.0678930953,
0.089694187,
0.0188463312,
0.1214545518,
0.1467285305,
0.2475131452,
-0.0135707054,
0.4285879135,
0.2638728023,
0.7901013494,
0.3915771842,
0.1970968992,
0.0834618881,
0.1033210307,
0.2767240405,
-0.0046272594,
-0.0110786492,
0.4460403323,
0.0492828526,
-0.0639373884,
0.2406003624,
0.38722229,
0.1359608918,
-0.1608261168,
-0.3288179934,
-0.1550693512,
-0.2619345784,
0.3843184114,
0.3602466285,
0.0998755544,
-0.0669146255,
-0.263720423,
-0.160950914,
-0.3486650288,
-0.0912178457,
0.1258563697,
0.310337007,
0.1596031636,
-0.6825460792,
0.3048124313,
-0.3812507987,
0.0732674226,
0.0437277816,
-0.124402307,
-0.0309955589,
-0.0406832956,
0.1786162555,
-0.1328397244,
0.6704143286,
0.3626087308,
-0.1161903366,
-0.2579666078,
-0.1084467396,
-0.2668247521,
0.198812589,
-0.1225395426,
0.460936904,
0.4595272243,
0.4718092978,
-0.5613794923,
-0.2062011957,
-0.0660792738,
0.0868467614,
-0.2086279392,
-0.1341800839,
-0.1570607275,
-0.1778689772,
-0.5508024096,
0.1023476943,
0.2720917761,
-0.0412045345,
0.3813018501,
-0.1734059304,
0.0085243778,
0.0298008155,
0.089356266,
0.2183728963,
-0.0154076628,
0.114833504,
0.0835981816,
0.1694616973,
0.2123953849,
0.1255599707,
0.1472934335,
0.1005320624,
0.0518698469,
0.1355924904,
0.0317403898,
0.6307210922,
0.5391400456,
0.1274537593,
-0.0374039672,
-0.4805535376,
0.3121171296,
-0.4224781394,
-0.0316600874,
0.0885875449,
-0.1388895512,
-0.301428169,
-0.0881084055,
0.3730333447,
-0.0140165417,
-0.1200727224,
0.049617026,
0.2515340149,
-0.1055441648,
0.4523068368,
0.1032075807,
1.3929839134,
-0.4514722228,
0.4316121638,
0.0266740248,
0.0658513606,
0.6378906965,
-0.8194288015,
0.0753724724,
-0.3553825021,
0.4845213294,
0.0279834215,
-0.1089506671,
-0.0716063753,
0.3980713189,
-0.3112869859,
0.0931033194,
-0.1793704629,
0.5494175553,
-0.303833425,
0.6470786929,
-0.1158552766,
-0.3888769448,
-0.5553725958,
0.0002270874,
-0.2226495892,
-0.2617737949,
-0.1231744662,
-0.0763368011,
-0.0987590551,
0.0765955299,
-0.0189995654,
-0.2811443508,
-0.130640313,
0.1832187027,
0.1906515062,
-0.2936610281,
0.1789600551,
0.1591623724,
0.0245656371,
0.3643522263,
-0.0403410383,
0.0743630901,
-0.2797784805,
-0.2025119364,
0.0273779463,
0.0013687299,
0.1315409094,
-0.0915793106,
-0.2976219952,
0.1341987252,
0.2777329385,
-0.0907613412,
-0.5014807582,
0.1273466051,
0.364261806,
-0.5198203921,
-0.2096787393,
-0.0355666652,
-0.2438251823,
0.0729561001,
-0.032086093,
0.1741948277,
-0.1531541497,
0.2272576243,
0.5170202255,
-0.0452105217,
0.0120190373,
0.199554503,
-0.085314177,
-0.3673033416,
0.223719582,
0.0613764636,
-0.1142333075,
-0.1685553044,
0.6826546192,
0.009708059,
-0.1210051775,
0.0746246278,
0.0038239674,
-0.3500800133,
-0.3896211386,
-0.1243440062,
0.3901151717,
-0.041337993,
0.2755550444,
-0.1811109483,
-0.4285434484,
0.3383805752,
0.1108335108,
-0.0619492121,
0.169896841,
0.1088584587,
-0.175775975,
0.3394356072,
-0.1865462363,
0.1728896946,
-0.1168090999,
0.1082865521,
-0.0540545993,
-0.2186052054,
-0.007293581,
-0.113706924,
-0.0955777168,
0.0397075787,
-0.2682883143,
-0.0903341696,
-0.1170662865,
0.240666911,
0.1114388034,
-0.0461361483,
-0.1293833703,
-0.2641299665,
-0.0955235139,
-0.1117087379,
0.2225819379,
0.2459105551,
0.2900203168,
-0.4254911542,
-0.0774690062,
-0.2499215454,
0.0075122663,
0.1698827296,
0.3039047718,
0.4021047652,
0.1170348525,
0.0978749618,
0.0417185649,
-0.1809554249,
-0.0057738861,
0.5137706399,
0.7084439397,
0.0902365744,
0.2484450936,
-0.0522914082,
-0.0526192859,
0.1871722937,
-0.0088203643,
0.2816484869,
-0.2950820923,
0.1594910175,
0.163102448,
0.0380956642,
0.031764172,
0.0598829277,
0.363710016,
-0.0215349942,
-0.0839361176,
0.363406837,
0.0386961326,
-0.0915406868,
-0.1826536804,
0.123221308,
0.5751819015,
0.2144143879,
-0.2730650306,
-0.2374276221,
-0.1275797486,
-0.1843099147,
0.3792659938,
0.2954373658,
0.2662119865,
0.0717535987,
-0.0446466543,
0.2154887468,
-0.0599904023,
0.1828853488,
0.225017339,
0.0842251107,
-0.226214081,
0.3378059566,
0.3512511551,
-0.0287641156,
-0.1293133497,
0.6900849938,
0.3549060524,
-0.1810753495,
-0.0834740847,
0.2515939772,
0.0005789784,
-0.1217798144,
-0.1444715559,
-0.2440913767,
-0.1194603443,
0.1371257305,
-0.1653460562,
-0.4723707438,
0.1429694742,
0.3088829517,
0.3158620894,
-0.0227741916,
0.3322769105,
0.2209155858,
0.2178194374,
-0.235255301,
0.3177048862,
0.2284139842,
0.2080640793,
0.133549735,
0.1596847624,
0.1499282867,
0.0468916446,
-0.2949415445,
0.4081038237,
-0.4388064146,
0.0154484101,
-0.0470497906,
0.1584738344,
0.1952102184,
-0.269292146,
0.0826460496,
-0.0452419035,
-0.0166305024,
-0.2600591481,
0.2939871848,
-0.4036773443,
-0.0206775572,
-0.2553533018,
-0.1937349439,
-0.241462335,
-0.0963660851,
-0.1352773011,
-0.5302696824,
-0.0924406499,
0.1397971064,
-0.165286243,
0.2769561708,
-0.0640742555,
0.0000355443,
-0.0711738914,
0.2686173618,
-0.0679081604,
-0.1023271009,
-0.0763239712,
-0.1858239472,
-0.2031054646,
0.1488700807,
-0.237466529,
0.1368874162,
-0.252689451,
0.4799550176,
0.1438132524,
0.546325326,
-0.3531481028,
0.1395498663,
-0.43239218,
-0.1334948987,
-0.4240528643,
0.160068363,
0.0628729165,
0.5529722571,
0.2093479037,
-0.1600458771,
0.2817631364,
0.0416955128,
-0.1844715774,
-0.1637285352,
0.1966312081,
-0.3929292858,
-0.4286776781,
0.1412265003,
0.0723457858,
0.1066840068,
0.0655794069,
-0.2056897432,
-0.1574920863,
-0.0432484932,
-0.0586747415,
0.155576095,
0.3227590322,
-0.032396853,
-0.3471821249,
-0.3678293526,
0.0114204707,
0.1143781692,
-0.2356734276,
-0.1969189495,
-0.1125308946,
-0.2713980377,
-0.1514755189,
0.2202936858,
-0.1036952063,
0.3974576294,
-0.3559354842,
0.0480313376,
-0.2433429211,
-0.0645572618,
0.4585356712,
-0.1786569059,
-0.3056340218,
0.0793514103,
0.2447961271,
0.2134696543,
-0.0733821094,
-0.4194639027,
0.2626645565,
0.0804456696,
0.0447424352,
-0.2134112567,
0.1362760216,
-0.2202361673,
-0.2952009141,
-0.1171934977,
0.1270845532,
-0.0512987077,
-0.0708285049,
-0.1670586765,
-0.1908707768
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :) | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 34 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :) | [
-0.0358472131,
-0.2477776706,
-0.058699809,
0.2463888526,
0.2725090086,
-0.0800487325,
0.0325769931,
0.4199476838,
-0.1291506588,
0.0406961665,
-0.2698196769,
0.103410773,
-0.2411337197,
0.2175489366,
0.2678768337,
-0.0001747562,
0.166043818,
-0.0381545313,
0.0205727369,
0.1060393527,
0.136468336,
-0.0983713418,
0.069226034,
-0.0980452225,
-0.3837283254,
-0.2225391269,
-0.2114026099,
0.0674200431,
-0.3816429079,
-0.4354846179,
-0.2983789444,
0.2929076552,
0.2630600333,
0.5424137115,
-0.0001224383,
-0.212287575,
-0.0822098479,
-0.3558512926,
-0.3333749175,
0.0622417629,
-0.0192782208,
-0.3454459608,
-0.1117135137,
-0.126612857,
-0.1577756554,
-0.2789119482,
0.1271949261,
-0.2555709779,
0.8061009049,
-0.1531664878,
0.021449551,
-0.0215730332,
-0.048179552,
0.0518001653,
0.1918321103,
0.3268027008,
-0.0728115216,
-0.0447112396,
0.6106313467,
0.298412919,
-0.1840126216,
0.1200444028,
-0.0851197988,
-0.1498506367,
0.1096882969,
-0.1629781276,
-0.1703998893,
-0.192174226,
-0.0237779152,
0.2037167996,
0.4222002923,
-0.338516295,
-0.1862224936,
-0.3305149376,
-0.1230702251,
0.0508731902,
0.035025347,
0.3019007444,
0.0060199192,
0.341230303,
-0.3143236041,
-0.446224153,
-0.3264684379,
-0.0131064449,
0.1752523035,
0.1036071628,
-0.1256476939,
0.025293937,
-0.1996140629,
-0.2140206099,
-0.1439000964,
-0.1332380176,
-0.0655241534,
0.188608706,
-0.0463633016,
-0.3719005287,
-0.2080021054,
-0.3558417559,
0.744371593,
0.2502100766,
0.1825268269,
-0.004443394,
0.1786466837,
-0.0180105492,
0.3476016521,
0.0791963786,
-0.1344193816,
-0.2228825539,
0.205619663,
-0.0692041665,
0.0441735275,
-0.1626306921,
-0.2966940105,
0.3006075621,
-0.1087578237,
-0.2092297971,
0.1497646719,
0.124798052,
0.0862497911,
0.1220533252,
-0.146002695,
0.012512058,
0.1612528712,
0.3237171471,
-0.0606550202,
0.1013345569,
-0.1591732204,
0.0791069791,
0.2510316968,
-0.1393311769,
0.0203039963,
-0.0826000497,
-0.0755884424,
0.2826264501,
0.1692109108,
0.1916386038,
0.1067390367,
-0.0948656648,
0.3511992693,
-0.3164988756,
0.1982144117,
-0.0433667935,
0.1172584221,
-0.0536001101,
0.1517840922,
0.1754228026,
-0.2161431313,
-0.0682594255,
-0.282420069,
0.0142464601,
-0.211128369,
-0.3164356351,
-0.0480193235,
-0.0132391686,
-0.2957739234,
0.2394763529,
-0.1990529895,
0.358720541,
0.069444336,
0.0011225012,
-0.0613627508,
0.3853585422,
-0.2045325637,
-0.2523870766,
0.1157237738,
0.4234727025,
-0.1651445627,
-0.0755068287,
0.6700637341,
0.0387734734,
-0.2569371164,
0.4542048573,
0.0799489543,
0.1556765139,
0.0222004782,
0.1333845854,
0.1889380068,
-0.5267190933,
-0.4063304365,
0.4948354363,
-0.1921533495,
-0.2608955503,
0.3926101029,
-0.027361935,
0.7847682834,
-0.2248371392,
0.0983914509,
0.4408171475,
0.0235161409,
0.304535538,
-0.3460555077,
-0.324742496,
-0.1307466924,
0.2371599823,
-0.2409184277,
-0.2785599828,
-0.1992863417,
0.3613538444,
0.097959727,
0.0059874663,
0.35587883,
-0.0728294104,
0.4450255632,
0.0458199531,
-0.1008844897,
-0.0343791917,
-0.6144988537,
-0.186287716,
-0.0533255525,
-0.1896265596,
0.0219221469,
-0.448998481,
-0.2040059119,
-0.0548462272,
-0.0650104582,
-0.0996523723,
-0.0107852723,
-0.0867548659,
0.1808192432,
0.0646054,
-0.42976439,
0.0958207399,
0.0679554194,
0.121974729,
0.1080546528,
0.0707086772,
0.1028700843,
-0.0089801494,
0.1983806938,
0.1354853064,
0.0338133499,
-0.2850417793,
0.2865191996,
0.1933011562,
-0.1225527152,
0.0360603556,
0.0323351026,
0.19924137,
0.3765423596,
0.238742277,
0.3395581245,
-0.0528757535,
-0.1034862921,
-0.2263320386,
-0.4660381675,
0.3321809769,
-0.1722446978,
0.1516908109,
-0.1176440939,
-0.1708735377,
0.3835430145,
0.0604182631,
-0.1853942722,
0.0116600534,
-0.1172103882,
0.1202117577,
0.3583419621,
0.1511693001,
-0.0837309211,
0.1534203589,
0.416946888,
-0.1880871952,
0.1579305381,
0.0922688395,
0.0193209052,
-0.2057331204,
0.0339046232,
-0.3745422065,
0.1113104373,
0.2045273781,
-0.1165312305,
-0.0320328958,
0.4354268312,
-0.0989614427,
-0.0211149976,
0.0098216608,
0.055068735,
0.2727506161,
0.3929628134,
-0.129570812,
0.0289754923,
-0.032589823,
0.2021360993,
0.008692096,
-0.1281419247,
-0.046086885,
0.0887813345,
0.1770049185,
0.0038029738,
0.2265065759,
-0.1486001611,
0.1947259009,
0.3439481556,
0.1537315249,
0.0585658252,
0.1289349794,
0.3415544331,
0.768624723,
0.0309740752,
-0.3049439192,
0.0493485518,
-0.2318974733,
0.3245339096,
-0.0766606778,
0.4310403168,
-0.3617488444,
0.2851545513,
0.0097457115,
-0.0011520198,
-0.2504857779,
-0.1496309936,
0.247743994,
0.0177354403,
0.1506179571,
-0.1847650558,
0.2407235801,
-0.3253254592,
-0.0264813434,
0.1529539824,
0.0557004511,
-0.2686523497,
-0.1509211361,
-0.0527387261,
-0.1377536207,
0.0886377171,
-0.1250993758,
-0.274423182,
-0.3307992816,
0.516752243,
0.0543534756,
0.0817122459,
-0.3696948588,
0.0508887507,
-0.0841615722,
-0.4887423813,
-0.0598634966,
-0.1891506314,
-0.668990016,
0.2267436385,
-0.2004958093,
-0.1961236894,
-0.2640038133,
0.1212447435,
-0.0289265513,
0.0722716376,
-0.2839437425,
-0.2136157006,
0.1547724605,
0.0793504864,
-0.0785541311,
0.0479095317,
0.3909584284,
-0.0872956514,
0.0794653222,
0.0557643361,
-0.0035896592,
0.1672791392,
0.12317954,
0.2721036375,
-0.0246195123,
0.4078178108,
0.2914268672,
0.8061870337,
0.3848926425,
0.1959755421,
0.0897489488,
0.1119624749,
0.2658499181,
-0.0288793314,
-0.0075312816,
0.4521795511,
0.0277558099,
-0.0088193621,
0.2692955136,
0.383859396,
0.124235481,
-0.0907757655,
-0.3080973923,
-0.1906186342,
-0.236917451,
0.3694246113,
0.3165632486,
0.1075835153,
-0.0840522796,
-0.1937538683,
-0.1551181227,
-0.319857806,
-0.094336316,
0.1596541852,
0.3163715899,
0.1879038215,
-0.6765275002,
0.3549474776,
-0.4088263214,
0.0791277438,
0.0022835429,
-0.1083041653,
0.0055813328,
-0.0226307437,
0.1526862383,
-0.1477398276,
0.6616028547,
0.3229284585,
-0.0914459601,
-0.2203117758,
-0.086120151,
-0.2898353636,
0.1937622726,
-0.1531151831,
0.4884578288,
0.4400157928,
0.5459085107,
-0.6200937033,
-0.1717019528,
-0.1250705719,
0.0530039407,
-0.207223475,
-0.1415390223,
-0.1294428259,
-0.1883384585,
-0.527885139,
0.124424018,
0.2873000801,
-0.0425459854,
0.3593452573,
-0.127807647,
-0.0597833581,
0.0075276732,
0.073902525,
0.2289948463,
0.0508404411,
0.0989777371,
0.1173748001,
0.1709468812,
0.2239161283,
0.1616595089,
0.118269451,
0.0530001521,
0.0410057493,
0.1208060682,
0.0097251264,
0.5497876406,
0.4826797247,
0.1355557591,
-0.03347902,
-0.491735369,
0.2676384151,
-0.402707845,
0.0017769539,
0.0890904739,
-0.0926762819,
-0.3960807323,
-0.0910904706,
0.3552254736,
-0.0016620872,
-0.1386159658,
0.0111443242,
0.2135968208,
-0.1599931568,
0.4445264339,
0.1186922863,
1.3274309635,
-0.4156692028,
0.4368340969,
0.0171289463,
0.1409610659,
0.6164473295,
-0.8450109959,
0.038802214,
-0.3598650694,
0.4247413874,
0.0297947042,
-0.1085488126,
-0.0936307386,
0.4053987563,
-0.3267579973,
0.1037576944,
-0.1090013012,
0.5489723682,
-0.2766168118,
0.6767639518,
-0.1359958351,
-0.390008539,
-0.5071853399,
0.0100565525,
-0.2479690164,
-0.2652215362,
-0.0769331232,
-0.1078803986,
-0.07732106,
0.0363462865,
-0.0582713336,
-0.2953858376,
-0.1762768626,
0.1564580202,
0.1803081483,
-0.2939792573,
0.1962888837,
0.1551852822,
0.0704065636,
0.3557054996,
-0.0940311328,
0.1165554151,
-0.3090679646,
-0.1790237278,
0.0290009771,
-0.0475670472,
0.132361576,
-0.056653209,
-0.2080139816,
0.0645952374,
0.2362643629,
-0.0711735785,
-0.4781264663,
0.0709455758,
0.3397394717,
-0.5559620857,
-0.2173306495,
-0.0462064892,
-0.2046851814,
0.0542462096,
-0.0296260435,
0.1538580805,
-0.0953049883,
0.2320223302,
0.5043818355,
-0.0577852018,
-0.0062327259,
0.2101408541,
-0.1361909509,
-0.3036090732,
0.2424917221,
0.0141585516,
-0.1571896523,
-0.1543038189,
0.6779856682,
-0.0044220677,
-0.0961274803,
0.0694543496,
-0.0159717668,
-0.3258943558,
-0.4036073685,
-0.1101428419,
0.3476112187,
-0.0562407821,
0.2685332298,
-0.2250956297,
-0.4499084949,
0.3364256918,
0.0950101838,
-0.0445494354,
0.1758457869,
0.0866957977,
-0.1857727915,
0.3449882567,
-0.1888074875,
0.183484599,
-0.0558892787,
0.1168351173,
-0.0679825097,
-0.2087294906,
0.0415927283,
-0.1210599244,
-0.0929047018,
0.0625026524,
-0.2411758602,
-0.0948669314,
-0.1557495445,
0.2416905612,
0.1395372897,
-0.0594774447,
-0.1366856247,
-0.2649312317,
-0.1226398423,
-0.1376509368,
0.2260237336,
0.2327334881,
0.288292408,
-0.3781511784,
-0.0213640798,
-0.1897074282,
-0.0122639695,
0.1488153934,
0.2742527425,
0.3308255076,
0.1299724877,
0.103436023,
0.0452061631,
-0.1667611748,
0.0202369671,
0.5075789094,
0.7554010153,
0.0878290907,
0.2576688826,
-0.0609873459,
0.0023058571,
0.1873063147,
0.0194994565,
0.3032788336,
-0.2602256238,
0.1139057502,
0.1739158928,
0.0579105727,
0.0190144405,
0.0631897375,
0.3593919575,
-0.0394088402,
-0.0887114182,
0.3182039261,
0.0547100231,
-0.0583629608,
-0.1832579076,
0.1159024239,
0.7018384337,
0.1988417357,
-0.2889252007,
-0.2357712537,
-0.1047813296,
-0.1645618528,
0.3734859228,
0.2908751667,
0.2932787836,
0.1042088121,
-0.0919698924,
0.2733826637,
-0.0017069863,
0.0982305557,
0.2374658287,
0.0866240859,
-0.2261618078,
0.3672834337,
0.3661677837,
-0.0586357154,
-0.1150512397,
0.7066919804,
0.2983399928,
-0.1959276795,
-0.0657617375,
0.2664956152,
-0.0261348188,
-0.1698413491,
-0.2138811797,
-0.2286644876,
-0.1545485109,
0.1448759586,
-0.2393976748,
-0.4700555503,
0.0861264989,
0.2842107415,
0.3571468592,
-0.0751371309,
0.3392668962,
0.1775910407,
0.2466923594,
-0.2510384023,
0.3707903028,
0.2150049806,
0.1839130372,
0.1710396558,
0.1525609642,
0.204810217,
0.0100605665,
-0.290055871,
0.3880852461,
-0.4903672934,
0.023379162,
-0.0258817747,
0.1521194279,
0.1927023679,
-0.284394592,
0.1054353267,
-0.0499683432,
-0.0337045677,
-0.2527792156,
0.2708313763,
-0.4384322166,
0.0505168438,
-0.2957766056,
-0.2173884213,
-0.2327019721,
-0.0732438341,
-0.1300656199,
-0.4757884443,
-0.0652547181,
0.1769822389,
-0.1273905188,
0.310526669,
-0.0461531542,
0.0060548638,
-0.0735067055,
0.2283281237,
-0.0213605408,
-0.142896384,
-0.1040671021,
-0.1637132019,
-0.2287215292,
0.126768142,
-0.1789253503,
0.1197195873,
-0.2743479908,
0.4088412225,
0.1407328695,
0.5077556968,
-0.358214587,
0.2111836076,
-0.4199121892,
-0.1195103377,
-0.4327722788,
0.1643103957,
0.0219517089,
0.5623586774,
0.2280699909,
-0.1457134634,
0.2083117664,
0.1127192155,
-0.1706878096,
-0.1604555696,
0.1779025495,
-0.3798592985,
-0.4262798131,
0.1012801901,
0.1023630276,
0.1308806241,
0.025315119,
-0.1624244452,
-0.0846508518,
0.0042990972,
-0.0882552862,
0.1528508812,
0.308226496,
0.000768379,
-0.3237611949,
-0.3393218815,
0.0228499956,
0.0924469531,
-0.2554953396,
-0.2394739985,
-0.2016498446,
-0.2231933475,
-0.1314107031,
0.1888443679,
-0.1389207542,
0.3724322915,
-0.3437928855,
0.0827577934,
-0.2518281341,
-0.1133991033,
0.4629925787,
-0.2120741159,
-0.2136948109,
0.1079559028,
0.1733537614,
0.2590771914,
-0.0126358205,
-0.4606675506,
0.2509460747,
0.1250090748,
0.0348835588,
-0.2539891899,
0.1203563735,
-0.184329927,
-0.307038635,
-0.1378578097,
0.1933945715,
-0.0168407951,
-0.1057635024,
-0.2072905451,
-0.1747220308
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 28 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down. | [
-0.0998464376,
-0.3400498927,
-0.0722544864,
0.2740520835,
0.233014375,
-0.1341193318,
0.0534661226,
0.4866884053,
-0.0811557844,
0.0389789827,
-0.2371417582,
0.0705095753,
-0.256649524,
0.3095558286,
0.2704547644,
-0.0745399371,
0.141234681,
-0.0320492275,
0.0148964245,
0.0299364347,
0.1451999843,
-0.1339219958,
0.0269508362,
-0.0343344212,
-0.331261903,
-0.1478407234,
-0.1654999256,
0.1486867517,
-0.3085705638,
-0.4827932715,
-0.3069814146,
0.287417233,
0.2753959298,
0.4879114628,
-0.0001232336,
-0.1371823549,
-0.0272385087,
-0.3751021922,
-0.3914618194,
0.0622950643,
0.0496608056,
-0.2882882655,
-0.0649243966,
-0.0946049616,
-0.1764812469,
-0.2693077326,
0.1124373004,
-0.1765533537,
0.9333482981,
-0.0912948176,
-0.0013210172,
-0.0185963828,
-0.1706780046,
0.0342927016,
0.2240021825,
0.1699866951,
-0.0316277966,
0.0094060944,
0.65319556,
0.3252060711,
-0.2057894766,
0.1627475917,
0.0076427064,
-0.1622392982,
0.0985202193,
-0.1589538157,
-0.0159674715,
-0.1528654248,
-0.0900059715,
0.2489254773,
0.3597232401,
-0.2345627397,
-0.2427043766,
-0.3881295919,
-0.0316074751,
0.0084961355,
0.0847674832,
0.2578558326,
-0.0303197224,
0.4028697014,
-0.3450419009,
-0.4935599267,
-0.3452897668,
-0.0025278109,
0.1328752786,
0.0023260247,
-0.0820589364,
-0.0195719898,
-0.1442523748,
-0.1430078894,
-0.0312885158,
-0.1512056738,
0.0573585704,
0.1760594994,
0.0076768161,
-0.3633483052,
-0.1832548529,
-0.3150162995,
0.6128091812,
0.2020141035,
0.1659011841,
0.0921714306,
0.1930486411,
-0.0760333091,
0.3041757047,
0.0039582471,
-0.1741167754,
-0.2357872427,
0.1530190408,
0.0032969485,
-0.0408503078,
-0.091082871,
-0.4117302895,
0.2907010913,
-0.2795989513,
-0.2131227255,
0.0398327522,
0.1076255366,
0.0285532102,
0.1241717264,
-0.1663440317,
-0.0343141556,
0.1978092343,
0.336766392,
-0.1896686554,
0.2009996623,
-0.0523404106,
0.0550011657,
0.1931462139,
-0.2182547003,
0.0245846324,
-0.0677968785,
-0.1678193361,
0.3149709404,
0.1374839246,
0.0973451808,
0.1068063304,
-0.0808859989,
0.3495572507,
-0.2923624516,
0.094459258,
0.0606517419,
0.052038312,
-0.1030229405,
0.0815092549,
0.0854250118,
-0.2245240957,
-0.0646580756,
-0.2271315902,
0.0724635869,
-0.3223102391,
-0.3137341142,
0.0708980709,
-0.024388181,
-0.2372405827,
0.2669650912,
-0.1464352608,
0.446838975,
-0.0667431056,
-0.0000228708,
-0.0586485825,
0.3950934708,
-0.2568888366,
-0.1637609005,
0.142697677,
0.4170691967,
-0.2085472345,
-0.1686362177,
0.767531693,
0.119005762,
-0.2828909159,
0.4321812093,
-0.0407251082,
0.1763843894,
0.0575945191,
0.0287944227,
0.292729795,
-0.6150714159,
-0.3437722325,
0.5754367709,
-0.2338035852,
-0.2194791436,
0.4251846373,
-0.0181345306,
0.7501605153,
-0.2715396285,
0.1670281738,
0.5265708566,
0.0275563393,
0.2613635659,
-0.3428592086,
-0.3132780492,
-0.1130178347,
0.3522659242,
-0.2507222295,
-0.2015241981,
-0.2499056607,
0.3206184804,
0.1277273893,
-0.0399459377,
0.2356548905,
-0.0552048311,
0.1949425936,
0.1072163284,
-0.1261139512,
0.0686762258,
-0.6354452372,
-0.1800173223,
-0.0353042856,
-0.2504541576,
0.0739322752,
-0.4319306314,
-0.2057418823,
-0.0524759963,
-0.0826044455,
0.0094184745,
-0.0734384656,
-0.1099149808,
0.1536717415,
0.0892743617,
-0.4430952072,
0.1576543152,
-0.0317025967,
0.1350345612,
0.1033676341,
0.0933033153,
0.1940132678,
0.0167996306,
0.2226582617,
0.1754048318,
0.0196638387,
-0.3061256111,
0.3164179623,
0.2310005873,
-0.1803946495,
0.1078205854,
0.0286296606,
0.1224037558,
0.3870015144,
0.2914453745,
0.2757452428,
-0.0204010718,
-0.0890707523,
-0.201470688,
-0.4354263246,
0.4695910513,
-0.1399255544,
0.1029194891,
-0.046994783,
-0.1922260225,
0.2470769435,
0.0279654879,
-0.3278740048,
0.0785476267,
-0.0411315523,
0.101035662,
0.3779508471,
0.1883983165,
-0.2185821682,
0.1035122275,
0.50420928,
-0.2499510795,
0.0631479993,
0.1456290931,
0.0739470422,
-0.1624067575,
-0.0654815063,
-0.3691544235,
0.1034999713,
0.1509120613,
-0.1132978424,
0.0365010872,
0.3595151305,
-0.1414894015,
-0.0264401846,
0.0400506966,
0.1576573402,
0.2307529151,
0.336263746,
-0.1535276771,
-0.0125929313,
-0.0430570096,
0.1768825799,
-0.0208255257,
-0.1473270655,
0.0703121051,
0.1081734151,
0.229182452,
-0.1080216393,
0.0923986435,
-0.0407778136,
0.2209892124,
0.3710330725,
0.1220969334,
0.0494286418,
0.1232843474,
0.3574220836,
0.7777604461,
0.0740787983,
-0.2954415679,
0.0345300809,
-0.2509974539,
0.2499700785,
-0.1099034175,
0.4066917002,
-0.3923882544,
0.2088257372,
-0.1002373025,
-0.070472829,
-0.088101387,
-0.1080949083,
0.2357535064,
-0.0128252385,
0.0402285084,
-0.2133981735,
0.2169343233,
-0.3434366584,
-0.0746851936,
0.1513522863,
-0.0094622495,
-0.2644821405,
-0.1470504403,
-0.0022058701,
-0.0863670334,
0.0888574794,
-0.2968891263,
-0.2773435712,
-0.2985852063,
0.4928008914,
0.0754601136,
0.0640898272,
-0.3779044449,
0.0815672874,
-0.0153704565,
-0.4000916183,
-0.069124639,
-0.1580911428,
-0.6986128688,
0.2222500592,
-0.1657125354,
-0.2289094031,
-0.268102169,
0.0822324827,
-0.0588762015,
0.0815772861,
-0.3671654165,
-0.2016133368,
0.2188034207,
0.0321707651,
-0.1601272821,
0.0376336947,
0.3266257346,
-0.1108786091,
0.0910379514,
0.0565657839,
0.0788848698,
0.1923376173,
0.0437462963,
0.2103667408,
-0.0455569774,
0.5006764531,
0.2444776744,
0.8879318237,
0.4185723662,
0.1632734239,
-0.0356382057,
0.0654546246,
0.1641030908,
-0.0016241758,
0.0714653507,
0.4287312031,
-0.0277692135,
-0.0217476413,
0.2838863432,
0.3437902033,
0.0208335929,
-0.2105357796,
-0.2243261188,
-0.1663822085,
-0.2680466771,
0.3488028049,
0.3016020358,
0.0969363749,
-0.053619124,
-0.1421068162,
-0.144464761,
-0.2485813051,
-0.0418126136,
0.0893360302,
0.3514491022,
0.1249719039,
-0.6669871211,
0.27192837,
-0.3750924468,
0.0028045403,
0.1075823233,
-0.1016040593,
0.0591001362,
-0.0626867786,
0.1974937022,
-0.1959407181,
0.6504682899,
0.388379842,
-0.0828795731,
-0.2534448802,
-0.1487041265,
-0.3081420362,
0.1487337351,
-0.1808008254,
0.4100217521,
0.4926871955,
0.4620296657,
-0.5409816504,
-0.270808965,
-0.0290106982,
-0.0087575959,
-0.1661584228,
-0.0959239677,
-0.1718364507,
-0.1978625059,
-0.5452145338,
0.1818260401,
0.320282191,
-0.0085402001,
0.2829559743,
-0.1344596893,
0.0567005873,
0.0850089863,
0.1073691025,
0.1872837842,
0.0188479275,
0.1781818867,
0.0895371288,
0.2845399678,
0.2857452333,
0.0903420523,
0.1812292188,
0.1071599498,
0.0152682122,
0.1032185853,
0.0495481342,
0.5974903107,
0.6548065543,
0.1536560357,
-0.0044994894,
-0.4806953669,
0.2829877436,
-0.3764103949,
0.0277698915,
0.1394285858,
-0.0948400199,
-0.3397720754,
-0.1617488265,
0.4260539412,
0.0052197929,
-0.1099752188,
-0.0014930177,
0.1072563753,
-0.1306722164,
0.4067906737,
0.0306716617,
1.3512597084,
-0.3563820124,
0.4912477136,
0.1727317423,
0.2168496698,
0.5118806958,
-0.8861694932,
0.0963310525,
-0.3162591159,
0.387607336,
-0.0304383039,
-0.1310206354,
-0.1044387296,
0.3876615465,
-0.2980627716,
0.105726473,
-0.0487182401,
0.5162268877,
-0.254567802,
0.6119433045,
-0.0532312021,
-0.3716335595,
-0.6192559004,
-0.0415630639,
-0.1461668015,
-0.2977316082,
-0.0556900017,
-0.1509177089,
-0.0802600235,
0.0464855209,
0.056928739,
-0.2324222177,
-0.1602410674,
0.1106454805,
0.3232056499,
-0.3037292957,
0.2290358692,
0.2459356785,
0.0530673862,
0.2225887477,
-0.0827509314,
0.2005005479,
-0.4225773811,
-0.1420375705,
0.0488646589,
-0.0342630148,
0.2505093515,
-0.0836915597,
-0.2108561099,
0.2170353979,
0.171989724,
-0.0862250775,
-0.4488448799,
0.0593668856,
0.3781776428,
-0.5011566877,
-0.2208088785,
0.0211799983,
-0.1953944564,
0.0459365584,
-0.0510656238,
0.1341564655,
-0.2042078823,
0.2137432247,
0.5658396482,
-0.1569910944,
0.0337466151,
0.2941558361,
-0.1210545078,
-0.3052668571,
0.3507453799,
0.0744544193,
-0.1224072948,
-0.1303799599,
0.6699302793,
0.0875538066,
-0.1203658879,
0.1151726022,
0.0244878475,
-0.3150230646,
-0.3878086209,
0.0355331935,
0.2949035466,
-0.0681040809,
0.2688261569,
-0.1532765776,
-0.3670754135,
0.3225948811,
0.0986826345,
-0.0811854601,
0.1734327525,
0.1403618604,
-0.1298322976,
0.2685959935,
-0.1680328697,
0.2072604746,
-0.0626907349,
0.1555482,
-0.0826551318,
-0.2120367438,
0.0756014809,
-0.0420160368,
-0.1184659377,
0.0713898614,
-0.2838527262,
-0.0739535764,
-0.1143835932,
0.2430030853,
0.0862278193,
-0.0285966825,
-0.1452966034,
-0.2620362341,
-0.1635840833,
-0.0432469957,
0.2405248731,
0.1436326355,
0.3013544381,
-0.3893830776,
-0.1232069805,
-0.1667737365,
0.0185695477,
0.1054699942,
0.2372739613,
0.390414983,
0.0940392166,
0.0173792299,
-0.0278386083,
-0.2103466392,
-0.0388998054,
0.5302077532,
0.7435998917,
0.1578488648,
0.3064252436,
-0.1554286033,
0.0537385531,
0.1845120937,
0.0057738968,
0.3656207323,
-0.3396030664,
0.0393395685,
0.1936207563,
0.0008064521,
-0.0336846933,
0.0404306762,
0.3611768484,
-0.0661932155,
-0.0720049441,
0.3435066938,
0.0511189327,
-0.0448911414,
-0.1086417958,
0.1211733669,
0.4851033092,
0.199778527,
-0.2774347365,
-0.1347249001,
-0.06252186,
-0.1407152414,
0.2962173522,
0.3051088154,
0.1989795268,
0.1717756093,
-0.0957488418,
0.187771827,
-0.0528712533,
0.1498084068,
0.0664777383,
0.0434195064,
-0.2457431704,
0.3780346215,
0.2527337968,
-0.0672854707,
-0.1209336743,
0.7141615152,
0.3640084863,
-0.3019391,
-0.0925271884,
0.2697067261,
-0.0135872532,
-0.2406311929,
-0.2118636817,
-0.1876574606,
-0.2100352645,
0.2540383637,
-0.2479700893,
-0.3314099312,
0.1338113546,
0.340382576,
0.4442262352,
-0.0892453045,
0.2357784957,
0.1061920896,
0.3274320066,
-0.2305300534,
0.392968297,
0.1338683218,
0.2263186574,
0.2677948773,
0.0403168239,
0.0432621725,
-0.0105758412,
-0.3140462041,
0.360211581,
-0.4900686145,
0.0539306551,
0.0804793611,
0.1562831104,
0.3114762008,
-0.2725023627,
0.1654486656,
-0.0721389279,
-0.0426067226,
-0.0997519642,
0.1755214036,
-0.4402991533,
-0.091819413,
-0.2306336313,
-0.1336802095,
-0.1629975736,
-0.2142190337,
-0.1493448913,
-0.4683658779,
-0.0881216675,
0.1197657958,
-0.1382951438,
0.241523847,
-0.0225762017,
0.0092842039,
-0.0779877827,
0.3606651127,
0.0151159894,
0.0071029132,
-0.1119026542,
-0.1744413525,
-0.1661728024,
0.0979147479,
-0.1681896746,
0.1738527417,
-0.1981569082,
0.4040406346,
0.181065172,
0.5885443687,
-0.3318024278,
0.1254520565,
-0.386102289,
-0.1623786837,
-0.4126794636,
0.1704029292,
0.0535810068,
0.629496038,
0.1562552452,
-0.1591610759,
0.245620206,
0.0447327197,
-0.1992175579,
-0.0732058883,
0.1863847226,
-0.4293966591,
-0.4038082957,
0.02915374,
-0.0140285017,
0.0959748849,
0.046886839,
-0.1298423558,
-0.1176435128,
-0.0317666009,
-0.0767433941,
0.0994961113,
0.3009853661,
-0.0041388217,
-0.3351780772,
-0.2618257105,
0.0422284007,
0.0629856363,
-0.1492685974,
-0.1760754138,
-0.2143099457,
-0.1981463134,
-0.1694890857,
0.2960018218,
-0.0739685893,
0.4579184055,
-0.3707359135,
0.0830327198,
-0.2062577456,
-0.0976958126,
0.5351340175,
-0.2897498906,
-0.2838290036,
0.1446028501,
0.1777912825,
0.3432671428,
0.0217709672,
-0.4834472239,
0.2382178605,
0.0589201376,
0.0281441435,
-0.3584787548,
0.1546436548,
-0.1518529654,
-0.2857325971,
-0.142776981,
0.1686159372,
-0.0352785736,
-0.1014005914,
-0.2121016681,
-0.2255222052
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | The glue metric for cola is a metric for classification. It expects label ids as integers as inputs. | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 18 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
The glue metric for cola is a metric for classification. It expects label ids as integers as inputs. | [
-0.1694529951,
-0.2395811677,
-0.0304733943,
0.1611588299,
0.2367400527,
-0.0491648465,
0.1073008031,
0.3623578548,
0.4330275059,
0.0516283773,
-0.3168228865,
0.2763475776,
-0.0798075795,
-0.0241097249,
0.1026182249,
-0.2831492722,
-0.1162883118,
0.1604490131,
-0.2202494442,
0.3102564812,
-0.324511081,
0.2713669538,
-0.1858563274,
0.3197873235,
-0.176706776,
-0.0903876871,
0.0204839502,
-0.1961707473,
-0.3263721168,
-0.3629355133,
0.2481627911,
-0.1168349311,
0.0215858575,
0.1766418964,
-0.0001102634,
-0.0120564345,
0.4589529335,
0.0023092711,
0.158845827,
-0.1421633363,
-0.3889809251,
-0.0834811479,
0.0444146432,
-0.2361499071,
0.1346657872,
0.227521047,
0.0206138082,
-0.1826083213,
0.2193327248,
0.2709800005,
0.2774609923,
0.3871142864,
0.3126001656,
-0.198993355,
0.1724915355,
-0.2082324624,
0.026587747,
0.8870655894,
-0.3272165358,
-0.4651895463,
-0.0078015192,
0.2069443911,
-0.1057070941,
0.218007803,
0.2240159214,
0.0521960594,
0.3717000186,
-0.3202622831,
-0.1326412708,
-0.0713141859,
-0.2181351036,
-0.2285422236,
-0.1499314755,
0.0416572466,
0.0471169651,
-0.3763106465,
0.0972396657,
-0.0726784989,
0.0581604987,
-0.2293187529,
-0.0549694262,
0.1402760744,
-0.1144136414,
0.2752961814,
0.2400906682,
0.3214468956,
-0.1981529295,
0.2969001532,
0.4147273004,
0.2154425085,
-0.1390431076,
0.0435456336,
-0.2401257455,
0.1653348655,
-0.2926101983,
-0.0423279405,
-0.0104531357,
0.1914085448,
0.023926137,
-0.2354669124,
0.0487307645,
-0.2080051303,
0.4857489467,
0.3427954614,
0.0602979623,
0.3389248252,
0.3534552455,
0.1564651877,
0.1274254024,
0.2417822778,
0.0023342953,
-0.1694934219,
0.2388443798,
-0.3881969452,
0.3655795455,
0.2413903475,
0.1085237861,
0.0770597979,
-0.42625916,
-0.1771683097,
-0.0480155163,
-0.0049846852,
0.0369217172,
0.0718626007,
-0.0187913869,
0.0006606981,
0.1049902812,
0.1906935871,
-0.1910692155,
0.0570395105,
-0.134284988,
0.4053149223,
-0.3368166685,
0.1215168908,
0.1513899863,
-0.0332919173,
0.2043575495,
-0.1073044166,
0.1692518443,
-0.1872257888,
0.0212524142,
-0.2450527847,
-0.0659323186,
0.1954424679,
0.0480441153,
0.0028142685,
0.3261823952,
-0.561188221,
-0.1635351032,
-0.2155402005,
-0.2283362746,
-0.3000667393,
-0.1469438225,
0.2351692468,
-0.1796000153,
0.0300377868,
-0.4003527462,
-0.18054685,
0.2377262414,
0.0449478962,
0.1126891524,
-0.2676101327,
-0.248490423,
-0.2921721637,
0.2016496807,
0.1388748437,
-0.081725128,
-0.1147433072,
-0.1918640137,
-0.1030080393,
0.1174747273,
0.3144729435,
0.1723899394,
0.4397912621,
-0.2319522351,
0.1515319645,
0.5892596841,
-0.6347140074,
-0.2369811535,
0.1007083803,
0.0968759432,
-0.2819085717,
-0.0695401281,
0.0950887203,
0.2874577343,
0.0750941411,
0.4693044722,
0.1775258034,
-0.1200407073,
-0.1910820305,
-0.3003586829,
0.0345601849,
0.0852224305,
0.0522735529,
0.204529196,
-0.0504424088,
0.1096888259,
-0.0649217889,
-0.1438206434,
0.1973371804,
0.0194500182,
0.0301418714,
0.3318207562,
-0.2376645952,
0.0082452698,
-0.5078001618,
-0.0287532341,
0.0765151903,
-0.553919673,
0.1985281706,
0.0962850451,
-0.0163021199,
-0.5231423974,
0.1050596312,
-0.0699512213,
-0.03930825,
0.2326908708,
-0.2064476758,
0.3046909273,
0.023179736,
-0.0384820849,
0.1710437536,
0.0765674636,
0.0847158432,
-0.0891412199,
0.2145031244,
-0.276211828,
-0.4148798585,
0.1382676363,
0.3498591185,
0.2727720737,
0.0353044197,
-0.1092622951,
0.4997554719,
-0.142418474,
-0.2285176367,
0.0557276495,
-0.0633072555,
-0.0071698241,
0.0306299012,
-0.0186234266,
-0.1132491007,
0.1906822026,
-0.0293519255,
0.3210163116,
0.1958460212,
0.0103194714,
0.2974857986,
-0.1180672869,
0.3273962736,
-0.1225313768,
-0.0584308356,
-0.1500229836,
-0.1341113597,
0.4181140065,
-0.2973011434,
-0.079939805,
-0.1827304512,
0.3219169676,
-0.2306053489,
0.3350414336,
-0.0496506169,
0.1854765564,
-0.0289648678,
-0.2190927118,
0.1075798124,
-0.1537141651,
0.1282527298,
0.5975931287,
-0.0049649118,
-0.1247709543,
0.0250174403,
-0.1926957071,
-0.0234324075,
0.1754010469,
0.067482762,
0.0308193807,
0.1081281006,
0.1688194126,
-0.0281778388,
-0.0380484201,
0.1020590067,
-0.2313186675,
0.2311970145,
-0.3220552206,
-0.0178320818,
-0.0451467857,
-0.4319618344,
-0.1677063406,
-0.1099139154,
-0.2902899086,
-0.6119657159,
-0.0572346374,
0.0513688922,
0.0873179585,
0.1892626882,
0.3226215541,
0.0651797056,
0.1116791368,
0.0968882442,
0.0522670522,
-0.2201309204,
-0.0294673517,
0.0525177717,
0.0137361856,
0.2037272751,
0.4438385963,
-0.1036849022,
-0.0145903062,
-0.1050945073,
-0.3087321818,
0.0173460152,
-0.284208566,
0.6033972502,
0.4132929742,
-0.1238142774,
-0.0578881688,
-0.3781407177,
0.4658440053,
-0.4250402749,
0.0171628073,
0.2245608121,
-0.2028574646,
-0.0457103439,
-0.1568725556,
0.0534092635,
-0.287055403,
-0.3602619469,
0.3244149089,
0.1362112015,
0.0870979726,
0.0247130822,
-0.2230974138,
0.3781216741,
-0.1902918667,
-0.1985459775,
-0.1898384243,
-0.028720418,
0.3248329163,
-0.2061115205,
-0.3413918018,
-0.0886327177,
-0.0667746961,
0.3206013739,
-0.2410281003,
-0.2447147071,
-0.5733759403,
-0.1851422787,
0.0286155455,
-0.1296887249,
0.1928844601,
0.0440014787,
-0.167107597,
-0.0649084672,
-0.0949189737,
-0.2339580804,
0.1628339589,
0.2192822695,
0.0926074758,
-0.1301689148,
0.3421755135,
0.0853843167,
0.3098372221,
0.1035998538,
-0.0924217552,
0.2702837288,
0.0431023166,
0.2309778184,
0.0065479986,
-0.491092056,
0.1871617734,
-0.1212336197,
0.3261260986,
-0.1169686243,
-0.0228460804,
-0.0533291288,
-0.2160978168,
-0.1429291666,
-0.1235206351,
-0.2217900902,
0.074424848,
0.015262045,
0.1742431223,
0.0593150668,
-0.2170495242,
-0.2897801697,
-0.2181467861,
0.194475472,
0.2156715542,
0.0103607569,
-0.0712357908,
-0.0382276587,
-0.2960557938,
-0.3888407648,
0.4718081057,
0.1434948593,
0.3303481638,
-0.1176618636,
0.2998415828,
-0.151671797,
0.1147293374,
0.2170618773,
-0.3560433984,
0.0797637254,
0.289891392,
0.1962631643,
-0.553840816,
-0.1381314546,
-0.4275740981,
0.3352845013,
0.5549221039,
0.4441613555,
-0.2514419854,
0.0707287714,
0.4990738928,
-0.0577812083,
-0.0494859219,
-0.4405651391,
-0.4276401699,
-0.1975729614,
-0.1345931292,
-0.0735193864,
0.1434213966,
0.206171304,
0.3873662949,
0.0714510009,
-0.092812404,
-0.2010710239,
0.0717374533,
-0.2025193572,
0.0308997184,
0.0319242142,
0.0896567032,
-0.2613340616,
-0.0328471586,
-0.5163642764,
-0.1181047037,
-0.0492083095,
-0.0583245344,
0.1162240207,
0.0065504503,
0.3921330869,
-0.103167668,
-0.1336191893,
0.2324883044,
-0.2945845127,
0.4098880291,
0.0433741398,
0.0918041617,
0.3446732759,
0.2249441296,
-0.1188236699,
0.1059013903,
0.4642906785,
0.2396438867,
0.0409607589,
0.3867137134,
0.2303500175,
-0.2547430396,
0.2100531459,
0.1255096793,
0.7316865921,
-0.0363745652,
-0.208169654,
0.2821577489,
-0.1958426982,
0.6601781845,
0.2018427998,
0.2584862709,
-0.2552503347,
-0.2401175946,
0.0362041444,
-0.1886275113,
0.1207555383,
-0.2527750432,
-0.4338819981,
0.4902592897,
0.021653058,
0.1240033507,
-0.1225314587,
0.1950632185,
-0.1712217033,
-0.168716073,
-0.0379026867,
0.1914610863,
-0.3335967958,
0.1056694463,
-0.018845696,
-0.0623408183,
0.1282528043,
-0.0751281381,
-0.2535683513,
-0.1657011062,
-0.3714180887,
0.1900476068,
0.23426871,
0.0006984188,
0.0667433739,
-0.256437093,
0.2165790647,
0.1683936715,
-0.0986780003,
-0.0945845693,
-0.0107040033,
-0.2469309419,
0.1475565135,
0.122889325,
-0.1027314737,
-0.1388568282,
-0.11702317,
0.0286957249,
0.0947821364,
-0.2603462636,
0.2329950631,
0.111067906,
0.0089346273,
-0.2510278523,
-0.2027094364,
-0.1664213538,
-0.0228839535,
-0.0703514144,
0.1712866575,
0.0046735005,
-0.1367911249,
0.2804693282,
-0.0659419373,
-0.1624079049,
0.0864233226,
0.2396938503,
-0.0793858096,
-0.019810915,
0.1160603017,
-0.1933649331,
-0.2555322647,
-0.0758575499,
-0.1532200128,
-0.2182992101,
-0.2836369276,
0.123461619,
-0.1197278947,
-0.0283319429,
-0.1401844621,
0.1114250422,
0.4184064269,
0.2592691183,
0.0969693661,
-0.4761910737,
-0.1332364529,
0.277235657,
-0.0170343108,
-0.1239773855,
-0.1470874995,
0.3221762776,
0.1539583504,
0.3371092677,
-0.3407652676,
-0.0861638635,
-0.3368869722,
0.172756806,
0.557708323,
-0.3882574737,
0.0320825651,
0.0896287262,
0.1925500333,
0.2407435775,
-0.1684648395,
-0.2781486213,
-0.0453974754,
0.0884146914,
-0.0080469977,
-0.1094613746,
0.1246854514,
0.0089912964,
-0.1972405016,
-0.070586212,
-0.2875488102,
-0.1359250844,
-0.1910494268,
0.0623341314,
-0.0399490297,
0.1979517341,
0.3852127492,
0.3219557405,
-0.0956421942,
0.1455478668,
-0.1070941463,
0.1637582034,
0.0806566402,
0.0923647359,
-0.1439363211,
-0.104583472,
-0.1080605909,
-0.0023586908,
0.2476172,
-0.2170475423,
-0.2661938369,
-0.1419355571,
0.3768404126,
-0.0228842944,
-0.0358234607,
-0.0351782106,
-0.1800117195,
0.16413562,
-0.1655007601,
0.120465301,
0.2528323233,
0.2045560032,
0.1759787649,
0.1867295653,
-0.0148431202,
0.0641107783,
0.0059582368,
0.0965783373,
0.3417927921,
-0.1481130272,
-0.156811744,
-0.3146477938,
0.2342948318,
-0.0372505151,
0.3855210543,
-0.1936481744,
0.1915559918,
-0.1926368922,
0.0036958677,
0.1574131548,
-0.0652417317,
0.0030420411,
0.2391291559,
0.1975854486,
-0.1815175414,
0.2595297992,
0.1466702223,
0.1041984409,
-0.020080043,
0.5160803199,
-0.3852646053,
-0.078280583,
0.0359456576,
0.1538159251,
0.0529213734,
0.0623456724,
0.0045071505,
-0.0066839131,
-0.3290792108,
-0.155304879,
0.0652153715,
0.1220393479,
0.3950309455,
0.1611402184,
0.0191941857,
-0.048688747,
-0.2124672383,
0.3583582938,
0.1800564826,
-0.3143035769,
0.1221407428,
0.1270216852,
0.2304645181,
-0.2367885113,
0.6592807174,
0.5281540751,
0.3133312762,
-0.3758439422,
0.1271787286,
-0.0340992324,
-0.176019907,
0.2069450319,
0.1847516298,
0.3671349883,
0.0971979797,
0.2671821415,
0.2085579038,
-0.2633956969,
-0.0485938936,
-0.0723656192,
-0.0130672157,
-0.1685701013,
0.452522099,
-0.2508078814,
-0.2331057936,
-0.1536244899,
0.0573426858,
-0.4240993559,
0.1701418012,
0.0354394726,
-0.022380475,
0.0756965056,
-0.2836797237,
0.098192431,
-0.0239030179,
0.5166295767,
0.1721062064,
0.5441960096,
-0.5894020796,
-0.2243751287,
-0.4315945506,
0.0422831364,
-0.0980621204,
-0.0537153222,
0.0169728436,
0.0522212051,
-0.2406836301,
0.3361566663,
0.1721650511,
0.498278141,
-0.1158370003,
-0.2824459672,
-0.3028732836,
-0.0565930493,
0.0526052341,
-0.4606131315,
0.2394747585,
-0.2231239378,
0.0929037705,
-0.1002922878,
0.14038302,
-0.0083689634,
-0.2390481979,
0.2770602405,
0.5875073075,
0.0879224688,
0.2794112563,
0.5532602668,
-0.0172409024,
-0.0034358832,
0.0521480963,
-0.3737612665,
-0.1366233677,
0.0499607846,
0.0168513358,
0.2484906018,
-0.087572135,
-0.0866055712,
-0.3632864356,
0.505617857,
-0.162427038,
0.0168918911,
-0.0326464176,
0.075258866,
0.1267989874,
0.0208194293,
-0.0418231823,
0.0828973278,
-0.018635232,
0.327113688,
-0.2005008906,
-0.2827177942,
0.3735970557,
-0.4797985852,
-0.3367661536,
0.0954471678,
0.2530972064,
0.2006329,
-0.0931802467,
-0.6303011179,
-0.2510203123,
0.338745594,
0.0636690333,
-0.1801236421,
0.3238254189,
-0.1578463912,
0.1805445999,
0.1582313627,
0.0388477407,
0.1575521678,
-0.3089762926,
0.0498125814,
-0.2299157232
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input?
using BertTokenizer;
```
encoded_reference=tokenizer.encode(reference, add_special_tokens=False)
encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False)
```
`glue_score = glue_metric.compute(encoded_prediction, encoded_reference)`
```
ValueError Traceback (most recent call last)
<ipython-input-9-4c3a3ce7b583> in <module>()
----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
198 predictions = self.data["predictions"]
199 references = self.data["references"]
--> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
201 return output
202
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references)
101 return pearson_and_spearman(predictions, references)
102 elif self.config_name in ["mrpc", "qqp"]:
--> 103 return acc_and_f1(predictions, references)
104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]:
105 return {"accuracy": simple_accuracy(predictions, references)}
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels)
60 def acc_and_f1(preds, labels):
61 acc = simple_accuracy(preds, labels)
---> 62 f1 = f1_score(y_true=labels, y_pred=preds)
63 return {
64 "accuracy": acc,
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division)
1097 pos_label=pos_label, average=average,
1098 sample_weight=sample_weight,
-> 1099 zero_division=zero_division)
1100
1101
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division)
1224 warn_for=('f-score',),
1225 sample_weight=sample_weight,
-> 1226 zero_division=zero_division)
1227 return f
1228
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division)
1482 raise ValueError("beta should be >=0 in the F-beta score")
1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels,
-> 1484 pos_label)
1485
1486 # Calculate tp_sum, pred_sum, true_sum ###
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label)
1314 raise ValueError("Target is %s but average='binary'. Please "
1315 "choose another average setting, one of %r."
-> 1316 % (y_type, average_options))
1317 elif pos_label not in (None, 1):
1318 warnings.warn("Note that pos_label (set to %r) is ignored when "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
``` | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 297 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input?
using BertTokenizer;
```
encoded_reference=tokenizer.encode(reference, add_special_tokens=False)
encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False)
```
`glue_score = glue_metric.compute(encoded_prediction, encoded_reference)`
```
ValueError Traceback (most recent call last)
<ipython-input-9-4c3a3ce7b583> in <module>()
----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
198 predictions = self.data["predictions"]
199 references = self.data["references"]
--> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
201 return output
202
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references)
101 return pearson_and_spearman(predictions, references)
102 elif self.config_name in ["mrpc", "qqp"]:
--> 103 return acc_and_f1(predictions, references)
104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]:
105 return {"accuracy": simple_accuracy(predictions, references)}
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels)
60 def acc_and_f1(preds, labels):
61 acc = simple_accuracy(preds, labels)
---> 62 f1 = f1_score(y_true=labels, y_pred=preds)
63 return {
64 "accuracy": acc,
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division)
1097 pos_label=pos_label, average=average,
1098 sample_weight=sample_weight,
-> 1099 zero_division=zero_division)
1100
1101
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division)
1224 warn_for=('f-score',),
1225 sample_weight=sample_weight,
-> 1226 zero_division=zero_division)
1227 return f
1228
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division)
1482 raise ValueError("beta should be >=0 in the F-beta score")
1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels,
-> 1484 pos_label)
1485
1486 # Calculate tp_sum, pred_sum, true_sum ###
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label)
1314 raise ValueError("Target is %s but average='binary'. Please "
1315 "choose another average setting, one of %r."
-> 1316 % (y_type, average_options))
1317 elif pos_label not in (None, 1):
1318 warnings.warn("Note that pos_label (set to %r) is ignored when "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
``` | [
-0.1694529951,
-0.2395811677,
-0.0304733943,
0.1611588299,
0.2367400527,
-0.0491648465,
0.1073008031,
0.3623578548,
0.4330275059,
0.0516283773,
-0.3168228865,
0.2763475776,
-0.0798075795,
-0.0241097249,
0.1026182249,
-0.2831492722,
-0.1162883118,
0.1604490131,
-0.2202494442,
0.3102564812,
-0.324511081,
0.2713669538,
-0.1858563274,
0.3197873235,
-0.176706776,
-0.0903876871,
0.0204839502,
-0.1961707473,
-0.3263721168,
-0.3629355133,
0.2481627911,
-0.1168349311,
0.0215858575,
0.1766418964,
-0.0001102634,
-0.0120564345,
0.4589529335,
0.0023092711,
0.158845827,
-0.1421633363,
-0.3889809251,
-0.0834811479,
0.0444146432,
-0.2361499071,
0.1346657872,
0.227521047,
0.0206138082,
-0.1826083213,
0.2193327248,
0.2709800005,
0.2774609923,
0.3871142864,
0.3126001656,
-0.198993355,
0.1724915355,
-0.2082324624,
0.026587747,
0.8870655894,
-0.3272165358,
-0.4651895463,
-0.0078015192,
0.2069443911,
-0.1057070941,
0.218007803,
0.2240159214,
0.0521960594,
0.3717000186,
-0.3202622831,
-0.1326412708,
-0.0713141859,
-0.2181351036,
-0.2285422236,
-0.1499314755,
0.0416572466,
0.0471169651,
-0.3763106465,
0.0972396657,
-0.0726784989,
0.0581604987,
-0.2293187529,
-0.0549694262,
0.1402760744,
-0.1144136414,
0.2752961814,
0.2400906682,
0.3214468956,
-0.1981529295,
0.2969001532,
0.4147273004,
0.2154425085,
-0.1390431076,
0.0435456336,
-0.2401257455,
0.1653348655,
-0.2926101983,
-0.0423279405,
-0.0104531357,
0.1914085448,
0.023926137,
-0.2354669124,
0.0487307645,
-0.2080051303,
0.4857489467,
0.3427954614,
0.0602979623,
0.3389248252,
0.3534552455,
0.1564651877,
0.1274254024,
0.2417822778,
0.0023342953,
-0.1694934219,
0.2388443798,
-0.3881969452,
0.3655795455,
0.2413903475,
0.1085237861,
0.0770597979,
-0.42625916,
-0.1771683097,
-0.0480155163,
-0.0049846852,
0.0369217172,
0.0718626007,
-0.0187913869,
0.0006606981,
0.1049902812,
0.1906935871,
-0.1910692155,
0.0570395105,
-0.134284988,
0.4053149223,
-0.3368166685,
0.1215168908,
0.1513899863,
-0.0332919173,
0.2043575495,
-0.1073044166,
0.1692518443,
-0.1872257888,
0.0212524142,
-0.2450527847,
-0.0659323186,
0.1954424679,
0.0480441153,
0.0028142685,
0.3261823952,
-0.561188221,
-0.1635351032,
-0.2155402005,
-0.2283362746,
-0.3000667393,
-0.1469438225,
0.2351692468,
-0.1796000153,
0.0300377868,
-0.4003527462,
-0.18054685,
0.2377262414,
0.0449478962,
0.1126891524,
-0.2676101327,
-0.248490423,
-0.2921721637,
0.2016496807,
0.1388748437,
-0.081725128,
-0.1147433072,
-0.1918640137,
-0.1030080393,
0.1174747273,
0.3144729435,
0.1723899394,
0.4397912621,
-0.2319522351,
0.1515319645,
0.5892596841,
-0.6347140074,
-0.2369811535,
0.1007083803,
0.0968759432,
-0.2819085717,
-0.0695401281,
0.0950887203,
0.2874577343,
0.0750941411,
0.4693044722,
0.1775258034,
-0.1200407073,
-0.1910820305,
-0.3003586829,
0.0345601849,
0.0852224305,
0.0522735529,
0.204529196,
-0.0504424088,
0.1096888259,
-0.0649217889,
-0.1438206434,
0.1973371804,
0.0194500182,
0.0301418714,
0.3318207562,
-0.2376645952,
0.0082452698,
-0.5078001618,
-0.0287532341,
0.0765151903,
-0.553919673,
0.1985281706,
0.0962850451,
-0.0163021199,
-0.5231423974,
0.1050596312,
-0.0699512213,
-0.03930825,
0.2326908708,
-0.2064476758,
0.3046909273,
0.023179736,
-0.0384820849,
0.1710437536,
0.0765674636,
0.0847158432,
-0.0891412199,
0.2145031244,
-0.276211828,
-0.4148798585,
0.1382676363,
0.3498591185,
0.2727720737,
0.0353044197,
-0.1092622951,
0.4997554719,
-0.142418474,
-0.2285176367,
0.0557276495,
-0.0633072555,
-0.0071698241,
0.0306299012,
-0.0186234266,
-0.1132491007,
0.1906822026,
-0.0293519255,
0.3210163116,
0.1958460212,
0.0103194714,
0.2974857986,
-0.1180672869,
0.3273962736,
-0.1225313768,
-0.0584308356,
-0.1500229836,
-0.1341113597,
0.4181140065,
-0.2973011434,
-0.079939805,
-0.1827304512,
0.3219169676,
-0.2306053489,
0.3350414336,
-0.0496506169,
0.1854765564,
-0.0289648678,
-0.2190927118,
0.1075798124,
-0.1537141651,
0.1282527298,
0.5975931287,
-0.0049649118,
-0.1247709543,
0.0250174403,
-0.1926957071,
-0.0234324075,
0.1754010469,
0.067482762,
0.0308193807,
0.1081281006,
0.1688194126,
-0.0281778388,
-0.0380484201,
0.1020590067,
-0.2313186675,
0.2311970145,
-0.3220552206,
-0.0178320818,
-0.0451467857,
-0.4319618344,
-0.1677063406,
-0.1099139154,
-0.2902899086,
-0.6119657159,
-0.0572346374,
0.0513688922,
0.0873179585,
0.1892626882,
0.3226215541,
0.0651797056,
0.1116791368,
0.0968882442,
0.0522670522,
-0.2201309204,
-0.0294673517,
0.0525177717,
0.0137361856,
0.2037272751,
0.4438385963,
-0.1036849022,
-0.0145903062,
-0.1050945073,
-0.3087321818,
0.0173460152,
-0.284208566,
0.6033972502,
0.4132929742,
-0.1238142774,
-0.0578881688,
-0.3781407177,
0.4658440053,
-0.4250402749,
0.0171628073,
0.2245608121,
-0.2028574646,
-0.0457103439,
-0.1568725556,
0.0534092635,
-0.287055403,
-0.3602619469,
0.3244149089,
0.1362112015,
0.0870979726,
0.0247130822,
-0.2230974138,
0.3781216741,
-0.1902918667,
-0.1985459775,
-0.1898384243,
-0.028720418,
0.3248329163,
-0.2061115205,
-0.3413918018,
-0.0886327177,
-0.0667746961,
0.3206013739,
-0.2410281003,
-0.2447147071,
-0.5733759403,
-0.1851422787,
0.0286155455,
-0.1296887249,
0.1928844601,
0.0440014787,
-0.167107597,
-0.0649084672,
-0.0949189737,
-0.2339580804,
0.1628339589,
0.2192822695,
0.0926074758,
-0.1301689148,
0.3421755135,
0.0853843167,
0.3098372221,
0.1035998538,
-0.0924217552,
0.2702837288,
0.0431023166,
0.2309778184,
0.0065479986,
-0.491092056,
0.1871617734,
-0.1212336197,
0.3261260986,
-0.1169686243,
-0.0228460804,
-0.0533291288,
-0.2160978168,
-0.1429291666,
-0.1235206351,
-0.2217900902,
0.074424848,
0.015262045,
0.1742431223,
0.0593150668,
-0.2170495242,
-0.2897801697,
-0.2181467861,
0.194475472,
0.2156715542,
0.0103607569,
-0.0712357908,
-0.0382276587,
-0.2960557938,
-0.3888407648,
0.4718081057,
0.1434948593,
0.3303481638,
-0.1176618636,
0.2998415828,
-0.151671797,
0.1147293374,
0.2170618773,
-0.3560433984,
0.0797637254,
0.289891392,
0.1962631643,
-0.553840816,
-0.1381314546,
-0.4275740981,
0.3352845013,
0.5549221039,
0.4441613555,
-0.2514419854,
0.0707287714,
0.4990738928,
-0.0577812083,
-0.0494859219,
-0.4405651391,
-0.4276401699,
-0.1975729614,
-0.1345931292,
-0.0735193864,
0.1434213966,
0.206171304,
0.3873662949,
0.0714510009,
-0.092812404,
-0.2010710239,
0.0717374533,
-0.2025193572,
0.0308997184,
0.0319242142,
0.0896567032,
-0.2613340616,
-0.0328471586,
-0.5163642764,
-0.1181047037,
-0.0492083095,
-0.0583245344,
0.1162240207,
0.0065504503,
0.3921330869,
-0.103167668,
-0.1336191893,
0.2324883044,
-0.2945845127,
0.4098880291,
0.0433741398,
0.0918041617,
0.3446732759,
0.2249441296,
-0.1188236699,
0.1059013903,
0.4642906785,
0.2396438867,
0.0409607589,
0.3867137134,
0.2303500175,
-0.2547430396,
0.2100531459,
0.1255096793,
0.7316865921,
-0.0363745652,
-0.208169654,
0.2821577489,
-0.1958426982,
0.6601781845,
0.2018427998,
0.2584862709,
-0.2552503347,
-0.2401175946,
0.0362041444,
-0.1886275113,
0.1207555383,
-0.2527750432,
-0.4338819981,
0.4902592897,
0.021653058,
0.1240033507,
-0.1225314587,
0.1950632185,
-0.1712217033,
-0.168716073,
-0.0379026867,
0.1914610863,
-0.3335967958,
0.1056694463,
-0.018845696,
-0.0623408183,
0.1282528043,
-0.0751281381,
-0.2535683513,
-0.1657011062,
-0.3714180887,
0.1900476068,
0.23426871,
0.0006984188,
0.0667433739,
-0.256437093,
0.2165790647,
0.1683936715,
-0.0986780003,
-0.0945845693,
-0.0107040033,
-0.2469309419,
0.1475565135,
0.122889325,
-0.1027314737,
-0.1388568282,
-0.11702317,
0.0286957249,
0.0947821364,
-0.2603462636,
0.2329950631,
0.111067906,
0.0089346273,
-0.2510278523,
-0.2027094364,
-0.1664213538,
-0.0228839535,
-0.0703514144,
0.1712866575,
0.0046735005,
-0.1367911249,
0.2804693282,
-0.0659419373,
-0.1624079049,
0.0864233226,
0.2396938503,
-0.0793858096,
-0.019810915,
0.1160603017,
-0.1933649331,
-0.2555322647,
-0.0758575499,
-0.1532200128,
-0.2182992101,
-0.2836369276,
0.123461619,
-0.1197278947,
-0.0283319429,
-0.1401844621,
0.1114250422,
0.4184064269,
0.2592691183,
0.0969693661,
-0.4761910737,
-0.1332364529,
0.277235657,
-0.0170343108,
-0.1239773855,
-0.1470874995,
0.3221762776,
0.1539583504,
0.3371092677,
-0.3407652676,
-0.0861638635,
-0.3368869722,
0.172756806,
0.557708323,
-0.3882574737,
0.0320825651,
0.0896287262,
0.1925500333,
0.2407435775,
-0.1684648395,
-0.2781486213,
-0.0453974754,
0.0884146914,
-0.0080469977,
-0.1094613746,
0.1246854514,
0.0089912964,
-0.1972405016,
-0.070586212,
-0.2875488102,
-0.1359250844,
-0.1910494268,
0.0623341314,
-0.0399490297,
0.1979517341,
0.3852127492,
0.3219557405,
-0.0956421942,
0.1455478668,
-0.1070941463,
0.1637582034,
0.0806566402,
0.0923647359,
-0.1439363211,
-0.104583472,
-0.1080605909,
-0.0023586908,
0.2476172,
-0.2170475423,
-0.2661938369,
-0.1419355571,
0.3768404126,
-0.0228842944,
-0.0358234607,
-0.0351782106,
-0.1800117195,
0.16413562,
-0.1655007601,
0.120465301,
0.2528323233,
0.2045560032,
0.1759787649,
0.1867295653,
-0.0148431202,
0.0641107783,
0.0059582368,
0.0965783373,
0.3417927921,
-0.1481130272,
-0.156811744,
-0.3146477938,
0.2342948318,
-0.0372505151,
0.3855210543,
-0.1936481744,
0.1915559918,
-0.1926368922,
0.0036958677,
0.1574131548,
-0.0652417317,
0.0030420411,
0.2391291559,
0.1975854486,
-0.1815175414,
0.2595297992,
0.1466702223,
0.1041984409,
-0.020080043,
0.5160803199,
-0.3852646053,
-0.078280583,
0.0359456576,
0.1538159251,
0.0529213734,
0.0623456724,
0.0045071505,
-0.0066839131,
-0.3290792108,
-0.155304879,
0.0652153715,
0.1220393479,
0.3950309455,
0.1611402184,
0.0191941857,
-0.048688747,
-0.2124672383,
0.3583582938,
0.1800564826,
-0.3143035769,
0.1221407428,
0.1270216852,
0.2304645181,
-0.2367885113,
0.6592807174,
0.5281540751,
0.3133312762,
-0.3758439422,
0.1271787286,
-0.0340992324,
-0.176019907,
0.2069450319,
0.1847516298,
0.3671349883,
0.0971979797,
0.2671821415,
0.2085579038,
-0.2633956969,
-0.0485938936,
-0.0723656192,
-0.0130672157,
-0.1685701013,
0.452522099,
-0.2508078814,
-0.2331057936,
-0.1536244899,
0.0573426858,
-0.4240993559,
0.1701418012,
0.0354394726,
-0.022380475,
0.0756965056,
-0.2836797237,
0.098192431,
-0.0239030179,
0.5166295767,
0.1721062064,
0.5441960096,
-0.5894020796,
-0.2243751287,
-0.4315945506,
0.0422831364,
-0.0980621204,
-0.0537153222,
0.0169728436,
0.0522212051,
-0.2406836301,
0.3361566663,
0.1721650511,
0.498278141,
-0.1158370003,
-0.2824459672,
-0.3028732836,
-0.0565930493,
0.0526052341,
-0.4606131315,
0.2394747585,
-0.2231239378,
0.0929037705,
-0.1002922878,
0.14038302,
-0.0083689634,
-0.2390481979,
0.2770602405,
0.5875073075,
0.0879224688,
0.2794112563,
0.5532602668,
-0.0172409024,
-0.0034358832,
0.0521480963,
-0.3737612665,
-0.1366233677,
0.0499607846,
0.0168513358,
0.2484906018,
-0.087572135,
-0.0866055712,
-0.3632864356,
0.505617857,
-0.162427038,
0.0168918911,
-0.0326464176,
0.075258866,
0.1267989874,
0.0208194293,
-0.0418231823,
0.0828973278,
-0.018635232,
0.327113688,
-0.2005008906,
-0.2827177942,
0.3735970557,
-0.4797985852,
-0.3367661536,
0.0954471678,
0.2530972064,
0.2006329,
-0.0931802467,
-0.6303011179,
-0.2510203123,
0.338745594,
0.0636690333,
-0.1801236421,
0.3238254189,
-0.1578463912,
0.1805445999,
0.1582313627,
0.0388477407,
0.1575521678,
-0.3089762926,
0.0498125814,
-0.2299157232
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | MRPC is also a binary classification task, so its metric is a binary classification metric.
To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task). | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 55 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
MRPC is also a binary classification task, so its metric is a binary classification metric.
To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task). | [
-0.1694529951,
-0.2395811677,
-0.0304733943,
0.1611588299,
0.2367400527,
-0.0491648465,
0.1073008031,
0.3623578548,
0.4330275059,
0.0516283773,
-0.3168228865,
0.2763475776,
-0.0798075795,
-0.0241097249,
0.1026182249,
-0.2831492722,
-0.1162883118,
0.1604490131,
-0.2202494442,
0.3102564812,
-0.324511081,
0.2713669538,
-0.1858563274,
0.3197873235,
-0.176706776,
-0.0903876871,
0.0204839502,
-0.1961707473,
-0.3263721168,
-0.3629355133,
0.2481627911,
-0.1168349311,
0.0215858575,
0.1766418964,
-0.0001102634,
-0.0120564345,
0.4589529335,
0.0023092711,
0.158845827,
-0.1421633363,
-0.3889809251,
-0.0834811479,
0.0444146432,
-0.2361499071,
0.1346657872,
0.227521047,
0.0206138082,
-0.1826083213,
0.2193327248,
0.2709800005,
0.2774609923,
0.3871142864,
0.3126001656,
-0.198993355,
0.1724915355,
-0.2082324624,
0.026587747,
0.8870655894,
-0.3272165358,
-0.4651895463,
-0.0078015192,
0.2069443911,
-0.1057070941,
0.218007803,
0.2240159214,
0.0521960594,
0.3717000186,
-0.3202622831,
-0.1326412708,
-0.0713141859,
-0.2181351036,
-0.2285422236,
-0.1499314755,
0.0416572466,
0.0471169651,
-0.3763106465,
0.0972396657,
-0.0726784989,
0.0581604987,
-0.2293187529,
-0.0549694262,
0.1402760744,
-0.1144136414,
0.2752961814,
0.2400906682,
0.3214468956,
-0.1981529295,
0.2969001532,
0.4147273004,
0.2154425085,
-0.1390431076,
0.0435456336,
-0.2401257455,
0.1653348655,
-0.2926101983,
-0.0423279405,
-0.0104531357,
0.1914085448,
0.023926137,
-0.2354669124,
0.0487307645,
-0.2080051303,
0.4857489467,
0.3427954614,
0.0602979623,
0.3389248252,
0.3534552455,
0.1564651877,
0.1274254024,
0.2417822778,
0.0023342953,
-0.1694934219,
0.2388443798,
-0.3881969452,
0.3655795455,
0.2413903475,
0.1085237861,
0.0770597979,
-0.42625916,
-0.1771683097,
-0.0480155163,
-0.0049846852,
0.0369217172,
0.0718626007,
-0.0187913869,
0.0006606981,
0.1049902812,
0.1906935871,
-0.1910692155,
0.0570395105,
-0.134284988,
0.4053149223,
-0.3368166685,
0.1215168908,
0.1513899863,
-0.0332919173,
0.2043575495,
-0.1073044166,
0.1692518443,
-0.1872257888,
0.0212524142,
-0.2450527847,
-0.0659323186,
0.1954424679,
0.0480441153,
0.0028142685,
0.3261823952,
-0.561188221,
-0.1635351032,
-0.2155402005,
-0.2283362746,
-0.3000667393,
-0.1469438225,
0.2351692468,
-0.1796000153,
0.0300377868,
-0.4003527462,
-0.18054685,
0.2377262414,
0.0449478962,
0.1126891524,
-0.2676101327,
-0.248490423,
-0.2921721637,
0.2016496807,
0.1388748437,
-0.081725128,
-0.1147433072,
-0.1918640137,
-0.1030080393,
0.1174747273,
0.3144729435,
0.1723899394,
0.4397912621,
-0.2319522351,
0.1515319645,
0.5892596841,
-0.6347140074,
-0.2369811535,
0.1007083803,
0.0968759432,
-0.2819085717,
-0.0695401281,
0.0950887203,
0.2874577343,
0.0750941411,
0.4693044722,
0.1775258034,
-0.1200407073,
-0.1910820305,
-0.3003586829,
0.0345601849,
0.0852224305,
0.0522735529,
0.204529196,
-0.0504424088,
0.1096888259,
-0.0649217889,
-0.1438206434,
0.1973371804,
0.0194500182,
0.0301418714,
0.3318207562,
-0.2376645952,
0.0082452698,
-0.5078001618,
-0.0287532341,
0.0765151903,
-0.553919673,
0.1985281706,
0.0962850451,
-0.0163021199,
-0.5231423974,
0.1050596312,
-0.0699512213,
-0.03930825,
0.2326908708,
-0.2064476758,
0.3046909273,
0.023179736,
-0.0384820849,
0.1710437536,
0.0765674636,
0.0847158432,
-0.0891412199,
0.2145031244,
-0.276211828,
-0.4148798585,
0.1382676363,
0.3498591185,
0.2727720737,
0.0353044197,
-0.1092622951,
0.4997554719,
-0.142418474,
-0.2285176367,
0.0557276495,
-0.0633072555,
-0.0071698241,
0.0306299012,
-0.0186234266,
-0.1132491007,
0.1906822026,
-0.0293519255,
0.3210163116,
0.1958460212,
0.0103194714,
0.2974857986,
-0.1180672869,
0.3273962736,
-0.1225313768,
-0.0584308356,
-0.1500229836,
-0.1341113597,
0.4181140065,
-0.2973011434,
-0.079939805,
-0.1827304512,
0.3219169676,
-0.2306053489,
0.3350414336,
-0.0496506169,
0.1854765564,
-0.0289648678,
-0.2190927118,
0.1075798124,
-0.1537141651,
0.1282527298,
0.5975931287,
-0.0049649118,
-0.1247709543,
0.0250174403,
-0.1926957071,
-0.0234324075,
0.1754010469,
0.067482762,
0.0308193807,
0.1081281006,
0.1688194126,
-0.0281778388,
-0.0380484201,
0.1020590067,
-0.2313186675,
0.2311970145,
-0.3220552206,
-0.0178320818,
-0.0451467857,
-0.4319618344,
-0.1677063406,
-0.1099139154,
-0.2902899086,
-0.6119657159,
-0.0572346374,
0.0513688922,
0.0873179585,
0.1892626882,
0.3226215541,
0.0651797056,
0.1116791368,
0.0968882442,
0.0522670522,
-0.2201309204,
-0.0294673517,
0.0525177717,
0.0137361856,
0.2037272751,
0.4438385963,
-0.1036849022,
-0.0145903062,
-0.1050945073,
-0.3087321818,
0.0173460152,
-0.284208566,
0.6033972502,
0.4132929742,
-0.1238142774,
-0.0578881688,
-0.3781407177,
0.4658440053,
-0.4250402749,
0.0171628073,
0.2245608121,
-0.2028574646,
-0.0457103439,
-0.1568725556,
0.0534092635,
-0.287055403,
-0.3602619469,
0.3244149089,
0.1362112015,
0.0870979726,
0.0247130822,
-0.2230974138,
0.3781216741,
-0.1902918667,
-0.1985459775,
-0.1898384243,
-0.028720418,
0.3248329163,
-0.2061115205,
-0.3413918018,
-0.0886327177,
-0.0667746961,
0.3206013739,
-0.2410281003,
-0.2447147071,
-0.5733759403,
-0.1851422787,
0.0286155455,
-0.1296887249,
0.1928844601,
0.0440014787,
-0.167107597,
-0.0649084672,
-0.0949189737,
-0.2339580804,
0.1628339589,
0.2192822695,
0.0926074758,
-0.1301689148,
0.3421755135,
0.0853843167,
0.3098372221,
0.1035998538,
-0.0924217552,
0.2702837288,
0.0431023166,
0.2309778184,
0.0065479986,
-0.491092056,
0.1871617734,
-0.1212336197,
0.3261260986,
-0.1169686243,
-0.0228460804,
-0.0533291288,
-0.2160978168,
-0.1429291666,
-0.1235206351,
-0.2217900902,
0.074424848,
0.015262045,
0.1742431223,
0.0593150668,
-0.2170495242,
-0.2897801697,
-0.2181467861,
0.194475472,
0.2156715542,
0.0103607569,
-0.0712357908,
-0.0382276587,
-0.2960557938,
-0.3888407648,
0.4718081057,
0.1434948593,
0.3303481638,
-0.1176618636,
0.2998415828,
-0.151671797,
0.1147293374,
0.2170618773,
-0.3560433984,
0.0797637254,
0.289891392,
0.1962631643,
-0.553840816,
-0.1381314546,
-0.4275740981,
0.3352845013,
0.5549221039,
0.4441613555,
-0.2514419854,
0.0707287714,
0.4990738928,
-0.0577812083,
-0.0494859219,
-0.4405651391,
-0.4276401699,
-0.1975729614,
-0.1345931292,
-0.0735193864,
0.1434213966,
0.206171304,
0.3873662949,
0.0714510009,
-0.092812404,
-0.2010710239,
0.0717374533,
-0.2025193572,
0.0308997184,
0.0319242142,
0.0896567032,
-0.2613340616,
-0.0328471586,
-0.5163642764,
-0.1181047037,
-0.0492083095,
-0.0583245344,
0.1162240207,
0.0065504503,
0.3921330869,
-0.103167668,
-0.1336191893,
0.2324883044,
-0.2945845127,
0.4098880291,
0.0433741398,
0.0918041617,
0.3446732759,
0.2249441296,
-0.1188236699,
0.1059013903,
0.4642906785,
0.2396438867,
0.0409607589,
0.3867137134,
0.2303500175,
-0.2547430396,
0.2100531459,
0.1255096793,
0.7316865921,
-0.0363745652,
-0.208169654,
0.2821577489,
-0.1958426982,
0.6601781845,
0.2018427998,
0.2584862709,
-0.2552503347,
-0.2401175946,
0.0362041444,
-0.1886275113,
0.1207555383,
-0.2527750432,
-0.4338819981,
0.4902592897,
0.021653058,
0.1240033507,
-0.1225314587,
0.1950632185,
-0.1712217033,
-0.168716073,
-0.0379026867,
0.1914610863,
-0.3335967958,
0.1056694463,
-0.018845696,
-0.0623408183,
0.1282528043,
-0.0751281381,
-0.2535683513,
-0.1657011062,
-0.3714180887,
0.1900476068,
0.23426871,
0.0006984188,
0.0667433739,
-0.256437093,
0.2165790647,
0.1683936715,
-0.0986780003,
-0.0945845693,
-0.0107040033,
-0.2469309419,
0.1475565135,
0.122889325,
-0.1027314737,
-0.1388568282,
-0.11702317,
0.0286957249,
0.0947821364,
-0.2603462636,
0.2329950631,
0.111067906,
0.0089346273,
-0.2510278523,
-0.2027094364,
-0.1664213538,
-0.0228839535,
-0.0703514144,
0.1712866575,
0.0046735005,
-0.1367911249,
0.2804693282,
-0.0659419373,
-0.1624079049,
0.0864233226,
0.2396938503,
-0.0793858096,
-0.019810915,
0.1160603017,
-0.1933649331,
-0.2555322647,
-0.0758575499,
-0.1532200128,
-0.2182992101,
-0.2836369276,
0.123461619,
-0.1197278947,
-0.0283319429,
-0.1401844621,
0.1114250422,
0.4184064269,
0.2592691183,
0.0969693661,
-0.4761910737,
-0.1332364529,
0.277235657,
-0.0170343108,
-0.1239773855,
-0.1470874995,
0.3221762776,
0.1539583504,
0.3371092677,
-0.3407652676,
-0.0861638635,
-0.3368869722,
0.172756806,
0.557708323,
-0.3882574737,
0.0320825651,
0.0896287262,
0.1925500333,
0.2407435775,
-0.1684648395,
-0.2781486213,
-0.0453974754,
0.0884146914,
-0.0080469977,
-0.1094613746,
0.1246854514,
0.0089912964,
-0.1972405016,
-0.070586212,
-0.2875488102,
-0.1359250844,
-0.1910494268,
0.0623341314,
-0.0399490297,
0.1979517341,
0.3852127492,
0.3219557405,
-0.0956421942,
0.1455478668,
-0.1070941463,
0.1637582034,
0.0806566402,
0.0923647359,
-0.1439363211,
-0.104583472,
-0.1080605909,
-0.0023586908,
0.2476172,
-0.2170475423,
-0.2661938369,
-0.1419355571,
0.3768404126,
-0.0228842944,
-0.0358234607,
-0.0351782106,
-0.1800117195,
0.16413562,
-0.1655007601,
0.120465301,
0.2528323233,
0.2045560032,
0.1759787649,
0.1867295653,
-0.0148431202,
0.0641107783,
0.0059582368,
0.0965783373,
0.3417927921,
-0.1481130272,
-0.156811744,
-0.3146477938,
0.2342948318,
-0.0372505151,
0.3855210543,
-0.1936481744,
0.1915559918,
-0.1926368922,
0.0036958677,
0.1574131548,
-0.0652417317,
0.0030420411,
0.2391291559,
0.1975854486,
-0.1815175414,
0.2595297992,
0.1466702223,
0.1041984409,
-0.020080043,
0.5160803199,
-0.3852646053,
-0.078280583,
0.0359456576,
0.1538159251,
0.0529213734,
0.0623456724,
0.0045071505,
-0.0066839131,
-0.3290792108,
-0.155304879,
0.0652153715,
0.1220393479,
0.3950309455,
0.1611402184,
0.0191941857,
-0.048688747,
-0.2124672383,
0.3583582938,
0.1800564826,
-0.3143035769,
0.1221407428,
0.1270216852,
0.2304645181,
-0.2367885113,
0.6592807174,
0.5281540751,
0.3133312762,
-0.3758439422,
0.1271787286,
-0.0340992324,
-0.176019907,
0.2069450319,
0.1847516298,
0.3671349883,
0.0971979797,
0.2671821415,
0.2085579038,
-0.2633956969,
-0.0485938936,
-0.0723656192,
-0.0130672157,
-0.1685701013,
0.452522099,
-0.2508078814,
-0.2331057936,
-0.1536244899,
0.0573426858,
-0.4240993559,
0.1701418012,
0.0354394726,
-0.022380475,
0.0756965056,
-0.2836797237,
0.098192431,
-0.0239030179,
0.5166295767,
0.1721062064,
0.5441960096,
-0.5894020796,
-0.2243751287,
-0.4315945506,
0.0422831364,
-0.0980621204,
-0.0537153222,
0.0169728436,
0.0522212051,
-0.2406836301,
0.3361566663,
0.1721650511,
0.498278141,
-0.1158370003,
-0.2824459672,
-0.3028732836,
-0.0565930493,
0.0526052341,
-0.4606131315,
0.2394747585,
-0.2231239378,
0.0929037705,
-0.1002922878,
0.14038302,
-0.0083689634,
-0.2390481979,
0.2770602405,
0.5875073075,
0.0879224688,
0.2794112563,
0.5532602668,
-0.0172409024,
-0.0034358832,
0.0521480963,
-0.3737612665,
-0.1366233677,
0.0499607846,
0.0168513358,
0.2484906018,
-0.087572135,
-0.0866055712,
-0.3632864356,
0.505617857,
-0.162427038,
0.0168918911,
-0.0326464176,
0.075258866,
0.1267989874,
0.0208194293,
-0.0418231823,
0.0828973278,
-0.018635232,
0.327113688,
-0.2005008906,
-0.2827177942,
0.3735970557,
-0.4797985852,
-0.3367661536,
0.0954471678,
0.2530972064,
0.2006329,
-0.0931802467,
-0.6303011179,
-0.2510203123,
0.338745594,
0.0636690333,
-0.1801236421,
0.3238254189,
-0.1578463912,
0.1805445999,
0.1582313627,
0.0388477407,
0.1575521678,
-0.3089762926,
0.0498125814,
-0.2299157232
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | It looks like it comes from `mwparserfromhell`.
Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes.
It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 65 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
It looks like it comes from `mwparserfromhell`.
Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes.
It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue. | [
-0.2354937047,
-0.1382553875,
0.0552539453,
0.521273911,
0.0680220127,
-0.0856209695,
-0.1348955035,
0.3071226478,
0.2067665309,
0.2888489962,
0.3477607667,
-0.0715626478,
0.0598850586,
-0.4790318608,
0.0541911088,
0.0624248274,
0.2404569983,
0.1717450619,
0.0140157277,
-0.1562187225,
-0.0564818084,
0.1827824861,
-0.318266809,
0.4079271257,
-0.2893716097,
0.1333573908,
0.1821404994,
0.0453481004,
-0.087393418,
-0.5024522543,
0.160219267,
-0.3359047174,
0.1328683943,
0.2546609342,
-0.0001277348,
-0.154877454,
0.5309700966,
-0.0702343062,
-0.2122366428,
-0.0369729102,
-0.0304520987,
-0.105701223,
-0.089587763,
-0.2332392335,
0.2424845248,
0.2433309704,
0.1983075589,
-0.0713176578,
0.3108443916,
0.335301429,
0.0761990026,
0.3869356513,
0.112401545,
0.0967790335,
0.6936829686,
0.1377622783,
0.1252027899,
0.0944367424,
0.0384379961,
-0.2644345462,
0.0345918611,
0.1256116182,
-0.3363274634,
-0.2502648234,
-0.1778665483,
-0.0576804616,
0.14726381,
-0.2539334297,
0.3059660196,
0.2866600156,
0.365068078,
-0.0381625146,
0.2111721784,
-0.0308047645,
-0.1637746692,
0.2019704282,
0.3874560595,
0.4430147409,
-0.595443368,
0.1332690567,
0.4793851674,
-0.1277801096,
-0.0204473808,
0.2640166283,
-0.2832792401,
0.9716566801,
0.1224021465,
0.2389767766,
0.1774604321,
-0.0569027215,
-0.2832582295,
-0.1096519977,
-0.0692287609,
0.1504844576,
-0.102513738,
-0.0143692093,
0.0064466712,
-0.1386353821,
0.0563423745,
-0.5317035317,
-0.4928171337,
0.1415745467,
-0.069442369,
0.1635711491,
0.5938709974,
-0.2485042512,
0.2245709896,
0.0420953743,
0.0299752485,
-0.0062609348,
0.0381636657,
0.1198108718,
-0.057612963,
0.0200765431,
-0.3506613672,
0.1356575042,
0.2376643866,
-0.3176877499,
-0.2114285678,
0.159735024,
-0.1107550859,
-0.1038236916,
-0.069324784,
0.5388109088,
-0.0688827485,
0.3479131758,
-0.0419886336,
-0.0867055804,
-0.1887227446,
-0.4938830137,
0.0754928514,
0.178068161,
-0.380615294,
0.1249619052,
-0.1930395961,
0.1050058529,
0.0449433997,
0.2112235576,
-0.0776242241,
-0.5137025714,
-0.2019976825,
-0.1689560562,
0.0394031964,
0.1415692121,
0.2810627818,
0.3291312158,
0.2446106672,
-0.3599988222,
-0.0871144235,
0.2407453358,
-0.3769001663,
-0.2545087636,
-0.4904034734,
-0.0008209082,
-0.0353647657,
0.2822314799,
-0.5947404504,
0.0508754626,
-0.0120044863,
-0.057580214,
0.1264092922,
-0.1706040502,
-0.1604577005,
-0.0579749867,
0.1905233264,
0.450928092,
-0.0708899572,
-0.1168513149,
-0.1774330884,
-0.2140927166,
0.2010286301,
0.2269360125,
-0.1839905083,
0.5195730329,
-0.4584498405,
0.4582999945,
0.3113237619,
-0.2849516869,
-0.0571351722,
-0.0979463086,
-0.1427362114,
-0.0916977674,
0.0400381088,
-0.1657856852,
0.1380466074,
-0.1873324811,
-0.2785452902,
0.0720924735,
0.0015592657,
0.2039586008,
-0.197508499,
-0.3238650262,
0.2573684156,
0.1238996834,
0.1697515845,
-0.0927248821,
0.1561168134,
0.3895821869,
0.5115287304,
-0.0813132077,
-0.0571514368,
0.0208802912,
0.2228116989,
0.153954491,
-0.0132472683,
-0.117841281,
-0.0752423257,
0.0509772487,
0.1157512367,
0.2266795039,
-0.2539450526,
-0.2227997929,
-0.2215527147,
0.279384464,
0.024931509,
0.1636643559,
0.0264547728,
0.1939319819,
-0.2000496089,
0.2564405203,
-0.0753115639,
-0.2795471549,
-0.3256709874,
0.1935567558,
-0.0402255952,
0.2280983329,
-0.0192769114,
-0.1150705293,
-0.2168323547,
-0.1158805639,
0.5183764696,
0.0909277424,
-0.1253849417,
-0.0055529173,
0.2218340635,
0.1994568259,
-0.3905208409,
-0.1928245872,
-0.0735776871,
-0.4623737335,
0.0073243473,
0.2881059349,
0.014759223,
-0.0881738365,
0.304356277,
0.1623750031,
0.363026768,
0.1495343,
-0.1418319792,
0.1046722233,
0.1111195311,
-0.0588467531,
0.316501081,
-0.1134982556,
0.3225904703,
0.4323560297,
-0.0882898718,
-0.2456409484,
0.1771970987,
-0.0821040422,
0.5798692107,
-0.1613235176,
0.3835196495,
0.2482499331,
-0.2514736056,
-0.0573469363,
0.2625974119,
-0.3426445723,
0.0388191938,
-0.0855646208,
-0.1710687578,
0.2608409226,
0.1124908105,
0.0950722843,
0.4415654242,
0.1859725416,
0.0493014492,
0.0334588513,
-0.205051139,
-0.0729159415,
-0.3128657639,
-0.0842659846,
-0.5056684017,
0.2636983693,
-0.4026723802,
-0.0203205179,
-0.3042701781,
-0.0564643443,
-0.4614540637,
-0.0538029894,
-0.3293028176,
-0.1057730168,
-0.1545155197,
0.2391534597,
-0.1852567196,
0.0493122078,
-0.0950174406,
0.2174655348,
-0.093768619,
0.4357784986,
-0.1978892386,
-0.4379398525,
-0.4635024667,
-0.189854458,
0.5398993492,
0.2548498809,
0.0520803034,
-0.1376509815,
-0.2609356046,
-0.2251267582,
-0.1003713459,
0.4269750118,
0.1238299012,
0.0123564592,
-0.0263436791,
0.2941506803,
0.1405899823,
-0.3974821568,
-0.0210611112,
-0.2681168616,
-0.0495687835,
0.0712933466,
0.0634675622,
-0.0828445777,
0.1557227969,
-0.0571121126,
-0.3841395378,
-0.0979475528,
-0.2573727965,
-0.1597691774,
0.1611707956,
-0.4041494727,
-0.1138582826,
0.1818558127,
-0.4152786136,
-0.2532136738,
-0.1731047332,
0.0803439841,
0.0833423585,
0.0995666981,
-0.1332220435,
0.2256104499,
0.025985511,
0.0232238993,
0.0667403787,
-0.4840843678,
0.3821098804,
0.1489900053,
-0.0695305541,
-0.2207825333,
-0.0596510582,
0.2172508836,
-0.144477278,
0.1558894515,
0.0645779222,
-0.1554572582,
-0.3619948328,
-0.22555691,
0.4314026833,
-0.1706149578,
0.348595053,
0.088420555,
0.7554534078,
-0.1121195108,
0.1790818423,
0.2185539007,
-0.0767454877,
-0.0468220115,
0.2099902481,
-0.1366438121,
0.1960784048,
0.0041361367,
-0.3386884034,
0.5686203837,
-0.1833817214,
-0.4030362964,
-0.1962027401,
-0.1050605476,
-0.5596655011,
-0.5058276057,
0.1222736612,
0.4351058602,
0.1982284337,
-0.0593302511,
0.3139870763,
-0.0833060592,
-0.3276596069,
0.1397936195,
0.3305220306,
-0.1592596024,
-0.1249694452,
-0.2837721705,
-0.0923947841,
-0.0676725134,
0.0812113956,
0.1704553217,
0.4799146652,
-0.0280492995,
0.0361193866,
0.0095499251,
-0.0412677564,
0.5193565488,
0.2742490172,
0.3625157177,
-0.010146277,
0.1713810414,
-0.0502315424,
-0.3192233145,
-0.1449992806,
0.0795566961,
0.4323584437,
-0.0405524373,
-0.4624994397,
0.080695875,
-0.0178650115,
0.1046397313,
-0.1688562632,
0.009762832,
-0.1207339913,
-0.1927435398,
-0.2643753886,
0.3259373605,
0.1250084788,
0.089850314,
0.1837790012,
0.1340370774,
0.2293273807,
0.1369439363,
0.0553550273,
0.089638032,
0.1292002797,
0.0179470349,
-0.2357625067,
-0.174402386,
0.2055363953,
0.1944970936,
0.2299947888,
0.6723674536,
-0.1057297885,
0.0051198765,
0.1353539973,
0.181427747,
0.4497553408,
0.0121882223,
0.3555922508,
0.2967017591,
0.2326453328,
-0.2024062127,
0.1796639264,
0.2087226063,
-0.0304252785,
-0.3745731413,
0.0820447505,
0.5366144776,
-0.1198284328,
-0.0700641349,
0.1448966265,
-0.0848960802,
-0.3131198287,
0.3140999377,
0.3210223019,
1.3559762239,
0.1880855113,
0.0667419881,
0.1177505106,
0.0406065956,
0.8324740529,
-0.5170834064,
-0.1036778018,
-0.3959551156,
0.0850283131,
-0.1350561827,
-0.0578903295,
0.135956943,
0.0415620357,
-0.2892318368,
0.3057871759,
0.1148737967,
0.804969728,
0.1543679088,
0.2144239098,
0.1321058571,
-0.0270724706,
-0.2793481648,
-0.0562810861,
-0.3469497263,
0.2603120804,
-0.3400979936,
0.1158580855,
0.1644750983,
-0.3571957052,
-0.7858268023,
0.1694661081,
-0.1605655849,
0.1277383417,
0.048896648,
0.0056376858,
0.2098805159,
-0.1723473966,
0.0802906305,
0.3055695295,
-0.2605268061,
0.470558852,
-0.1250104904,
-0.2333445549,
0.0665499941,
0.0901726931,
-0.1304871291,
-0.110096328,
-0.1946901083,
0.3893640041,
0.032588806,
-0.281383127,
-0.2252383083,
-0.0576397814,
0.3674279749,
0.0094797993,
-0.4063712358,
0.0330691673,
0.22430031,
-0.133042708,
0.0234274641,
0.0034676148,
-0.1397188902,
-0.0447045378,
0.193346262,
-0.1299543977,
-0.0793369263,
0.195389837,
-0.0774390697,
-0.456489563,
0.3584893346,
0.4071045518,
-0.1613591015,
-0.1280610859,
-0.0884090886,
-0.3836039007,
-0.5540081263,
-0.1997278333,
-0.1511522979,
-0.0128999501,
-0.0689953864,
0.1237087324,
0.3696122766,
-0.0693093166,
-0.0782526955,
-0.3825038373,
0.0206222553,
0.0397142954,
-0.1970057487,
-0.0393801741,
-0.0365677215,
0.123156108,
-0.2233596742,
0.1175331548,
-0.0984476507,
-0.0244839676,
-0.4243421555,
0.1859560907,
0.428135097,
0.2743798494,
-0.3331551552,
-0.1590726376,
-0.0666215047,
0.2899632156,
0.0478480607,
0.0016908093,
-0.1511010081,
0.2825159729,
0.2611756325,
-0.1019862071,
0.2051038742,
0.0092908982,
0.337118119,
-0.0620774925,
-0.0645483881,
-0.0247719642,
0.0066656838,
0.2926816642,
0.3140415549,
0.1397956014,
-0.5953756571,
0.2701893747,
0.0647548586,
0.5508183241,
0.0569935292,
0.3407204151,
0.0993160531,
0.0030706597,
-0.1658896208,
0.2401728779,
0.1845933497,
0.2494469136,
0.0745813847,
0.1662679911,
-0.134463802,
0.1194961146,
-0.1731605828,
0.1967641413,
-0.2846856713,
-0.1794302911,
0.5265507698,
0.0529441386,
-0.1286945492,
0.0018366569,
0.4313597679,
-0.0853967145,
-0.2911443114,
0.2447131127,
-0.1568022668,
-0.2636807561,
0.3740330637,
0.1354050785,
0.3472861648,
0.0861540884,
0.1139846444,
0.0974197462,
-0.0708162412,
0.2093580663,
-0.0196561031,
-0.2225803733,
0.3959624171,
0.5164226294,
0.0391365886,
0.2192320675,
0.1454223543,
0.0987588763,
-0.0583230518,
-0.1502766013,
0.2071994245,
0.6587828398,
0.0090759043,
0.118154645,
-0.0162386149,
0.0003629115,
0.1190253198,
-0.1617890298,
-0.4723658562,
0.2215994745,
-0.2770663202,
-0.020842962,
-0.3840033114,
-0.1041666791,
-0.3006265163,
0.2633966804,
0.0993542969,
-0.0973131359,
-0.2757283747,
0.2871501148,
-0.4027181864,
0.1154579446,
-0.0865746588,
0.0279188603,
0.0112559907,
-0.3068802655,
0.1057053506,
-0.2201873064,
0.0230195615,
-0.0036655953,
0.148609966,
0.4637703896,
0.5263074636,
-0.2449308485,
-0.0690451562,
0.1363200247,
0.1998603493,
-0.0509440973,
0.0471038111,
0.0090570217,
0.4417714477,
0.1217144802,
0.0332918167,
-0.1301124245,
-0.2672183514,
0.0909218714,
-0.1036503538,
-0.0854984671,
-0.2736178935,
-0.1242918372,
-0.0035991166,
-0.2767068148,
-0.0119257364,
-0.2484141141,
0.2276867181,
0.1429168135,
0.2154940367,
0.1450826526,
0.01815309,
-0.0332679115,
0.0562599115,
0.2175430954,
0.3581022322,
0.3341638148,
-0.2006722689,
-0.5086641312,
-0.7260996699,
0.3948658705,
-0.3475839198,
-0.3004247248,
0.1989098489,
-0.0978232697,
0.1319256872,
0.4655019343,
0.1446798444,
0.2105077803,
-0.2215529084,
0.1711564064,
-0.2206071317,
-0.2862982452,
0.0909639299,
0.0040008784,
-0.1730718911,
-0.4309079945,
0.3013594747,
-0.1249779761,
-0.1084996015,
-0.1239069477,
-0.3051838875,
-0.0622992031,
-0.3106018007,
0.5700952411,
0.0224327706,
0.3696023524,
-0.0837172717,
-0.0149176428,
-0.1199047491,
-0.1047847047,
0.005030334,
-0.0278878305,
-0.1431304514,
0.3542476296,
0.1051435173,
0.2677586377,
-0.5126780868,
0.3220698237,
0.1184464842,
0.1490108967,
-0.2159142196,
-0.0274390206,
-0.2320139408,
0.0537015274,
0.1611272991,
0.0457918942,
0.0687779561,
0.2690196335,
-0.3508994281,
-0.1207108051,
0.230445534,
-0.4841432869,
-0.2777423859,
-0.3321526945,
0.4267876744,
-0.0894674063,
-0.2710383534,
-0.2365680635,
-0.1027491465,
0.187601313,
0.131023705,
-0.0490224846,
-0.2320202738,
-0.1751693189,
-0.0789411888,
-0.020544989,
-0.0076942574,
0.1971931756,
-0.5537317395,
0.2444156706,
-0.4019877613
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Hi,
Thank you for you answer.
I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part).
For the third one, I got that (I haven't display the entire text) :
> error : ==== Parque nacional Cajas ====
> {{AP|Parque nacional Cajas}}
> [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
> El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
> [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
> leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
> Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción.
How can I display the link instead of the text ? I suppose it will help you more | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 234 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Hi,
Thank you for you answer.
I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part).
For the third one, I got that (I haven't display the entire text) :
> error : ==== Parque nacional Cajas ====
> {{AP|Parque nacional Cajas}}
> [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
> El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
> [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
> leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
> Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción.
How can I display the link instead of the text ? I suppose it will help you more | [
-0.2193866968,
-0.2222700119,
0.0420610532,
0.3609673381,
0.0011144129,
-0.0577764958,
-0.2417549342,
0.20955351,
0.3074943125,
0.1932077706,
0.347832948,
0.0101026325,
0.0042323256,
-0.4349841475,
-0.0932994857,
-0.0233671535,
0.2952890992,
0.1979199648,
0.0457024276,
-0.2040557712,
-0.0073665679,
0.1882302761,
-0.4374736249,
0.3260340095,
-0.1881965101,
0.1131407768,
0.1581793875,
-0.1393147111,
0.0146040656,
-0.3755435646,
-0.0074207219,
-0.3144276142,
0.0927146003,
0.367520839,
-0.0001274272,
-0.2371360809,
0.4585937858,
-0.0967856124,
-0.1138204932,
-0.1958165467,
-0.0912487879,
-0.1459699273,
-0.1145086363,
-0.2957966328,
0.2706688344,
0.0221734066,
0.2623669207,
-0.2641824782,
0.3727796078,
0.3115124702,
0.058483582,
0.1152179092,
0.2354288548,
0.0652595013,
0.4728448391,
0.1147154421,
0.1719976962,
-0.0168297756,
0.002864039,
-0.0566981584,
0.1747065634,
0.2266066819,
-0.3517800868,
-0.2806593478,
-0.1432514638,
0.0191190299,
0.3303057253,
-0.3932857215,
0.4076827765,
0.174907133,
0.3341665268,
-0.0630972311,
0.3528116643,
-0.0091338605,
-0.2008416504,
0.1968028247,
0.4043152332,
0.5426405072,
-0.4197177589,
0.0691998452,
0.2718421817,
-0.0963862315,
-0.1063989475,
0.3659135997,
-0.1545754522,
0.8306196332,
0.0233019032,
0.2787498236,
0.0719276965,
-0.0208498593,
-0.0637709871,
-0.2760686874,
-0.024061691,
0.2852090597,
-0.0458301939,
0.0604046397,
-0.1112737358,
-0.1204129905,
-0.0344837233,
-0.535215497,
-0.3188852966,
0.016315151,
0.0520351604,
0.2536084652,
0.5370833278,
-0.1810669601,
0.174420476,
0.0504515506,
-0.1436624676,
-0.0362119786,
0.0503576323,
-0.0149716679,
0.0126638422,
-0.003157866,
-0.4311352372,
0.1612440944,
0.207602337,
-0.1855863482,
-0.0431768186,
0.3412980437,
-0.2080373168,
-0.0389117561,
-0.100275293,
0.4228108227,
-0.0640100092,
0.3921247125,
0.0432950668,
-0.0033579941,
-0.1112079844,
-0.473174274,
0.0116122831,
0.3763634861,
-0.3916966021,
0.1339966059,
-0.2620750368,
0.2182764858,
0.1239407286,
0.2374804169,
-0.0575655438,
-0.6647429466,
-0.1636942178,
-0.3196176887,
0.0889815688,
0.0721606463,
0.2993113697,
0.4473593235,
0.2203228325,
-0.3982048035,
-0.0111892289,
0.2441386729,
-0.3707469106,
-0.1091460958,
-0.5119053125,
0.0327002816,
-0.007227439,
0.2863238752,
-0.6130177379,
0.0710353032,
-0.0608306453,
-0.2034664899,
0.1553457379,
-0.1366090924,
-0.0946947634,
-0.0401312523,
0.1314943433,
0.2843760848,
-0.1842534095,
0.1015154496,
-0.1600364894,
-0.1020809412,
0.4438623786,
0.1019087657,
-0.0799844414,
0.6557811499,
-0.4682842493,
0.6272984147,
0.206243813,
-0.3382778168,
0.1129754633,
0.0943776816,
-0.0297437869,
-0.1602768451,
-0.017543029,
-0.2283290327,
0.1636879742,
-0.0794314817,
-0.3810733557,
-0.0160947256,
0.0205540117,
0.2330000997,
-0.1959819943,
-0.2287373692,
0.1465277076,
0.0198918004,
0.191372484,
-0.0826181993,
0.1403740197,
0.4307595193,
0.4653137624,
-0.1570249349,
0.0332011394,
0.082963109,
0.1245786324,
0.2342987061,
-0.1293138266,
0.0222033672,
-0.0531825721,
-0.0452170335,
0.0789411291,
0.1511835009,
-0.2835964262,
-0.0415174663,
-0.2271321565,
0.2197404802,
-0.0927393809,
0.0808861777,
0.0659539327,
0.1650984734,
-0.1487153471,
0.3934490383,
0.0759450197,
-0.2305077314,
-0.2285713553,
0.1141637638,
-0.0720317364,
0.2543567419,
-0.1999926418,
-0.1869709045,
-0.3368488848,
-0.1040870994,
0.5295462012,
0.0206552446,
-0.1265147328,
0.1563127041,
0.256398797,
0.1210785136,
-0.4433180094,
-0.1928887069,
-0.0400881693,
-0.5070747733,
0.141957134,
0.2667558789,
0.2609445453,
-0.0980919302,
0.1688240618,
0.0551045761,
0.3346445262,
0.0481992364,
-0.1643211693,
0.0471284911,
0.0951243788,
0.0196773317,
0.3859919608,
-0.2309046984,
0.297593683,
0.5082978606,
-0.1537847966,
-0.361256808,
0.1945498139,
-0.1508443654,
0.5056215525,
-0.0185457077,
0.1731352955,
0.1171936393,
-0.1968071312,
-0.0598718151,
0.2999536097,
-0.3947970271,
0.068545498,
-0.0993593931,
-0.1491763145,
0.4354543984,
0.255844146,
0.0767732561,
0.4650768936,
0.216923669,
-0.0594198667,
0.1005321518,
-0.2642536163,
-0.0237031709,
-0.202942118,
-0.2103267163,
-0.3739584684,
0.2363002151,
-0.2853999138,
-0.0107835913,
-0.2933439314,
-0.037744917,
-0.374701798,
0.134397462,
-0.3128292263,
-0.1369612664,
-0.0721694157,
0.2654460371,
-0.257484436,
0.1088798419,
0.0163197089,
0.0890123323,
-0.0874496549,
0.3828764856,
-0.3068622649,
-0.2860131562,
-0.442481786,
-0.1794236153,
0.4841910303,
0.2453587949,
0.089884527,
-0.1131184921,
-0.034018971,
-0.2677020431,
-0.1557065845,
0.4435264766,
-0.1022697762,
-0.0443900935,
-0.0383538418,
0.2406125963,
-0.0086524896,
-0.3758123517,
-0.0006717096,
-0.3829982877,
-0.0458476655,
0.0885862038,
0.0353932083,
-0.1559864134,
0.0406866111,
-0.0269830283,
-0.2393773049,
-0.0689103007,
-0.322078824,
-0.1188826561,
0.1221831441,
-0.3866705894,
0.0827734396,
0.2016866356,
-0.3991754353,
-0.2127141505,
-0.1958945394,
0.0294105988,
0.0783678442,
0.0208119769,
-0.1779778004,
0.3785981834,
0.0338090807,
0.1718379259,
-0.1126881912,
-0.545194149,
0.409971863,
0.0749998391,
-0.1771851927,
-0.3284279406,
0.0607920289,
0.271320641,
-0.1899037212,
0.12888363,
0.0628009439,
-0.1509236693,
-0.3709456921,
-0.2282279432,
0.3510294259,
-0.1403119415,
0.3559291661,
0.0496376492,
0.6082240939,
-0.0265613217,
0.2332250625,
0.3531581163,
-0.0431798957,
0.0447736159,
0.0899034068,
-0.0445805117,
0.3161122501,
0.1238503382,
-0.3487171233,
0.5429701805,
-0.2769100666,
-0.2745006382,
-0.2182302177,
-0.0114584863,
-0.6698670387,
-0.4383547306,
0.2053494453,
0.5381640196,
0.174418062,
-0.2152739465,
0.2217826396,
-0.093266435,
-0.3328770399,
-0.1135147065,
0.1445524544,
-0.0576602221,
-0.094178617,
-0.2348814756,
-0.0249775555,
-0.1007093042,
0.2660746872,
0.1573955119,
0.3585383296,
-0.045833759,
0.015483845,
0.0825778916,
0.0937840864,
0.4519876242,
0.2045944333,
0.2119668722,
-0.1028497517,
0.0741624385,
-0.0630846992,
-0.3478733897,
-0.3351352811,
-0.0863317177,
0.5785003304,
-0.1238889769,
-0.4815714061,
-0.0188395586,
-0.0802028328,
0.0655091926,
-0.057517156,
-0.0926691592,
-0.0509817079,
-0.1390696764,
-0.4148446023,
0.3135458231,
0.2891499102,
0.1360028833,
0.237821728,
0.1319933534,
0.2526874542,
0.1143100038,
-0.0005189348,
-0.019073274,
0.1095895767,
0.0324382149,
-0.37328583,
-0.1598345637,
0.1572119445,
0.0943616256,
0.121659115,
0.5638347268,
-0.1961222738,
-0.0114669101,
-0.0403433815,
0.284702152,
0.4375057817,
0.0713799223,
0.1214102507,
0.3562134504,
0.3327356279,
-0.0398863293,
0.2376550287,
0.2201415896,
0.0089265443,
-0.3136923313,
0.1202799901,
0.3556166887,
0.138929233,
-0.0740801394,
-0.0028915899,
0.1456307024,
-0.2708333731,
0.3193233609,
0.3195792735,
1.372379303,
0.2524780929,
-0.0122910636,
0.0701550022,
0.1158583164,
0.8574777842,
-0.5321190357,
-0.0247939918,
-0.3011972606,
0.1800722778,
-0.1156750247,
0.0221415889,
0.1793844849,
0.0093469201,
-0.4308924675,
0.329960078,
0.0915307105,
0.671651423,
0.1398277134,
0.0962220505,
0.3284431994,
-0.0460926555,
-0.0964600593,
-0.0222468898,
-0.2750356495,
0.0543849133,
-0.3748601079,
0.0384028815,
0.2037562579,
-0.4987115264,
-0.6637938023,
0.1588661671,
-0.1476394534,
0.0761890486,
-0.0480738655,
0.0207712725,
0.3031446636,
-0.0541055314,
0.1048750058,
0.3243847489,
-0.2084733993,
0.2775377035,
-0.0919647664,
-0.2851912677,
-0.1617546827,
-0.0309143048,
-0.155729413,
-0.1114564762,
-0.2150617242,
0.4981533587,
0.0000336601,
-0.200271219,
-0.2003249973,
0.0206611175,
0.3636727929,
0.0219872613,
-0.3902976215,
0.0601800978,
0.0696896613,
-0.0999047533,
-0.0018913698,
-0.0827934444,
-0.1272900105,
0.0096068354,
0.2655429244,
-0.1900433302,
-0.0008517128,
0.2447740734,
-0.0815133676,
-0.4689817429,
0.3524136841,
0.3540009558,
-0.2234310508,
-0.1734399796,
-0.2212516516,
-0.4735041559,
-0.5677686334,
-0.1666052639,
-0.1467718333,
0.0511134677,
-0.0456684306,
0.2104504406,
0.3831043839,
-0.0226683188,
0.0747483596,
-0.3272097111,
0.1152125597,
0.0194205418,
-0.3564964235,
0.0015362258,
-0.0434274934,
0.2575894296,
-0.0683800727,
0.0001511112,
-0.1080108732,
0.0714942664,
-0.5082092285,
0.2036319077,
0.2900801003,
0.2227191329,
-0.3865591884,
-0.1188448519,
0.0048737531,
0.329477936,
-0.0960453898,
-0.0196610782,
-0.0784212202,
0.2802028656,
0.4783469439,
-0.161596179,
0.0482016802,
0.1021149531,
0.2719170451,
-0.1299031377,
-0.1013019755,
-0.1592018455,
-0.0340860598,
0.3143930733,
0.1749912649,
0.2555949688,
-0.5346772671,
0.1084839627,
0.1095663086,
0.6087120771,
0.0399738885,
0.3046310842,
0.1993799061,
-0.0364810564,
-0.1820123941,
0.1866478175,
0.3626478612,
0.301864028,
0.036854919,
0.0486572199,
-0.1126030013,
0.1141697392,
-0.2240507603,
0.191557005,
-0.3164019585,
-0.2697433829,
0.5364500284,
0.1027926579,
-0.1424026042,
0.2094246,
0.5686332583,
0.1705679595,
-0.2566483915,
0.2080309987,
-0.0559713617,
-0.3840126991,
0.4207172096,
0.16809614,
0.3814957142,
-0.0084032947,
0.0741006136,
-0.0289216414,
-0.2506683171,
0.2643938065,
-0.0108900806,
0.0071770661,
0.2346201986,
0.4581395984,
-0.1335862279,
0.0907791182,
0.1331703663,
0.184911862,
-0.0869787559,
-0.2192957252,
0.1429417282,
0.5942345262,
0.0661736131,
-0.0409248769,
-0.163282901,
-0.3828212619,
0.2021693587,
-0.1307421923,
-0.4244839251,
0.2649623156,
-0.2229965627,
0.1415843964,
-0.4221543074,
-0.082507208,
-0.2875148356,
0.1561116129,
0.18956393,
-0.1085223779,
-0.2405118346,
0.3406592906,
-0.3534331918,
0.0090756193,
-0.2195271254,
-0.0345246494,
-0.1156718433,
-0.3618556857,
0.21840626,
-0.0604194738,
-0.0227623805,
-0.1466314793,
0.3151837289,
0.5144751072,
0.5036410689,
-0.332106024,
0.0096958447,
-0.0125398049,
0.2140850127,
0.0401926152,
0.1396660805,
0.1544332504,
0.3083743453,
0.0984194353,
0.0442989208,
-0.1031992361,
-0.1443875879,
0.2481879294,
0.0352428146,
0.0871720612,
-0.3964235485,
-0.0427597165,
0.211365059,
-0.2974691987,
-0.0624410138,
-0.4478715062,
0.1580037773,
0.1400850117,
0.0591818355,
0.1478367001,
0.0333926603,
-0.0252462104,
0.0196446758,
0.1699493229,
0.3986816704,
0.3376193047,
-0.2850459516,
-0.4959664941,
-0.554489851,
0.4598609805,
-0.3090626895,
-0.2179692686,
-0.0053543267,
0.0287982505,
0.124641411,
0.4619233012,
0.1005709469,
0.1358378679,
-0.3769993484,
0.3481941521,
-0.2102950513,
-0.0202897321,
0.257219553,
-0.0340186693,
-0.051865302,
-0.1813147515,
0.2395748049,
-0.2129167765,
-0.0521687716,
-0.1075859144,
-0.1147372127,
-0.2043811232,
-0.1875984967,
0.56567204,
0.1807953566,
0.357904762,
-0.1033660695,
-0.0331889652,
-0.0759947598,
0.1037633121,
0.013417244,
0.0097625768,
0.1276435554,
0.1763849407,
0.0184161272,
0.2718158066,
-0.4293497503,
0.2451841533,
0.0826668292,
0.1352253407,
-0.3105970621,
-0.048849754,
-0.2055887878,
0.1115623564,
-0.1069975793,
-0.0531724878,
-0.0025392862,
0.2643369138,
-0.3947311044,
-0.1286714077,
0.2791516781,
-0.3982189,
-0.3795572817,
-0.3196077347,
0.292922616,
-0.1239411831,
-0.0497834571,
-0.1190621108,
0.0295184702,
0.1805834919,
0.1351724714,
-0.1762548685,
-0.2394540757,
-0.2590577602,
-0.2007959783,
0.0301584415,
-0.0052954108,
0.1539319456,
-0.3781679869,
0.1778815091,
-0.3950206935
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | The error appears several times as Apache Beam retries to process examples up to 4 times irc.
I just tried to run this text into `mwparserfromhell` but it worked without the issue.
I used this code (from the `wikipedia.py` script):
```python
import mwparserfromhell as parser
import re
import six
raw_content = r"""==== Parque nacional Cajas ====
{{AP|Parque nacional Cajas}}
[[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
[[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
"""
wikicode = parser.parse(raw_content)
# Filters for references, tables, and file/image links.
re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE)
def rm_wikilink(obj):
return bool(re_rm_wikilink.match(six.text_type(obj.title)))
def rm_tag(obj):
return six.text_type(obj.tag) in {"ref", "table"}
def rm_template(obj):
return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"}
def try_remove_obj(obj, section):
try:
section.remove(obj)
except ValueError:
# For unknown reasons, objects are sometimes not found.
pass
section_text = []
for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_templates(matches=rm_template, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
try_remove_obj(obj, section)
section_text.append(section.strip_code().strip())
``` | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 264 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
The error appears several times as Apache Beam retries to process examples up to 4 times irc.
I just tried to run this text into `mwparserfromhell` but it worked without the issue.
I used this code (from the `wikipedia.py` script):
```python
import mwparserfromhell as parser
import re
import six
raw_content = r"""==== Parque nacional Cajas ====
{{AP|Parque nacional Cajas}}
[[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
[[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
"""
wikicode = parser.parse(raw_content)
# Filters for references, tables, and file/image links.
re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE)
def rm_wikilink(obj):
return bool(re_rm_wikilink.match(six.text_type(obj.title)))
def rm_tag(obj):
return six.text_type(obj.tag) in {"ref", "table"}
def rm_template(obj):
return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"}
def try_remove_obj(obj, section):
try:
section.remove(obj)
except ValueError:
# For unknown reasons, objects are sometimes not found.
pass
section_text = []
for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_templates(matches=rm_template, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
try_remove_obj(obj, section)
section_text.append(section.strip_code().strip())
``` | [
-0.2439157367,
-0.1970418841,
0.0670819655,
0.3134258986,
0.0271569137,
-0.0312239882,
-0.1195117831,
0.210985437,
0.3312293887,
0.141825527,
0.3229498863,
0.0170423985,
0.0512090884,
-0.4928646088,
-0.1744855195,
-0.0037911837,
0.2605277896,
0.1266943216,
-0.0522868223,
-0.2089978904,
0.0076542166,
0.1421711594,
-0.4332661033,
0.2717128396,
-0.2520083189,
0.1304321438,
0.0929765478,
-0.0105747394,
0.0373966806,
-0.4690482914,
-0.0403118655,
-0.2240467519,
0.1670672596,
0.2844333053,
-0.0001267064,
-0.2108094543,
0.4160579145,
-0.0950900242,
-0.1831730902,
-0.1716535836,
0.0071890736,
-0.1880873293,
-0.044271674,
-0.3014478683,
0.288456291,
0.0185892023,
0.2699132562,
-0.286364913,
0.3683307171,
0.2292595506,
0.0456213839,
0.197263822,
0.2272143364,
0.0291248001,
0.4505045414,
0.0643212125,
0.1650123,
-0.0520690158,
-0.0432653204,
-0.0965783671,
0.0542214327,
0.2810026705,
-0.3560195267,
-0.1097046211,
-0.1074364632,
-0.0339538902,
0.3892701268,
-0.2821047604,
0.4064490199,
0.0963140801,
0.3552185893,
0.0164922886,
0.2594860196,
0.0158012379,
-0.0724432245,
0.2757143378,
0.3752607107,
0.5088478923,
-0.3879246116,
0.0651455894,
0.3225114942,
-0.0166438911,
-0.0790884346,
0.2455795109,
-0.0721084997,
0.767721355,
0.1227153838,
0.3747815788,
-0.0259416644,
-0.0633262917,
0.0517112613,
-0.3146011233,
-0.0190164726,
0.353581816,
-0.1086530313,
0.1599092185,
-0.1563477218,
-0.0853177235,
-0.000292467,
-0.4934475124,
-0.4367775619,
0.0614361353,
0.1088034287,
0.2573606074,
0.5199111104,
-0.1411513537,
0.1863743812,
-0.0718507618,
-0.0114211906,
-0.0882609785,
-0.0732455254,
0.0659646392,
-0.0933441743,
-0.0662893131,
-0.3326282799,
0.1062741727,
0.1409581602,
-0.0423310287,
-0.0592526719,
0.2894515693,
-0.3620598912,
-0.0768240765,
-0.204137072,
0.4364102483,
-0.0336191989,
0.5642699599,
0.2208687365,
0.0534739085,
-0.1216491833,
-0.6564367414,
0.0444866493,
0.1973569989,
-0.3663574159,
0.1661608517,
-0.2031684667,
0.2760706246,
0.1157168895,
0.1909149587,
-0.0709449202,
-0.6753613353,
-0.1433450133,
-0.1477841288,
-0.1164990962,
0.072650902,
0.3854920268,
0.4602942765,
0.2932554185,
-0.3723099828,
0.0050070989,
0.3135888577,
-0.3685145378,
-0.0950808302,
-0.38856861,
0.0424731597,
0.0737981796,
0.1866637021,
-0.4958825707,
-0.053519085,
-0.0021893512,
-0.1071104109,
0.0766580254,
-0.1638298929,
-0.0927642807,
-0.0717015862,
-0.0266349688,
0.3540622592,
-0.0045451564,
0.0871735886,
-0.1042547449,
0.0562978797,
0.2985340953,
0.174714759,
-0.1192100421,
0.6493725777,
-0.4247389138,
0.6064462662,
0.1375239193,
-0.2236289382,
0.0176332593,
0.1443515718,
0.0657683834,
-0.2023110986,
0.016534362,
-0.1092077345,
0.1594648957,
-0.1335683018,
-0.4115055501,
0.1158025488,
0.0724974275,
0.3051945567,
-0.2148229778,
-0.2910428345,
0.1255896091,
0.0655345693,
0.2211544216,
-0.1284656376,
0.1120069325,
0.4881645143,
0.4339235723,
-0.190874666,
0.1017396748,
0.0762711167,
0.0587162711,
0.1764651835,
0.0147019196,
0.0942198932,
-0.024032006,
-0.0028475905,
-0.0596543401,
0.3432412148,
-0.2033091933,
-0.0566709973,
-0.2062638998,
0.2809078097,
-0.1454794556,
-0.0117499959,
0.062453784,
0.1869604886,
-0.2365790904,
0.4068620801,
0.0701659918,
-0.1439375728,
-0.1734023392,
0.1468379945,
0.0166565292,
0.2651129365,
-0.2953374684,
-0.146898061,
-0.3140819371,
-0.1859705746,
0.4367950857,
0.0147471679,
-0.1853882968,
0.1461973637,
0.2881456316,
0.1721404046,
-0.289211601,
-0.2493925244,
0.0595734417,
-0.4366014302,
0.2464806139,
0.3074891269,
0.3146466613,
-0.1487221122,
0.2846549153,
0.0954822823,
0.3892083168,
0.100771971,
-0.1450611204,
0.1643444151,
0.1466246098,
-0.0050318628,
0.3946208656,
-0.09115199,
0.2289429456,
0.5108891129,
-0.2737435997,
-0.3508857489,
0.2493449152,
-0.1987012476,
0.4050526619,
-0.0175307114,
0.244361639,
0.1115920767,
-0.3060934246,
-0.1200670376,
0.2761847079,
-0.4623515308,
0.0935926363,
-0.0911206305,
-0.107042253,
0.3911011815,
0.1414719969,
0.0316718891,
0.5108953714,
0.1668328941,
-0.0531921834,
0.0966081992,
-0.1132935658,
-0.0194118023,
-0.284081161,
-0.229009524,
-0.2573993206,
0.1794417053,
-0.2868689895,
0.0622663498,
-0.3053765893,
0.0137667833,
-0.3138220608,
0.1955424249,
-0.4067348242,
-0.2165165842,
-0.0651089773,
0.2800655961,
-0.2110284716,
0.2325728536,
0.1181811392,
0.0451997854,
0.0876483172,
0.3888649642,
-0.2219837755,
-0.3762750626,
-0.5698435307,
-0.2166003585,
0.4963605702,
0.1641570926,
0.1021337435,
0.0199722555,
-0.0413026214,
-0.3580474854,
-0.142737031,
0.4228232503,
-0.0582669005,
-0.1273171008,
-0.0762524903,
0.2410059124,
-0.1527662426,
-0.3478521705,
0.0598888919,
-0.439645797,
-0.0904707909,
0.1186111197,
-0.0064835711,
-0.1578282416,
0.0286920648,
-0.0873537287,
-0.1545055956,
-0.0583375245,
-0.3719153702,
-0.2516955435,
0.0327771381,
-0.2780535221,
0.0770787895,
0.1496902257,
-0.3611342907,
-0.215079084,
-0.2702903748,
0.0875015035,
0.1113563925,
0.0349700674,
-0.2326234132,
0.4163250625,
-0.1056798398,
0.1810456663,
0.0059800628,
-0.4948801994,
0.2249974459,
0.1587660909,
-0.05724461,
-0.3003888428,
0.1743219793,
0.2831251323,
-0.0949873701,
0.1104742512,
0.0769068599,
-0.0483281091,
-0.2259436697,
-0.242343545,
0.3762097955,
-0.0972955227,
0.4344443679,
0.1302693635,
0.6834614277,
0.0098076742,
0.226182431,
0.3966524899,
-0.0428140201,
-0.0869311467,
0.0329572335,
0.0051949341,
0.2468227893,
0.0007923967,
-0.2669424117,
0.5544756055,
-0.2428957224,
-0.2323537916,
-0.2343097627,
0.0112684276,
-0.5420509577,
-0.4312596023,
0.1656499654,
0.3878287077,
0.3233223557,
-0.1296133399,
0.205238238,
-0.0331265144,
-0.2678653598,
-0.0671011284,
0.1627646089,
-0.1086315066,
-0.0825971738,
-0.1447863132,
0.0598136187,
-0.0589151829,
0.3201696873,
0.2619362175,
0.398956269,
0.0827727094,
0.0591877364,
0.1992619187,
0.0684878677,
0.4733504951,
0.1363434643,
0.213239789,
-0.103190735,
0.0998406112,
-0.2521495521,
-0.3287770152,
-0.2264018506,
-0.2229652554,
0.4933880568,
-0.2217372507,
-0.4186547995,
0.0808049887,
-0.0878418609,
0.0857845768,
-0.0771816894,
-0.091720283,
-0.0175336618,
-0.208146289,
-0.5254964232,
0.2254079431,
0.1914090961,
0.1042897999,
0.2822269797,
0.2272937447,
0.1271850169,
0.0314455219,
-0.0398081318,
-0.0457643829,
0.1292537153,
-0.0511217453,
-0.2227945179,
-0.2396638095,
0.1692955494,
-0.0000278858,
0.1498706788,
0.5779363513,
-0.2408641279,
-0.1187970564,
0.0199819598,
0.2297450304,
0.3995094299,
0.0831125453,
0.1178379133,
0.245277226,
0.2716002464,
-0.0809116364,
0.2353725135,
0.250908196,
-0.0124394679,
-0.292912215,
0.0466001779,
0.4117346406,
0.0055365311,
-0.0357131511,
-0.058124397,
0.0718827546,
-0.2986939549,
0.4252856374,
0.2390449047,
1.3299747705,
0.1397978514,
0.1313474327,
0.1408616006,
0.0778511167,
0.7298783064,
-0.6040628552,
-0.036534667,
-0.2874814272,
0.4025506675,
-0.1426400244,
0.0622505695,
0.1719700843,
0.0775757954,
-0.4281994998,
0.3375900984,
0.1401281506,
0.5520430803,
0.1729458421,
0.1936335266,
0.1028394252,
-0.1207298636,
-0.0260301251,
-0.0211091563,
-0.3125185668,
0.0798731521,
-0.2915146053,
0.0305856857,
0.2290646732,
-0.4973370433,
-0.6621002555,
0.1700567752,
-0.0738017187,
0.3350213468,
-0.1431550086,
0.0403589346,
0.3150545061,
-0.1089999378,
0.0684925988,
0.255407393,
-0.1021939889,
0.3669732809,
-0.1564948708,
-0.3252677023,
-0.1941769719,
0.0501589142,
-0.0715720728,
-0.1006423607,
-0.2304318398,
0.2871093154,
0.0131228669,
-0.1832986921,
-0.28517887,
0.0635360405,
0.4719485939,
0.1042990535,
-0.2770496309,
0.0652643815,
-0.0046190163,
-0.0838663951,
-0.0041122111,
-0.1452438235,
-0.185182184,
-0.0104158735,
0.2468065768,
-0.2241348624,
0.0113855917,
0.3839806318,
-0.0465632491,
-0.4790755808,
0.4670299292,
0.3768469691,
-0.2421933264,
-0.2099691927,
-0.1298051924,
-0.513864398,
-0.6772113442,
-0.0528039895,
-0.1277863383,
0.0812090784,
-0.0430267043,
0.2475570589,
0.2362626791,
-0.0568306036,
0.0207590479,
-0.3045707941,
0.2019405961,
-0.0589139387,
-0.4229646623,
-0.0700269789,
0.0111648254,
0.2940683961,
-0.0126256188,
-0.0341524221,
-0.0879459977,
0.1143525094,
-0.3084955215,
0.270725131,
0.2566702366,
0.0909436569,
-0.3615843356,
0.0093988357,
0.0135604935,
0.2861450016,
-0.0697460696,
-0.0071091559,
-0.132801801,
0.2703226209,
0.382715255,
-0.233897984,
0.1011145189,
-0.0475617275,
0.2174995393,
-0.1566303968,
-0.0396180563,
-0.0734605864,
-0.1314593256,
0.2485080361,
0.208919242,
0.2581074834,
-0.442404747,
0.121153146,
0.0721941218,
0.5967172384,
0.1402491778,
0.1848928183,
0.2156499922,
-0.0069224807,
-0.2561198771,
0.2114632577,
0.3707140088,
0.1301711649,
0.1372705698,
-0.1082839072,
-0.1917606443,
0.0671049282,
-0.1397376657,
0.1556292623,
-0.3254971802,
-0.289434731,
0.536622107,
0.0886183158,
-0.1579332203,
0.2036014199,
0.4370487034,
0.1117445305,
-0.2860327661,
0.1864868999,
0.0879067034,
-0.4010629952,
0.2624225616,
0.1603426188,
0.380090028,
-0.0504834428,
0.0829647034,
-0.0977436602,
-0.1310415715,
0.1996887922,
-0.1301871985,
-0.0960256979,
0.3383074105,
0.3912018239,
-0.1181886718,
0.2143650055,
0.1854748875,
0.1639160067,
-0.0239628311,
-0.2019262016,
0.1884988248,
0.504779458,
0.1020757928,
-0.0256602988,
-0.0984646082,
-0.2070856094,
0.16365318,
-0.0989294797,
-0.466760844,
0.3099548221,
-0.1447390765,
0.0302568916,
-0.2093653232,
-0.0231615659,
-0.364071846,
0.2160025537,
0.1275566071,
-0.0629102662,
-0.3295399249,
0.394177705,
-0.3697271049,
-0.1015254706,
-0.2433309257,
0.0054135462,
-0.1028022766,
-0.3456290364,
0.1546684653,
0.0314431787,
-0.0609714724,
-0.0731057823,
0.1959451586,
0.5290170312,
0.4877013862,
-0.5272619128,
0.0753340796,
-0.0673797205,
0.290563345,
0.0232849289,
0.05732885,
0.1342731714,
0.3678499758,
0.0767161846,
0.0019119065,
-0.0978143066,
-0.3419983089,
0.2982870042,
-0.0415501148,
0.0392414443,
-0.3417461514,
-0.0561951846,
0.2586340606,
-0.2751139402,
0.0397304296,
-0.5000795722,
0.1600366086,
0.1681087613,
0.0802951157,
0.0784618631,
-0.0440978296,
-0.0353154689,
-0.1571898907,
0.2149786949,
0.4869307578,
0.2715578377,
-0.2093728334,
-0.516305685,
-0.53680408,
0.413014859,
-0.3302843869,
-0.2191963196,
-0.0158562511,
0.0947176218,
0.1577571929,
0.4018925428,
0.1277685314,
0.0380509421,
-0.3444072902,
0.3325325847,
-0.2369218767,
-0.1468171328,
0.3220621943,
-0.0791135356,
-0.0747827515,
-0.3180964589,
0.1554450244,
-0.1519024372,
-0.0578026362,
-0.1321984231,
-0.1099868864,
-0.0585874058,
-0.2227222472,
0.5239775181,
0.1362694353,
0.4043086767,
-0.005747322,
0.015979493,
-0.1776849478,
-0.0300559569,
-0.021923529,
-0.0359032266,
0.0388205349,
0.1936433613,
-0.0677345246,
0.1720441878,
-0.4300883114,
0.2831496,
0.0526977852,
0.1748316437,
-0.3980619907,
-0.0310368147,
-0.2528935671,
0.2896254957,
-0.2356528193,
-0.0801539645,
0.0222837962,
0.279581517,
-0.3736262619,
-0.190310061,
0.2450010777,
-0.4076632261,
-0.5217408538,
-0.221977219,
0.2311700433,
-0.3900429904,
0.0033996755,
-0.1855124831,
0.002427819,
0.2290037125,
0.1364833415,
-0.2730090022,
-0.2439189106,
-0.0786357448,
-0.2442160398,
-0.005855801,
-0.0487847887,
0.1136257276,
-0.3359308839,
0.1151105389,
-0.4321384132
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Not sure why we're having this issue. Maybe could you get also the file that's causing that ? | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 18 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Not sure why we're having this issue. Maybe could you get also the file that's causing that ? | [
-0.2438735664,
-0.1548449546,
0.0903029665,
0.4575002789,
0.1244498044,
-0.0543387979,
-0.1172977909,
0.2066471875,
0.3364436626,
0.3008716106,
0.2952869236,
-0.0024951689,
0.0522230677,
-0.3813278675,
-0.0767169893,
-0.0030087871,
0.3680462837,
0.1951177716,
0.0440419987,
-0.2419859469,
-0.0590003394,
0.2005378157,
-0.3453765213,
0.304181844,
-0.3107656538,
0.0585561059,
0.1418299526,
-0.0247235782,
-0.0764365941,
-0.3120391965,
0.0276917871,
-0.275010854,
0.1651805937,
0.3228822052,
-0.0001273461,
-0.1857163906,
0.5115445852,
-0.1040549129,
-0.146849826,
-0.2338774502,
-0.0839667171,
-0.1510859728,
-0.0317200013,
-0.3054434657,
0.3135240972,
0.0639470592,
0.2530781627,
-0.238765195,
0.2600453496,
0.2302281708,
0.0824697092,
0.2199034095,
0.2952756286,
-0.0069828271,
0.5136980414,
0.1219803467,
0.2047534138,
-0.0710388124,
-0.0341428518,
-0.0303168669,
0.1266941577,
0.0969860777,
-0.416233927,
-0.2447790056,
-0.1444554031,
-0.0935338587,
0.3075277507,
-0.4182211161,
0.4121519625,
0.1747305095,
0.5269610882,
-0.0202695057,
0.3501130342,
0.1336370409,
-0.0502371266,
0.2415282577,
0.4162764847,
0.5217395425,
-0.3993159831,
0.0340278484,
0.3900623918,
-0.1469513327,
-0.0424691997,
0.2651844621,
-0.1742007136,
0.8081717491,
0.0326362513,
0.3084392846,
0.0507775694,
-0.0183150899,
-0.0851953924,
-0.3319171071,
-0.0710874498,
0.2830992639,
-0.1364087313,
0.0320975184,
-0.1755916327,
-0.0749991387,
0.0263356417,
-0.5093849301,
-0.4673197269,
0.0480018966,
0.0184484776,
0.2484389096,
0.4564213157,
-0.1146919131,
0.1845858246,
-0.013837073,
-0.0089982394,
-0.1445986181,
-0.0538724735,
0.0191115066,
-0.231528908,
-0.0125743309,
-0.4852998555,
0.078062661,
0.0957073048,
-0.1704502106,
-0.0402030908,
0.257253021,
-0.2312708497,
-0.095512338,
-0.1507344544,
0.4952982962,
-0.0619029738,
0.391949296,
-0.0485464819,
0.0242671929,
-0.1379695535,
-0.6093870401,
0.0128733991,
0.197312355,
-0.3547972739,
-0.0110471193,
-0.1646289825,
0.2207185328,
0.1338098794,
0.3228281438,
-0.0421384983,
-0.4779711664,
-0.0261188559,
-0.2950364053,
-0.1444504559,
0.0541155636,
0.4805473387,
0.4583338201,
0.1996518224,
-0.3672831357,
-0.0564437397,
0.4087544382,
-0.4907045662,
-0.1547194123,
-0.5020550489,
0.0364795029,
0.0233864207,
0.1601273119,
-0.5785996914,
0.0256014522,
-0.0694200397,
-0.1577776372,
0.0533760451,
-0.2233765274,
-0.1592520624,
-0.1376729906,
0.1006358787,
0.3055130839,
-0.1845818162,
0.0110368663,
-0.0979871824,
-0.1748083234,
0.3727369905,
0.1509962976,
-0.1719999313,
0.659750104,
-0.449200809,
0.5568725467,
0.3406916857,
-0.2888256013,
-0.0907191858,
0.0462820344,
-0.0644743145,
-0.2066860795,
0.0266752969,
-0.1909818798,
0.2845525146,
-0.0467437059,
-0.3265434802,
0.095996812,
0.0915889144,
0.2053873837,
-0.2147359699,
-0.3104138076,
0.2907604575,
0.0747239366,
0.1716145426,
-0.0663383678,
0.1719051003,
0.4653394818,
0.4322321117,
-0.205714494,
0.1602536142,
0.1152568012,
0.1596607417,
0.2181692123,
-0.1131924018,
0.1417737603,
0.0020726381,
-0.0545437001,
0.0297571309,
0.2059302628,
-0.1255845726,
-0.0830162168,
-0.1817033291,
0.2146631181,
-0.0889085308,
0.0787187889,
0.0539173037,
0.1325585842,
-0.2125538737,
0.3692739308,
0.0476848558,
-0.1967648417,
-0.2540512085,
0.1109289825,
0.1038984507,
0.2972656786,
-0.1605816931,
-0.057182882,
-0.3508009911,
-0.1678778529,
0.5068050623,
-0.0133740827,
-0.1443750709,
0.0362113863,
0.2480143756,
0.0601929016,
-0.2725654244,
-0.2072729766,
-0.0175660476,
-0.2871752381,
0.2105045766,
0.1699792296,
0.2152317464,
-0.1655079722,
0.3415617645,
0.0885745212,
0.3862999678,
0.0712010562,
-0.1960387081,
0.1259262413,
0.2389334291,
0.0077395979,
0.4671165049,
-0.0711373538,
0.2976311147,
0.4176387191,
-0.0922949016,
-0.2519230247,
0.1286693662,
-0.1277336329,
0.5343971848,
-0.0695979446,
0.1919313371,
0.205150947,
-0.3437317014,
-0.0107754879,
0.2965947688,
-0.3911830485,
0.1748313457,
-0.02769663,
-0.1048233062,
0.2737587094,
0.2530733645,
0.0135618011,
0.5135732889,
0.0879014805,
0.0418715701,
0.1194232181,
-0.2610670924,
-0.029308917,
-0.2766619921,
-0.1423388422,
-0.2583798766,
0.2075481415,
-0.2546708584,
-0.1088883132,
-0.2646131516,
-0.0210304484,
-0.3601517677,
0.1243795827,
-0.3825919628,
-0.0819277838,
-0.1610747874,
0.2543988824,
-0.1200082824,
0.1283913106,
-0.0101332674,
0.1112427041,
-0.0355770215,
0.2304625511,
-0.2162797898,
-0.2744899094,
-0.5513041615,
-0.1524101347,
0.5267803669,
0.11148756,
0.0004285266,
-0.0261537358,
0.0205528997,
-0.2660393715,
-0.1641806066,
0.4210186601,
-0.0297952518,
-0.0914885625,
-0.085353002,
0.1795305312,
-0.1181225032,
-0.3170990944,
0.0051146047,
-0.3451725543,
-0.1308819205,
0.0749337971,
0.0684557557,
-0.1905053258,
0.0667864159,
-0.0430338755,
-0.3454270363,
-0.0301896483,
-0.2688139677,
-0.1228384078,
0.1198509037,
-0.5135682821,
-0.0029467389,
0.1931803823,
-0.3985515535,
-0.1948125213,
-0.2629196346,
0.0681875497,
0.1352651119,
-0.0106283613,
-0.2445781529,
0.456559509,
0.0086395368,
0.1907329559,
-0.0298137944,
-0.6047427654,
0.3406961262,
0.1188655496,
-0.0786787644,
-0.2802815735,
0.0917689204,
0.3030135632,
-0.1491826028,
0.1661014706,
0.0342107601,
-0.0800371915,
-0.2589766681,
-0.307854563,
0.3895879984,
-0.0943143144,
0.4309290349,
-0.0003133699,
0.5969523787,
-0.0308418162,
0.241936639,
0.3254550993,
-0.0590360984,
-0.0256963596,
-0.0284127276,
-0.0821961835,
0.3089122772,
0.1155977994,
-0.2447577864,
0.5990241766,
-0.2307509333,
-0.2992628813,
-0.2009940445,
-0.1291091591,
-0.441980511,
-0.3891987503,
0.1840631664,
0.3259335458,
0.2409102619,
-0.0811510757,
0.1840967685,
-0.0948016867,
-0.3454450667,
-0.0010843656,
0.2366651297,
-0.1298242807,
-0.0529923439,
-0.3019226789,
0.040888004,
-0.2444858551,
0.2875696123,
0.1513235569,
0.4145078063,
-0.065928556,
0.090360485,
0.1396751851,
0.1131955981,
0.6657505631,
0.1873898953,
0.2014038116,
-0.054462038,
0.1106782854,
-0.2019365579,
-0.3499333262,
-0.2815025747,
0.0279453322,
0.4818448424,
0.0114751216,
-0.4433549941,
0.0159886349,
-0.1085631251,
0.0753659457,
-0.033746738,
-0.055813957,
-0.1241061389,
-0.1701234132,
-0.4060513973,
0.2221249789,
0.0994758531,
0.2381230593,
0.2016289979,
0.1031921208,
0.0659617856,
0.0799525976,
0.013816745,
-0.1495929956,
0.1812983155,
0.1463814974,
-0.2607519329,
-0.1961852908,
0.2767331302,
0.0634216294,
0.085284844,
0.5467891097,
-0.2350269109,
0.0394716188,
-0.1000385955,
0.2835974693,
0.3195469975,
0.0626401529,
0.2859416902,
0.1207232177,
0.2047336251,
-0.0926567912,
0.3206843138,
0.2085365504,
0.053171806,
-0.394661963,
0.0233649611,
0.2817931175,
0.017417755,
-0.0482948944,
0.1377718896,
0.0552913658,
-0.2594874501,
0.3033359349,
0.1993106306,
1.3601080179,
0.2606364787,
0.0605074018,
0.1108943671,
0.0043985848,
0.7963572741,
-0.6298075318,
-0.0189271457,
-0.3128009737,
0.1327949911,
-0.1389374584,
-0.0097087482,
0.1000772417,
0.1444195956,
-0.3683398068,
0.2792597711,
0.1070212871,
0.6044886708,
0.1850078255,
0.2106739432,
0.1967146993,
-0.0565819107,
-0.0108233336,
-0.022247307,
-0.2962782383,
0.1750328839,
-0.3528535962,
0.0459066965,
0.0608244278,
-0.3904224634,
-0.5212926865,
0.1844307184,
-0.1486294121,
0.2001838535,
-0.006378395,
-0.0557134971,
0.3860983253,
-0.0757057145,
0.1267177612,
0.3899016976,
-0.1791912764,
0.3868412971,
-0.1120229214,
-0.3065803945,
-0.0284331553,
0.0907425061,
-0.2048859894,
-0.1419510394,
-0.3151189983,
0.3814618289,
-0.0807904899,
-0.2983234227,
-0.3018422723,
0.0026335197,
0.4286647737,
0.0016237976,
-0.4058825374,
0.0637466088,
0.133377701,
-0.0259322301,
0.0339154415,
-0.130043298,
-0.1188358665,
-0.0287063476,
0.3110339046,
-0.2470200211,
-0.0372652411,
0.3636564016,
-0.0766464621,
-0.4688628316,
0.5109813809,
0.3010252118,
-0.2208766192,
-0.1478509307,
-0.044475209,
-0.4849437773,
-0.6720795631,
-0.1798172444,
-0.1361632049,
0.091154106,
-0.1592466831,
0.2470300198,
0.3108225763,
-0.0055390331,
0.1253397763,
-0.3382135034,
0.0786657259,
-0.0317670107,
-0.4044042528,
-0.0921048969,
0.1533715576,
0.1658639312,
-0.0442025885,
-0.0804521143,
-0.0990911871,
0.0889644027,
-0.3104230165,
0.1767550707,
0.4049193859,
0.1613197476,
-0.2886878252,
-0.0289096944,
-0.0078203781,
0.2113428265,
-0.0162185393,
-0.0310200937,
-0.120621413,
0.2824006081,
0.3431393504,
-0.1013110057,
0.1341452152,
-0.0402460247,
0.1312256753,
-0.0630742982,
-0.0840538219,
-0.1243693829,
-0.1189360097,
0.2311474532,
0.1561113298,
0.30337587,
-0.617518127,
0.1567088217,
0.2122363299,
0.5182583928,
0.0101780128,
0.241362825,
0.2124585062,
-0.0096966168,
-0.21738033,
0.1985199898,
0.3253701925,
0.1910799593,
0.0740260184,
-0.0056873881,
-0.0292864628,
0.1216230243,
-0.2189949006,
0.1084223688,
-0.3840616941,
-0.2678417265,
0.654640615,
0.1048713624,
-0.1199910566,
0.116519995,
0.5963563323,
0.1986390501,
-0.3658188879,
0.1173021644,
0.0538518988,
-0.4070929885,
0.3382416964,
0.1766293049,
0.3714929521,
0.0088655241,
0.1212616712,
0.0626202747,
-0.1921661496,
0.2916056514,
0.0621884838,
-0.0370335765,
0.2124624252,
0.5630073547,
-0.088925153,
0.0685867816,
0.1866463274,
0.0757060423,
-0.0532362312,
-0.2476687282,
0.1553547382,
0.5270798206,
0.0840760618,
-0.1004326716,
-0.1171282828,
-0.036412295,
0.1418987215,
-0.1766621917,
-0.4514765441,
0.2105670571,
-0.3536438048,
0.0819779783,
-0.3765355647,
-0.0953383967,
-0.2704105079,
0.2513716519,
0.122541748,
-0.0408375449,
-0.4008163512,
0.3257643878,
-0.4385765493,
-0.0100148879,
0.0306566898,
0.1095698401,
-0.1127484366,
-0.3423264623,
0.1936749816,
-0.1967986524,
0.0354598463,
-0.1107279882,
0.2237883061,
0.4590555131,
0.5882256627,
-0.3402909935,
-0.05767221,
0.1371680647,
0.2367717028,
0.0181315746,
0.1504068226,
0.2121137828,
0.4006195068,
0.0605677515,
0.0274564698,
-0.1269886047,
-0.2661488354,
0.3369750679,
0.0030717372,
0.0527202599,
-0.3359846175,
-0.1048273519,
0.1239416674,
-0.2843915522,
-0.0802128464,
-0.5245043635,
0.2972149253,
0.1381936967,
0.1650839001,
0.0839601159,
-0.1134042591,
-0.0261244401,
-0.1292488277,
0.1829046011,
0.3374112844,
0.23513107,
-0.2557031214,
-0.5928304791,
-0.5923687816,
0.5155177712,
-0.2085260153,
-0.1719623059,
-0.0731404722,
0.0601409301,
0.062332008,
0.3624556363,
0.1018300802,
0.1438011974,
-0.3306408226,
0.2046478987,
-0.2297415286,
-0.0936587453,
0.1909527034,
-0.01577048,
-0.0849760994,
-0.3382998407,
0.2290948033,
-0.162226215,
-0.0698234588,
-0.1829073876,
-0.2145684212,
-0.1364618391,
-0.241301164,
0.5710757375,
0.1211627349,
0.4785780907,
-0.0656350031,
0.1872139871,
-0.0684070513,
0.0168244112,
-0.0815813616,
0.0378775969,
-0.0192384571,
0.1439688057,
0.0423604362,
0.3129379451,
-0.3990131617,
0.3354873657,
0.1386947483,
0.2268173695,
-0.3625318706,
-0.034590032,
-0.3117888272,
0.0808430314,
-0.0334711671,
-0.0563615747,
0.0263211932,
0.1504733115,
-0.3717039526,
-0.0480520204,
0.1737814546,
-0.4795393348,
-0.3824427426,
-0.2534615993,
0.2423758209,
-0.1136702672,
-0.2396755964,
-0.1374628246,
0.0430730619,
0.256423384,
0.1280905306,
-0.1610545218,
-0.1142301038,
-0.298776418,
-0.1495221555,
-0.0021701697,
0.0535574704,
0.171706602,
-0.4144581258,
0.1750482172,
-0.4345163703
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | thanks for your answer.
How can I know which file is causing the issue ?
I am trying to load the spanish wikipedia data. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 24 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
thanks for your answer.
How can I know which file is causing the issue ?
I am trying to load the spanish wikipedia data. | [
-0.3805394769,
-0.3404880762,
0.0569592975,
0.6597746015,
-0.0239439644,
-0.1370640397,
-0.2214763016,
0.3551198542,
0.3205151856,
0.2352278233,
0.3936893046,
-0.0477158874,
0.0279492103,
-0.4523818493,
0.1012186483,
0.1489471793,
0.4252945185,
0.1956282407,
0.1554453522,
-0.2860963047,
-0.1436801553,
0.3324865401,
-0.252198875,
0.476505965,
-0.379989624,
0.1468522102,
0.1703821123,
0.1342844516,
-0.0388245918,
-0.3340250254,
0.146720618,
-0.2287005186,
0.2494846284,
0.4108285606,
-0.0001294859,
-0.1358283162,
0.479295969,
-0.2167566121,
-0.0711500719,
-0.2471744567,
-0.1766096801,
-0.1024991572,
0.0518090539,
-0.2762675285,
0.367881,
-0.0481217615,
0.4033309519,
-0.210924536,
0.2742957473,
0.3901077509,
0.0669515282,
0.2184570879,
0.1687092632,
-0.0131094502,
0.5559425354,
-0.0039248322,
0.2948894501,
-0.0138164535,
0.0548497736,
-0.0446052477,
0.009428707,
0.0913252011,
-0.4119957983,
-0.1316957772,
-0.0811175182,
-0.1147456616,
0.3158608675,
-0.3811007142,
0.399083972,
0.2864826918,
0.5265468955,
0.0244402476,
0.4537286162,
0.1320970058,
-0.2025648654,
0.347487241,
0.5818401575,
0.4023043811,
-0.3517130911,
-0.0165662318,
0.3878601789,
-0.0085273553,
-0.0155064762,
0.2399367988,
-0.3587432504,
0.7549955249,
-0.0231263358,
0.3411197662,
0.1030803099,
-0.0204271879,
-0.1820029318,
-0.238880083,
0.0318419971,
0.2876214087,
-0.1689513922,
0.0090212002,
-0.063749671,
-0.1376197189,
-0.0729254857,
-0.4824041426,
-0.3953340352,
0.093685165,
0.0208176747,
0.2795304358,
0.4600296915,
-0.1279717833,
0.2268950194,
-0.1281474233,
0.0361256711,
-0.0654524416,
-0.1618682295,
0.0330296382,
-0.3590042889,
-0.1693917364,
-0.3182513118,
-0.0556115583,
0.1524054557,
-0.2356124073,
-0.1032149717,
0.2423213273,
-0.2417159379,
-0.2401425987,
-0.0160587803,
0.5928183198,
0.0460027717,
0.3612691164,
-0.0883766636,
-0.1704967618,
-0.164316237,
-0.5626623631,
0.0214124639,
0.1993014067,
-0.3200523257,
-0.0310706142,
-0.1405969709,
0.1645073295,
0.1247255132,
0.2809575796,
-0.1108283475,
-0.5334952474,
-0.0293394085,
-0.3077511489,
-0.0599962436,
0.101564087,
0.347844094,
0.3976210952,
0.2785720527,
-0.4330412447,
-0.1221211776,
0.2768185437,
-0.5401118398,
-0.1904266924,
-0.3655866385,
0.0073638456,
-0.0813629255,
0.218405515,
-0.5214790106,
0.0352888368,
-0.1589039564,
-0.3161866665,
0.0865638256,
-0.2566930652,
-0.0714406446,
-0.1356315762,
0.0950772241,
0.3783815503,
-0.1570713222,
-0.0865367129,
-0.1100410521,
-0.2945402265,
0.2481395751,
0.0776856318,
-0.1522154808,
0.5089014769,
-0.392919451,
0.4607177973,
0.4020156264,
-0.3885551989,
-0.0774066374,
0.003298321,
-0.1051696688,
-0.1443251222,
0.1704612225,
-0.0770814568,
0.1641703099,
-0.1816911548,
-0.2103975117,
0.038153328,
0.1581323892,
0.1202652305,
-0.2180200517,
-0.2795441449,
0.0681376159,
0.1130153462,
0.1243660972,
-0.2236665189,
0.1109131873,
0.4432347119,
0.2955293655,
-0.0204176288,
-0.0141052175,
0.1304380149,
0.1346195489,
0.1634794474,
-0.0504480116,
0.0271426458,
-0.0039529605,
-0.072223559,
-0.0548007898,
-0.0843853727,
-0.2033381909,
-0.0244716741,
-0.1983308941,
0.1904844344,
-0.1336470842,
0.1339887977,
0.0251237266,
0.2611246109,
-0.2519675195,
0.2475953996,
-0.1870207787,
-0.1587838233,
-0.2405173331,
0.1432477534,
0.0596065298,
0.1816098392,
0.0290167239,
0.0079200966,
-0.198838681,
-0.2580230236,
0.5626891255,
-0.1092522666,
-0.1604557484,
0.0930314139,
0.2045786381,
0.239460066,
-0.1246014759,
-0.0929325446,
-0.1977774352,
-0.292837292,
0.129445076,
0.1361511648,
0.1311369836,
-0.0345999449,
0.3571677506,
0.0213131085,
0.2833710015,
0.0054770121,
-0.1536319107,
0.029036466,
0.1711270958,
-0.0357957259,
0.5272096395,
-0.0998652577,
0.3510567248,
0.4659897685,
0.0529829524,
-0.082435891,
0.0491605029,
-0.1945196688,
0.747695446,
-0.1608177274,
0.1886680424,
0.2848615944,
-0.3441029787,
-0.0493514091,
0.2152214348,
-0.240226686,
0.1980990916,
-0.0112592047,
-0.1218497828,
0.1306510121,
0.1797140688,
-0.0068304758,
0.5171730518,
0.0912545547,
-0.0789404213,
0.118426837,
-0.3818056881,
-0.045304589,
-0.3620023131,
-0.1243047863,
-0.3254979849,
0.2499777824,
-0.2731669247,
0.0796430036,
-0.2528130412,
0.0217749681,
-0.5295091271,
0.0954806507,
-0.382840097,
-0.0397876129,
-0.0676155686,
0.2131755948,
-0.0127080679,
0.042851083,
-0.063901484,
0.198292762,
-0.1203867644,
0.1586450636,
-0.1872368604,
-0.2542198598,
-0.5679867268,
-0.1637690365,
0.6536369324,
0.1832838058,
-0.0434571765,
-0.240500167,
0.0162719991,
-0.1531123668,
-0.1163962036,
0.4006672502,
0.0613884926,
0.0006475303,
-0.1108780578,
0.277404964,
-0.0537720062,
-0.3318936825,
0.0361517183,
-0.367325753,
-0.1134887785,
0.076560393,
0.145240441,
-0.1888054907,
0.2144373506,
-0.1124292761,
-0.2642554045,
-0.1026666611,
-0.3206093311,
-0.1488949656,
0.2024529278,
-0.6096342206,
-0.2209494412,
0.338260442,
-0.2790543437,
-0.0657678992,
-0.2418011427,
-0.0273329914,
0.0993969366,
0.1111362278,
-0.0780666545,
0.4412774742,
0.110395588,
0.0849883631,
0.0741498545,
-0.5340142846,
0.2013526857,
0.0820119679,
-0.0847003981,
-0.2322696447,
-0.0517662168,
0.3450069427,
-0.0914915726,
0.1431188434,
-0.0692385584,
-0.0494284332,
-0.2028438598,
-0.3041855991,
0.384775281,
-0.0565209948,
0.3137367666,
-0.0374559797,
0.6825991869,
0.0240973756,
0.0873811021,
0.2980571389,
-0.0160124861,
-0.1377187073,
0.0320340917,
-0.0759116709,
0.2200616896,
0.1820500046,
-0.2735164464,
0.7422614098,
-0.1768078953,
-0.2366902828,
-0.1763130724,
-0.1182146892,
-0.6048862338,
-0.2558740377,
0.1936533004,
0.3764869869,
0.2533045709,
-0.226568684,
0.1147227362,
-0.1012259796,
-0.2793624997,
-0.0246508848,
0.5404155254,
-0.1634948403,
-0.0173958745,
-0.2303688973,
0.0607681535,
0.0173090361,
0.3330138028,
0.0278902091,
0.3645253181,
-0.3009796143,
0.0584819056,
0.1851806492,
-0.0664421171,
0.7375571728,
0.2812922299,
0.1952387989,
-0.139133364,
0.1079118922,
-0.1095707789,
-0.3150518239,
-0.2284463048,
0.0664260536,
0.3795229197,
0.1186046228,
-0.3667219877,
-0.0681223124,
-0.0757432878,
0.1249093637,
-0.0661776736,
-0.042297665,
-0.1081656516,
-0.1178235412,
-0.260838896,
0.1928354949,
-0.0408294015,
0.1302672178,
0.2843622863,
0.1572830826,
0.047032021,
0.0588473603,
0.1461842507,
0.0110596363,
0.165279299,
0.0087654199,
-0.37720415,
0.0184282232,
0.3099292517,
0.1846914589,
0.1031496227,
0.628896296,
-0.1746206582,
0.0785401165,
0.0281988215,
0.1029505655,
0.4168393612,
-0.0111828055,
0.2691118419,
0.0275779869,
0.1334399581,
-0.0615872145,
0.2459012419,
0.3112947047,
0.1098644584,
-0.5357342958,
0.0679989234,
0.5120008588,
0.0847102404,
-0.1974280179,
0.1787640452,
-0.1756363809,
-0.2289907187,
0.1538374573,
0.2000304908,
1.4499605894,
0.1524121165,
0.074510619,
0.0575494766,
-0.0130346604,
0.6243775487,
-0.7486427426,
-0.0916424245,
-0.2428949922,
0.091272369,
-0.243055284,
-0.1300572157,
0.2165144384,
0.1415096372,
-0.3455146253,
0.290112406,
0.1440200508,
0.5426394939,
0.1806187034,
0.1891157031,
0.1602580249,
0.1230424419,
-0.2093892843,
-0.0700893328,
-0.3668533266,
0.3385098875,
-0.285890013,
0.0531712063,
-0.0187171381,
-0.3675303161,
-0.4911454618,
-0.0380057879,
-0.135843873,
0.1349927634,
-0.0147030791,
-0.1296629906,
0.2623562217,
0.0590340793,
0.0528734364,
0.1975553185,
-0.13323915,
0.4760960639,
-0.0304883458,
-0.1726080924,
-0.0841307864,
0.0062042112,
-0.1361690313,
-0.1384034157,
-0.2177008092,
0.4074857533,
-0.0213678777,
-0.2046984136,
-0.1616492718,
0.057245411,
0.444958806,
0.059650287,
-0.5058218241,
-0.0652866289,
0.082303144,
0.0425921306,
0.0263169985,
-0.0513267666,
-0.0141034098,
-0.1445213556,
0.152377218,
-0.2435984164,
-0.0430078283,
0.2790700793,
-0.1172523201,
-0.4595454633,
0.449148953,
0.0857151225,
-0.1793922931,
-0.0937564895,
0.0898447931,
-0.4517302215,
-0.5832414627,
-0.1965379119,
-0.0496164449,
-0.0063541611,
-0.0469765142,
0.2073543221,
0.3686403036,
-0.0207537729,
0.0667919591,
-0.4061915576,
-0.0126441596,
-0.0345607139,
-0.239042744,
0.0164283104,
0.0966111049,
-0.0399430245,
0.0398919545,
-0.0132919662,
-0.0764271766,
0.1367547065,
-0.3796550632,
0.1044777334,
0.4097522795,
0.3177153766,
-0.255217582,
-0.1267582625,
-0.0576287918,
0.0908844173,
-0.0615497231,
-0.0139187397,
-0.0916999653,
0.3072163761,
0.2673515677,
-0.1160517558,
0.1397971809,
-0.1129709631,
0.3074872792,
-0.0424602032,
-0.1413349807,
-0.080910109,
-0.070922263,
0.1589269042,
0.1567134708,
0.0765151009,
-0.6586507559,
0.2011529356,
0.1272816062,
0.4618561268,
0.1002865657,
0.2400374413,
0.0315798149,
-0.0718209893,
-0.2901141346,
0.2863993645,
0.2572476268,
0.1348080784,
-0.0249971282,
0.0859439299,
-0.0142003642,
0.1062781364,
-0.3425727189,
0.1890192032,
-0.4209907055,
-0.2592411041,
0.4655229449,
0.050615862,
-0.0343815126,
0.0872587338,
0.5667286515,
0.0473152138,
-0.3760894537,
0.0875772908,
0.0093159573,
-0.3272931874,
0.3672849238,
0.1612738222,
0.3269897699,
0.0370091572,
0.2489851713,
0.1275031418,
-0.0427396968,
0.4304689765,
0.073718071,
-0.054430984,
0.3077156246,
0.5992562771,
-0.152335465,
0.1409714371,
0.2159288228,
0.0921862945,
-0.0274926387,
-0.2794287503,
0.1667837203,
0.6952605844,
0.0112621635,
-0.0266948752,
-0.0134638501,
0.1441675723,
0.0314758196,
-0.0918716788,
-0.569345355,
0.172365129,
-0.3039977551,
-0.0418751463,
-0.4359060228,
-0.1733747274,
-0.2718033493,
0.2712936103,
0.0846754834,
0.0075348332,
-0.4959265292,
0.4745284021,
-0.3862533569,
0.1659732163,
-0.0016137891,
-0.0352984779,
-0.0768920407,
-0.2510152757,
0.2767046094,
-0.1009472832,
0.0900155157,
0.1785903573,
0.1078798249,
0.4518147707,
0.4608573616,
-0.1981658787,
-0.0717679784,
0.1464100033,
0.1992854625,
-0.0806682408,
0.1715560257,
0.0444157161,
0.4488540292,
0.0613124594,
0.0411933735,
-0.1205741838,
-0.2306894809,
0.1679256111,
0.032919921,
-0.0584575534,
-0.323636204,
-0.2525622249,
0.1214088127,
-0.327617228,
-0.0439041741,
-0.4012700021,
0.2954157889,
0.0826761723,
0.3247374594,
0.0995690152,
0.0124492263,
-0.0507528521,
0.0161237754,
0.0842737779,
0.267121613,
0.2433380634,
-0.1979232281,
-0.6244457364,
-0.7142551541,
0.5119057298,
-0.1751796901,
-0.1437799484,
0.0119915642,
-0.1430339217,
0.1733768284,
0.212159276,
0.2462123632,
0.0237592347,
-0.2725061774,
0.3092397451,
-0.0916109607,
-0.1433475316,
0.1217950955,
0.0482311398,
-0.1714287251,
-0.3135453165,
0.2311400771,
-0.1329476386,
-0.1006049737,
-0.13888897,
-0.2052161843,
-0.1508552283,
-0.3039787114,
0.5101714134,
0.0416043736,
0.6107794046,
-0.1415695697,
0.212536782,
0.0572179817,
0.0902412832,
-0.0502581522,
0.077809982,
-0.1217026636,
0.2651923597,
-0.0064839637,
0.4433826804,
-0.3522950411,
0.340426594,
0.0431976952,
0.164478153,
-0.1872655153,
-0.2675867975,
-0.2149731517,
0.0145272557,
0.2357353717,
0.1750924438,
0.0116046434,
0.0811224133,
-0.3216754794,
0.0332715847,
0.0784365311,
-0.5061957836,
-0.3236170411,
-0.0828237459,
0.3031013906,
-0.201524809,
-0.0986847654,
-0.0766226053,
-0.0515729152,
0.3096536994,
0.1090635359,
-0.1457049549,
-0.1472849101,
-0.2215685844,
-0.1554242969,
0.0013425861,
0.0195935369,
0.2298020571,
-0.4885845184,
0.2433445454,
-0.4309997261
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code.
We'll have to use some tricks I think :p
You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]]
Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess.
Thanks for diving into this ! I tried it myself but I run out of memory on my laptop
As soon as we have the name of the file it should be easier to find what's wrong. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 95 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code.
We'll have to use some tricks I think :p
You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]]
Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess.
Thanks for diving into this ! I tried it myself but I run out of memory on my laptop
As soon as we have the name of the file it should be easier to find what's wrong. | [
-0.1209627613,
-0.0705089197,
0.0564220473,
0.3891802728,
0.1034143567,
0.0170315187,
-0.1214456111,
0.3558146954,
0.2514156103,
0.2640948892,
0.2141057849,
-0.0685191229,
0.0406433046,
-0.4498922527,
-0.0869591609,
-0.0778386146,
0.3508559465,
0.1234785467,
0.0555284843,
-0.1732602119,
-0.1695193201,
0.1376486868,
-0.2810789645,
0.4107492566,
-0.1864090115,
0.1112354323,
0.0803810433,
-0.0238144305,
-0.0770190582,
-0.3404312134,
-0.1463582963,
-0.1689715981,
0.2026515007,
0.3334968984,
-0.0001258567,
-0.1855410933,
0.55189538,
-0.1446357369,
-0.2137815654,
-0.1335807443,
0.0046768608,
-0.2667897642,
-0.0591881722,
-0.3690649867,
0.2201611698,
-0.0541452318,
0.330262959,
-0.2550408542,
0.3609259725,
0.2255509496,
0.0779779851,
0.1390967518,
0.2775895,
0.0408103131,
0.6543576717,
0.0034429466,
0.1290144771,
-0.2242189944,
-0.0136567689,
-0.1525859535,
-0.0030371128,
0.2453570813,
-0.2965685129,
-0.1994427592,
-0.067525059,
-0.1138774753,
0.2302035689,
-0.2996583879,
0.3847325742,
0.1337915957,
0.5107125044,
-0.1019758061,
0.1809576899,
0.0640800744,
-0.1153806746,
0.2564851642,
0.3498593569,
0.4780451059,
-0.498957783,
0.0602815822,
0.4844409525,
-0.1789777577,
-0.1038606465,
0.2981964946,
-0.0074596093,
0.7731326222,
0.1381370872,
0.3352178037,
0.0184037481,
-0.0671587586,
-0.1388244331,
-0.2876848578,
-0.0027429098,
0.3892368674,
-0.0984642208,
0.1176915392,
-0.1336876601,
-0.0798083022,
0.0004214771,
-0.4752693772,
-0.3524788916,
0.0923435986,
0.0655017048,
0.2571344972,
0.3952150345,
-0.0880886242,
0.256052196,
-0.1058397815,
0.0649593323,
-0.0035789087,
0.0318906978,
0.0092388866,
-0.1560273916,
-0.1251684129,
-0.5585861802,
0.1572339684,
0.1669796407,
-0.0611289069,
0.0867830664,
0.2184613794,
-0.1989927888,
-0.0944182053,
-0.14397493,
0.5513173938,
-0.036121022,
0.5017178655,
0.1081734598,
-0.0195121579,
-0.2092120945,
-0.6590043306,
0.0726283044,
0.2387358248,
-0.3837993145,
0.0940520912,
-0.146284312,
0.2706362903,
0.0817149505,
0.16267699,
-0.110148184,
-0.4127648771,
-0.0177708976,
-0.1296965182,
-0.1106906831,
0.0623144805,
0.4266290963,
0.5009468794,
0.2024617791,
-0.4213834703,
0.032472536,
0.3185637593,
-0.4508619308,
-0.1133395806,
-0.386526227,
0.0219052099,
-0.0549517497,
0.2963492572,
-0.5117598176,
-0.0257374197,
-0.0611914434,
-0.1805215329,
0.0579590388,
-0.0974289551,
-0.0502929427,
-0.1684541851,
0.1400202513,
0.3438384235,
-0.0868771151,
0.0030443841,
-0.1516423076,
-0.1271290779,
0.206904009,
0.0125186034,
-0.0878880993,
0.5803267956,
-0.4632230401,
0.5278592706,
0.4331417084,
-0.417281419,
-0.0444258451,
-0.0509061851,
-0.0690591335,
-0.1800687462,
0.1532534212,
-0.241773963,
0.2028294206,
-0.1651453376,
-0.4169232547,
0.1614949703,
0.0947090462,
0.1545335501,
-0.2393754274,
-0.297619164,
0.1369992793,
0.0699920207,
0.1159610599,
-0.0554039218,
0.2703324258,
0.5132504106,
0.5763164759,
-0.2047068477,
0.208659336,
0.1209066361,
0.0107680392,
0.1776309013,
-0.0026644149,
0.1111139655,
0.1003478542,
-0.0080742519,
-0.1155225411,
0.1904519945,
-0.2601397038,
-0.0636975244,
-0.2423491776,
0.1893311143,
-0.2007887065,
-0.0428606346,
0.0776810646,
0.2335369736,
-0.2802912593,
0.3116140366,
0.0665509626,
-0.2075052708,
-0.2028136402,
0.1360839009,
-0.0770250782,
0.1176710427,
-0.1301358491,
-0.0456712395,
-0.3280325532,
-0.1180564985,
0.5273606181,
0.0116139324,
-0.1616957039,
0.1149473861,
0.2832995355,
0.0874377713,
-0.1325665563,
-0.1691456437,
-0.0989626274,
-0.3816643953,
0.1865922958,
0.2674351931,
0.2412259579,
-0.1106107384,
0.1445417106,
0.1156608462,
0.3446529508,
0.1922703534,
-0.0792749152,
0.1298827976,
0.1943040788,
0.0106885508,
0.2934866548,
-0.0030797974,
0.3046087921,
0.4990071654,
-0.0706457794,
-0.3424893916,
0.3292184472,
-0.2922593355,
0.4965379238,
-0.1130879521,
0.1492166072,
0.1261759996,
-0.3448246419,
0.0666223615,
0.3503165245,
-0.4112821519,
-0.0033078063,
0.0153661566,
-0.1353279948,
0.1966359317,
0.3104830384,
0.0533887297,
0.3721376061,
0.2042022198,
0.0186501704,
0.0301542114,
-0.1795441061,
-0.0855605155,
-0.1612435132,
-0.1782989204,
-0.2557564676,
0.1765657365,
-0.2424642295,
-0.0852350071,
-0.1452088952,
-0.0867877826,
-0.4174173176,
0.2448441237,
-0.4018445015,
-0.2548187375,
-0.0783743337,
0.2720759213,
-0.2720503211,
0.1508204788,
0.0740822926,
0.0892748237,
0.0460763648,
0.1715887785,
-0.3309584558,
-0.3067089319,
-0.4702957571,
-0.1624401361,
0.5332534909,
0.1399262398,
0.0548892617,
0.0383487977,
-0.0015601028,
-0.3136585653,
-0.1001238897,
0.3807926476,
0.0008732002,
-0.0985229611,
-0.1401781738,
0.2973885536,
0.0664050952,
-0.3065907061,
0.0340860896,
-0.3090631068,
-0.0541218668,
0.1575165838,
0.2250114083,
-0.012601818,
0.1113775,
-0.09025684,
-0.3435203433,
-0.1660825312,
-0.1793525219,
-0.084020935,
0.10745202,
-0.3885611296,
-0.0375834517,
0.1672330499,
-0.2739901543,
-0.1262185723,
-0.1190672666,
0.1150187925,
0.1819086224,
-0.0487883426,
-0.2680826485,
0.3679413497,
-0.0389908142,
0.0691615492,
0.0213882606,
-0.3876899779,
0.2129804939,
0.2526647151,
-0.0327756181,
-0.2018018961,
0.1148761585,
0.3068697453,
-0.0976503044,
0.1494805962,
-0.0055843359,
0.0456262752,
-0.271342963,
-0.3473310769,
0.5005396008,
0.0510834493,
0.298499018,
0.13913095,
0.7935022712,
-0.091407381,
0.417095691,
0.3806064129,
-0.050907664,
-0.0616202466,
-0.0068950299,
-0.063871339,
0.2387561351,
0.0170538016,
-0.2286790758,
0.5545760989,
-0.1608418077,
-0.1884115934,
-0.3043023944,
-0.0300969444,
-0.5362465382,
-0.450930655,
0.1638863832,
0.3014620543,
0.126594305,
-0.0399287976,
0.2464964837,
-0.1392950863,
-0.3547828197,
0.1180580258,
0.2957463264,
-0.1534204334,
-0.0618202649,
-0.0451544151,
0.0804981217,
-0.2142873406,
0.3920483887,
0.1126294434,
0.4006479681,
-0.0302447677,
-0.0606717467,
0.1365610063,
0.0421156064,
0.6749556661,
0.1139661446,
0.2668806016,
-0.0483191721,
0.1517106891,
-0.2012030184,
-0.3370483518,
-0.2402471602,
-0.1292213798,
0.4147004187,
-0.0539433397,
-0.4135914445,
0.0053389603,
-0.1468931139,
0.0956117958,
-0.1625171751,
-0.029524548,
-0.1250680238,
-0.1867016405,
-0.4802513123,
0.1160196364,
0.1534691751,
0.2812900245,
0.2232602388,
0.2467781156,
0.1022342667,
-0.0221607089,
-0.0066826427,
-0.026074063,
0.1148944423,
0.0415335931,
-0.3908593059,
-0.1406546235,
0.3413004577,
-0.1051339507,
0.0629714802,
0.5062641501,
-0.2861004174,
0.0114387507,
-0.1281372458,
0.2277383506,
0.364333719,
0.0093670245,
0.1643533111,
0.0891773626,
0.1918286681,
-0.1667555124,
0.3696987927,
0.1991129667,
-0.0413459092,
-0.3877442181,
-0.0128741451,
0.4758425653,
-0.0073660724,
-0.1285909712,
0.1480602771,
0.0824898705,
-0.3054513335,
0.46949476,
0.1594972312,
1.4028259516,
0.0743103847,
0.1060865149,
0.05827244,
-0.023427939,
0.7709752321,
-0.8501486778,
0.0102293827,
-0.3112945259,
0.1336628646,
-0.1457692534,
0.0992766321,
0.2456336617,
0.1884244084,
-0.1797168702,
0.4108474255,
0.2099638283,
0.5706493258,
0.1618010104,
0.2777127028,
0.1584191769,
-0.1224526316,
-0.1224460155,
-0.0375856906,
-0.3394310772,
0.2648875117,
-0.2823268473,
-0.0010861348,
0.0000820843,
-0.4254596531,
-0.4824258089,
0.1702976078,
-0.1744904816,
0.1645847708,
-0.3101141751,
-0.1270028055,
0.168043226,
0.014791416,
0.0111145154,
0.3238189518,
-0.1544267386,
0.429915458,
-0.2235512584,
-0.2313757688,
-0.0946008042,
0.1680570543,
-0.0222955216,
-0.165320158,
-0.1968081445,
0.4138615429,
-0.062283244,
-0.3473201394,
-0.1739183813,
0.0197292175,
0.5572703481,
0.0266522709,
-0.3261714876,
-0.0611716956,
-0.0020256077,
-0.0870082751,
0.0478480533,
-0.1802937388,
-0.3034144938,
-0.1223328337,
0.189136833,
-0.1419879049,
0.0763698369,
0.3687137961,
-0.1562961787,
-0.5203356743,
0.5429048538,
0.3616913557,
-0.184739992,
-0.123010762,
-0.0202623345,
-0.3258295357,
-0.6497555375,
-0.2177561969,
-0.0770267695,
0.0285632573,
-0.1641374826,
0.1911831349,
0.2515866756,
-0.0383398049,
0.0510082655,
-0.3938289285,
0.0517924912,
-0.0127604688,
-0.2740120888,
-0.083507508,
0.1159850582,
0.1871448457,
-0.0092619639,
-0.0447377972,
-0.1161636189,
-0.0225916281,
-0.3062824607,
0.1924283355,
0.4826489687,
0.232657209,
-0.2700321376,
-0.0137210861,
0.0105522508,
0.1974305212,
-0.0218309425,
-0.0344474278,
-0.0908613354,
0.2667790949,
0.3393407762,
-0.0351120085,
0.1336827576,
-0.1331580132,
0.197579965,
-0.1563782394,
-0.1528538465,
-0.1540420204,
-0.0454741269,
0.2977793217,
0.3360819817,
0.2830897272,
-0.5487607121,
0.2178021818,
0.1383381188,
0.6532808542,
0.005428574,
0.192755118,
0.1559056193,
0.0525586382,
-0.2453494519,
0.0929764286,
0.2692934871,
0.1605542451,
0.1048110873,
0.0629466325,
-0.1325590611,
0.0959393531,
-0.1208667979,
0.1463813633,
-0.3814382553,
-0.2813280523,
0.6323446035,
0.0745459571,
-0.1512729675,
0.1893348247,
0.6089375615,
0.0491313934,
-0.2840149105,
0.1259596944,
-0.1253485382,
-0.281230092,
0.2148862183,
0.1608725339,
0.2591937482,
0.0149767371,
0.1351063102,
0.0973620489,
-0.0875411257,
0.2604697645,
-0.0326113813,
-0.0643941537,
0.262357384,
0.6413196921,
-0.2414704263,
0.1756816357,
0.1518555135,
0.1070125327,
-0.1117625833,
-0.2240463495,
0.2313763946,
0.5097442269,
0.115988709,
0.0666047186,
-0.1439884752,
0.0434134454,
0.2388586104,
-0.1132747158,
-0.4433372319,
0.2972137034,
-0.1541448534,
0.0485983714,
-0.2984185815,
-0.0929190964,
-0.3210148215,
0.2261300385,
0.1480428129,
-0.1404354721,
-0.2817440331,
0.3320848644,
-0.345385164,
0.0739458799,
-0.0042845891,
0.0188352149,
0.035163004,
-0.3815687299,
0.0740955546,
-0.0593810864,
0.0998513922,
0.0616397299,
0.0515926406,
0.4012044668,
0.4144954979,
-0.3987132609,
-0.0537897758,
0.0305588078,
0.1961589009,
0.0257300548,
0.0914193541,
0.1472982913,
0.3724624515,
0.1365383863,
0.0411322787,
-0.1063814312,
-0.3492833674,
0.2604298294,
-0.0233520474,
-0.0546863191,
-0.2894986868,
-0.0983111113,
0.0189808179,
-0.3697971106,
-0.1028269753,
-0.4696651995,
0.277703315,
0.0003981361,
0.192705676,
0.0835435539,
-0.0362852365,
-0.0346113741,
-0.0832949281,
0.0816678852,
0.3843725324,
0.1786176562,
-0.2805785835,
-0.5301002264,
-0.615499258,
0.3956106603,
-0.2236166,
-0.2989004552,
-0.0640621334,
-0.028065864,
0.1025358364,
0.2608191073,
0.0550980121,
0.0836737305,
-0.2400376946,
0.3680187464,
-0.2253846526,
-0.2801788747,
0.1484096944,
0.1170548871,
-0.113599807,
-0.3118138909,
0.213999629,
-0.0381479934,
-0.0843582973,
-0.0995996743,
-0.2943399251,
0.0373278633,
-0.4005629718,
0.4856733978,
0.0347068235,
0.3801333904,
-0.0710381642,
0.1127720401,
-0.1277603954,
0.0742865801,
-0.1226381063,
-0.0107810227,
-0.1104755327,
0.2015192211,
0.0309019964,
0.2108023614,
-0.4701860845,
0.3865427971,
-0.0825335905,
0.199023962,
-0.3401543796,
-0.0396733545,
-0.199679926,
0.2241756767,
-0.0465960726,
-0.077884227,
-0.0519111194,
0.2063359022,
-0.4808897674,
-0.1081221402,
0.2249009609,
-0.5813332796,
-0.4714143872,
-0.0415449254,
0.3231418431,
-0.3128694296,
-0.0618980117,
-0.2354568988,
0.0353622884,
0.187402904,
0.2431428581,
-0.1491305679,
-0.1797583848,
-0.2889466286,
-0.137303561,
-0.0080986815,
-0.1090166643,
0.2329996675,
-0.3411547244,
0.100553222,
-0.3634816408
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Thanks for your help.
I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ? | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 41 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Thanks for your help.
I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ? | [
-0.0982405618,
-0.1460123658,
0.0579147302,
0.4570070207,
0.0399688296,
0.083348617,
-0.2478525192,
0.1913090497,
0.3329873681,
0.2941773534,
0.2543112636,
0.1080053374,
0.0952975526,
-0.3402068317,
-0.169640854,
-0.0679542422,
0.3555515409,
0.1214172468,
0.1624231488,
-0.2468806803,
-0.0501847155,
0.1787008941,
-0.3427313864,
0.3826018572,
-0.1634168476,
0.1669342965,
0.1231553704,
-0.1326594055,
-0.1403285712,
-0.2993071079,
-0.0200497024,
-0.2091214061,
0.1560906321,
0.3652326167,
-0.0001279058,
-0.3193121254,
0.4868044555,
-0.0847793967,
-0.1486693025,
-0.2189911455,
0.015291593,
-0.1522387266,
-0.0410058163,
-0.4044006765,
0.3248382211,
0.1153982952,
0.3341578841,
-0.2809922993,
0.1205003634,
0.2197394222,
0.0640459135,
0.1066201031,
0.3839099705,
0.0759176016,
0.4806533158,
0.0734129325,
0.2054697722,
-0.060079474,
-0.0168765951,
-0.0532573946,
0.1491252184,
0.201469779,
-0.3659825921,
-0.1884919405,
-0.1632103473,
0.0662547275,
0.2595539093,
-0.4452037513,
0.4108957052,
0.1394708455,
0.617377162,
-0.1191035137,
0.2614587545,
0.1654371172,
-0.0580868311,
0.2580070198,
0.3013699353,
0.5481123328,
-0.3672949076,
-0.0253247488,
0.3877827525,
-0.1134892628,
-0.1369295716,
0.3051531613,
-0.2432049662,
0.9164055586,
0.1252373606,
0.3172871172,
0.0359123945,
0.0480790809,
-0.066255644,
-0.2513143122,
-0.0493604764,
0.3340762854,
0.0214809924,
-0.025857538,
-0.1511852592,
-0.0784205049,
0.0011789285,
-0.6255260706,
-0.4130972028,
0.0299958196,
0.120948337,
0.3402905762,
0.4541515708,
-0.2407009453,
0.294149816,
-0.0054477681,
-0.0771101117,
-0.1497202367,
0.0046596453,
-0.0258476194,
-0.1439837068,
0.0026517727,
-0.4691489637,
-0.0029374815,
0.2461211085,
-0.2048176378,
0.0865615755,
0.3560789526,
-0.2949358225,
-0.111606814,
-0.2578814328,
0.4341236353,
-0.0718002021,
0.3773730099,
0.0606103987,
-0.0367318541,
-0.1395095885,
-0.5028150678,
-0.0180454217,
0.2353696674,
-0.3238377273,
0.0698220059,
-0.2390312254,
0.2264620215,
0.1722397059,
0.1966183037,
-0.011001057,
-0.5448354483,
-0.0428099707,
-0.1836661845,
-0.0719037727,
0.0472853929,
0.406760484,
0.5007112622,
0.2680573761,
-0.4057283103,
-0.0525236875,
0.3967241645,
-0.3704169393,
-0.022261627,
-0.5510870814,
0.0479744636,
0.0428074896,
0.1816764474,
-0.5636150241,
0.0236340109,
-0.0637117475,
-0.167702809,
0.2126281857,
-0.0518713817,
-0.1455525756,
-0.0310135707,
0.1124994233,
0.2195572257,
-0.1851061136,
0.0615857244,
-0.101238586,
-0.1575166136,
0.2370682061,
-0.032768935,
-0.0864662975,
0.6368800402,
-0.3505786657,
0.5782256722,
0.2652636468,
-0.4091207385,
-0.0882845446,
0.0071631731,
-0.0275749527,
-0.2222073376,
0.0340306871,
-0.1393164396,
0.1705593467,
0.0085356925,
-0.4780332148,
-0.044012785,
0.0305705145,
0.18126522,
-0.1381177604,
-0.2846616805,
0.2403108925,
0.0836682245,
0.254324615,
-0.0825861618,
0.1528434902,
0.4838689566,
0.6022039652,
-0.1535146385,
0.1452037394,
0.0552842952,
0.0634708256,
0.2141289711,
-0.0845407397,
0.0701062977,
-0.0034426313,
-0.0194440931,
0.0826343223,
0.1979783326,
-0.1465435177,
-0.1380737722,
-0.1379961371,
0.2703556716,
-0.1237414628,
0.0237798225,
0.0232578348,
0.2133958787,
-0.1986548305,
0.3907472491,
0.0831921995,
-0.2709237337,
-0.2775023878,
0.098184593,
-0.0184140876,
0.1946446896,
-0.1272757351,
-0.0370278209,
-0.3745700717,
-0.1918488592,
0.4063360095,
0.1215743199,
-0.1520325094,
0.0234614443,
0.248084873,
0.1226689294,
-0.2635524273,
-0.2410590947,
-0.1296417564,
-0.4255693257,
0.1146240905,
0.2754120529,
0.2598393559,
-0.1263753623,
0.1595698148,
0.080110006,
0.2849268019,
0.0874281153,
-0.1943709105,
0.0634535775,
0.128026396,
-0.0008979259,
0.3822986186,
-0.1133905128,
0.2536653876,
0.4015441239,
-0.1322082132,
-0.3764736056,
0.1788335592,
-0.2094373107,
0.623256743,
-0.0297614671,
0.1618250906,
0.150590688,
-0.2678954601,
0.0095715374,
0.3111506402,
-0.525385201,
0.1216418073,
-0.0011218092,
-0.1208435446,
0.3589932919,
0.3209593296,
0.0280895121,
0.4389224648,
0.2746990025,
-0.0538250022,
0.0729862079,
-0.2088224739,
-0.0472809672,
-0.2550528347,
-0.0936595425,
-0.2495872527,
0.130839929,
-0.2461635619,
-0.0539870299,
-0.1664291024,
0.0453463681,
-0.3202033937,
0.0441481993,
-0.4074262381,
-0.1982377321,
-0.1249897107,
0.442537874,
-0.1859437376,
0.1449583024,
0.0070482325,
0.0401867963,
-0.0461183749,
0.3184625506,
-0.2622787356,
-0.3390575349,
-0.4685194194,
-0.161923483,
0.4164784551,
0.1619073302,
0.1300809085,
-0.0816562325,
0.0647755042,
-0.3107575476,
-0.1337568611,
0.4158415794,
-0.1041707695,
-0.0374835841,
-0.1843905002,
0.1631098539,
-0.2027107924,
-0.3040032983,
0.008298886,
-0.3350694776,
-0.0869707167,
0.0554573871,
0.2022849619,
-0.1650488824,
0.1563441455,
-0.0912578031,
-0.3194941282,
-0.0305151716,
-0.265224576,
-0.1757874489,
0.1309880316,
-0.5440907478,
-0.1037883237,
0.2221551538,
-0.1957858056,
-0.1582681388,
-0.2416284084,
0.0511862785,
0.1386102438,
-0.0271179602,
-0.1973049194,
0.422118783,
0.0898568556,
0.1270069629,
-0.1342784166,
-0.5310724974,
0.3187632859,
0.2872523963,
-0.2071970254,
-0.2658964396,
0.0953802764,
0.3380012512,
-0.1261993498,
0.1300805956,
-0.0205745213,
-0.0200332534,
-0.3060704172,
-0.2612015903,
0.3659537733,
-0.0696884245,
0.356873244,
0.0052712969,
0.5611320138,
0.0077980072,
0.3498140574,
0.299805969,
-0.0559649616,
-0.1249293759,
0.0478358828,
-0.1055810004,
0.2657903731,
0.1248269454,
-0.2373918146,
0.725615859,
-0.2425276637,
-0.2778725028,
-0.2114525139,
-0.1085000485,
-0.4927820563,
-0.3511236608,
0.1340620518,
0.4256852865,
0.2151132524,
-0.1582022309,
0.264569968,
-0.0461708605,
-0.3970325291,
0.040924184,
0.2700924575,
-0.1457708031,
-0.075222455,
-0.2231331915,
-0.0068607149,
-0.2216736376,
0.279233247,
0.1658107489,
0.2630623579,
-0.0474540442,
0.0378656499,
0.092064105,
0.1062745973,
0.7170777321,
0.0799823925,
0.2855760157,
0.0076336125,
0.1088953763,
-0.0855671987,
-0.3343631029,
-0.3213564456,
0.0347117186,
0.4114464223,
-0.0811106712,
-0.3828401566,
0.0117153302,
-0.1130541191,
-0.0276526734,
-0.0771021321,
-0.1594765335,
-0.0631828308,
-0.0750657991,
-0.485953331,
0.2936128378,
0.1052246839,
0.1847793758,
0.2181549966,
0.1167586222,
0.0645172969,
0.1183751971,
0.0404810011,
-0.0819028094,
0.0652399883,
0.1532298923,
-0.3297494948,
-0.1077966243,
0.3382183611,
0.1190088913,
0.0855208486,
0.4668070078,
-0.2860798836,
0.0467539355,
-0.2273381352,
0.3570982516,
0.3676095605,
0.13782233,
0.1718908846,
0.2850583792,
0.1846429259,
-0.2005976886,
0.2463531345,
0.2104188502,
-0.010119535,
-0.4572695494,
0.0476596989,
0.4190885425,
0.0432882495,
-0.1291732639,
0.0807549581,
0.1301430017,
-0.3920386434,
0.2276458442,
0.3042016923,
1.3743021488,
0.2290474623,
0.000055246,
0.0182177238,
-0.0212041084,
0.7775985003,
-0.5432036519,
-0.0416602194,
-0.4133484364,
0.2235509008,
-0.2628513277,
0.0718858242,
0.1743705422,
0.1549929827,
-0.4109580517,
0.3315266371,
0.1195451319,
0.6789624691,
0.2007480711,
0.2311805636,
0.3003858924,
-0.0696265474,
-0.04713488,
-0.0562485121,
-0.2997577786,
0.1641266793,
-0.3360468149,
0.0040935315,
0.0726581886,
-0.4021905065,
-0.5105246305,
0.1497731507,
-0.1560820192,
0.1355958283,
-0.2400933802,
-0.0924375132,
0.3394125998,
0.0303812046,
0.1530254483,
0.3946718872,
-0.2360750288,
0.3084454536,
-0.0790802985,
-0.2827481925,
-0.0845997706,
0.0759869292,
-0.1662606597,
-0.0762492418,
-0.2573311031,
0.4024145901,
0.040414799,
-0.2437891364,
-0.1297528595,
-0.0173812043,
0.5050361753,
-0.0179755408,
-0.4633438587,
-0.0243396237,
0.0135539956,
-0.0968400761,
0.0099354144,
-0.2525737882,
-0.188914597,
-0.0800800174,
0.3576356173,
-0.2762166262,
0.0239765793,
0.3802042305,
-0.0508618616,
-0.3608959615,
0.4053845704,
0.4141708314,
-0.2110742331,
-0.1729270667,
-0.1388736963,
-0.454893589,
-0.6205150485,
-0.2452711016,
0.0036879028,
0.0751883388,
-0.0993453264,
0.2278403044,
0.2664337456,
-0.0028218615,
0.0673348233,
-0.3757097721,
0.1301342398,
0.0004429957,
-0.2997362018,
-0.0541535318,
0.1505137235,
0.1440698355,
-0.0772833526,
0.0108923214,
-0.1024201587,
0.0501260422,
-0.3457912803,
0.1844023466,
0.4043631852,
0.2660725117,
-0.3334856927,
-0.1559804082,
-0.0082400795,
0.3081267774,
-0.1110078394,
-0.0437900834,
-0.1429687589,
0.2774118483,
0.4025516808,
-0.1154688448,
0.1143010184,
-0.0569041632,
0.1281070858,
-0.1438815594,
-0.1454660892,
-0.1152151972,
-0.0507893972,
0.3200854361,
0.2864226401,
0.3363925219,
-0.6627501249,
0.1176777184,
0.2216806561,
0.597923398,
-0.0016469675,
0.2584117949,
0.1601394266,
0.0629687831,
-0.0835662335,
0.2112223357,
0.3295864761,
0.1443809569,
0.0623542443,
0.016248798,
-0.0463709943,
0.188304916,
-0.1092365235,
0.1076650172,
-0.3437703848,
-0.3186075985,
0.5859049559,
0.0780179128,
-0.1367444992,
0.0791249648,
0.5128088593,
0.0503338464,
-0.2816810906,
0.1353643388,
-0.0192648154,
-0.3054715395,
0.1443624496,
0.1600498408,
0.3883184791,
-0.008088382,
0.0976825655,
0.0427974351,
-0.2145090997,
0.3497293591,
0.0331429206,
0.1103880331,
0.2539876401,
0.4191577137,
-0.0092263762,
0.030661162,
0.1890911162,
0.2195820212,
-0.1321515739,
-0.1168117002,
0.1506024599,
0.4852175713,
0.1417030841,
-0.0364516415,
-0.1465828866,
-0.2729978859,
0.2765251398,
-0.107010223,
-0.426004976,
0.2682326436,
-0.2022778392,
0.0506315455,
-0.2739008367,
-0.1167622134,
-0.1663046032,
0.2934019268,
0.1380993724,
-0.2000113279,
-0.343501389,
0.2851372957,
-0.3189730644,
-0.0203510709,
-0.0766399875,
-0.0063009951,
-0.044921767,
-0.4550506175,
0.1171479896,
-0.1794952601,
0.0901086256,
-0.1199382991,
0.23480618,
0.3847109079,
0.4226666987,
-0.4357827008,
0.0263300668,
-0.0464059822,
0.2207933068,
0.1211031377,
0.0787167028,
0.2410832047,
0.2435329705,
0.0952400789,
0.0350230858,
-0.0725517347,
-0.3141313791,
0.3812611699,
-0.029578425,
0.0584466234,
-0.3081597686,
0.0079683,
0.1974344105,
-0.228430897,
-0.1496479958,
-0.5025536418,
0.2157159448,
0.1553729326,
0.1363463849,
0.0866228491,
0.0585676096,
-0.0431728996,
-0.0426925346,
0.124107711,
0.3479132354,
0.2889395356,
-0.2943770587,
-0.4787546098,
-0.5232975483,
0.4851520061,
-0.1459591389,
-0.167886734,
0.0266094431,
-0.0969087929,
0.1434946507,
0.3562701344,
0.0353254192,
0.036507491,
-0.3478908837,
0.3106485903,
-0.1491153687,
-0.1809681654,
0.1536918283,
0.0774846971,
-0.1319777071,
-0.2365518361,
0.1763023585,
-0.2174252272,
-0.0963840932,
-0.2786428332,
-0.1299519092,
-0.1276372075,
-0.1647596359,
0.5894806385,
0.0201125871,
0.4873861074,
-0.146815151,
0.1515863687,
0.1199435666,
0.1168107167,
-0.084077701,
0.1633867919,
-0.024093451,
0.192731306,
-0.0205262154,
0.1695738137,
-0.360514909,
0.2414454222,
-0.0204203278,
0.2153670937,
-0.4155306816,
-0.0928949788,
-0.1769778132,
0.0274346955,
-0.0958780348,
-0.0296804383,
0.0120357722,
0.2343751341,
-0.372081846,
0.0004328316,
0.278965652,
-0.5013760328,
-0.3355749249,
-0.1907161027,
0.2618011534,
-0.1488960683,
-0.1762330532,
-0.2184724212,
0.0482211523,
0.2631865442,
0.1811580807,
-0.2186214328,
-0.1442237496,
-0.2311950028,
-0.1701052934,
-0.0474911891,
0.0033457687,
0.1215734109,
-0.4107508659,
0.0629714504,
-0.4289714098
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Thanks a lot @Shiro-LK !
I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed.
The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2)
Parsing the file this way raises the parsing issue:
```python
import mwparserfromhell as parser
from tqdm.auto import tqdm
import bz2
import six
import logging
import codecs
import xml.etree.cElementTree as etree
filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2"
def _extract_content(filepath):
"""Extracts article content from a single WikiMedia XML file."""
logging.info("generating examples from = %s", filepath)
with open(filepath, "rb") as f:
f = bz2.BZ2File(filename=f)
if six.PY3:
# Workaround due to:
# https://github.com/tensorflow/tensorflow/issues/33563
utf_f = codecs.getreader("utf-8")(f)
else:
utf_f = f
# To clear root, to free-up more memory than just `elem.clear()`.
context = etree.iterparse(utf_f, events=("end",))
context = iter(context)
unused_event, root = next(context)
for unused_event, elem in tqdm(context, total=949087):
if not elem.tag.endswith("page"):
continue
namespace = elem.tag[:-4]
title = elem.find("./{0}title".format(namespace)).text
ns = elem.find("./{0}ns".format(namespace)).text
id_ = elem.find("./{0}id".format(namespace)).text
# Filter pages that are not in the "main" namespace.
if ns != "0":
root.clear()
continue
raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text
root.clear()
if "Campeonato Mundial de futsal de la AMF 2015" in title:
yield (id_, title, raw_content)
for id_, title, raw_content in _extract_content(filepath):
wikicode = parser.parse(raw_content)
```
The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH).
The minimal code to reproduce is:
```python
import mwparserfromhell as parser
import requests
raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8")
wikicode = parser.parse(raw_content)
```
I will create an issue on mwparserfromhell's repo to see if we can fix that
| Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 248 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Thanks a lot @Shiro-LK !
I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed.
The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2)
Parsing the file this way raises the parsing issue:
```python
import mwparserfromhell as parser
from tqdm.auto import tqdm
import bz2
import six
import logging
import codecs
import xml.etree.cElementTree as etree
filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2"
def _extract_content(filepath):
"""Extracts article content from a single WikiMedia XML file."""
logging.info("generating examples from = %s", filepath)
with open(filepath, "rb") as f:
f = bz2.BZ2File(filename=f)
if six.PY3:
# Workaround due to:
# https://github.com/tensorflow/tensorflow/issues/33563
utf_f = codecs.getreader("utf-8")(f)
else:
utf_f = f
# To clear root, to free-up more memory than just `elem.clear()`.
context = etree.iterparse(utf_f, events=("end",))
context = iter(context)
unused_event, root = next(context)
for unused_event, elem in tqdm(context, total=949087):
if not elem.tag.endswith("page"):
continue
namespace = elem.tag[:-4]
title = elem.find("./{0}title".format(namespace)).text
ns = elem.find("./{0}ns".format(namespace)).text
id_ = elem.find("./{0}id".format(namespace)).text
# Filter pages that are not in the "main" namespace.
if ns != "0":
root.clear()
continue
raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text
root.clear()
if "Campeonato Mundial de futsal de la AMF 2015" in title:
yield (id_, title, raw_content)
for id_, title, raw_content in _extract_content(filepath):
wikicode = parser.parse(raw_content)
```
The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH).
The minimal code to reproduce is:
```python
import mwparserfromhell as parser
import requests
raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8")
wikicode = parser.parse(raw_content)
```
I will create an issue on mwparserfromhell's repo to see if we can fix that
| [
-0.1087391004,
-0.2687699497,
0.0588545352,
0.3744995892,
0.0680315942,
0.0585110374,
-0.097849071,
0.4072328508,
0.2762869596,
0.2615220547,
0.1648641229,
0.1633137017,
0.0697003305,
-0.4300824404,
-0.1707362831,
-0.042684447,
0.2212866247,
0.1182365045,
0.0590087958,
-0.1014078408,
-0.0859465674,
0.1587130725,
-0.3476288617,
0.2824129462,
-0.3269039989,
0.114810966,
0.1520310789,
-0.0656153411,
-0.0889429376,
-0.2003451437,
-0.0028277384,
-0.2012955397,
0.2379271537,
0.4786587954,
-0.0001259802,
-0.0412697122,
0.3049947619,
-0.0936576426,
0.0099670226,
-0.2359311879,
0.0336600952,
-0.1631219089,
-0.1159503236,
-0.3689012825,
0.2481283844,
0.2071845531,
0.1943382025,
-0.1866433173,
0.4095415473,
0.243810311,
0.0544666126,
0.1639174223,
0.2602109909,
0.0912848189,
0.5147398114,
-0.053879682,
-0.0065108975,
0.0079005258,
0.0930050835,
-0.1025944874,
0.102294758,
0.2438965142,
-0.4206613898,
-0.071712479,
-0.1377498657,
0.103878431,
0.4466084242,
-0.5326792002,
0.4791566432,
0.3168758452,
0.3135970235,
-0.0226953998,
0.19832398,
0.1035345718,
-0.1376881897,
0.1046120226,
0.311514616,
0.5089523196,
-0.4895596504,
0.0953266323,
0.4412800968,
-0.060346406,
-0.2098179013,
0.273283273,
-0.3379982114,
0.8441172838,
0.0538511835,
0.1933106482,
-0.0251844022,
-0.0369250104,
0.0193278305,
-0.2209112048,
0.1413909495,
0.378724128,
-0.051786758,
-0.0091331517,
-0.0343197584,
-0.3973083794,
-0.0217236057,
-0.6584088206,
-0.3500772715,
0.1816471964,
0.0500034578,
0.2907328308,
0.3454239964,
-0.3378628194,
0.1525788754,
0.0352606513,
0.032170523,
0.0292416122,
-0.1271685064,
0.0367850028,
-0.2031402588,
-0.0674108267,
-0.5065872073,
0.0622970797,
0.239712432,
-0.0703941882,
-0.0532746427,
0.3891049623,
-0.2007398307,
0.020777123,
-0.1578016877,
0.5316453576,
-0.0691649541,
0.4129960537,
0.1543028057,
0.0851946697,
-0.1468564421,
-0.5985725522,
0.0526634231,
0.122878179,
-0.0397238545,
0.0134534864,
-0.1145045832,
0.1165550202,
0.2161987722,
0.250426501,
-0.0326059461,
-0.539855063,
-0.0503431596,
-0.3519895971,
0.0567450896,
0.1298057437,
0.4478536844,
0.349501133,
0.2150833905,
-0.4113384783,
-0.0219977256,
0.4195791781,
-0.4311132431,
-0.168788746,
-0.4756806195,
0.05219464,
0.0355715863,
0.1392175406,
-0.5501320958,
0.1158679426,
0.0992071927,
-0.1055627465,
-0.0358388424,
-0.1966691166,
-0.2580603957,
-0.0632867366,
0.1914138347,
0.1181720793,
-0.1422764361,
0.1267271191,
-0.0599626452,
0.0571596362,
0.4125910401,
0.1793214083,
-0.1630658358,
0.7019710541,
-0.2670829296,
0.7228689194,
0.1745020449,
-0.2736829221,
-0.0719351396,
0.0337947905,
0.0428297371,
0.0071245469,
-0.1001688167,
-0.22171624,
0.3694818616,
-0.0816346481,
-0.1842643172,
0.1109006777,
-0.003875633,
0.2598791718,
-0.2199011892,
-0.2137373835,
0.338466078,
0.015582365,
0.2996577919,
-0.2194489688,
0.0218851771,
0.4970422089,
0.5048382282,
-0.2736794055,
0.1297585368,
0.0826888457,
0.1501490772,
0.1439251602,
-0.1093945578,
-0.1013654917,
-0.0906942934,
0.0045490987,
0.0658480972,
0.3201471865,
-0.2615013421,
-0.1588966399,
-0.125217557,
0.2352292985,
-0.2003856599,
0.0534399003,
0.0882510766,
-0.0568754598,
-0.2928086817,
0.3478438556,
-0.0486513637,
-0.4844492078,
-0.3517450094,
0.1733435094,
0.1646933258,
0.2952847779,
-0.2190814316,
-0.0793155953,
-0.3375532925,
-0.0990323871,
0.4453217685,
-0.0610531308,
-0.0529892705,
-0.0561889298,
0.2835117877,
0.1120925546,
-0.3946906328,
-0.142821297,
0.054443866,
-0.2703917623,
0.0110281073,
0.2399188876,
0.2501265109,
-0.1488433927,
0.2306794077,
0.2286774069,
0.3325102031,
0.0825078487,
-0.1761719286,
0.1144727618,
0.2624149621,
0.0093548605,
0.3972713351,
-0.1282761991,
0.1555531919,
0.4382644892,
-0.5117697716,
-0.3361924589,
0.0879167318,
-0.0545393191,
0.5132350922,
0.05086549,
0.2247790843,
0.0900135785,
-0.1870052814,
-0.04012914,
0.2298822552,
-0.3210943043,
0.1083919033,
-0.1220102832,
0.0057677161,
0.3593580127,
0.112443909,
0.0358496532,
0.5103648305,
0.2113898695,
0.072191231,
0.1669255048,
-0.1320457608,
0.0987076014,
-0.1885119379,
-0.0352343135,
-0.0812532678,
0.2075200826,
-0.3698165715,
0.0277480558,
-0.3147500157,
0.0786038712,
-0.191870451,
-0.0323619023,
-0.3220309317,
-0.2089148462,
-0.0629460663,
0.4096318185,
-0.2718828917,
0.0419882238,
-0.0064636334,
-0.1180249527,
0.0215867218,
0.2971607745,
-0.2370029837,
-0.3015565872,
-0.374029994,
-0.1583940089,
0.577992022,
0.0535105802,
-0.0512507819,
-0.0516674481,
-0.2161800116,
-0.3514904082,
-0.3976760209,
0.4286091328,
-0.1134412363,
0.0060052518,
-0.1002595723,
0.318046391,
-0.2111657262,
-0.4990894496,
0.114844054,
-0.2589313388,
-0.0832982883,
0.1671215445,
0.0792736411,
-0.2307242602,
0.0519301705,
-0.1746178865,
-0.1400771737,
-0.0965813622,
-0.2825165093,
-0.1297853738,
0.1823788434,
-0.3487783968,
-0.0708558783,
0.1796254963,
-0.3342591226,
-0.1362029463,
-0.2476677001,
0.0183896814,
0.2872105241,
-0.1329413205,
-0.3237058222,
0.495624572,
0.0269246306,
0.341835171,
0.0566485822,
-0.4030573666,
0.2267919481,
0.23140499,
0.0250053927,
-0.1748467535,
0.0461072698,
0.212727055,
-0.084787786,
0.1835102588,
0.0505922437,
0.0972631648,
-0.3360316753,
-0.1924431324,
0.2831330597,
-0.0903019905,
0.513800025,
0.2595724761,
0.6778407097,
-0.1312732995,
0.2277937979,
0.197369799,
-0.140576914,
-0.1899259239,
0.0949459448,
-0.0761388168,
0.1143445447,
-0.1003618166,
-0.1714862287,
0.585716784,
-0.217373535,
-0.2346689701,
-0.2378280759,
-0.0568005219,
-0.5688067079,
-0.5239387155,
0.1828361005,
0.3403629065,
0.3761725426,
0.0175000485,
0.2138799429,
-0.0920707509,
-0.3685364127,
-0.0155466571,
0.2618903518,
-0.1244408041,
-0.1231173053,
-0.2195124179,
-0.054555919,
-0.2247725576,
0.2450664788,
0.2223411202,
0.5213931203,
0.1216324642,
0.0373338833,
0.1914768517,
0.080408074,
0.4079050422,
0.1229577586,
0.2616471946,
-0.0548345782,
-0.1593909711,
-0.3506838083,
-0.2592150271,
-0.3739875853,
-0.0090436656,
0.5089576244,
-0.0336518176,
-0.3929763138,
-0.0688546002,
-0.0405447297,
-0.0219742954,
-0.1007981077,
0.0373901986,
-0.0903739855,
-0.358205229,
-0.3550564349,
0.2206851542,
0.3207583129,
0.2599358857,
0.2318661511,
0.1107540056,
0.0202269908,
0.0940772593,
0.1679939777,
0.1295649111,
0.0218960214,
0.106854111,
-0.1335510761,
-0.347114116,
0.0463483259,
0.0771905929,
0.1125213653,
0.5233770609,
-0.465544343,
-0.0342263393,
-0.1587856263,
0.2762384415,
0.3710388541,
-0.0092569208,
0.2874035835,
0.2022296935,
0.2021602541,
-0.0559519976,
0.255142957,
0.3362347186,
0.0627212003,
-0.2458247542,
0.1051725745,
0.3895785213,
-0.0080273012,
-0.0241414513,
-0.0015792463,
0.0767259151,
-0.2691986561,
0.1893238127,
0.3515013158,
1.2506079674,
0.2659697235,
0.0169890616,
0.2763574719,
0.0442126244,
0.6086794138,
-0.6462410688,
0.1094850004,
-0.2827793062,
0.0614243597,
-0.2059049606,
0.1329854131,
0.0934014395,
0.1419589072,
-0.288644582,
0.2039873898,
0.1032894552,
0.5259102583,
0.2789725363,
0.1803502887,
0.2175608277,
-0.083023712,
-0.152965337,
-0.0414284281,
-0.263648361,
0.0002908813,
-0.2863669693,
-0.0215726607,
0.0985355228,
-0.3779266477,
-0.472623229,
0.1767258048,
-0.3571784496,
0.2739374936,
-0.0383761041,
0.0106594088,
0.3592604995,
0.0099478103,
-0.0358076803,
0.3343281746,
-0.1344678402,
0.2318212837,
-0.1697710454,
-0.355245769,
0.0129976235,
0.0338369757,
-0.0132486364,
-0.21997796,
-0.2343139052,
0.4540520012,
0.0161784831,
-0.2345126718,
-0.1109379753,
0.0964355394,
0.2640198469,
0.1134124696,
-0.4126052856,
0.0684175268,
0.0020152773,
-0.0428780243,
0.0237390194,
-0.2210814208,
-0.3089180291,
0.0455833115,
0.1914594024,
-0.2989696562,
0.1511257738,
0.3534883261,
-0.0079742195,
-0.3089987934,
0.5539164543,
0.4214870632,
-0.2652534246,
-0.120085381,
-0.1469396651,
-0.5995237231,
-0.5139878988,
-0.1296265125,
-0.1517819166,
0.075318031,
-0.0027998986,
0.2987010181,
0.3360538185,
-0.1601732671,
-0.0145236468,
-0.2696585357,
0.1962417066,
-0.0144208455,
-0.3134305179,
-0.1097419038,
0.0829666182,
0.381965518,
-0.0990818664,
0.0859428197,
-0.1187356263,
0.2275440097,
-0.2163123339,
0.2235798091,
0.3537524939,
0.0880688801,
-0.3263799846,
-0.0284310989,
-0.0219768956,
0.3297539949,
-0.0077918782,
-0.0366446972,
-0.2328089327,
0.2400612831,
0.3293089569,
-0.0757495686,
0.1362517774,
-0.0270535126,
0.0028649983,
-0.1123143062,
-0.0395220779,
-0.0460847281,
-0.0571953431,
0.3660622537,
0.2320523113,
0.3750464618,
-0.5651992559,
0.1087604761,
0.1337923855,
0.5745226145,
0.0278674625,
0.2287802249,
0.2306109816,
0.0064892578,
-0.173645705,
0.1414303184,
0.0974872485,
-0.029303506,
0.3401764631,
0.0067824959,
0.0067581898,
0.1846046448,
-0.2482763678,
0.2205834836,
-0.2990246117,
-0.2741920054,
0.5228119493,
0.0742760599,
-0.2124696672,
0.0874912366,
0.4620799422,
0.1062632725,
-0.2562896907,
0.2262160331,
0.0315433927,
-0.2609512806,
0.1855695844,
0.187629059,
0.2801577151,
-0.1200940162,
0.2026833445,
0.0164931752,
-0.2598483264,
0.3014811873,
-0.1215875,
-0.0723851472,
0.2637166679,
0.3368171751,
-0.0416259691,
0.0521307699,
0.0975423604,
0.0931925029,
0.0775517449,
-0.157362923,
0.0244249199,
0.4214034379,
-0.0256874803,
-0.0009938556,
-0.1551651657,
-0.2060319334,
0.2579575777,
-0.0723039061,
-0.4449806511,
0.3604531884,
-0.278414011,
-0.0036355485,
-0.2545229793,
-0.1036018729,
-0.2335768789,
0.1375907362,
0.163842082,
-0.0178428534,
-0.3674665689,
0.3523710072,
-0.3744666874,
0.1455938667,
-0.0529464297,
0.0031992632,
-0.0197852533,
-0.3990141153,
0.1668807119,
-0.0243332926,
-0.0397890992,
-0.1453585923,
0.1307672411,
0.4951551259,
0.5052853823,
-0.4910771847,
0.0306378063,
-0.0313671827,
0.2223320901,
0.0341138579,
0.1110145673,
0.2423647195,
0.4140433967,
0.1523621529,
0.0242616758,
-0.1170479208,
-0.3675272465,
0.3683356047,
0.1741412729,
0.1025609151,
-0.2432249784,
-0.0427912176,
0.1485034823,
-0.1346630156,
-0.1821495891,
-0.3763535023,
0.1467436552,
0.2502171397,
0.0344846807,
0.1311166435,
0.0236348081,
-0.0290091317,
-0.0190005582,
0.1255922914,
0.3132600486,
0.0382293984,
-0.1958370954,
-0.3837858438,
-0.6240745187,
0.4608496726,
-0.2040306628,
-0.3661982119,
0.1476469338,
0.2049543262,
0.1240619794,
0.3853282034,
0.0820925385,
-0.2400574684,
-0.3210076988,
0.2978588343,
-0.1986878067,
-0.0557456426,
0.0374491252,
-0.0787729844,
-0.0685569122,
-0.3496170342,
0.1586839855,
-0.1043171659,
-0.1114214137,
-0.2411875874,
-0.0280076675,
-0.1553026587,
-0.1515020728,
0.3971247077,
0.1063481346,
0.3947920501,
-0.1707576513,
0.0838163719,
-0.0741473213,
0.1212984025,
-0.1070878506,
0.3608295619,
0.054419443,
0.2073378563,
0.0287483148,
0.0233597364,
-0.3573515713,
0.188498497,
-0.0116843814,
0.0379812494,
-0.4710638821,
0.0426908247,
-0.2221055776,
0.1887380183,
0.0177252572,
0.0637416989,
-0.0354145356,
0.2457730919,
-0.4298841953,
-0.2522985041,
0.178422153,
-0.5421521068,
-0.3952219188,
-0.3052182794,
0.2859872282,
-0.2357292175,
0.0401071869,
-0.2903583646,
-0.1132242158,
0.2577064335,
0.020262152,
-0.2819973826,
-0.1080350429,
-0.1423837245,
-0.2690140605,
-0.1281463355,
-0.0844762847,
0.0411331393,
-0.46898067,
-0.0842293128,
-0.4250327051
] |
https://github.com/huggingface/datasets/issues/320 | Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer | This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples.
See #215.
That's why we end up with a `NonMatchingSplitsSizesError `. | Selecting `blog_authorship_corpus` in the nlp viewer throws the following error:
```
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 172, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 132, in get
builder_instance.download_and_prepare()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
```
@srush @lhoestq | 29 | Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer
Selecting `blog_authorship_corpus` in the nlp viewer throws the following error:
```
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 172, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 132, in get
builder_instance.download_and_prepare()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
```
@srush @lhoestq
This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples.
See #215.
That's why we end up with a `NonMatchingSplitsSizesError `. | [
-0.2341362089,
0.1746633947,
0.0528770275,
0.2242122293,
-0.0546315834,
-0.0274424814,
0.0375433676,
0.5022201538,
-0.2198076248,
0.194980368,
-0.0882540271,
-0.0733065158,
-0.0650149658,
-0.0218025912,
-0.1484556049,
-0.2776798606,
-0.2665170133,
0.3368442655,
0.0040061185,
0.0505704582,
-0.1330253184,
0.3972459435,
-0.2592681646,
-0.0288474057,
-0.0560096689,
-0.094577387,
0.1196757182,
0.0992412716,
-0.1994383931,
-0.2846439481,
-0.0320583507,
-0.2276538014,
0.0017965762,
0.2405455858,
-0.00011832,
-0.052131895,
0.3046364784,
-0.2610533237,
0.1739029288,
-0.2233769596,
0.0804654658,
-0.0924180597,
-0.15359433,
-0.2380283177,
-0.0968985632,
0.1424375027,
0.2361246049,
0.0534080975,
0.2056045532,
0.4859825969,
0.1864061654,
0.2100059837,
-0.0193580389,
-0.0822988078,
0.0310321692,
0.0691106245,
-0.2774815261,
-0.1139207333,
-0.0661813021,
-0.3515655398,
-0.1020692214,
0.4920196533,
-0.3369562924,
0.0684971139,
0.0590128861,
-0.166757077,
0.4507969022,
-0.3006084561,
0.3966714442,
0.113195017,
0.3707206249,
-0.0808913335,
0.1284290999,
-0.4112173915,
-0.0608805679,
0.0957363695,
0.1510843337,
0.519241631,
-0.1550331861,
-0.1399210244,
-0.3092519939,
0.1647305042,
-0.1608049273,
-0.0776639432,
0.0328211263,
0.402767539,
0.0867302939,
0.0405252129,
0.0317684636,
-0.0571879894,
0.221910879,
-0.0434497744,
-0.0588857457,
0.2149183303,
-0.1624519974,
-0.2532292008,
0.0767145231,
0.0638759136,
0.0667607486,
0.2960712016,
0.4302012026,
-0.2747680843,
0.3439978063,
-0.0774328038,
0.2365452945,
0.1986506581,
-0.0894366652,
0.7137351036,
-0.1469518989,
0.1481849402,
0.0643169433,
0.032757964,
0.0572788715,
-0.4348083735,
-0.2825954854,
0.1944421381,
-0.0128616523,
-0.2423687279,
-0.4029660523,
0.0894379243,
-0.2352205515,
0.0019081051,
0.0437302962,
0.3538169563,
-0.1384624392,
0.372538507,
-0.1321429759,
0.1701881737,
-0.4958770275,
-0.0299403556,
-0.2553322017,
0.199732706,
-0.2340430319,
-0.1152051613,
0.1064903587,
-0.2341357023,
0.4890708029,
-0.3374593854,
0.262501061,
-0.1843206137,
0.0667943656,
-0.1719838232,
-0.053293556,
0.1553212851,
0.0046404405,
-0.0583575591,
0.0511193424,
-0.0762761906,
-0.2232855409,
0.0823742971,
0.1880495846,
-0.4331123233,
0.0729910582,
0.2012608945,
-0.1427208185,
-0.00858525,
0.3555386364,
0.2001309395,
0.5317853093,
-0.2940739095,
-0.0616269521,
-0.3155487478,
-0.1892226487,
-0.1323688179,
-0.0478287302,
0.3900069892,
0.2923543453,
-0.1882692426,
0.0479635149,
0.2060774565,
0.6760649681,
0.2515400648,
0.2933115065,
-0.0934095234,
-0.0703203976,
0.592335701,
0.2992483974,
-0.3681658208,
-0.3501452208,
0.3049785495,
0.0814272985,
0.1100988686,
0.4589305222,
-0.0226860419,
0.3694958389,
-0.2830115259,
-0.1694007963,
0.3530229032,
-0.3465045393,
0.2441164851,
-0.375718534,
-0.1867754012,
0.1422658414,
0.0473583043,
0.5175160766,
-0.2810150981,
0.0719521493,
0.4198403358,
0.2445137501,
-0.0958583057,
0.1244924068,
0.0326471999,
-0.340970993,
-0.0453345813,
0.1311380863,
-0.173582986,
0.0578600205,
0.0684511065,
-0.5445122719,
0.0909091756,
0.3199637234,
-0.0716684535,
-0.4699732661,
-0.2672964334,
-0.0123808617,
-0.1456942856,
0.0786248669,
0.0600815192,
0.217110306,
0.0162413381,
0.0395698845,
0.0158126689,
-0.0227919929,
0.1286685169,
-0.4914089739,
0.1954776049,
-0.4119060636,
-0.2882962227,
0.4236944318,
0.4241123497,
0.1636870205,
0.1043477729,
-0.0915231556,
0.2703999281,
-0.3040337265,
0.5339005589,
-0.2337969244,
-0.1191233471,
0.2068131268,
-0.1963580847,
0.2390305251,
0.2573577166,
0.0397709012,
-0.1976045519,
0.1838832796,
0.2230783552,
-0.2207982987,
0.0989047289,
-0.0605804995,
0.0326408707,
-0.0623256192,
-0.2171821594,
0.1006927788,
-0.4573525786,
0.6223404408,
-0.0146444701,
-0.365305692,
-0.0328071974,
-0.2899561822,
0.1150958315,
0.2411936074,
0.207904458,
-0.0253724176,
0.0363535658,
-0.1495157182,
-0.0534573868,
0.0021609745,
0.1482890546,
0.3844687343,
0.1326701939,
0.1690294445,
0.0748086944,
-0.0515364856,
-0.4746571779,
0.2813267112,
-0.0864149928,
0.0323341824,
0.6150074601,
0.0690593868,
0.0600597635,
-0.3489788473,
0.2118943334,
0.1659848541,
0.0698253661,
-0.2140686959,
-0.1929686666,
-0.2077675611,
-0.6258755326,
-0.1261742413,
-0.089445129,
-0.1052095443,
-0.2106355876,
0.2958929837,
0.3621726334,
-0.2283609509,
0.1697582752,
-0.1669318676,
0.095392324,
-0.1257456392,
0.2700557709,
0.0592220426,
-0.2429376245,
-0.1207744628,
0.1339832097,
0.2380243242,
0.1384688616,
0.2744055986,
-0.2108682692,
-0.0906062424,
0.0105306944,
-0.3887263834,
-0.0287210196,
-0.0631741881,
-0.1951729059,
0.0804462731,
-0.2456766814,
0.4262953997,
-0.0986751318,
0.0760049298,
-0.0535424687,
-0.3460762799,
0.119956024,
0.0806698427,
0.0065340721,
-0.2380541265,
-0.2155199796,
-0.0629039109,
-0.6166681647,
-0.0915686786,
0.442366302,
0.3254469037,
0.1410057992,
-0.2032932043,
-0.2182093412,
-0.0612077303,
0.3252719045,
-0.1164977998,
0.3335402608,
0.3101630509,
-0.1765713245,
-0.2433774918,
-0.0459044538,
-0.0428633131,
0.219994083,
-0.0598045029,
-0.3879624605,
0.0073032239,
-0.0993812457,
-0.5655641556,
-0.0869099572,
-0.1579057872,
0.4219523668,
-0.0200162027,
0.0186507367,
-0.0466033928,
-0.0752871111,
-0.0593093857,
0.2329158187,
0.4591049254,
-0.2379426658,
0.2790832222,
0.2447115183,
0.4417749345,
0.6506689787,
0.2129517347,
0.0574818328,
0.2250233144,
-0.1328054816,
0.1163048968,
-0.1153213009,
0.8192628622,
0.1328852922,
0.010454773,
0.5705663562,
0.0549003817,
-0.3037194908,
-0.1108630598,
-0.1135461703,
-0.1897532195,
-0.1329935789,
0.2126722634,
-0.3850331306,
0.3022396564,
0.0784465745,
0.2738242149,
-0.1990063488,
-0.4706104696,
-0.2083249241,
0.0380731374,
0.0473373979,
0.1468963623,
0.1081889048,
0.1974835992,
-0.7274338007,
0.3355390728,
0.1994829923,
-0.1215409562,
-0.2427465171,
-0.1555068344,
0.0317804888,
-0.0126243643,
0.0950670689,
-0.3479499817,
-0.1723847687,
-0.110159032,
0.1378666312,
-0.3510381281,
-0.1615859419,
0.1432400644,
0.2933988273,
0.211299777,
0.0223894436,
-0.228722766,
0.1369999498,
0.4354553521,
-0.1594471782,
-0.0951061919,
-0.1316631138,
-0.2110887617,
-0.3161677122,
-0.1280886829,
0.0368997455,
0.118895255,
0.3483348489,
0.0419904813,
-0.0243424736,
0.1267147958,
-0.2376789451,
0.2830744386,
0.1491047442,
0.1082172543,
-0.0503534116,
0.0961502567,
0.1413805336,
0.2073114365,
-0.0036894737,
0.4415615797,
0.2652774453,
-0.0842808932,
-0.039740555,
-0.0708219036,
-0.0191244353,
0.457362622,
0.2647045255,
0.0330884717,
-0.0254693683,
0.2242765427,
-0.2058829814,
-0.0468666665,
0.101585269,
-0.1914956421,
-0.2139107138,
-0.2648805082,
0.2391635925,
0.0708579123,
0.0038733878,
0.0017734207,
-0.3494579792,
-0.2807812095,
0.0960866213,
0.1922040135,
0.9271713495,
0.4109408557,
-0.2112887055,
0.0063021551,
-0.2388444096,
0.3870353401,
-0.1661747396,
0.4693216383,
-0.4435597062,
-0.0792939812,
-0.0438737832,
-0.108055532,
0.0606206954,
-0.0772378817,
-0.3219484091,
0.2458065599,
0.1625929326,
0.0112757906,
-0.1145931035,
0.0712133348,
-0.3671101928,
-0.0781508535,
0.1206116602,
0.0460896268,
-0.4622891843,
0.4662288427,
0.0374450125,
-0.0012152736,
-0.0522681288,
-0.1625232249,
-0.5065695047,
0.3188254237,
-0.2463770807,
-0.1297203302,
0.1193737313,
-0.3374147415,
0.288929522,
0.3410133123,
0.2015181929,
-0.207805872,
-0.0850293189,
0.285128206,
0.0443104953,
-0.2324416041,
0.1442331821,
0.2361488789,
0.1982563585,
-0.2572906613,
0.0606640801,
-0.0226811245,
0.0351089947,
-0.0661078542,
-0.1929582953,
-0.0678707436,
0.2031793445,
-0.1245062426,
-0.1689302027,
-0.0318932422,
-0.1866503209,
-0.0103470441,
0.0658946484,
-0.3126448989,
-0.235659346,
0.1632259339,
-0.2036501765,
-0.1821252406,
-0.0514603034,
0.2283282727,
0.368606925,
0.0155299194,
0.4415656328,
0.0983651653,
-0.2256162912,
-0.1847765744,
-0.3693659008,
-0.4083602726,
-0.3803119361,
0.1882171035,
-0.1573255062,
-0.3453461826,
0.3613975942,
0.2624168694,
0.1682597995,
0.2915205657,
-0.1140108183,
-0.2506524622,
0.0613000244,
0.0830986947,
-0.3708010316,
0.0073021227,
-0.1438215822,
0.5562916398,
0.0027532608,
0.4266013503,
-0.2346433252,
-0.104939647,
-0.4237531424,
0.3038518727,
0.0987906009,
-0.3049318194,
-0.2135279328,
0.1262171119,
-0.0047566006,
0.349581182,
-0.2498697639,
-0.0964307487,
-0.0877255797,
0.1599425226,
0.1759070009,
-0.0947137475,
-0.097017996,
0.1231443137,
-0.2138715386,
-0.0877317265,
-0.0194454473,
0.0372390747,
-0.0256323311,
0.0434238911,
-0.2768428028,
-0.1410385221,
0.0307207946,
0.2040998042,
-0.3766618669,
0.2821730077,
-0.1075307876,
0.2419950366,
0.1007173881,
-0.0940886959,
-0.1642547995,
0.0379458778,
-0.0284831636,
-0.0710048825,
0.284409672,
-0.0343593955,
0.1698396504,
0.2508733869,
0.1483684629,
0.2195603997,
0.1022336185,
-0.1501447558,
0.0848937333,
0.1776738018,
-0.41090855,
0.1344019324,
-0.126476571,
0.1109706908,
0.0501567647,
0.2803555131,
0.1536609083,
-0.0477122366,
-0.1230258718,
0.2995512784,
0.2638212144,
-0.2314502597,
0.2281987965,
0.2588671148,
0.1039080545,
-0.0019342049,
0.3497004509,
-0.1886776686,
0.2835477889,
-0.0265325662,
0.061395295,
0.4275465906,
0.0060779061,
0.2399887294,
0.076547429,
-0.1597393453,
-0.3672071695,
0.3541343808,
0.2138394117,
0.3802349865,
0.1098119766,
0.4013878405,
-0.3140049875,
-0.0161998216,
-0.3187521994,
0.1151974574,
-0.0517933704,
0.0464306697,
-0.6466078162,
-0.1458351612,
-0.2296158373,
-0.0903989002,
-0.0282126963,
0.3658717275,
0.2216519713,
-0.0374033935,
-0.2877687812,
-0.3670090735,
-0.0355922654,
-0.0140142655,
0.3070979416,
-0.3762356341,
0.2843180895,
0.1654311717,
-0.039042756,
0.107991226,
0.7267917395,
0.5513196588,
0.2456117123,
-0.2686261535,
-0.3699730635,
0.0882117897,
-0.0545162037,
0.0936684534,
0.3815403879,
0.3370877206,
0.0162151158,
0.2437615246,
0.0145368828,
-0.1759466678,
0.2181910574,
0.1912270486,
-0.1670648903,
0.0372189656,
0.4260977209,
-0.2845410705,
-0.0490090437,
-0.1714823246,
-0.010555503,
-0.5934743285,
0.0114101442,
0.0997593179,
-0.1636205018,
0.2351563722,
-0.1910562068,
0.039566759,
0.0959611461,
0.3803494275,
0.2955439091,
-0.4618963301,
-0.1453794539,
-0.2333026081,
-0.1304208487,
0.3442293108,
-0.3623975515,
-0.1869300455,
-0.0343964137,
0.3930367529,
-0.2402020544,
0.0096200313,
0.0207276139,
0.4349847138,
0.0459796414,
0.2090396434,
-0.1640459299,
0.106576398,
-0.1200245768,
-0.3561325967,
0.0761813596,
-0.1705269963,
0.0934686139,
-0.2003172338,
0.0382784382,
0.0361624323,
0.0556778684,
0.2787976861,
0.3713515699,
-0.2958142757,
0.2940854132,
0.2899460196,
-0.0592014678,
0.0587416962,
-0.1465974748,
-0.3278465867,
-0.4173357487,
0.1447604746,
0.1439014077,
0.5233876705,
-0.24401775,
0.2875047326,
-0.0943316221,
0.2279621959,
-0.0677672997,
0.0213421881,
-0.1385797411,
-0.0584819131,
-0.1580846757,
0.095754467,
0.2369383276,
0.3930021822,
0.0405317061,
-0.0469655506,
-0.2543896735,
-0.6759299636,
0.3311419189,
-0.2184527814,
-0.1853182167,
0.1943041533,
0.0694572255,
0.2764319777,
0.0643566921,
-0.6895743012,
0.0946860462,
0.050229609,
-0.0715435892,
0.2251191884,
-0.0590323135,
-0.0983622521,
-0.3830583692,
0.0175961442,
-0.4123787582,
0.2721535265,
-0.2841885686,
0.2350589782,
-0.0290078763
] |
https://github.com/huggingface/datasets/issues/319 | Nested sequences with dicts | Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409
To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write).
In your case, the features could be as follow:
``` python
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": [[{
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
}]],
...
}),
...
``` | Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`.
The original data is in this format:
```python
{
'title': "Title of wiki page",
'vertexSet': [
[
{ 'name': "mention_name",
'sent_id': "mention in which sentence",
'pos': ["postion of mention in a sentence"],
'type': "NER_type"},
{another mention}
],
[another entity]
]
...
}
```
So to represent this I've attempted to write:
```
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": nlp.features.Sequence(nlp.features.Sequence({
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
})),
...
}),
...
```
This is giving me the error:
```
pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict.
If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though. | 88 | Nested sequences with dicts
Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`.
The original data is in this format:
```python
{
'title': "Title of wiki page",
'vertexSet': [
[
{ 'name': "mention_name",
'sent_id': "mention in which sentence",
'pos': ["postion of mention in a sentence"],
'type': "NER_type"},
{another mention}
],
[another entity]
]
...
}
```
So to represent this I've attempted to write:
```
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": nlp.features.Sequence(nlp.features.Sequence({
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
})),
...
}),
...
```
This is giving me the error:
```
pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict.
If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though.
Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409
To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write).
In your case, the features could be as follow:
``` python
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": [[{
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
}]],
...
}),
...
``` | [
0.1117629409,
0.0667424724,
-0.0714068711,
-0.0210159719,
-0.1091682613,
-0.0410180129,
0.1987866312,
0.1697287112,
-0.0871765539,
-0.4004123807,
0.2879690826,
0.3965293169,
-0.0898340046,
0.2038050592,
-0.0607238784,
-0.2475784421,
0.3430914283,
0.1289693564,
0.3750732243,
0.2590893507,
-0.2045022994,
0.3637642562,
-0.2815239429,
0.1494687349,
-0.2481651008,
-0.3701808751,
-0.3637535274,
0.1604201198,
-0.0595384836,
-0.7306871414,
0.3275496066,
0.2191214263,
0.1450789124,
0.1276399046,
-0.0001186873,
-0.0521876104,
0.5560510755,
-0.0750036091,
-0.1546788961,
-0.0694720149,
0.0074848779,
-0.3073995411,
0.2966662347,
-0.2497452945,
0.0215845257,
-0.4088245928,
-0.0574824177,
-0.0613234751,
0.3271242976,
0.2150970101,
0.1544762254,
0.0688154176,
0.3399308622,
0.0271111876,
0.4079805613,
0.3201029897,
-0.140776217,
0.1663140804,
0.4056242406,
-0.3216355145,
0.0209346395,
-0.0978928432,
-0.1353193372,
-0.2777377963,
0.3606657088,
0.2268982679,
0.0491360985,
-0.1841317266,
-0.5392255783,
-0.0223110095,
0.1228885278,
-0.245672524,
-0.1384018064,
-0.4200356901,
0.0036538595,
-0.4405344725,
-0.0079782754,
-0.1407095641,
-0.2733757794,
-0.0963975415,
0.2459772527,
-0.2561306655,
-0.2779057026,
0.3951283097,
0.1447311044,
0.2310715169,
0.1184958145,
0.0992588475,
-0.1329668611,
-0.4175079465,
0.1348033249,
-0.2447813153,
0.027878331,
0.1005075648,
0.0098714968,
-0.1878098994,
-0.0269918572,
-0.1887378991,
0.1825390905,
0.0152060855,
0.1940033734,
-0.0737635717,
-0.0238394774,
0.0430313498,
0.3456589282,
0.1764031202,
0.0108603816,
-0.17157574,
-0.066734314,
0.311568439,
0.0790736452,
0.0870559812,
-0.1188081354,
0.0132936602,
-0.2246384323,
0.2144701928,
0.388327539,
0.0419626944,
-0.1750759929,
0.0624768585,
-0.3113231361,
0.0604516715,
-0.0119610261,
0.0920135826,
0.0700005665,
0.2033090889,
0.1066468805,
0.3950108886,
0.0666036755,
0.0462856814,
-0.0807008594,
0.0077303168,
-0.1041358262,
0.0657802448,
-0.0892220512,
0.1868108958,
0.1713126749,
-0.1115265563,
0.1340784132,
-0.0093421247,
-0.2380873114,
-0.0547783934,
0.2477755994,
-0.1615775377,
-0.2585240901,
0.1531671882,
0.1702299416,
-0.4171899557,
-0.0409006514,
0.1030412018,
-0.1227637827,
-0.2476047724,
-0.3633390963,
0.0623023845,
-0.3166218996,
-0.0854943991,
-0.1410177946,
0.3202441931,
0.5429490805,
-0.1632456779,
-0.1814664155,
-0.1992945522,
-0.2664171159,
-0.3964797556,
-0.0749632195,
0.1141208112,
-0.221322909,
0.1271055788,
-0.3402888179,
0.164793998,
0.1423596889,
0.1691093445,
-0.059379667,
0.3282697201,
-0.2519991994,
0.7448478341,
0.2469036579,
-0.154254213,
-0.05594071,
0.1489608139,
-0.035105262,
0.1376335472,
-0.0552320406,
0.0722644627,
0.1872955114,
-0.3772201836,
0.219692573,
-0.0028168375,
0.0423981547,
-0.3566224575,
-0.1894053221,
-0.0168205407,
0.4003438056,
-0.2266629785,
-0.3518339097,
-0.1862149984,
-0.1101844758,
0.1465519071,
0.1216542423,
-0.1506716013,
0.2942143381,
0.3281383812,
0.0982829109,
0.030644672,
-0.0221917704,
-0.1801385432,
-0.6082834601,
-0.0778389573,
-0.4564252794,
0.265504837,
-0.5156537294,
-0.1381062418,
-0.2986238599,
0.2917180657,
-0.2939355075,
-0.0874445885,
0.1657338738,
0.045794569,
-0.0814892352,
-0.1121658087,
-0.0471535772,
-0.2919531465,
0.1465136111,
-0.0049194456,
-0.2575116158,
0.4828610718,
-0.0993679315,
-0.3981581032,
0.3474789858,
0.6011692882,
0.299606204,
0.0108093945,
0.2203308493,
0.0839651078,
0.0614009462,
-0.270619303,
-0.2162832767,
-0.1576786637,
0.1663332283,
-0.5653811693,
-0.0550804213,
0.2663570642,
-0.0157452114,
-0.3664386868,
-0.1052338853,
0.3159485757,
-0.0346249454,
0.4077747166,
-0.1733399779,
0.2705791295,
-0.0348709226,
0.1374607682,
-0.1708569676,
-0.333034128,
-0.1048403159,
0.4203817844,
-0.3121207058,
-0.1443030387,
-0.1692665666,
0.4793444872,
0.3534283936,
0.1225577146,
0.0461267531,
0.155460611,
-0.0794250071,
-0.2559582293,
0.1802676171,
-0.2929846644,
0.2055214792,
0.2246132046,
0.1453630775,
0.0807229877,
-0.2061258703,
-0.0572397746,
0.144023031,
-0.0237121582,
0.350227505,
0.208184883,
0.3714060485,
-0.1997285336,
-0.074070707,
-0.4108283818,
-0.0180831384,
0.1100207567,
-0.2863144875,
0.0280114766,
-0.1382287443,
-0.4561454952,
-0.0179671757,
-0.4906529486,
-0.1596073061,
-0.5329732299,
-0.0305232294,
0.1939588338,
-0.1003115699,
0.2125134319,
0.1825372726,
-0.2348069102,
0.234415561,
-0.3206107914,
-0.2240637988,
-0.4881903231,
-0.2442372292,
0.1311271936,
0.151558727,
0.0488085076,
0.0672165826,
0.280276686,
-0.0738634318,
-0.1561628878,
-0.5505623817,
0.0304248501,
-0.4866123199,
0.0957423747,
0.4155689776,
0.247260496,
0.1292893291,
-0.4227380157,
0.3008897305,
0.5386326909,
-0.3785912097,
-0.050057631,
-0.0442277044,
-0.0153108276,
-0.0904575437,
-0.0681429803,
-0.0746589601,
-0.2739898264,
0.3004770279,
0.3360035419,
0.1556709707,
0.145237118,
-0.0839368328,
0.0632241592,
0.1560754776,
-0.2299245447,
0.073064737,
0.4016879201,
0.3970456719,
-0.2707501948,
-0.3289731741,
0.0066126399,
-0.4844299853,
0.0295714289,
-0.1177047119,
-0.1482518464,
0.1077739075,
0.1482848376,
0.4257537127,
0.342569083,
-0.3354378343,
0.3598231971,
0.496021837,
-0.0522433892,
-0.086647138,
-0.0341403149,
0.2497750372,
0.1586210281,
0.2001061589,
0.2461518347,
0.0882551894,
0.1381197572,
0.3682235181,
0.4500820935,
-0.0455316342,
0.4103307426,
-0.1635898352,
-0.0244687367,
-0.2582239211,
0.007021714,
-0.3686866164,
-0.1982268691,
0.0572776906,
0.0289595295,
-0.1232875213,
-0.3941147327,
0.0881604701,
0.0466544479,
0.2459709495,
-0.1358118057,
0.1118958071,
-0.5101600289,
0.2923167646,
-0.1387942284,
-0.3272829354,
-0.0665580705,
-0.4218160212,
-0.0783465356,
-0.1794511676,
0.0777285025,
-0.023721287,
-0.3296517134,
-0.0878601298,
-0.4834106565,
0.2109837234,
0.398047775,
0.1980567575,
-0.0530761145,
-0.102268815,
-0.1097590253,
-0.2238671929,
0.1809990108,
-0.1099723205,
-0.189315021,
0.4855353832,
0.1183651686,
-0.4214874506,
-0.0338470116,
-0.0896713436,
0.1774791181,
0.091299206,
0.4397969842,
-0.6211689711,
0.0020220676,
0.0713744909,
0.0922097266,
-0.0677064732,
-0.0741996169,
-0.0735138208,
-0.2639946342,
-0.1719911098,
0.0082072727,
0.3025733829,
0.4619008303,
0.0121730613,
-0.2804293334,
-0.0899339095,
-0.1619854569,
0.0362526365,
-0.1058383733,
0.258902967,
-0.124584794,
-0.0514227413,
0.0134864263,
0.2822632492,
0.1386041492,
0.2392871976,
0.3220470548,
0.1425617486,
-0.1194689199,
-0.0797487497,
0.3786864579,
0.136357978,
0.0171592254,
0.2974935472,
0.1562424153,
-0.1546485722,
-0.1992688626,
-0.0542865731,
0.3101431131,
-0.1684680581,
-0.3162240684,
-0.0562880896,
0.2843526602,
0.0125216478,
-0.080161944,
-0.038885206,
0.029411694,
-0.4231782258,
0.4896874428,
0.2276361436,
0.9587829709,
0.1433469206,
0.3334241211,
0.7011720538,
0.1009095982,
0.5256796479,
0.1235473976,
0.0278160386,
-0.3482500315,
0.3312151432,
-0.0938306004,
-0.197028324,
0.033751186,
0.1511794925,
-0.398911953,
0.2076257914,
-0.0439409614,
-0.0097745107,
0.0969634652,
0.0773596838,
0.4406328499,
-0.0398813747,
-0.1946102381,
0.0343465284,
-0.0421700887,
-0.0641204119,
-0.0292142052,
-0.5158140063,
-0.4526412189,
-0.1940002441,
-0.126255095,
0.0731220618,
0.0002197204,
0.1277300268,
0.1020550206,
-0.3356179595,
0.180239588,
0.5281006098,
-0.0187884104,
-0.3472118378,
-0.2047386914,
-0.2765873075,
0.0460749865,
-0.3822996914,
0.0796267241,
-0.2330662608,
0.170217827,
-0.1389920563,
0.0583877303,
0.0667983294,
-0.102518484,
-0.1171066314,
-0.124557063,
0.1298495233,
-0.2100250274,
-0.2777292132,
-0.2426898628,
0.2711510062,
-0.264326334,
-0.0053211767,
0.0688451901,
0.0013985165,
-0.214906469,
0.0882432908,
0.0066768886,
0.200932309,
0.1078078672,
0.1676501632,
0.3902583718,
0.2498513907,
0.6531681418,
0.3535990119,
-0.2699030638,
-0.0370758846,
-0.2008206993,
0.1356636286,
-0.2612205744,
0.2731481791,
0.0095655713,
-0.1079514474,
-0.1851247698,
0.566198349,
-0.0359060206,
0.3272179067,
-0.0294843558,
-0.2730292678,
-0.4289375842,
0.3417747915,
-0.3376168311,
0.1372969449,
-0.2105009407,
0.3417847753,
-0.0200435817,
-0.0866847709,
-0.2319802195,
-0.0338978507,
-0.2695261538,
0.2831501663,
0.0727760792,
-0.2418662161,
0.1432747841,
0.1637408882,
0.1134922206,
0.1377165318,
0.009140471,
-0.1189613044,
-0.0946799666,
0.1483018398,
0.2462121844,
-0.0146381948,
0.1611179411,
0.1037166044,
0.0072388402,
-0.0934786573,
-0.1661730558,
-0.2070734501,
-0.0978029072,
0.2616788447,
0.2590051591,
0.0608828552,
-0.1613889784,
0.1721500754,
-0.074957855,
0.2543971241,
-0.1327085197,
0.2022130787,
-0.1359707266,
-0.0658144951,
0.0559131913,
0.2971178293,
-0.0877364576,
-0.0780255198,
0.4186024964,
-0.0817787498,
-0.443364799,
-0.2719824016,
0.3999479413,
0.2681148648,
-0.1009981558,
-0.0830783918,
-0.1121800914,
0.0747596473,
-0.3760125041,
-0.0077785663,
0.2860890925,
0.032382261,
0.0204305314,
0.2159099728,
0.3058031201,
-0.0404889919,
-0.2148515135,
-0.0401833765,
0.0060540945,
-0.0112841036,
0.0295728054,
0.0908348635,
0.1468586922,
0.064388223,
0.1996055543,
0.0061448473,
0.318685621,
0.3405148983,
0.2255375534,
0.0747070163,
0.7099595666,
-0.0206038635,
0.4179551303,
0.0624392517,
-0.0959217474,
0.2301594615,
0.8155223131,
-0.0801274031,
0.228121981,
0.2109823823,
0.4051740766,
-0.1539327353,
0.2298148423,
0.4492284656,
-0.0696031451,
-0.2035359889,
-0.1884579957,
0.0116917361,
-0.2171998769,
-0.4033900797,
-0.2008134127,
-0.2008017153,
0.1609134674,
-0.085551843,
0.3172802329,
-0.3578865826,
0.6291169524,
0.235927999,
0.1579395235,
-0.0687290132,
0.3983707726,
0.2859928608,
-0.1227336973,
0.120039247,
0.310632199,
0.5210931301,
0.2319260091,
-0.4977973104,
-0.0201341659,
-0.1575995088,
-0.3119958341,
0.0452810787,
0.1557565778,
0.1033887416,
0.1714432836,
0.4270242453,
0.0027690935,
0.0035367727,
-0.0066917171,
0.300227046,
-0.1084526181,
0.2530641258,
0.5017454028,
-0.2810673118,
-0.3682083786,
0.1633393019,
0.028057931,
-0.2052236348,
-0.1081207544,
0.3654829562,
0.228848055,
0.2794363201,
0.0771407858,
0.0592629425,
-0.0933696553,
0.5959616899,
0.1037612781,
0.3081623614,
-0.1546452343,
-0.2343511134,
-0.3536601365,
0.0036342293,
-0.0565192886,
-0.3216263652,
0.3073223829,
-0.0111771962,
0.0589242168,
0.1984141022,
-0.1791730821,
0.0193472672,
-0.2994588912,
0.2204194516,
-0.3973325491,
0.0502124615,
0.3911750913,
0.0467455685,
-0.0837043449,
0.0230235141,
0.0510606878,
0.0286291223,
-0.0086941803,
-0.1330477744,
-0.122964792,
-0.0937694311,
0.2239983082,
-0.0495798476,
0.2552889287,
0.2741927803,
0.0716451555,
-0.1535005569,
-0.1562321484,
-0.2056283951,
-0.0690806732,
0.6255398393,
0.0890994519,
0.4591792822,
-0.2144265622,
0.298073113,
-0.0728881955,
-0.0675850809,
0.0347640924,
-0.0315900892,
-0.3935303092,
0.308496803,
-0.242196992,
0.2191547602,
-0.0817308277,
0.0946831182,
0.0168623514,
0.2577868104,
-0.2422178835,
-0.4130553305,
0.3898533285,
-0.1153758466,
-0.2464153618,
0.4650786221,
-0.1455706805,
0.4240632951,
0.0369954184,
-0.1442358345,
-0.2059311569,
0.4398932457,
-0.1090037078,
-0.3411958218,
-0.1297616065,
-0.0677587092,
-0.1385494173,
-0.1810834557,
0.1994470209,
-0.1636885107,
-0.0651478544,
-0.2459088713,
-0.4080277681
] |
https://github.com/huggingface/datasets/issues/317 | Adding a dataset with multiple subtasks | For one dataset you can have different configurations that each have their own `nlp.Features`.
We imagine having one configuration per subtask for example.
They are loaded with `nlp.load_dataset("my_dataset", "my_config")`.
For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli).
Another example is `wikipedia` that has one configuration per language. | I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks.
For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE.
I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether?
I read the discussion on #217 but the case of QE seems a lot simpler. | 66 | Adding a dataset with multiple subtasks
I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks.
For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE.
I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether?
I read the discussion on #217 but the case of QE seems a lot simpler.
For one dataset you can have different configurations that each have their own `nlp.Features`.
We imagine having one configuration per subtask for example.
They are loaded with `nlp.load_dataset("my_dataset", "my_config")`.
For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli).
Another example is `wikipedia` that has one configuration per language. | [
-0.0709953979,
-0.1814529002,
-0.0437028334,
0.384914875,
-0.2169746906,
0.0946590006,
0.358209163,
-0.1335342675,
0.1271398813,
-0.1552469134,
-0.2816209793,
0.148930788,
-0.1571822762,
0.6809744835,
0.3387671411,
-0.2282720506,
0.1595130861,
-0.3534747362,
-0.0652335212,
-0.0188688897,
-0.1657255888,
0.0523260981,
-0.048503492,
-0.0104860617,
-0.3616020381,
-0.23399131,
-0.2940639257,
-0.1222256944,
0.312414974,
-0.3002322614,
0.0982156545,
0.2476525158,
-0.0327625461,
0.0659814775,
-0.0001160392,
0.1200201064,
0.030315483,
-0.1052030325,
-0.3548586369,
-0.1189139709,
-0.2348762602,
-0.4712660909,
-0.0468739644,
-0.1661799997,
0.1921756864,
-0.3059153557,
0.3483876288,
-0.2273127586,
0.1708159596,
0.1654317081,
0.0961556062,
0.3004249036,
-0.3444350362,
0.1898007095,
0.1419134438,
-0.1465307325,
-0.0864703581,
0.1482954919,
0.1591270566,
0.1215689778,
0.1044885442,
0.0899098665,
0.1305585951,
0.1565487385,
0.3428239822,
0.0436938293,
0.2532323897,
-0.3091906905,
-0.1941087395,
0.3868040442,
0.5393714309,
0.0430022627,
-0.4733119607,
-0.4100725353,
0.0619717948,
-0.1059596166,
-0.018386608,
0.3538913131,
0.061939016,
-0.2496780753,
0.212274164,
-0.0840407833,
-0.0923273638,
0.2020340562,
0.1703462303,
0.4990216494,
0.0561951064,
0.2428795993,
-0.236575067,
-0.1611413956,
-0.1720632315,
-0.1442683935,
-0.1845078021,
-0.0123146251,
-0.2962132096,
-0.0726037771,
-0.0922357738,
-0.4936169386,
0.2760332227,
0.0480815284,
0.386801362,
-0.0181514304,
-0.0343013443,
0.3849566579,
0.5777330399,
-0.0719928443,
0.3023169339,
-0.0365589112,
-0.0505062491,
-0.5055098534,
-0.1048419476,
-0.1112039313,
-0.0039244862,
0.057834655,
-0.3177067041,
-0.1836055368,
0.1430573016,
0.077361159,
-0.2293824106,
-0.1281400621,
-0.129147619,
-0.3175264001,
-0.2034197897,
-0.0726114139,
0.2471606433,
0.2654177845,
-0.3013917208,
0.5123952031,
0.0432336554,
0.0602394789,
-0.0664108321,
-0.0779026747,
-0.3201754987,
0.2367757708,
0.04633075,
0.0716187134,
0.4474032819,
-0.004477147,
-0.028469177,
-0.3521714807,
0.1882116795,
-0.079078421,
-0.0691634193,
-0.0300832726,
0.0427798778,
0.0656021982,
-0.2253541946,
0.2875691354,
-0.4145515859,
0.0200993717,
-0.3364299536,
-0.1666954756,
0.0898743197,
0.0010788501,
-0.1832783073,
-0.1988341212,
-0.5550368428,
0.6362174153,
0.0819479376,
-0.0798844397,
-0.0208131317,
-0.1413581967,
-0.2756297588,
-0.1657591909,
-0.3760384023,
-0.1004391536,
-0.2967465818,
-0.4861108959,
-0.0149355642,
-0.1696497947,
0.0170272384,
0.3792362809,
-0.2067188174,
0.4938256443,
-0.0901046246,
0.3840904534,
0.5942388177,
-0.2019271553,
-0.0835363939,
0.3388237357,
0.1239388883,
0.0426071882,
0.288913995,
0.4311680794,
0.2352268845,
0.0221798643,
0.0045318236,
0.3451701999,
-0.1242874488,
-0.1570482403,
0.0157905165,
-0.1439420879,
0.4175119996,
-0.0080846539,
-0.0104978429,
-0.2487357259,
0.1275280267,
-0.0433608182,
0.1509207785,
0.0679420307,
0.1376363784,
-0.1213256642,
-0.1397401541,
0.3720225394,
-0.0812835395,
-0.2937512696,
-0.3058460951,
0.173855722,
-0.1913665384,
0.1177505553,
0.5350754857,
-0.1869016439,
0.097227186,
-0.2575562596,
-0.1604674757,
-0.490206331,
0.0914234892,
0.4530514777,
-0.5109921098,
-0.3918745518,
-0.4492614269,
0.1753062606,
0.1212878674,
-0.1223334745,
-0.1563708931,
0.2713685632,
0.1602035761,
0.0259519536,
0.1240011826,
0.395866096,
-0.054489404,
-0.0062389602,
0.0937290341,
0.0853291526,
0.2098020315,
0.2352554053,
0.2691694796,
-0.127430737,
0.1423422545,
-0.0064534829,
0.0906720236,
-0.1277322769,
-0.0298701487,
-0.2179367542,
0.2128393203,
0.2513685226,
0.1943631619,
0.374297291,
0.0365511253,
-0.091596663,
0.2419494539,
0.0824623406,
-0.3555676341,
-0.2242484093,
0.1361578405,
0.0217420403,
-0.0685298815,
0.1027369052,
-0.2026440352,
0.2370169312,
0.3304445148,
0.1169451326,
0.1193803921,
-0.1372856647,
-0.1324390024,
-0.1327701807,
0.1277341992,
0.326309979,
0.4737483561,
0.1827244461,
0.3626639545,
-0.0206292085,
-0.0155715588,
-0.1086179912,
-0.0022717896,
0.1844284683,
0.0015734332,
0.2131681442,
-0.0769162774,
-0.1609202176,
-0.0590053461,
0.1598149538,
0.309804976,
-0.1948589534,
-0.1620256901,
0.0063782199,
-0.4035834968,
-0.4256439209,
-0.2943240106,
0.023165904,
-0.3156167567,
-0.2660316229,
0.0897280723,
-0.0803453475,
-0.1905919313,
0.3742901087,
0.0285846666,
0.4266753197,
-0.4384788871,
0.172748208,
0.2919110954,
-0.3651600778,
-0.0391864143,
0.0752992183,
0.453334868,
0.5177778006,
0.5196752548,
0.0819658414,
-0.2692108154,
-0.1495774686,
-0.1766422391,
0.1827419698,
-0.3511625528,
0.644190371,
-0.1898635775,
-0.0635558292,
0.0654108971,
-0.3773076236,
0.1839831471,
0.3056869209,
-0.1688381582,
-0.0997263119,
-0.0991648659,
-0.1515532732,
-0.0166976918,
-0.5070536137,
-0.4871922135,
-0.2386374921,
0.2469993681,
-0.1593507081,
0.3552492559,
0.0109290369,
-0.3600105047,
-0.0445911698,
-0.0510284677,
0.0225512199,
-0.2522810996,
-0.0990658775,
-0.0281145405,
-0.4457638562,
-0.0753630027,
0.1458100528,
-0.1100307256,
0.5756065249,
0.0492918938,
-0.2368786335,
-0.0609803312,
0.1762207597,
-0.1357152611,
0.2101585716,
0.0292386506,
0.1821365952,
-0.1060560569,
0.06362845,
-0.0608031787,
-0.3764836192,
0.4122047126,
0.4863760471,
0.1986303777,
-0.0532781109,
0.0621090084,
-0.2124482244,
0.4311762154,
0.6173298955,
0.2669887543,
0.1374831945,
0.0152752036,
-0.0156511609,
0.134334743,
-0.1731090248,
0.5373426676,
-0.1520590186,
-0.074188903,
0.5096475482,
0.0771286711,
-0.1001933366,
-0.0349096954,
-0.2184161544,
-0.2870623171,
-0.2746578455,
0.2158990502,
-0.3821329772,
0.3279489577,
-0.1112555265,
-0.5277523994,
-0.3999684155,
0.122308597,
-0.2745324671,
0.4277226925,
0.0146912802,
0.1539452076,
-0.7118861079,
-0.2398280203,
-0.2504856586,
0.0774452984,
0.1625680476,
0.4083614051,
-0.0458822995,
0.1651027054,
-0.0488123372,
0.0752663463,
-0.0932263285,
-0.4428075254,
-0.1155122072,
0.1816357076,
0.3534647822,
-0.2903147638,
-0.1967030913,
-0.1320838481,
-0.0732424185,
0.370242238,
0.2047519535,
-0.3799410164,
-0.0781612173,
0.0396044776,
0.0743629411,
-0.2015168518,
-0.256554395,
-0.1636670232,
-0.0791399181,
-0.1459156722,
-0.0708376095,
-0.1550734639,
-0.0993753225,
0.1038078964,
-0.0523314923,
-0.0232254639,
-0.1716653407,
0.162226066,
0.1499480754,
-0.0173111204,
0.1483184397,
0.1659756303,
0.0356676914,
-0.0070449063,
0.2020056248,
0.6304767728,
-0.1841426641,
-0.0286976099,
0.0473016798,
-0.2431913316,
0.5375527143,
0.0800172165,
0.1366087645,
0.3033046722,
-0.0836985782,
-0.3534985185,
-0.0829225183,
0.1730745584,
0.4156101346,
0.2072979808,
-0.0930943117,
-0.4728394151,
0.3493263125,
0.1529116929,
-0.163710773,
0.0936643556,
-0.214121893,
-0.2796530724,
0.1748833954,
0.1563457698,
0.5925898552,
0.1706488878,
0.1601508409,
0.0196665097,
0.1427404284,
0.4723139107,
-0.0432678871,
0.0507776923,
0.0704518408,
0.1262020022,
0.0176400747,
-0.1034224108,
0.1013849229,
0.3143951893,
-0.1051505134,
0.202714324,
0.4885599017,
0.0738813207,
-0.2054987252,
0.1652052701,
0.022402212,
-0.1119205281,
0.0245738626,
0.0051423935,
-0.3381905556,
-0.0644523799,
-0.1580273956,
-0.0954706445,
0.0202367194,
0.188859731,
-0.2974640727,
-0.2856969535,
-0.2164370865,
-0.090714179,
-0.0883829221,
0.0741453543,
0.1049053892,
-0.1123190224,
0.2329507321,
-0.2949131131,
0.0757784396,
-0.0610650927,
-0.1601299495,
-0.0580369234,
-0.24135755,
-0.1626472026,
0.3596681356,
-0.1328413188,
-0.3288186789,
-0.0213939063,
0.2124661803,
-0.214118138,
-0.2237710357,
0.0844156891,
0.0128098223,
0.0242492147,
0.0298859123,
0.6271651983,
-0.1276540905,
-0.0809850395,
0.0115362322,
0.0810051262,
-0.0663654655,
0.4547932446,
-0.241186738,
0.1281154156,
-0.0983925238,
-0.2685524523,
0.3955036998,
-0.1430415064,
0.0615326129,
-0.1615619808,
0.0560226105,
-0.1229569167,
0.3657934368,
-0.2234285027,
0.1669935435,
-0.0406629331,
0.1672367603,
-0.2348575294,
-0.0983651802,
0.4191529751,
0.174447313,
0.1659701169,
-0.021405194,
-0.3090895116,
-0.2814280987,
0.4315332174,
-0.2380811274,
0.2182318717,
-0.3361183107,
0.4560977519,
0.1006003693,
0.7375180721,
-0.2038109154,
-0.0585507788,
-0.0582376979,
0.3075499833,
0.6464056969,
0.1227309033,
0.014495369,
0.1748091877,
-0.1364328861,
-0.1318369359,
-0.253829807,
-0.0479857065,
-0.2725457549,
0.1584842205,
0.4529350698,
-0.0597896911,
0.1185259372,
-0.0837064683,
0.1968558729,
-0.1743215919,
0.154042393,
-0.0864889473,
-0.1704000235,
0.563385129,
0.1775721461,
0.1963309348,
-0.0934630707,
0.4911975563,
0.1067789793,
0.1471946388,
0.1488702297,
-0.0069482024,
0.0328477994,
0.0564043857,
-0.1065666825,
0.0379987806,
0.0610367283,
0.3045612276,
-0.1991024315,
0.0441174991,
-0.0095205139,
-0.0732878894,
-0.0040001599,
0.4577016234,
0.1057154238,
0.1770025343,
0.0548631512,
0.0329397321,
-0.2006081343,
0.1313727945,
0.2279485017,
-0.0367365852,
0.1702222377,
0.2453299016,
0.3747326136,
0.0627739057,
0.1034657359,
-0.1887229681,
-0.3689181507,
-0.3820825815,
0.3947609365,
0.0812266991,
0.1540254802,
0.0747902021,
0.3632285595,
0.2061946988,
0.1635935009,
0.2591197193,
0.166692242,
0.3571116328,
0.4458707273,
-0.0454628319,
0.407428503,
0.0597961135,
-0.0866568908,
0.3271296322,
0.0100585716,
0.1574147791,
0.0893086493,
0.1816978157,
-0.125747025,
-0.3956255913,
-0.0027832226,
0.1656654179,
-0.082764402,
-0.2244675308,
-0.4635033011,
-0.2103761435,
-0.1292489469,
-0.1795019954,
-0.3159163296,
-0.2240980566,
0.1001917645,
0.0159407146,
0.0836430192,
-0.1032659411,
-0.3410220742,
0.0406260565,
-0.2416044027,
-0.0881713033,
0.4383793175,
-0.0384349674,
-0.124297969,
0.3325555623,
0.5182185769,
-0.0085418485,
-0.0434247255,
-0.0947015211,
0.0789728537,
0.1035141945,
0.1742793471,
0.0017959058,
0.0661075711,
0.1495993733,
-0.4645212293,
0.4282021821,
-0.0746208131,
0.044543799,
0.3763594031,
0.0591676496,
-0.3788805604,
-0.5645084977,
0.3745103478,
-0.0740083009,
-0.1072401851,
0.0522701852,
0.189350307,
-0.4506509304,
-0.307839781,
0.3906122148,
-0.0274617225,
0.1043379754,
-0.2164423317,
0.0426098593,
-0.1539150923,
0.575913012,
0.1403671801,
0.1214709952,
-0.1890480071,
0.0632347092,
-0.7028476596,
0.0908485278,
-0.2161917686,
-0.0121222688,
-0.031721808,
0.0810012892,
0.1939313412,
0.4688183367,
0.1265925765,
0.2147817165,
-0.1042779237,
-0.0566412732,
-0.5983033776,
-0.1369600892,
0.1484325081,
0.2320919931,
0.0738210976,
0.0875403285,
-0.1203620881,
-0.0382536054,
-0.145186156,
0.1198896468,
-0.2839841545,
0.3616273701,
0.3176860511,
0.4177705944,
0.0250270534,
0.6134973168,
-0.026457604,
-0.0929831415,
-0.1020673588,
-0.2681878209,
-0.3106083572,
-0.1143798009,
-0.04345382,
0.3557243943,
-0.5675238371,
0.4912191033,
0.1228708029,
-0.239448756,
-0.2712242007,
-0.1315516531,
0.0020278555,
0.2404699475,
0.085193783,
-0.1821267903,
0.2075943053,
0.5532332063,
0.0460414626,
-0.1255837381,
-0.007740431,
0.0181448758,
0.1712377667,
0.0711742938,
-0.1821934432,
-0.1840196848,
0.2387351394,
0.0736822858,
0.3201593459,
-0.4600189924,
-0.0938369632,
0.4359743595,
0.107798256,
0.1193397269,
0.1448534727,
0.1202415973,
-0.4784875512,
-0.2822837532,
-0.2116906345,
-0.0737446025,
-0.2070969045,
-0.0961492956,
-0.3565064967
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Update: I think I've found a solution.
```python
output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64}
def train_dataset_gen():
for i in range(len(train_dataset)):
yield train_dataset[i]
tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types)
```
loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset. | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 48 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Update: I think I've found a solution.
```python
output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64}
def train_dataset_gen():
for i in range(len(train_dataset)):
yield train_dataset[i]
tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types)
```
loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset. | [
-0.3098401129,
-0.3549019098,
0.0400702842,
-0.131441474,
0.0434793495,
0.1706923395,
0.5454065204,
0.3945960104,
0.1853831857,
0.0758509412,
-0.0109291598,
0.0905710235,
-0.0458252504,
0.1636852473,
0.1464810073,
-0.3626329899,
0.0164575763,
-0.2653391361,
-0.0260754507,
-0.144788444,
-0.2456076145,
-0.2963111401,
-0.3499273658,
-0.2272664607,
-0.3148985505,
-0.2920514941,
0.0221023746,
-0.1786597222,
0.2146254331,
-0.0490130447,
0.0490411632,
0.0216404218,
0.3000955582,
0.4448579252,
-0.0001156601,
-0.1326187104,
0.0600120462,
-0.0445338786,
-0.0088810213,
0.3237414658,
-0.0612371527,
-0.3881530464,
-0.0979188308,
-0.4061879218,
0.1105613783,
0.1923643649,
0.1939424425,
-0.0472509861,
0.1358858496,
-0.0325130709,
0.0632176921,
0.372761786,
-0.024766149,
0.1722880602,
0.0288837571,
-0.0639725253,
0.0118579539,
0.0609920993,
0.2795849442,
-0.0697016343,
-0.0007687247,
0.3284051716,
-0.1674043834,
-0.0159424525,
0.292557776,
0.2313954234,
0.1201129258,
-0.6053036451,
0.0319759175,
0.3724275827,
0.2989350557,
0.003854925,
-0.275154233,
-0.6016540527,
-0.1216739491,
-0.2600983381,
-0.2543846071,
0.2779850662,
-0.2282438278,
-0.1784857661,
-0.284855932,
-0.0607507378,
-0.1116624251,
0.1517273039,
-0.1742460728,
0.1897969097,
0.1561437696,
0.251383245,
0.1800086051,
-0.2591578066,
0.0723085776,
-0.2944974005,
0.3919676244,
0.2885425985,
-0.5199072361,
-0.1610503644,
0.1525549144,
-0.235709846,
0.0620710477,
-0.2695546448,
-0.0892136991,
0.0071070534,
0.0950781107,
0.0464224033,
0.1840149611,
0.2864989638,
-0.1267040968,
0.0481854677,
0.1040561646,
-0.2625125945,
-0.2421218753,
0.3590075374,
-0.1083744392,
-0.2902848721,
0.0475210883,
-0.1952095032,
-0.3582232893,
0.138515383,
-0.0088152494,
0.0312359687,
0.0680118948,
-0.067613475,
-0.03112505,
0.1281123012,
-0.2842437923,
0.0787763223,
-0.1488969326,
-0.1395687163,
-0.3805859089,
0.1666763872,
-0.1485891044,
0.0174980462,
-0.0054795519,
-0.0163140539,
0.135589242,
-0.1396756768,
0.1104078442,
-0.1817803234,
0.0023557388,
0.2069334835,
-0.1126763225,
-0.2320373803,
0.1354832202,
0.2346876711,
0.0579939932,
0.2410535067,
0.0312834457,
0.15585576,
-0.2094342113,
0.3726697862,
-0.3099022806,
-0.3395802081,
0.1943149567,
0.0668447912,
0.0166570731,
-0.3149917424,
-0.594552815,
0.3981284499,
0.321008265,
0.0930781141,
-0.077061303,
-0.2863121331,
-0.1548865139,
-0.2435486764,
0.1875331253,
0.212123245,
-0.4263501167,
0.1576707363,
0.4017446339,
0.3291974068,
0.374306798,
0.6147410274,
-0.2548479736,
0.4410942793,
0.1750222296,
0.1125395745,
0.107541509,
-0.2590003014,
-0.2935235798,
0.4176079631,
-0.2239004821,
0.0911497027,
0.0280611236,
0.2754256725,
0.2909408212,
-0.2358404994,
0.4677283168,
0.50029248,
-0.1060519218,
0.3253594339,
-0.2121744603,
-0.2624133229,
0.1294200122,
0.1681139022,
0.1687644273,
-0.1044368148,
-0.2262643427,
0.2172022313,
0.2736002505,
-0.1601257622,
-0.1335323751,
0.0144466637,
0.0447468795,
0.0450546183,
-0.255361557,
0.0899206176,
-0.5541225672,
0.2491142005,
0.1045949608,
-0.0720570982,
0.297590971,
-0.3017670512,
0.2677600086,
-0.085005872,
0.026245378,
0.2439460903,
-0.0638856739,
-0.1151604578,
0.2073931098,
-0.0009459425,
-0.2045057863,
-0.0694354773,
-0.4542312026,
0.0335028507,
-0.3397280276,
-0.1507051885,
0.3422572315,
0.1017850488,
-0.1304052323,
0.1610791683,
-0.0711500943,
-0.1975039095,
0.0639175996,
0.1212919801,
-0.0829552114,
-0.0109530911,
-0.220866859,
0.3150739372,
0.2363256812,
0.3301173449,
0.0516274981,
-0.1459762007,
0.0075898687,
-0.3100180626,
-0.2521995306,
0.2785665691,
-0.0317870453,
0.3897753954,
0.1379315555,
-0.3446785212,
-0.14783144,
0.1022378951,
0.0575493872,
0.1419412345,
0.1398731619,
0.126601249,
0.0635659918,
0.1517288387,
-0.4028160572,
0.2708551884,
0.5878329873,
-0.1192695275,
-0.0693879798,
0.2395926565,
0.0595591329,
-0.1695692837,
-0.0338155627,
-0.2177570164,
0.1716604382,
0.1619178951,
0.1790527552,
-0.0999095216,
0.1242930293,
-0.1298576146,
0.3223980367,
0.212098673,
0.0048553576,
0.0221913997,
0.1164184362,
0.0722038671,
0.0016256191,
-0.0955384746,
0.1305938661,
0.309961319,
-0.1252202392,
0.0044578244,
0.1954185069,
-0.1072649807,
-0.1237378493,
-0.0269090366,
0.0157357175,
-0.3178579509,
-0.1369982064,
0.2489226609,
-0.116637975,
0.0364544429,
0.1061012,
0.3592701256,
0.127102688,
-0.3642117381,
0.101077944,
-0.11708799,
-0.2541911304,
-0.0160682648,
0.1550413668,
-0.0097693633,
0.1884471923,
0.0886323601,
-0.1106298268,
0.0158568006,
-0.1376687437,
-0.0592116676,
-0.4576978087,
0.073488988,
-0.1006336957,
0.3356167376,
-0.2249775529,
-0.437174648,
-0.0026177743,
-0.0687949359,
0.2533341646,
-0.2674292922,
0.007869523,
-0.0599726699,
0.1682513505,
-0.2091826946,
-0.397969842,
-0.2773378491,
0.1616993994,
-0.0804175884,
0.1120989323,
0.3758207262,
0.0861317441,
0.0614353493,
0.198448211,
-0.1117398888,
0.0645064041,
-0.3359969556,
0.2933340669,
-0.1133207604,
-0.2322174758,
-0.2972747684,
-0.0569191463,
-0.0541822352,
0.3564841449,
-0.5518576503,
0.1781205237,
-0.3643218279,
0.1989420205,
-0.0058309548,
0.5625961423,
-0.0943652689,
-0.4863794148,
-0.0153564364,
0.113610357,
0.1111948192,
0.013240682,
0.2653705478,
0.2140456885,
0.2785106897,
0.4317784607,
0.133768037,
1.1682617664,
0.1721534133,
-0.239859581,
-0.2142924517,
-0.0006968598,
-0.026746951,
-0.3446085453,
-0.2672057748,
0.3804671764,
-0.0651106834,
-0.1218412295,
0.2086467445,
-0.1688440889,
-0.2933580279,
-0.0375187173,
0.1244464591,
-0.1118376255,
-0.2858680785,
0.4226366282,
0.0917634368,
0.2491030395,
0.13491337,
0.088638097,
-0.49933514,
-0.3593016267,
-0.0525139272,
-0.2120135874,
0.4119948745,
-0.1316411644,
-0.2977099121,
-0.1367170811,
-0.9755148888,
0.2176829278,
0.0309696067,
0.2673722208,
0.0691984966,
-0.3508163095,
0.0928069726,
0.2425127178,
0.8538383245,
-0.0693198591,
-0.1168279052,
-0.0046313168,
-0.3046583533,
-0.4152691066,
0.0363528915,
-0.0984103009,
0.1687176526,
0.3588329852,
0.0521055721,
-0.380885601,
-0.1210647896,
0.2053186297,
0.2232018709,
-0.0370708667,
-0.0627579689,
-0.0237993393,
-0.161163345,
0.0037865927,
0.1920003742,
0.1095618308,
0.1918832064,
-0.1529378444,
0.0767401308,
-0.1166861579,
0.3052938282,
0.1655395478,
0.1245307401,
-0.0646004826,
0.6843845248,
0.2821179628,
-0.0045885975,
0.0273228679,
0.2122230381,
0.0313409679,
-0.2250828445,
-0.0758851245,
0.0017624932,
0.1497222185,
0.3183745742,
0.4158221781,
0.0518365763,
-0.101858303,
-0.0244697034,
0.4759162366,
-0.0445718393,
0.2652133703,
0.2257124931,
0.1480263025,
-0.4993152022,
-0.5580797195,
0.6823278069,
0.1741636693,
0.1644275039,
0.3666119576,
-0.1283596903,
-0.210771963,
0.3020575345,
0.0786755309,
0.6478749514,
-0.1737246811,
0.4172233343,
0.3146540225,
0.8153585196,
0.6308770776,
-0.0986909792,
0.2893837094,
-0.1265119165,
-0.1174628437,
0.0805879757,
-0.0940855294,
-0.283012718,
0.2102298886,
0.119721733,
0.2607629001,
-0.0577674359,
0.2022129297,
-0.2976981699,
0.2678611577,
0.1215579137,
-0.4888285398,
-0.1490101367,
0.00786338,
-0.0250547528,
0.1897141188,
-0.0738679767,
0.1231597885,
0.0115909325,
0.0521978363,
-0.0586850643,
-0.1983023435,
-0.2293966264,
0.2710297406,
-0.1033027619,
-0.3641135991,
-0.0581123456,
0.2246191949,
0.0554120727,
0.1029743031,
0.0519131124,
-0.1379091293,
0.0740501136,
0.0670988038,
0.241000995,
-0.2721340656,
0.4046177268,
0.0719941407,
0.0943092182,
0.0911529958,
-0.0158272721,
-0.2669845223,
-0.3697370589,
0.1058783755,
0.1580173969,
-0.0957549065,
-0.5968505144,
0.2684338093,
-0.2813643217,
0.0503225476,
0.0037911527,
-0.0731906369,
-0.0849761218,
0.7211557627,
-0.2573438287,
-0.1843224317,
0.0496473312,
0.1847873628,
0.1249702647,
-0.2062485963,
0.3921865523,
0.3405944109,
-0.1757612079,
0.0322537385,
0.2664457858,
0.1798251271,
-0.0468793698,
0.1488734037,
0.0724642724,
0.317561388,
0.0450941958,
0.4393852949,
-0.1473890841,
-0.1433923095,
-0.1848055273,
0.0507970788,
-0.3096583188,
0.2169217318,
0.1730130315,
0.2440241575,
0.066423893,
0.2008533627,
0.0833126903,
0.0856659114,
-0.1693710983,
0.0468315072,
0.0415401645,
0.2322383076,
-0.0782681927,
0.0980029702,
0.1146479174,
0.1879298091,
-0.0071328352,
0.1172510311,
-0.0932624713,
-0.2555660009,
0.012203346,
0.149570778,
0.12009193,
-0.2321115434,
0.1148165986,
-0.2494659573,
-0.2574735284,
-0.3281427324,
0.5115012527,
0.1916114986,
-0.0169067644,
-0.2077610046,
0.0609314293,
0.1362432539,
0.0935204327,
0.2389405072,
0.0112465331,
0.1360512674,
0.2009716481,
0.1953350753,
0.093007721,
-0.0966626853,
-0.2422024161,
-0.0926662609,
0.2189397663,
0.0491773486,
-0.0516625717,
-0.2504855692,
-0.3024639487,
0.0773896873,
0.1929149628,
0.3313834071,
-0.1175878271,
-0.2975837886,
0.232012257,
0.0940041393,
0.0618040226,
-0.0243888181,
0.1837353557,
-0.0688411668,
0.1389101446,
0.324826479,
-0.0041177883,
0.2021236867,
-0.3089783192,
-0.0432887748,
0.3552230895,
-0.1468779296,
0.0196459796,
0.2772547305,
0.0090766354,
-0.0708747655,
0.0298672542,
0.2787350714,
0.1938206851,
0.1448674202,
0.3068630397,
0.3006323278,
-0.0135257039,
-0.019471379,
-0.118234165,
-0.4309402406,
-0.2160276324,
0.2103412896,
-0.2322042584,
0.4129004776,
-0.0953072608,
-0.0314270556,
-0.1800402552,
-0.2994454503,
-0.0706423968,
0.2695059478,
-0.1646302789,
-0.1954696178,
-0.291382432,
0.0539107732,
0.3463350534,
0.3158675432,
-0.1297767311,
-0.3905596733,
-0.0089005809,
0.1537623852,
0.0923350304,
-0.0572751798,
0.0585336089,
-0.1711356044,
0.4078226388,
0.0008701112,
0.0353844911,
-0.2385190725,
-0.1040237322,
-0.3525910676,
0.1843399853,
0.2311058193,
0.2485176623,
-0.182040453,
0.2531330585,
-0.0024810045,
0.1195365116,
-0.0997595787,
0.1101073548,
-0.0316894352,
-0.0866468027,
0.3502891362,
-0.0026458192,
-0.0533600412,
-0.0128744701,
0.1048911437,
-0.1012806222,
-0.2076448053,
-0.1098049358,
0.2251524776,
-0.1399895847,
-0.1239387393,
-0.0363591202,
-0.3962469399,
-0.1025206,
0.4084669054,
-0.3164226711,
0.0528211892,
0.0610715337,
0.0466570407,
-0.540577352,
0.791229248,
0.2515086532,
0.316875875,
-0.4403225183,
0.1956534982,
-0.2404490262,
-0.2135183662,
-0.2580791414,
-0.0204235502,
0.0934648216,
0.3934060931,
0.0163254589,
0.2544079721,
-0.3146830797,
-0.2966710329,
-0.3043268323,
0.2985678911,
-0.1539197117,
-0.0309772659,
-0.5753908753,
0.220603168,
0.0312657133,
-0.3881158531,
0.3129306138,
-0.163729623,
-0.1229501367,
-0.2661142349,
0.1841342598,
0.3575294614,
0.2094398737,
0.218129918,
-0.0055506034,
0.1824415624,
0.1804751307,
0.0365029089,
-0.1549036354,
0.1935115606,
-0.2196913213,
0.1634927988,
-0.0066412659,
0.349239409,
-0.0434847921,
-0.2172169089,
0.0128388964,
0.0358813927,
0.2151202559,
-0.1570634246,
0.1981907189,
-0.2509368956,
0.0548377223,
0.0537038855,
0.4235472977,
0.6069499254,
-0.210147664,
0.1147368252,
-0.3305135369,
-0.2574833035,
0.47390154,
-0.7701925635,
-0.3619871438,
-0.3649827838,
0.0039870325,
0.0836720392,
0.2129299045,
-0.1846252084,
0.0348593667,
0.2442566603,
-0.1608200073,
-0.3659531772,
0.2732786536,
-0.1406795084,
-0.0961094573,
-0.0890375003,
0.1838721037,
-0.1871085763,
-0.3062253296,
-0.3018524051,
-0.3897611797
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Yes this is the current best solution. We should probably show it in the tutorial notebook.
Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193 | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 30 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Yes this is the current best solution. We should probably show it in the tutorial notebook.
Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193 | [
-0.3098401129,
-0.3549019098,
0.0400702842,
-0.131441474,
0.0434793495,
0.1706923395,
0.5454065204,
0.3945960104,
0.1853831857,
0.0758509412,
-0.0109291598,
0.0905710235,
-0.0458252504,
0.1636852473,
0.1464810073,
-0.3626329899,
0.0164575763,
-0.2653391361,
-0.0260754507,
-0.144788444,
-0.2456076145,
-0.2963111401,
-0.3499273658,
-0.2272664607,
-0.3148985505,
-0.2920514941,
0.0221023746,
-0.1786597222,
0.2146254331,
-0.0490130447,
0.0490411632,
0.0216404218,
0.3000955582,
0.4448579252,
-0.0001156601,
-0.1326187104,
0.0600120462,
-0.0445338786,
-0.0088810213,
0.3237414658,
-0.0612371527,
-0.3881530464,
-0.0979188308,
-0.4061879218,
0.1105613783,
0.1923643649,
0.1939424425,
-0.0472509861,
0.1358858496,
-0.0325130709,
0.0632176921,
0.372761786,
-0.024766149,
0.1722880602,
0.0288837571,
-0.0639725253,
0.0118579539,
0.0609920993,
0.2795849442,
-0.0697016343,
-0.0007687247,
0.3284051716,
-0.1674043834,
-0.0159424525,
0.292557776,
0.2313954234,
0.1201129258,
-0.6053036451,
0.0319759175,
0.3724275827,
0.2989350557,
0.003854925,
-0.275154233,
-0.6016540527,
-0.1216739491,
-0.2600983381,
-0.2543846071,
0.2779850662,
-0.2282438278,
-0.1784857661,
-0.284855932,
-0.0607507378,
-0.1116624251,
0.1517273039,
-0.1742460728,
0.1897969097,
0.1561437696,
0.251383245,
0.1800086051,
-0.2591578066,
0.0723085776,
-0.2944974005,
0.3919676244,
0.2885425985,
-0.5199072361,
-0.1610503644,
0.1525549144,
-0.235709846,
0.0620710477,
-0.2695546448,
-0.0892136991,
0.0071070534,
0.0950781107,
0.0464224033,
0.1840149611,
0.2864989638,
-0.1267040968,
0.0481854677,
0.1040561646,
-0.2625125945,
-0.2421218753,
0.3590075374,
-0.1083744392,
-0.2902848721,
0.0475210883,
-0.1952095032,
-0.3582232893,
0.138515383,
-0.0088152494,
0.0312359687,
0.0680118948,
-0.067613475,
-0.03112505,
0.1281123012,
-0.2842437923,
0.0787763223,
-0.1488969326,
-0.1395687163,
-0.3805859089,
0.1666763872,
-0.1485891044,
0.0174980462,
-0.0054795519,
-0.0163140539,
0.135589242,
-0.1396756768,
0.1104078442,
-0.1817803234,
0.0023557388,
0.2069334835,
-0.1126763225,
-0.2320373803,
0.1354832202,
0.2346876711,
0.0579939932,
0.2410535067,
0.0312834457,
0.15585576,
-0.2094342113,
0.3726697862,
-0.3099022806,
-0.3395802081,
0.1943149567,
0.0668447912,
0.0166570731,
-0.3149917424,
-0.594552815,
0.3981284499,
0.321008265,
0.0930781141,
-0.077061303,
-0.2863121331,
-0.1548865139,
-0.2435486764,
0.1875331253,
0.212123245,
-0.4263501167,
0.1576707363,
0.4017446339,
0.3291974068,
0.374306798,
0.6147410274,
-0.2548479736,
0.4410942793,
0.1750222296,
0.1125395745,
0.107541509,
-0.2590003014,
-0.2935235798,
0.4176079631,
-0.2239004821,
0.0911497027,
0.0280611236,
0.2754256725,
0.2909408212,
-0.2358404994,
0.4677283168,
0.50029248,
-0.1060519218,
0.3253594339,
-0.2121744603,
-0.2624133229,
0.1294200122,
0.1681139022,
0.1687644273,
-0.1044368148,
-0.2262643427,
0.2172022313,
0.2736002505,
-0.1601257622,
-0.1335323751,
0.0144466637,
0.0447468795,
0.0450546183,
-0.255361557,
0.0899206176,
-0.5541225672,
0.2491142005,
0.1045949608,
-0.0720570982,
0.297590971,
-0.3017670512,
0.2677600086,
-0.085005872,
0.026245378,
0.2439460903,
-0.0638856739,
-0.1151604578,
0.2073931098,
-0.0009459425,
-0.2045057863,
-0.0694354773,
-0.4542312026,
0.0335028507,
-0.3397280276,
-0.1507051885,
0.3422572315,
0.1017850488,
-0.1304052323,
0.1610791683,
-0.0711500943,
-0.1975039095,
0.0639175996,
0.1212919801,
-0.0829552114,
-0.0109530911,
-0.220866859,
0.3150739372,
0.2363256812,
0.3301173449,
0.0516274981,
-0.1459762007,
0.0075898687,
-0.3100180626,
-0.2521995306,
0.2785665691,
-0.0317870453,
0.3897753954,
0.1379315555,
-0.3446785212,
-0.14783144,
0.1022378951,
0.0575493872,
0.1419412345,
0.1398731619,
0.126601249,
0.0635659918,
0.1517288387,
-0.4028160572,
0.2708551884,
0.5878329873,
-0.1192695275,
-0.0693879798,
0.2395926565,
0.0595591329,
-0.1695692837,
-0.0338155627,
-0.2177570164,
0.1716604382,
0.1619178951,
0.1790527552,
-0.0999095216,
0.1242930293,
-0.1298576146,
0.3223980367,
0.212098673,
0.0048553576,
0.0221913997,
0.1164184362,
0.0722038671,
0.0016256191,
-0.0955384746,
0.1305938661,
0.309961319,
-0.1252202392,
0.0044578244,
0.1954185069,
-0.1072649807,
-0.1237378493,
-0.0269090366,
0.0157357175,
-0.3178579509,
-0.1369982064,
0.2489226609,
-0.116637975,
0.0364544429,
0.1061012,
0.3592701256,
0.127102688,
-0.3642117381,
0.101077944,
-0.11708799,
-0.2541911304,
-0.0160682648,
0.1550413668,
-0.0097693633,
0.1884471923,
0.0886323601,
-0.1106298268,
0.0158568006,
-0.1376687437,
-0.0592116676,
-0.4576978087,
0.073488988,
-0.1006336957,
0.3356167376,
-0.2249775529,
-0.437174648,
-0.0026177743,
-0.0687949359,
0.2533341646,
-0.2674292922,
0.007869523,
-0.0599726699,
0.1682513505,
-0.2091826946,
-0.397969842,
-0.2773378491,
0.1616993994,
-0.0804175884,
0.1120989323,
0.3758207262,
0.0861317441,
0.0614353493,
0.198448211,
-0.1117398888,
0.0645064041,
-0.3359969556,
0.2933340669,
-0.1133207604,
-0.2322174758,
-0.2972747684,
-0.0569191463,
-0.0541822352,
0.3564841449,
-0.5518576503,
0.1781205237,
-0.3643218279,
0.1989420205,
-0.0058309548,
0.5625961423,
-0.0943652689,
-0.4863794148,
-0.0153564364,
0.113610357,
0.1111948192,
0.013240682,
0.2653705478,
0.2140456885,
0.2785106897,
0.4317784607,
0.133768037,
1.1682617664,
0.1721534133,
-0.239859581,
-0.2142924517,
-0.0006968598,
-0.026746951,
-0.3446085453,
-0.2672057748,
0.3804671764,
-0.0651106834,
-0.1218412295,
0.2086467445,
-0.1688440889,
-0.2933580279,
-0.0375187173,
0.1244464591,
-0.1118376255,
-0.2858680785,
0.4226366282,
0.0917634368,
0.2491030395,
0.13491337,
0.088638097,
-0.49933514,
-0.3593016267,
-0.0525139272,
-0.2120135874,
0.4119948745,
-0.1316411644,
-0.2977099121,
-0.1367170811,
-0.9755148888,
0.2176829278,
0.0309696067,
0.2673722208,
0.0691984966,
-0.3508163095,
0.0928069726,
0.2425127178,
0.8538383245,
-0.0693198591,
-0.1168279052,
-0.0046313168,
-0.3046583533,
-0.4152691066,
0.0363528915,
-0.0984103009,
0.1687176526,
0.3588329852,
0.0521055721,
-0.380885601,
-0.1210647896,
0.2053186297,
0.2232018709,
-0.0370708667,
-0.0627579689,
-0.0237993393,
-0.161163345,
0.0037865927,
0.1920003742,
0.1095618308,
0.1918832064,
-0.1529378444,
0.0767401308,
-0.1166861579,
0.3052938282,
0.1655395478,
0.1245307401,
-0.0646004826,
0.6843845248,
0.2821179628,
-0.0045885975,
0.0273228679,
0.2122230381,
0.0313409679,
-0.2250828445,
-0.0758851245,
0.0017624932,
0.1497222185,
0.3183745742,
0.4158221781,
0.0518365763,
-0.101858303,
-0.0244697034,
0.4759162366,
-0.0445718393,
0.2652133703,
0.2257124931,
0.1480263025,
-0.4993152022,
-0.5580797195,
0.6823278069,
0.1741636693,
0.1644275039,
0.3666119576,
-0.1283596903,
-0.210771963,
0.3020575345,
0.0786755309,
0.6478749514,
-0.1737246811,
0.4172233343,
0.3146540225,
0.8153585196,
0.6308770776,
-0.0986909792,
0.2893837094,
-0.1265119165,
-0.1174628437,
0.0805879757,
-0.0940855294,
-0.283012718,
0.2102298886,
0.119721733,
0.2607629001,
-0.0577674359,
0.2022129297,
-0.2976981699,
0.2678611577,
0.1215579137,
-0.4888285398,
-0.1490101367,
0.00786338,
-0.0250547528,
0.1897141188,
-0.0738679767,
0.1231597885,
0.0115909325,
0.0521978363,
-0.0586850643,
-0.1983023435,
-0.2293966264,
0.2710297406,
-0.1033027619,
-0.3641135991,
-0.0581123456,
0.2246191949,
0.0554120727,
0.1029743031,
0.0519131124,
-0.1379091293,
0.0740501136,
0.0670988038,
0.241000995,
-0.2721340656,
0.4046177268,
0.0719941407,
0.0943092182,
0.0911529958,
-0.0158272721,
-0.2669845223,
-0.3697370589,
0.1058783755,
0.1580173969,
-0.0957549065,
-0.5968505144,
0.2684338093,
-0.2813643217,
0.0503225476,
0.0037911527,
-0.0731906369,
-0.0849761218,
0.7211557627,
-0.2573438287,
-0.1843224317,
0.0496473312,
0.1847873628,
0.1249702647,
-0.2062485963,
0.3921865523,
0.3405944109,
-0.1757612079,
0.0322537385,
0.2664457858,
0.1798251271,
-0.0468793698,
0.1488734037,
0.0724642724,
0.317561388,
0.0450941958,
0.4393852949,
-0.1473890841,
-0.1433923095,
-0.1848055273,
0.0507970788,
-0.3096583188,
0.2169217318,
0.1730130315,
0.2440241575,
0.066423893,
0.2008533627,
0.0833126903,
0.0856659114,
-0.1693710983,
0.0468315072,
0.0415401645,
0.2322383076,
-0.0782681927,
0.0980029702,
0.1146479174,
0.1879298091,
-0.0071328352,
0.1172510311,
-0.0932624713,
-0.2555660009,
0.012203346,
0.149570778,
0.12009193,
-0.2321115434,
0.1148165986,
-0.2494659573,
-0.2574735284,
-0.3281427324,
0.5115012527,
0.1916114986,
-0.0169067644,
-0.2077610046,
0.0609314293,
0.1362432539,
0.0935204327,
0.2389405072,
0.0112465331,
0.1360512674,
0.2009716481,
0.1953350753,
0.093007721,
-0.0966626853,
-0.2422024161,
-0.0926662609,
0.2189397663,
0.0491773486,
-0.0516625717,
-0.2504855692,
-0.3024639487,
0.0773896873,
0.1929149628,
0.3313834071,
-0.1175878271,
-0.2975837886,
0.232012257,
0.0940041393,
0.0618040226,
-0.0243888181,
0.1837353557,
-0.0688411668,
0.1389101446,
0.324826479,
-0.0041177883,
0.2021236867,
-0.3089783192,
-0.0432887748,
0.3552230895,
-0.1468779296,
0.0196459796,
0.2772547305,
0.0090766354,
-0.0708747655,
0.0298672542,
0.2787350714,
0.1938206851,
0.1448674202,
0.3068630397,
0.3006323278,
-0.0135257039,
-0.019471379,
-0.118234165,
-0.4309402406,
-0.2160276324,
0.2103412896,
-0.2322042584,
0.4129004776,
-0.0953072608,
-0.0314270556,
-0.1800402552,
-0.2994454503,
-0.0706423968,
0.2695059478,
-0.1646302789,
-0.1954696178,
-0.291382432,
0.0539107732,
0.3463350534,
0.3158675432,
-0.1297767311,
-0.3905596733,
-0.0089005809,
0.1537623852,
0.0923350304,
-0.0572751798,
0.0585336089,
-0.1711356044,
0.4078226388,
0.0008701112,
0.0353844911,
-0.2385190725,
-0.1040237322,
-0.3525910676,
0.1843399853,
0.2311058193,
0.2485176623,
-0.182040453,
0.2531330585,
-0.0024810045,
0.1195365116,
-0.0997595787,
0.1101073548,
-0.0316894352,
-0.0866468027,
0.3502891362,
-0.0026458192,
-0.0533600412,
-0.0128744701,
0.1048911437,
-0.1012806222,
-0.2076448053,
-0.1098049358,
0.2251524776,
-0.1399895847,
-0.1239387393,
-0.0363591202,
-0.3962469399,
-0.1025206,
0.4084669054,
-0.3164226711,
0.0528211892,
0.0610715337,
0.0466570407,
-0.540577352,
0.791229248,
0.2515086532,
0.316875875,
-0.4403225183,
0.1956534982,
-0.2404490262,
-0.2135183662,
-0.2580791414,
-0.0204235502,
0.0934648216,
0.3934060931,
0.0163254589,
0.2544079721,
-0.3146830797,
-0.2966710329,
-0.3043268323,
0.2985678911,
-0.1539197117,
-0.0309772659,
-0.5753908753,
0.220603168,
0.0312657133,
-0.3881158531,
0.3129306138,
-0.163729623,
-0.1229501367,
-0.2661142349,
0.1841342598,
0.3575294614,
0.2094398737,
0.218129918,
-0.0055506034,
0.1824415624,
0.1804751307,
0.0365029089,
-0.1549036354,
0.1935115606,
-0.2196913213,
0.1634927988,
-0.0066412659,
0.349239409,
-0.0434847921,
-0.2172169089,
0.0128388964,
0.0358813927,
0.2151202559,
-0.1570634246,
0.1981907189,
-0.2509368956,
0.0548377223,
0.0537038855,
0.4235472977,
0.6069499254,
-0.210147664,
0.1147368252,
-0.3305135369,
-0.2574833035,
0.47390154,
-0.7701925635,
-0.3619871438,
-0.3649827838,
0.0039870325,
0.0836720392,
0.2129299045,
-0.1846252084,
0.0348593667,
0.2442566603,
-0.1608200073,
-0.3659531772,
0.2732786536,
-0.1406795084,
-0.0961094573,
-0.0890375003,
0.1838721037,
-0.1871085763,
-0.3062253296,
-0.3018524051,
-0.3897611797
] |