html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | I like the idea of having `Dataset.from_iterable(iterable)` in the API. The only problem is that we also want to make this part cachable, which is tricky if `iterable` is a generator.
Some resources on this issue:
* https://github.com/uqfoundation/dill/issues/311
* https://stackoverflow.com/questions/7180212/why-cant-generators-be-pickled
* https://github.com/tonyroberts/generator_tools - python package for pickling generators; pickles bytecode, so it creates version-specific dumps | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 55 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
I like the idea of having `Dataset.from_iterable(iterable)` in the API. The only problem is that we also want to make this part cachable, which is tricky if `iterable` is a generator.
Some resources on this issue:
* https://github.com/uqfoundation/dill/issues/311
* https://stackoverflow.com/questions/7180212/why-cant-generators-be-pickled
* https://github.com/tonyroberts/generator_tools - python package for pickling generators; pickles bytecode, so it creates version-specific dumps | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | For the caching maybe we can have `Dataset.from_generator` as TF and pickle+hash the generator function (not the generator object itself) ?
And then keep `Dataset.from_iterable` fo pickable objects like lists | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 30 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
For the caching maybe we can have `Dataset.from_generator` as TF and pickle+hash the generator function (not the generator object itself) ?
And then keep `Dataset.from_iterable` fo pickable objects like lists | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | @lhoestq, @mariosasko do you too have any examples where the dataset is a generator and needs to be wrapped into hf dataset ? | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 23 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
@lhoestq, @mariosasko do you too have any examples where the dataset is a generator and needs to be wrapped into hf dataset ? | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | @lhoestq, following to my previous question ... what possibly could be done in this [link1](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627404) [link2](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627593) case? do you have any ideas? | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 22 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
@lhoestq, following to my previous question ... what possibly could be done in this [link1](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627404) [link2](https://github.com/huggingface/datasets/issues/4417#issuecomment-1146627593) case? do you have any ideas? | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | @lhoestq +1 for the `Dataset.from_generator` idea.
Having thought about it, let's avoid adding `Dataset.from_iterable` to the API since dictionaries are technically iteralbles ("iterable" is a broad term in Python), and we already provide `Dataset.from_dict`. And for lists maybe we can add `Dataset.from_list` similar to `pa.Table.from_pylist`. WDYT?
| ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 46 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
@lhoestq +1 for the `Dataset.from_generator` idea.
Having thought about it, let's avoid adding `Dataset.from_iterable` to the API since dictionaries are technically iteralbles ("iterable" is a broad term in Python), and we already provide `Dataset.from_dict`. And for lists maybe we can add `Dataset.from_list` similar to `pa.Table.from_pylist`. WDYT?
| [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | Hi @StephennFernandes!
To fix the issues in the copied code, rename `generate_examples` to` _generate_examples` and add one level of indentation as this is a method of `GeneratorBasedBuilder` and define `_split_generators` as follows (again as a method of `GeneratorBasedBuilder):
```python
def _split_generators(self, dl_manager):
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={},
),
]
```
And if you are feeling extra adventurous, you can try to use ArrowWriter to directly create a cache file:
```python
from datasets import Dataset
from datasets.arrow_writer import ArrowWriter
writer = ArrowWriter(path="path/to/cache_file.arrow", writer_batch_size=1000)
with writer:
for ex in generator:
writer.write(ex)
writer.finalize()
dset = Dataset.from_file("path/to/cache_file.arrow")
```
| ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 94 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
Hi @StephennFernandes!
To fix the issues in the copied code, rename `generate_examples` to` _generate_examples` and add one level of indentation as this is a method of `GeneratorBasedBuilder` and define `_split_generators` as follows (again as a method of `GeneratorBasedBuilder):
```python
def _split_generators(self, dl_manager):
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={},
),
]
```
And if you are feeling extra adventurous, you can try to use ArrowWriter to directly create a cache file:
```python
from datasets import Dataset
from datasets.arrow_writer import ArrowWriter
writer = ArrowWriter(path="path/to/cache_file.arrow", writer_batch_size=1000)
with writer:
for ex in generator:
writer.write(ex)
writer.finalize()
dset = Dataset.from_file("path/to/cache_file.arrow")
```
| [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | I have a problem which I think is very similar: I would like to "stream" data to a HF Array (memory-mapped) Dataset, where the final size of the dataset is unknown, but could be much larger than what fits into memory.
What I want to end up with is an Array Dataset which I can open using `Dataset.load_from_disk(dataset_path="somename")` and use e.g. as the training set.
For this I would have thought there should be an API which allows me to open/create the dataset (and define the features etc), then write examples to the dataset, but I could not find a way to do this.
I tried doing this and it looks like it works, but it feels very hacky and I am not sure if this might fail to update some of the fields in the json files which may turn out to be important:
```
from datasets import Dataset, Features, ClassLabel, Sequence, Value
from datasets.arrow_writer import ArrowWriter
# 1) define the features
features = Features(dict(
id=Value(dtype="string"),
tokens=Sequence(feature=Value(dtype="string")),
ner_tags=Sequence(feature=ClassLabel(names=['O', 'B-corporation', 'I-corporation', 'B-creative-work', 'I-creative-work', 'B-group', 'I-group', 'B-location', 'I-location', 'B-person', 'I-person', 'B-product', 'I-product'])),
))
# 2) create empty dataset for examples with these features and store to disk
empty = dict(
id = [],
tokens = [],
ner_tags = [],
)
ds = Dataset.from_dict(empty, features=features)
ds.save_to_disk(dataset_path="debug_ds1")
# 3) directly write all the examples to the arrow dataset
with ArrowWriter(path="debug_ds1/dataset.arrow") as writer:
writer.write(dict(id=0, tokens=["a", "b"], ner_tags=[0, 0]))
writer.write(dict(id=1, tokens=["x", "y"], ner_tags=[1, 0]))
writer.finalize()
ds2 = Dataset.load_from_disk(dataset_path="debug_ds1")
len(ds2)
```
Is there a cleaner/proper way to do this?
I like the sound of `Dataset.from_iterable` or `Dataset.from_generator` (should not from iterable be able to handle from generator too as all generators are iterables?) but how would I define the features for me examples there? | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 288 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
I have a problem which I think is very similar: I would like to "stream" data to a HF Array (memory-mapped) Dataset, where the final size of the dataset is unknown, but could be much larger than what fits into memory.
What I want to end up with is an Array Dataset which I can open using `Dataset.load_from_disk(dataset_path="somename")` and use e.g. as the training set.
For this I would have thought there should be an API which allows me to open/create the dataset (and define the features etc), then write examples to the dataset, but I could not find a way to do this.
I tried doing this and it looks like it works, but it feels very hacky and I am not sure if this might fail to update some of the fields in the json files which may turn out to be important:
```
from datasets import Dataset, Features, ClassLabel, Sequence, Value
from datasets.arrow_writer import ArrowWriter
# 1) define the features
features = Features(dict(
id=Value(dtype="string"),
tokens=Sequence(feature=Value(dtype="string")),
ner_tags=Sequence(feature=ClassLabel(names=['O', 'B-corporation', 'I-corporation', 'B-creative-work', 'I-creative-work', 'B-group', 'I-group', 'B-location', 'I-location', 'B-person', 'I-person', 'B-product', 'I-product'])),
))
# 2) create empty dataset for examples with these features and store to disk
empty = dict(
id = [],
tokens = [],
ner_tags = [],
)
ds = Dataset.from_dict(empty, features=features)
ds.save_to_disk(dataset_path="debug_ds1")
# 3) directly write all the examples to the arrow dataset
with ArrowWriter(path="debug_ds1/dataset.arrow") as writer:
writer.write(dict(id=0, tokens=["a", "b"], ner_tags=[0, 0]))
writer.write(dict(id=1, tokens=["x", "y"], ner_tags=[1, 0]))
writer.finalize()
ds2 = Dataset.load_from_disk(dataset_path="debug_ds1")
len(ds2)
```
Is there a cleaner/proper way to do this?
I like the sound of `Dataset.from_iterable` or `Dataset.from_generator` (should not from iterable be able to handle from generator too as all generators are iterables?) but how would I define the features for me examples there? | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | Hi @johann-petrak! You can pass the features directly to ArrowWriter's initializer like so `ArrowWriter(..., features=features)`.
And the reason why I prefer `Dataset.from_generator` over `Dataset.from_iterable` is mentioned in one of my previous comments. | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 32 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
Hi @johann-petrak! You can pass the features directly to ArrowWriter's initializer like so `ArrowWriter(..., features=features)`.
And the reason why I prefer `Dataset.from_generator` over `Dataset.from_iterable` is mentioned in one of my previous comments. | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | @mariosasko so at the moment we still have to create a fake `Dataset` first and then use `ArrowWriter` to write an actual dataset? I'm using the latest version of `datasets` on pypi but my final file is always empty. Is there anything wrong with the code below?
```python
total = 0
with ArrowWriter(path=str(final_data_path), features=features) as writer:
for batch in loader:
for traj in batch:
for generator in question_generators:
for xi in generator(traj):
# print(f"Question: {xi.question}, answer: {xi.answer}")
total += 1
writer.write(
{
"id": f"qa_{total}",
"question": xi.question,
"answer": xi.answer,
}
)
writer.finalize()
print(f"Total #questions = {total}") # this prints 402
``` | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 100 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
@mariosasko so at the moment we still have to create a fake `Dataset` first and then use `ArrowWriter` to write an actual dataset? I'm using the latest version of `datasets` on pypi but my final file is always empty. Is there anything wrong with the code below?
```python
total = 0
with ArrowWriter(path=str(final_data_path), features=features) as writer:
for batch in loader:
for traj in batch:
for generator in question_generators:
for xi in generator(traj):
# print(f"Question: {xi.question}, answer: {xi.answer}")
total += 1
writer.write(
{
"id": f"qa_{total}",
"question": xi.question,
"answer": xi.answer,
}
)
writer.finalize()
print(f"Total #questions = {total}") # this prints 402
``` | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | This works for me if I then (actually I also close the writer: `writer.close()`) open the Arrow file as a dataset using `ds=Dataset.from_file(final_data_path)` then `ds.save_to_disk(somedir)`. The Dataset created that way contains the expected examples. | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 34 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
This works for me if I then (actually I also close the writer: `writer.close()`) open the Arrow file as a dataset using `ds=Dataset.from_file(final_data_path)` then `ds.save_to_disk(somedir)`. The Dataset created that way contains the expected examples. | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | Oh thanks. That did the trick I believe. Shouldn't ArrowWriter have a context manager that does these operations? | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 18 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
Oh thanks. That did the trick I believe. Shouldn't ArrowWriter have a context manager that does these operations? | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | You can just use `Dataset.from_file` to get your dataset, no need to do an extra `save_to_disk` somewhere else ;) | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 19 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
You can just use `Dataset.from_file` to get your dataset, no need to do an extra `save_to_disk` somewhere else ;) | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | I was thinking that `save_to_disk` is necessary when one wants to re-use that dataset as a proper HF dataset later, no?
At least what I wanted to achieve is create a dataset that can be opened like any other local or remote dataset. | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 43 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
I was thinking that `save_to_disk` is necessary when one wants to re-use that dataset as a proper HF dataset later, no?
At least what I wanted to achieve is create a dataset that can be opened like any other local or remote dataset. | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4417 | how to convert a dict generator into a huggingface dataset. | `save_to_disk`/`load_from_disk` is indeed more general, e.g. it supports datasets that consist in several files, and saves some extra info in a dataset_info.json file (description, citation, split sizes, etc.)
If you have one single file it's fine to simply do `.from_file()` | ### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_ | 40 | how to convert a dict generator into a huggingface dataset.
### Link
_No response_
### Description
Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset.
The generator contains all the samples needed for training the model but I cannot convert it into a huggingface dataset.
The code looks like this:
```
for ex in seqio_data:
print(ex[“text”])
```
I need to convert the seqio_data (generator) into huggingface dataset.
the complete seqio code goes here:
```
import functools
import seqio
import tensorflow as tf
import t5.data
from datasets import load_dataset
from t5.data import postprocessors
from t5.data import preprocessors
from t5.evaluation import metrics
from seqio import FunctionDataSource, utils
TaskRegistry = seqio.TaskRegistry
def gen_dataset(split, shuffle=False, seed=None, column="text", dataset_params=None):
dataset = load_dataset(**dataset_params)
if shuffle:
if seed:
dataset = dataset.shuffle(seed=seed)
else:
dataset = dataset.shuffle()
while True:
for item in dataset[str(split)]:
yield item[column]
def dataset_fn(split, shuffle_files, seed=None, dataset_params=None):
return tf.data.Dataset.from_generator(
functools.partial(gen_dataset, split, shuffle_files, seed, dataset_params=dataset_params),
output_signature=tf.TensorSpec(shape=(), dtype=tf.string, name=dataset_name)
)
@utils.map_over_dataset
def target_to_key(x, key_map, target_key):
"""Assign the value from the dataset to target_key in key_map"""
return {**key_map, target_key: x}
dataset_name = 'oscar-corpus/OSCAR-2109'
subset= 'mr'
dataset_params = {"path": dataset_name, "language":subset, "use_auth_token":True}
dataset_shapes = None
TaskRegistry.add(
"oscar_marathi_corpus",
source=seqio.FunctionDataSource(
dataset_fn=functools.partial(dataset_fn, dataset_params=dataset_params),
splits=("train", "validation"),
caching_permitted=False,
num_input_examples=dataset_shapes,
),
preprocessors=[
functools.partial(
target_to_key, key_map={
"targets": None,
}, target_key="targets")],
output_features={"targets": seqio.Feature(vocabulary=seqio.PassThroughVocabulary, add_eos=False, dtype=tf.string, rank=0)},
metric_fns=[]
)
dataset = seqio.get_mixture_or_task("oscar_marathi_corpus").get_dataset(
sequence_length=None,
split="train",
shuffle=True,
num_epochs=1,
shard_info=seqio.ShardInfo(index=0, num_shards=10),
use_cached=False,
seed=42
)
for _, ex in zip(range(5), dataset):
print(ex['targets'].numpy().decode())
```
### Owner
_No response_
`save_to_disk`/`load_from_disk` is indeed more general, e.g. it supports datasets that consist in several files, and saves some extra info in a dataset_info.json file (description, citation, split sizes, etc.)
If you have one single file it's fine to simply do `.from_file()` | [
-0.2356611043214798,
-0.5294454097747803,
0.023818079382181168,
0.32638633251190186,
0.4359237551689148,
-0.018439490348100662,
0.05949658155441284,
0.2877725660800934,
0.22911503911018372,
0.24235397577285767,
-0.2977548837661743,
0.10299661755561829,
-0.22395963966846466,
0.5133184194564819,
0.13184259831905365,
-0.223420649766922,
0.10111737251281738,
0.12503840029239655,
-0.256332129240036,
-0.15094423294067383,
-0.024126127362251282,
0.3305816650390625,
0.18056444823741913,
0.12474486231803894,
-0.07278795540332794,
0.051042456179857254,
-0.05738506466150284,
0.03495781868696213,
-0.5592506527900696,
0.2151000052690506,
0.3356219232082367,
0.23728488385677338,
-0.05609516799449921,
0.2405969798564911,
-0.00012041340960422531,
0.011252418160438538,
-0.14764340221881866,
-0.05951523780822754,
-0.03748549520969391,
-0.3290523290634155,
-0.14111189544200897,
0.15640410780906677,
-0.2155429720878601,
0.03374386578798294,
-0.2117002308368683,
0.11423464119434357,
-0.2645387649536133,
-0.2315617948770523,
0.8827856183052063,
0.3853742182254791,
0.13120856881141663,
0.058254748582839966,
0.25458183884620667,
-0.062463801354169846,
-0.04376908391714096,
0.4773828983306885,
-0.14499621093273163,
0.039532870054244995,
0.07538244873285294,
-0.05331570655107498,
0.18827968835830688,
0.057129524648189545,
-0.27666300535202026,
-0.34533265233039856,
0.3134000897407532,
0.08602962642908096,
-0.010637305676937103,
-0.5321673154830933,
0.2251158356666565,
0.45114076137542725,
0.2407839000225067,
-0.17671337723731995,
-0.24847853183746338,
-0.17360089719295502,
0.004291674122214317,
-0.3675316274166107,
-0.31399214267730713,
-0.12830494344234467,
-0.4041491448879242,
0.1465989053249359,
0.08082963526248932,
-0.31001439690589905,
-0.3173931837081909,
-0.2312585860490799,
-0.42061030864715576,
-0.06201918423175812,
-0.2021523416042328,
0.0019412152469158173,
0.13016822934150696,
-0.04692365974187851,
-0.3292063772678375,
0.15018218755722046,
0.041755661368370056,
0.04236097261309624,
-0.34176743030548096,
-0.10423242300748825,
0.14006474614143372,
0.026867970824241638,
0.41474857926368713,
0.2569507360458374,
-0.0056573497131466866,
-0.027274038642644882,
0.05407967045903206,
-0.07670334726572037,
0.1218041479587555,
0.3082921504974365,
-0.03304140269756317,
0.10697507113218307,
-0.07799674570560455,
-0.11081629246473312,
-0.02882375195622444,
-0.04750669002532959,
-0.1755852997303009,
-0.22787915170192719,
-0.007815156131982803,
-0.23117804527282715,
0.22130978107452393,
-0.1299549639225006,
-0.2110106348991394,
-0.011496472172439098,
0.010649390518665314,
0.19153718650341034,
-0.07528572529554367,
0.22681131958961487,
-0.06662842631340027,
0.21004170179367065,
0.15238109230995178,
0.5235421061515808,
-0.3275834619998932,
-0.20636588335037231,
-0.11158828437328339,
-0.05229177698493004,
0.006772488355636597,
0.09450337290763855,
-0.24851921200752258,
-0.14249858260154724,
0.010617539286613464,
0.11902893334627151,
0.25296157598495483,
-0.209229975938797,
-0.00348783191293478,
-0.009486157447099686,
0.27197423577308655,
0.09317778050899506,
0.03733165189623833,
0.07752713561058044,
0.3192778527736664,
-0.20698899030685425,
-0.17098018527030945,
-0.3374159336090088,
-0.00540710985660553,
-0.3673466145992279,
-0.15429435670375824,
0.05337582901120186,
-0.07207256555557251,
-0.019474558532238007,
-0.28894397616386414,
0.2268752008676529,
0.09561807662248611,
0.1160857081413269,
-0.02368362993001938,
-0.05167757719755173,
-0.1148405373096466,
-0.11024539917707443,
0.5718247890472412,
0.5491489768028259,
-0.2819739580154419,
-0.04659896343946457,
-0.3740173578262329,
-0.07609619200229645,
0.2432238757610321,
0.2956424355506897,
0.09217744320631027,
0.29097452759742737,
-0.23299089074134827,
-0.03915281221270561,
0.29552656412124634,
-0.3448220193386078,
-0.24687236547470093,
0.1725783795118332,
-0.16568610072135925,
0.11522112041711807,
0.1602797657251358,
-0.009876513853669167,
0.1407860517501831,
0.16605451703071594,
0.18341362476348877,
0.31767725944519043,
-0.2932208776473999,
-0.11316711455583572,
-0.034159354865550995,
-0.0420418307185173,
0.22859305143356323,
-0.14324061572551727,
0.11279109120368958,
0.5248817801475525,
-0.2842274308204651,
-0.13365177810192108,
0.27850931882858276,
-0.18709370493888855,
0.22202646732330322,
0.03301072120666504,
0.310335248708725,
0.2961236238479614,
-0.1107826754450798,
0.08711972087621689,
-0.1151973232626915,
-0.01672227680683136,
-0.12392889708280563,
0.18505097925662994,
-0.2694283723831177,
-0.11826259642839432,
-0.4308243691921234,
0.2963372468948364,
-0.2637321949005127,
-0.15612341463565826,
0.023865539580583572,
-0.08344589173793793,
0.5775659084320068,
0.02585846558213234,
-0.2097151130437851,
0.17942161858081818,
0.3365042507648468,
0.3155481815338135,
-0.6794306635856628,
0.2143261730670929,
0.16315923631191254,
-0.053721003234386444,
0.16794894635677338,
0.7571073770523071,
-0.06466778367757797,
0.1070830300450325,
0.19021165370941162,
0.010365508496761322,
-0.16235513985157013,
0.060185983777046204,
-0.034636080265045166,
0.2212279736995697,
0.07432182133197784,
-0.06369765847921371,
0.058705661445856094,
-0.3046143352985382,
-0.06351156532764435,
0.08956297487020493,
0.3781384229660034,
0.4530909061431885,
-0.04455726966261864,
0.44175755977630615,
-0.2961627244949341,
0.5692640542984009,
0.20702585577964783,
0.03358716890215874,
-0.22443290054798126,
-0.007877763360738754,
0.024681566283106804,
-0.06504210829734802,
0.4625294804573059,
0.0794818326830864,
-0.30805450677871704,
0.22220772504806519,
0.14638617634773254,
-0.15745268762111664,
0.0346049889922142,
0.07187032699584961,
-0.15256977081298828,
-0.05599028617143631,
-0.1654493361711502,
0.11526124179363251,
0.13104167580604553,
-0.06464668363332748,
-0.03642653301358223,
0.05371788144111633,
0.08697829395532608,
-0.05847308039665222,
0.046886153519153595,
-0.0009735748171806335,
0.13879252970218658,
0.11727982759475708,
-0.1699339598417282,
-0.025423958897590637,
-0.15274932980537415,
0.09244965016841888,
-0.1799841672182083,
0.19991439580917358,
-0.2712903618812561,
0.11546226590871811,
-0.1522534042596817,
-0.24907195568084717,
-0.2975539267063141,
-0.07178491353988647,
-0.38889482617378235,
-0.24241262674331665,
-0.25718873739242554,
0.04346922039985657,
0.09193649888038635,
-0.010635355487465858,
0.4552035629749298,
0.10057413578033447,
0.2640780508518219,
-0.05970244109630585,
-0.3983681797981262,
-0.35952994227409363,
-0.06743297725915909,
0.06648670136928558,
0.04404760152101517,
-0.11331222951412201,
0.20837408304214478,
-0.3103455603122711,
0.04859672486782074,
-0.33674153685569763,
0.11288752406835556,
0.15086042881011963,
-0.4559388756752014,
0.18117907643318176,
0.2658701539039612,
0.4236304759979248,
0.016381893306970596,
-0.08970409631729126,
0.04945844039320946,
0.09817419946193695,
-0.19601401686668396,
0.444612979888916,
-0.25628823041915894,
0.23493067920207977,
0.08932377398014069,
-0.011164247989654541,
-0.09570137411355972,
-0.11143265664577484,
0.30565744638442993,
-0.09232443571090698,
0.09377232939004898,
0.2335662543773651,
0.20850999653339386,
0.010414376854896545,
-0.2521216571331024,
0.10934030264616013,
-0.08116807043552399,
-0.5911011695861816,
0.26234865188598633,
-0.28558149933815,
-0.3184962868690491,
-0.10157224535942078,
-0.08788734674453735,
0.8734861016273499,
-0.02673596888780594,
-0.1387588381767273,
-0.09724878519773483,
-0.16141627728939056,
0.31157585978507996,
-0.08907237648963928,
0.06860101222991943,
0.18425893783569336,
-0.07797890901565552,
0.11783584952354431,
0.05072701722383499,
0.12516702711582184,
0.3527485430240631,
0.031913306564092636,
0.03398437798023224,
0.1483328938484192,
0.4057469367980957,
-0.13833287358283997,
0.5244123339653015,
0.3790161609649658,
0.07672890275716782,
0.04905848950147629,
-0.17749862372875214,
0.09968174993991852,
-0.12405338138341904,
-0.4137384593486786,
0.15707580745220184,
0.09278497099876404,
-0.05173853784799576,
0.015698067843914032,
-0.021659836173057556,
0.740490198135376,
-0.168460875749588,
0.32538342475891113,
-0.1630173772573471,
-0.2664024531841278,
-0.12297746539115906,
-0.44874367117881775,
0.12064649164676666,
-0.1701764166355133,
0.0921965017914772,
-0.17975690960884094,
0.024485275149345398,
0.17934182286262512,
0.15331561863422394,
0.5704125761985779,
0.1505003273487091,
0.021277744323015213,
-0.16840915381908417,
-0.8259093165397644,
0.0019906610250473022,
-0.208978071808815,
-0.26439353823661804,
-0.006279699504375458,
0.03553108125925064,
0.061228156089782715,
0.17910584807395935,
0.9725092649459839,
0.24260620772838593,
-0.15607011318206787,
0.0467698760330677,
-0.28408437967300415,
-0.5021288394927979,
0.13319526612758636,
0.05509975180029869,
-0.0325656495988369,
0.01893862709403038,
-0.10083281993865967,
-0.5409141778945923,
-0.31976261734962463,
-0.01775510609149933,
0.26118943095207214,
-0.2890709340572357,
0.15352831780910492,
-0.28360000252723694,
-0.2053341269493103,
-0.2118171751499176,
-0.13777592778205872,
0.060210928320884705,
0.4127071797847748,
-0.054528191685676575,
-0.05249026045203209,
0.04953233152627945,
-0.18714210391044617,
0.10453211516141891,
0.06471326947212219,
0.3183838129043579,
-0.16919706761837006,
-0.06917400658130646,
0.3315044939517975,
0.07577341794967651,
-0.19086410105228424,
0.20533180236816406,
-0.018439162522554398,
-0.48110175132751465,
-0.1940174102783203,
0.14069682359695435,
0.24777460098266602,
-0.14766094088554382,
-0.21478447318077087,
0.34593796730041504,
-0.1468919962644577,
0.14397817850112915,
-0.48415371775627136,
-0.0612017847597599,
0.41389134526252747,
0.201988086104393,
-0.0962061807513237,
-0.43100878596305847,
0.3464459776878357,
0.15914230048656464,
0.1522439420223236,
-0.19835427403450012,
0.5254842042922974,
-0.20006868243217468,
0.427389919757843,
0.09585822373628616,
0.8359091877937317,
-0.4967048168182373,
0.23294539749622345,
0.561822772026062,
0.33401525020599365,
0.8295431733131409,
-0.025389553979039192,
0.04263236001133919,
-0.303618848323822,
0.15492790937423706,
-0.03263773396611214,
-0.03140605241060257,
-0.05775127559900284,
-0.010099560022354126,
-0.19293305277824402,
0.04000411927700043,
-0.2636655569076538,
-0.06518350541591644,
-0.06304226815700531,
-0.18738196790218353,
-0.028715545311570168,
-0.1535082757472992,
-0.16100984811782837,
0.01875939965248108,
-0.2056194394826889,
0.5768225789070129,
-0.010729284957051277,
-0.130656898021698,
-0.28669893741607666,
0.1736336350440979,
-0.2008974850177765,
0.059327028691768646,
-0.052462946623563766,
-0.184662863612175,
0.3722628355026245,
-0.3314097821712494,
0.10656143724918365,
0.6841478943824768,
0.46808183193206787,
0.025989297777414322,
-0.33263111114501953,
-0.11187544465065002,
-0.04354752600193024,
-0.0612998865544796,
0.09928949922323227,
-0.22475406527519226,
0.266266793012619,
0.06498558819293976,
-0.09613765776157379,
0.2987026572227478,
0.14152716100215912,
0.011031080037355423,
-0.4504334032535553,
-0.4370521903038025,
0.22938159108161926,
-0.3846753239631653,
0.27210935950279236,
0.23198391497135162,
0.3093315064907074,
-0.12310606241226196,
-0.0033005811274051666,
0.4282325506210327,
-0.32063496112823486,
0.24476730823516846,
-0.3915395140647888,
-0.06277520954608917,
0.09161950647830963,
0.12226552516222,
-0.05814250558614731,
-0.02737482264637947,
0.4006408452987671,
0.21763695776462555,
0.1778578907251358,
-0.09480464458465576,
-0.22190266847610474,
0.37007826566696167,
-0.40653589367866516,
0.38668903708457947,
-0.010716321878135204,
0.022087842226028442,
-0.1176375076174736,
0.1633242815732956,
-0.003564927726984024,
-0.25592368841171265,
0.04313851520419121,
-0.15180936455726624,
-0.403582364320755,
-0.05842523276805878,
0.0297097098082304,
-0.05835879221558571,
0.023224469274282455,
0.19291049242019653,
-0.12304659932851791,
0.23543214797973633,
-0.22381272912025452,
-0.2667703330516815,
-0.021939951926469803,
0.021149881184101105,
0.23099365830421448,
-0.2568458020687103,
-0.15372097492218018,
-0.016910914331674576,
0.058434754610061646,
0.07152733951807022,
-0.1446535587310791,
-0.11816851794719696,
-0.22234030067920685,
0.14002351462841034,
0.04984157904982567,
-0.14216399192810059,
0.36346015334129333,
0.14215384423732758,
-0.23697078227996826,
-0.3115988075733185,
0.4277398884296417,
0.2211904227733612,
0.00274793803691864,
0.0022120075300335884,
-0.09740957617759705,
0.32292434573173523,
-0.45364195108413696,
-0.13072475790977478,
0.07920892536640167,
0.07107231765985489,
0.07374919950962067,
0.36613667011260986,
-0.08651977777481079,
-0.27643275260925293,
-0.04444645345211029,
0.2341306209564209,
0.06463764607906342,
-0.35342898964881897,
0.4543966054916382,
-0.08579738438129425,
-0.08127492666244507,
0.21008135378360748,
0.5304523706436157,
0.22702926397323608,
0.00439039058983326,
0.179167240858078,
0.17517799139022827,
0.10196098685264587,
-0.10724332183599472,
0.2993565499782562,
-0.19541342556476593,
-0.24858282506465912,
-0.013118036091327667,
0.30818355083465576,
-0.16139960289001465,
-0.07439979165792465,
-0.14118483662605286,
-0.2033107578754425,
-0.052180469036102295,
0.03011222742497921,
0.21638306975364685,
0.40970003604888916,
0.2604445815086365,
0.17355430126190186,
0.11994943767786026,
0.2106347382068634,
0.12163842469453812,
0.38300323486328125,
-0.14958304166793823,
0.5344508290290833,
-0.6321101188659668,
0.11008552461862564,
0.4394211173057556,
-0.2944062650203705,
0.10658924281597137,
0.09319397807121277,
-0.3377265930175781,
0.10487692803144455,
-0.2544233202934265,
0.3543289303779602,
-0.10652854293584824,
-0.13427481055259705,
-0.27235662937164307,
0.4891595244407654,
-0.1620807647705078,
-0.18314732611179352,
-0.1912584751844406,
-0.19893339276313782,
-0.07666052132844925,
-0.02846190333366394,
0.04343222826719284,
-0.321086585521698,
-0.1470562219619751,
-0.0034599527716636658,
0.03385777771472931,
-0.1280052214860916,
-0.12898558378219604,
0.008826503530144691,
-0.026066496968269348,
-0.13088876008987427,
-0.09217866510152817,
0.20939430594444275,
-0.5083575248718262,
0.0013322383165359497,
0.4049331843852997,
0.2758959233760834,
-0.026301659643650055,
-0.06158066913485527,
0.42652466893196106,
0.0516543872654438,
-0.10182327032089233,
-0.03060780093073845,
-0.004543788731098175,
-0.16040846705436707,
0.12413914501667023,
0.19492509961128235,
-0.01413729228079319,
-0.016551868990063667,
-0.5287272334098816,
0.14600133895874023,
0.45813101530075073,
-0.2641419768333435,
0.30808866024017334,
-0.11738546192646027,
-0.07412727922201157,
-0.44300153851509094,
0.16288727521896362,
-0.44052499532699585,
0.06527974456548691,
-0.021660130470991135,
0.07197295129299164,
-0.09185703098773956,
-0.3206789493560791,
0.03288104012608528,
0.06412790715694427,
0.38410454988479614,
0.40207281708717346,
0.18342149257659912,
-0.3030431568622589,
-0.10970693826675415,
-0.2304036170244217,
0.13928672671318054,
0.3322724997997284,
0.21494248509407043,
-0.1104934886097908,
0.06010958552360535,
-0.06633002310991287,
0.14870814979076385,
-0.3217294216156006,
0.009778551757335663,
0.04177239164710045,
0.1862279176712036,
-0.009960418567061424,
-0.33806705474853516,
-0.14432062208652496,
-0.012743229046463966,
0.04121829569339752,
0.058638639748096466,
0.29958540201187134,
-0.015375802293419838,
0.03075743466615677,
-0.034210484474897385,
0.32184502482414246,
0.050545234233140945,
-0.1019773930311203,
-0.1472524106502533,
0.42861542105674744,
-0.16322821378707886,
0.0006655678153038025,
-0.04992326349020004,
0.02923155203461647,
0.36633843183517456,
-0.2725326716899872,
0.03035709261894226,
-0.06980116665363312,
0.2467103898525238,
-0.07114644348621368,
-0.16504059731960297,
-0.3278750777244568,
0.10043811053037643,
0.29965221881866455,
-0.4137957990169525,
-0.3468659222126007,
0.28459829092025757,
0.07059916108846664,
-0.18264679610729218,
0.28665891289711,
0.38686680793762207,
-0.05015811324119568,
0.24120904505252838,
-0.3673957586288452,
-0.046699702739715576,
0.1407032459974289,
-0.33288589119911194,
-0.14148761332035065,
-0.17234225571155548,
0.21368886530399323,
-0.006733588874340057,
-0.38483160734176636,
-0.05993393063545227,
0.2246115803718567,
0.02322963997721672,
-0.07820424437522888,
0.31753256916999817,
0.17765037715435028,
0.18376874923706055,
-0.043653883039951324,
-0.11022055149078369,
0.466231107711792,
0.3630123436450958,
-0.0053563192486763,
0.5454837679862976,
-0.07788233458995819
] |
https://github.com/huggingface/datasets/issues/4413 | Dataset Viewer issue for ett | Thanks for reporting @dgcnz.
I have checked that the dataset works fine in streaming mode.
Additionally, other datasets containing timestamps are properly rendered by the viewer: https://huggingface.co/datasets/blbooks
I have tried to force the refresh of the preview, but the endpoint is not responsive: Connection timed out
CC: @severo | ### Link
https://huggingface.co/datasets/ett
### Description
Timestamp is not JSON serializable.
```
Status code: 500
Exception: Status500Error
Message: Type is not JSON serializable: Timestamp
```
### Owner
No | 48 | Dataset Viewer issue for ett
### Link
https://huggingface.co/datasets/ett
### Description
Timestamp is not JSON serializable.
```
Status code: 500
Exception: Status500Error
Message: Type is not JSON serializable: Timestamp
```
### Owner
No
Thanks for reporting @dgcnz.
I have checked that the dataset works fine in streaming mode.
Additionally, other datasets containing timestamps are properly rendered by the viewer: https://huggingface.co/datasets/blbooks
I have tried to force the refresh of the preview, but the endpoint is not responsive: Connection timed out
CC: @severo | [
-0.5047906041145325,
-0.058607421815395355,
0.10088731348514557,
0.2943732738494873,
0.2184264212846756,
0.025438986718654633,
0.11922314763069153,
0.2589568495750427,
-0.1350620537996292,
-0.048149242997169495,
-0.05734679847955704,
0.3107838034629822,
0.023056700825691223,
0.40007448196411133,
-0.24012994766235352,
0.018592756241559982,
-0.05541905015707016,
0.5271642208099365,
-0.12874677777290344,
0.20070074498653412,
0.028345197439193726,
0.03472850099205971,
-0.159917950630188,
-0.1785121113061905,
0.1428518444299698,
0.08004606515169144,
0.01917453669011593,
-0.1333177387714386,
-0.18765266239643097,
-0.353546142578125,
0.04343174397945404,
0.08933614194393158,
0.2479504942893982,
0.5581701993942261,
-0.00011704926146194339,
0.17732645571231842,
0.3298453688621521,
-0.07228793948888779,
-0.3217180073261261,
0.16208165884017944,
-0.1174762025475502,
0.055532217025756836,
0.40370622277259827,
-0.09528494626283646,
-0.39000946283340454,
-0.1978897899389267,
0.04926907643675804,
-0.23876550793647766,
0.7279676795005798,
0.2956528663635254,
0.1483428031206131,
0.4211796820163727,
0.2760585844516754,
0.15392017364501953,
-0.052431412041187286,
0.39886778593063354,
-0.2439676970243454,
0.136375293135643,
0.1555047333240509,
0.4613451063632965,
0.06146090477705002,
0.18122337758541107,
0.3139517307281494,
0.00611029751598835,
0.2933967113494873,
-0.35673338174819946,
-0.3602030575275421,
-0.030655257403850555,
0.13508740067481995,
0.10923046618700027,
1.0831990242004395,
0.023768825456500053,
-0.2840162515640259,
0.06260483711957932,
-0.17810827493667603,
-0.05111486464738846,
0.29741767048835754,
-0.19806675612926483,
0.17552344501018524,
0.4262826442718506,
-0.25726592540740967,
0.03499961271882057,
-0.40709927678108215,
0.17852631211280823,
-0.0787021815776825,
-0.009530358016490936,
-0.11573859304189682,
0.21016353368759155,
-0.2929500937461853,
-0.3429069519042969,
0.07127656042575836,
-0.04663783311843872,
-0.18936894834041595,
-0.0673101544380188,
-0.2910712957382202,
-0.23804478347301483,
0.05538134649395943,
-0.0516328439116478,
-0.2374841868877411,
0.4030013084411621,
0.022615838795900345,
0.2025105357170105,
0.06863000243902206,
-0.0291312113404274,
0.4413791596889496,
0.1218227744102478,
0.10922487080097198,
0.014995395205914974,
0.3213341236114502,
0.014112329110503197,
0.03634859248995781,
-0.1341770887374878,
-0.09608958661556244,
-0.06708552688360214,
-0.09244334697723389,
-0.12074805051088333,
0.2655566334724426,
-0.2698360085487366,
-0.11387632042169571,
0.10329273343086243,
-0.2549952268600464,
-0.019262759014964104,
-0.0290667861700058,
0.20137225091457367,
-0.26414409279823303,
0.1600511372089386,
0.1559215635061264,
-0.25236016511917114,
-0.2720666229724884,
-0.49147918820381165,
-0.06994527578353882,
-0.346896231174469,
-0.06609808653593063,
-0.1797276884317398,
0.192102313041687,
-0.36385777592658997,
-0.04250170290470123,
0.017097122967243195,
-0.22297273576259613,
-0.04804972559213638,
-0.14984259009361267,
-0.05345688387751579,
-0.20661789178848267,
0.13356547057628632,
-0.06127243489027023,
0.2290349155664444,
0.11562968790531158,
-0.09999281167984009,
0.04037902504205704,
0.005438659340143204,
-0.053036436438560486,
-0.10605353116989136,
-0.2668474018573761,
0.10442673414945602,
-0.13918103277683258,
-0.21507605910301208,
-0.24038928747177124,
0.007151629775762558,
0.22028635442256927,
-0.41039639711380005,
-0.1328502893447876,
0.08941717445850372,
-0.03414960205554962,
0.08623863756656647,
0.19714707136154175,
0.27911096811294556,
-0.5165755748748779,
-0.14418208599090576,
-0.3676014244556427,
-0.19185425341129303,
0.07857207953929901,
0.3359180688858032,
0.05198219418525696,
-0.0341983288526535,
-0.12349472939968109,
-0.16302578151226044,
0.17968514561653137,
-0.18322010338306427,
-0.4809083938598633,
0.6071275472640991,
-0.1791260540485382,
-0.01037774421274662,
-0.11095371097326279,
-0.0004179936950094998,
0.5054792165756226,
-0.12530329823493958,
-0.026455260813236237,
-0.07286736369132996,
-0.07305756956338882,
-0.036687128245830536,
-0.16090986132621765,
-0.1472931057214737,
0.2820280194282532,
0.11663818359375,
0.02652570977807045,
0.058991916477680206,
0.07284840196371078,
-0.05460318922996521,
0.10212013125419617,
0.43800580501556396,
0.34492939710617065,
0.13193197548389435,
0.2048586905002594,
0.11024026572704315,
0.02081500180065632,
-0.041025273501873016,
-0.35237666964530945,
-0.052291810512542725,
0.3934984803199768,
0.12483230233192444,
-0.09969465434551239,
-0.11329466849565506,
-0.4139226973056793,
-0.09721603244543076,
-0.04817241057753563,
0.028028439730405807,
0.08860030025243759,
0.14569920301437378,
-0.0730726569890976,
0.46475186944007874,
0.08611343801021576,
-0.11362699419260025,
0.054551586508750916,
0.028536394238471985,
-0.25239717960357666,
0.18916787207126617,
-0.07951997220516205,
-0.26734161376953125,
0.1611788272857666,
-0.04433567076921463,
0.1366797238588333,
-0.24501638114452362,
-0.31494608521461487,
0.21350789070129395,
0.011408349499106407,
0.5105913877487183,
-0.027868933975696564,
0.18431292474269867,
0.3300577402114868,
-0.43595507740974426,
-0.34365782141685486,
0.5003547072410583,
0.14316868782043457,
-0.02216469869017601,
-0.41482478380203247,
0.06666183471679688,
0.08095844089984894,
0.016206130385398865,
-0.14802825450897217,
0.19525332748889923,
0.3134192228317261,
-0.0031675323843955994,
-0.1374170333147049,
-0.16027845442295074,
0.13995113968849182,
0.15719027817249298,
0.12921807169914246,
-0.02325253374874592,
-0.3108954131603241,
0.35572025179862976,
0.11980226635932922,
0.2128158062696457,
-0.09781349450349808,
0.2590656578540802,
-0.3180624544620514,
-0.32745036482810974,
0.17484889924526215,
-0.033573027700185776,
-0.046465709805488586,
0.1318233758211136,
0.06486598402261734,
-0.02360360510647297,
0.11932241171598434,
-0.1794959157705307,
0.06836360692977905,
-0.05910293757915497,
-0.07098174840211868,
0.2567876875400543,
0.19889359176158905,
-0.0067618610337376595,
-0.27788037061691284,
0.04426030442118645,
0.21071279048919678,
0.4464171528816223,
-0.39526107907295227,
0.07456944137811661,
-0.5286464095115662,
-0.3960721790790558,
0.12969188392162323,
-0.09277205914258957,
-0.008521001785993576,
-0.2734985947608948,
0.052452027797698975,
0.5475971102714539,
0.03465520218014717,
0.2750088572502136,
0.11528801918029785,
0.41048383712768555,
0.42517781257629395,
0.40058374404907227,
-0.3446774482727051,
-0.2154373824596405,
-0.3915329873561859,
0.1002516895532608,
0.1631043255329132,
-0.13261179625988007,
0.3329659700393677,
-0.3174867630004883,
0.10278936475515366,
-0.32279643416404724,
-0.258409321308136,
0.06327366083860397,
-0.24019791185855865,
0.507544755935669,
-0.1864379346370697,
0.3677607774734497,
-0.08961525559425354,
0.32781916856765747,
0.27288392186164856,
-0.06183392554521561,
-0.13332116603851318,
0.06341246515512466,
-0.05133254453539848,
0.025857320055365562,
-0.02987341396510601,
-0.14880505204200745,
-0.2508391737937927,
-0.3036082983016968,
0.3217403292655945,
-0.1690802276134491,
-0.015849649906158447,
-0.032027676701545715,
-0.09948093444108963,
-0.18574868142604828,
0.011523263528943062,
-0.05056711286306381,
-0.3376363217830658,
-0.5306450128555298,
0.336282879114151,
-0.37105828523635864,
-0.5654519200325012,
0.25257864594459534,
0.6355297565460205,
-0.11865419149398804,
-0.10389845073223114,
-0.5214383006095886,
-0.2488030344247818,
-0.16610276699066162,
-0.0531807616353035,
-0.13841260969638824,
-0.4602524936199188,
0.14796020090579987,
-0.023934997618198395,
-0.10088841617107391,
0.007488764822483063,
-0.17205537855625153,
0.05553240701556206,
-0.012421496212482452,
0.1448919028043747,
0.061979990452528,
0.6176672577857971,
0.12756119668483734,
0.30593180656433105,
0.6076182126998901,
-0.22959239780902863,
0.36764976382255554,
-0.258810818195343,
0.23589956760406494,
-0.24172204732894897,
-0.24718904495239258,
0.27231183648109436,
0.02915111929178238,
0.15253768861293793,
0.3601362109184265,
-0.006555698812007904,
0.07389406114816666,
-0.25240230560302734,
-0.05532565712928772,
-0.33704662322998047,
-0.296536386013031,
-0.18127255141735077,
-0.19779375195503235,
0.2964950203895569,
-0.0004896596074104309,
0.21210485696792603,
-0.040834881365299225,
-0.4560154676437378,
-0.1489441841840744,
0.490428626537323,
0.1271485984325409,
0.06075536832213402,
-0.32251179218292236,
0.03622657060623169,
-0.2993171513080597,
0.13497115671634674,
-0.24367065727710724,
0.7507650256156921,
-0.35654759407043457,
0.19810310006141663,
0.3500310182571411,
-0.040901366621255875,
0.6299756169319153,
-0.08731589466333389,
0.4697362780570984,
-0.00782535970211029,
0.05203121900558472,
-0.41297492384910583,
0.1204243004322052,
0.14815235137939453,
0.04677967727184296,
-0.23984192311763763,
0.29766038060188293,
-0.27935677766799927,
-0.23473450541496277,
-0.06730848550796509,
-0.29076409339904785,
-0.3021169900894165,
-0.21913069486618042,
0.11813156306743622,
0.14455720782279968,
-0.017561210319399834,
-0.2299821972846985,
-0.16451528668403625,
0.12352188676595688,
0.0668519139289856,
-0.09884533286094666,
-0.2159101814031601,
-0.03059358336031437,
-0.017393097281455994,
-0.019306354224681854,
0.054402437061071396,
-0.08629044890403748,
0.4296964406967163,
0.2930982708930969,
0.3198423981666565,
0.36824971437454224,
0.4739537239074707,
0.2886764109134674,
-0.5873034000396729,
0.22649666666984558,
-0.018992748111486435,
-0.2218412160873413,
0.07852368801832199,
-0.042926229536533356,
0.07533969730138779,
0.3549555540084839,
0.2774919867515564,
-0.6211843490600586,
0.13982680439949036,
0.40600350499153137,
-0.1713286191225052,
-0.4937858581542969,
-0.2232678383588791,
0.20448894798755646,
-0.06144677847623825,
0.09430402517318726,
0.048448774963617325,
0.03346461057662964,
-0.0988910123705864,
-0.12506122887134552,
-0.07831671088933945,
0.7197385430335999,
0.11542564630508423,
-0.10704714059829712,
0.29799214005470276,
-0.47435301542282104,
0.277084618806839,
0.01322764903306961,
0.06224965676665306,
-0.2960270643234253,
-0.15109996497631073,
-0.21905310451984406,
0.11866839230060577,
0.0348731130361557,
-0.14732857048511505,
-0.3430178165435791,
-0.08168532699346542,
-0.016788028180599213,
0.3268306851387024,
-0.05733398348093033,
0.39784926176071167,
0.03902580216526985,
0.02575373463332653,
-0.10679493844509125,
0.12466259300708771,
-0.4124266505241394,
0.19167876243591309,
-0.024861406534910202,
-0.13181577622890472,
0.010248873382806778,
-0.11986833810806274,
-0.5730291604995728,
-0.15457803010940552,
0.197188138961792,
0.19094887375831604,
-0.190785214304924,
-0.3161885440349579,
0.24755391478538513,
-0.18631863594055176,
-0.06667710840702057,
-0.0339529924094677,
-0.47337034344673157,
0.19641707837581635,
-0.4311593770980835,
-0.03784887120127678,
-0.16644245386123657,
0.19482596218585968,
0.09949129074811935,
-0.08322328329086304,
-0.0577215813100338,
0.020188000053167343,
0.13596411049365997,
-0.16920782625675201,
0.054591283202171326,
-0.05814984440803528,
-0.186331108212471,
-0.45410871505737305,
0.09119756519794464,
-0.24381506443023682,
-0.057258907705545425,
-0.27677205204963684,
0.051367029547691345,
0.07648403197526932,
0.24228617548942566,
0.20481833815574646,
0.09816619008779526,
-0.004822716116905212,
-0.11568117141723633,
0.7524105310440063,
-0.1777251958847046,
0.1663091629743576,
0.47827965021133423,
0.5409020781517029,
-0.27441513538360596,
-0.17999932169914246,
0.46882396936416626,
0.17910665273666382,
-0.6824390292167664,
0.1769164502620697,
-0.12929551303386688,
0.34429389238357544,
0.15589293837547302,
0.45925047993659973,
0.1433543562889099,
-0.30506467819213867,
-0.07809113711118698,
-0.39089637994766235,
-0.022231537848711014,
0.04654839634895325,
-0.03639628365635872,
0.16249996423721313,
-0.0829961970448494,
0.3495815396308899,
0.15223762392997742,
-0.08102230727672577,
-0.24543923139572144,
0.044901952147483826,
-0.08386199176311493,
0.17073963582515717,
0.15495625138282776,
-0.18070435523986816,
0.13447727262973785,
-0.19264575839042664,
-0.044319577515125275,
-0.02622302621603012,
-0.37078559398651123,
-0.07705411314964294,
-0.014606403186917305,
0.16466224193572998,
0.18343114852905273,
-0.28799447417259216,
-0.13926149904727936,
-0.21664735674858093,
-0.3090968430042267,
0.11161282658576965,
-0.10726475715637207,
-0.20252126455307007,
-0.05302075296640396,
-0.019522806629538536,
0.02447720617055893,
-0.12379231303930283,
0.15697485208511353,
0.04924016445875168,
0.3275648355484009,
0.5113855004310608,
-0.140487402677536,
0.08067071437835693,
0.08137889951467514,
-0.05363718047738075,
-0.47558924555778503,
0.2131604254245758,
0.27132564783096313,
-0.06896579265594482,
0.4191775918006897,
-0.4164571166038513,
0.2731795310974121,
0.15282201766967773,
0.46879103779792786,
0.3315570056438446,
-0.035783909261226654,
-0.27589336037635803,
0.16371354460716248,
0.05738145112991333,
-0.04631773754954338,
-0.06608251482248306,
0.2862822115421295,
0.07557415962219238,
0.04803925380110741,
-0.29511356353759766,
-0.09455960988998413,
0.1512375921010971,
-0.1317673772573471,
0.15039488673210144,
0.6553041934967041,
-0.06095336377620697,
0.14440101385116577,
0.4332953095436096,
-0.1658783107995987,
-0.059717755764722824,
0.012606211006641388,
0.40319550037384033,
0.05831509828567505,
0.14711439609527588,
0.13339847326278687,
-0.03280112147331238,
0.2840646505355835,
0.48143652081489563,
-0.09085344523191452,
-0.4060477316379547,
-0.09150946140289307,
0.0021631568670272827,
-0.06805525720119476,
0.21496212482452393,
0.3628220856189728,
0.3050529956817627,
-0.14269764721393585,
-0.0436483658850193,
-0.3896910846233368,
0.30943429470062256,
0.14024728536605835,
-0.032389670610427856,
-0.11622674763202667,
-0.04698720946907997,
-0.16325780749320984,
0.0660003125667572,
-0.18938300013542175,
0.3402220606803894,
0.02002963423728943,
0.08576161414384842,
-0.06438656151294708,
-0.4525347352027893,
-0.23690420389175415,
-0.04233446717262268,
0.2450452446937561,
-0.17640617489814758,
0.23014070093631744,
0.1663855016231537,
0.05000525340437889,
0.08611975610256195,
0.41372862458229065,
0.20263084769248962,
-0.0024624355137348175,
-0.0005537103861570358,
0.20289167761802673,
-0.007141057401895523,
-0.007129928097128868,
0.15333734452724457,
0.31348738074302673,
0.10219314694404602,
-0.2443876415491104,
0.21975205838680267,
0.037528425455093384,
-0.06435183435678482,
0.17594121396541595,
-0.15976113080978394,
0.16941195726394653,
-0.0305646825581789,
0.13513877987861633,
-0.10816530883312225,
0.13955655694007874,
0.08421687036752701,
-0.22813796997070312,
-0.2393888533115387,
0.31556573510169983,
0.05249803140759468,
0.006521664559841156,
0.03194291144609451,
-0.3578684329986572,
0.05157473683357239,
-0.052528489381074905,
0.5215504169464111,
0.490444153547287,
0.09295646846294403,
0.20780883729457855,
-0.3329029679298401,
-0.2829352021217346,
0.3355729877948761,
-0.025267381221055984,
-0.06564260274171829,
0.2565726339817047,
0.026360994204878807,
0.1282031238079071,
0.036407630890607834,
0.37341517210006714,
-0.13406535983085632,
-0.16017590463161469,
0.27940505743026733,
-0.08368804305791855,
0.03329410031437874,
0.22091475129127502,
0.20442010462284088,
-0.17270143330097198,
0.016130156815052032,
0.6494799852371216,
-0.06640968471765518,
0.040337562561035156,
-0.1322602927684784,
0.01802382618188858,
-0.2888827919960022,
-0.6887818574905396,
0.5601717233657837,
0.23701122403144836,
0.05652699992060661,
0.04428759962320328,
-0.03502156585454941,
-0.13091407716274261,
-0.24152259528636932,
-0.14448221027851105,
0.38479265570640564,
0.16891342401504517,
0.2503417432308197,
-0.17206329107284546,
0.10014231503009796,
-0.2661212384700775,
0.001002076081931591,
-0.30302906036376953,
0.2839440405368805,
-0.29051074385643005,
0.08630923926830292,
-0.1747855395078659,
-0.05321505293250084,
-0.03814949840307236,
0.026689503341913223,
0.07957132905721664,
0.0794086903333664,
-0.24465817213058472,
-0.4161866009235382,
0.258212149143219,
-0.223432257771492,
-0.16305358707904816,
0.08636722713708878,
-0.07532978057861328,
0.07030399888753891,
-0.06102101504802704,
-0.25198838114738464,
0.11783017963171005,
0.4193151295185089,
-0.21170461177825928,
0.09428806602954865,
0.17198345065116882,
0.09709726274013519,
0.0008965805172920227,
-0.0018608085811138153,
0.40004172921180725,
0.16555896401405334,
0.04248835891485214,
0.17388513684272766,
-0.021054644137620926
] |
https://github.com/huggingface/datasets/issues/4413 | Dataset Viewer issue for ett | I've just resent the refresh of the preview to the new endpoint, without success.
CC: @severo | ### Link
https://huggingface.co/datasets/ett
### Description
Timestamp is not JSON serializable.
```
Status code: 500
Exception: Status500Error
Message: Type is not JSON serializable: Timestamp
```
### Owner
No | 16 | Dataset Viewer issue for ett
### Link
https://huggingface.co/datasets/ett
### Description
Timestamp is not JSON serializable.
```
Status code: 500
Exception: Status500Error
Message: Type is not JSON serializable: Timestamp
```
### Owner
No
I've just resent the refresh of the preview to the new endpoint, without success.
CC: @severo | [
-0.38515186309814453,
-0.03509676456451416,
0.05032595619559288,
0.19764171540737152,
0.15729430317878723,
0.03692353516817093,
0.15900593996047974,
0.23904208838939667,
-0.08219040930271149,
0.05853639915585518,
-0.16762365400791168,
0.3958725035190582,
0.05189453437924385,
0.4653371274471283,
-0.07412418723106384,
0.08402809500694275,
-0.062456972897052765,
0.4339282810688019,
-0.19378814101219177,
0.2080598622560501,
-0.02928038313984871,
0.05057886242866516,
-0.06137142330408096,
-0.0752512663602829,
0.20630724728107452,
0.13116022944450378,
-0.17252157628536224,
-0.0011028237640857697,
-0.23027873039245605,
-0.3779933750629425,
0.10573317110538483,
0.11461177468299866,
0.23216129839420319,
0.6658182144165039,
-0.00011434336192905903,
0.33280766010284424,
0.2034904807806015,
-0.006126690655946732,
-0.20458540320396423,
0.14729303121566772,
-0.08739659190177917,
-0.05526304990053177,
0.2902616560459137,
-0.2741899788379669,
-0.425801157951355,
-0.314301997423172,
-0.010642165318131447,
-0.10512296855449677,
0.7169561386108398,
0.29321762919425964,
0.19466738402843475,
0.42337822914123535,
0.30858439207077026,
-0.01102806068956852,
0.010963790118694305,
0.3775135278701782,
-0.15499010682106018,
0.0889977216720581,
0.09510435163974762,
0.483919233083725,
0.06210419163107872,
0.17216366529464722,
0.33202338218688965,
0.048083849251270294,
0.19569671154022217,
-0.17879362404346466,
-0.20703914761543274,
0.024011023342609406,
0.11005781590938568,
0.03299857676029205,
1.021350383758545,
0.04204600304365158,
-0.37764623761177063,
0.1552208662033081,
-0.22679513692855835,
-0.1184530034661293,
0.148077130317688,
-0.23380693793296814,
0.2916402220726013,
0.553368866443634,
-0.18637901544570923,
-0.22756090760231018,
-0.4685826003551483,
0.1073867604136467,
-0.18342021107673645,
0.004046916961669922,
-0.13765119016170502,
0.1542244553565979,
-0.1586752086877823,
-0.3550580143928528,
-0.02794729545712471,
0.16415680944919586,
-0.25004178285598755,
-0.02692442387342453,
-0.1607143133878708,
-0.4140242338180542,
0.11354956030845642,
-0.1635940968990326,
-0.26324811577796936,
0.6223622560501099,
0.04500066488981247,
0.19641515612602234,
-0.0025584325194358826,
-0.05270157754421234,
0.3245733976364136,
0.18696080148220062,
0.1366509050130844,
0.06520524621009827,
0.3462217450141907,
-0.028188619762659073,
0.1364821344614029,
-0.055087752640247345,
-0.025249671190977097,
-0.09625135362148285,
-0.16655124723911285,
-0.1569693386554718,
0.3984562158584595,
-0.21232274174690247,
-0.19079042971134186,
0.0040886481292545795,
-0.17403587698936462,
-0.08538596332073212,
-0.1873132735490799,
0.21458110213279724,
-0.09977274388074875,
0.029897844418883324,
0.18663053214550018,
-0.14555782079696655,
-0.29298973083496094,
-0.42696741223335266,
-0.15269801020622253,
-0.252949059009552,
-0.03040716052055359,
-0.14031395316123962,
0.12686720490455627,
-0.15079200267791748,
-0.04335896670818329,
-0.158939391374588,
-0.3101953864097595,
0.017835862934589386,
-0.12017668038606644,
0.13137957453727722,
-0.15049883723258972,
0.0961829274892807,
-0.07939852774143219,
0.10022882372140884,
0.0794420838356018,
-0.20185868442058563,
-0.010753266513347626,
-0.016424089670181274,
-0.20760682225227356,
-0.2720731794834137,
-0.3815546929836273,
0.16141626238822937,
-0.010353932157158852,
-0.38096606731414795,
-0.1920255720615387,
0.07769597321748734,
0.10994341969490051,
-0.3082892894744873,
-0.13959243893623352,
0.24576999247074127,
-0.05346943438053131,
0.10830859839916229,
0.08442211896181107,
0.26729992032051086,
-0.4391553997993469,
-0.19493696093559265,
-0.3736054003238678,
-0.29787030816078186,
-0.19111940264701843,
0.27412548661231995,
0.0065408977679908276,
0.0686013475060463,
-0.19039565324783325,
-0.08498218655586243,
0.2348247617483139,
-0.3189970552921295,
-0.41365259885787964,
0.48614463210105896,
-0.36283767223358154,
-0.13751806318759918,
-0.07726483792066574,
-0.02168929949402809,
0.5176236629486084,
-0.22889825701713562,
-0.10549993813037872,
-0.15109778940677643,
0.10858943313360214,
0.08504780381917953,
-0.07305270433425903,
-0.2904128432273865,
0.2783122658729553,
0.09782671928405762,
-0.0014384910464286804,
0.09173424541950226,
0.1565074920654297,
-0.0945819765329361,
0.16062963008880615,
0.29859229922294617,
0.2470165193080902,
0.09145402908325195,
0.39772677421569824,
0.09231103211641312,
0.0026964987628161907,
-0.09015190601348877,
-0.44359761476516724,
-0.1142381951212883,
0.18411041796207428,
0.1444542407989502,
0.0638398602604866,
-0.217569962143898,
-0.5856845378875732,
-0.07277582585811615,
-0.0333387516438961,
0.03283856436610222,
0.12832596898078918,
0.17760176956653595,
-0.06678995490074158,
0.3631053864955902,
-0.04885942116379738,
-0.2395491600036621,
0.03203921765089035,
0.07021920382976532,
-0.21631115674972534,
0.1710931956768036,
-0.15136609971523285,
-0.14324937760829926,
0.1081499457359314,
-0.030667930841445923,
0.1253792643547058,
-0.3937971591949463,
-0.2565147280693054,
0.260028600692749,
-0.08134347945451736,
0.5434925556182861,
0.15335242450237274,
0.18237662315368652,
0.30199143290519714,
-0.522098958492279,
-0.21876993775367737,
0.450268030166626,
0.08041705191135406,
0.01903468370437622,
-0.4463293254375458,
0.11173879355192184,
0.22201687097549438,
-0.041124098002910614,
-0.16222631931304932,
0.13504073023796082,
0.3219640254974365,
-0.14128582179546356,
-0.09151604771614075,
-0.2028539776802063,
-0.03889169171452522,
0.20246334373950958,
0.013160545378923416,
0.03547242656350136,
-0.23028436303138733,
0.35282790660858154,
0.1962604969739914,
0.1302335560321808,
-0.07124870270490646,
0.33467185497283936,
-0.22805535793304443,
-0.3800514340400696,
0.09426219761371613,
-0.08302919566631317,
0.07292136549949646,
0.1748187243938446,
0.029644250869750977,
0.08658667653799057,
0.2211422622203827,
-0.16887103021144867,
0.18159447610378265,
-0.15968309342861176,
-0.09410741925239563,
0.23800605535507202,
0.23163709044456482,
-0.09228014200925827,
-0.14383389055728912,
0.02947157993912697,
0.18440449237823486,
0.4043278992176056,
-0.45142674446105957,
0.041723109781742096,
-0.5319616198539734,
-0.2782662510871887,
0.035892799496650696,
-0.13084857165813446,
0.03254986181855202,
-0.32802581787109375,
0.20575399696826935,
0.4609278738498688,
-0.11302700638771057,
0.22300688922405243,
0.040414128452539444,
0.49900394678115845,
0.33553990721702576,
0.4034026861190796,
-0.38848260045051575,
-0.23657473921775818,
-0.3480394184589386,
0.12342056632041931,
0.16533346474170685,
-0.15351590514183044,
0.38112327456474304,
-0.35138416290283203,
0.18541072309017181,
-0.4189465343952179,
-0.32652246952056885,
0.17316533625125885,
-0.18696406483650208,
0.45518001914024353,
-0.05127687752246857,
0.293312668800354,
0.006473112851381302,
0.2679520845413208,
0.16754338145256042,
-0.03236396610736847,
-0.3194865882396698,
0.06169872730970383,
-0.0650431215763092,
0.12254071980714798,
0.01944173127412796,
-0.3979948163032532,
-0.3651707172393799,
-0.26910844445228577,
0.3056185245513916,
-0.1254320591688156,
0.05276484787464142,
0.03297270089387894,
-0.12750382721424103,
-0.09661268442869186,
-0.019469110295176506,
-0.14608459174633026,
-0.3461551070213318,
-0.5094825029373169,
0.1368957757949829,
-0.46442657709121704,
-0.47886011004447937,
0.26323798298835754,
0.6003871560096741,
-0.030683327466249466,
-0.2398633509874344,
-0.44239938259124756,
-0.3725125789642334,
-0.07337923347949982,
0.06696714460849762,
-0.11244216561317444,
-0.26062604784965515,
0.19695505499839783,
-0.006724447477608919,
-0.1892184019088745,
0.03649601340293884,
-0.15449917316436768,
0.0959269106388092,
0.013636499643325806,
0.01267416775226593,
-0.0009844917804002762,
0.4293067157268524,
0.039008546620607376,
0.35195040702819824,
0.4905737638473511,
-0.34932011365890503,
0.44641366600990295,
-0.33667904138565063,
0.2823675870895386,
-0.3471969664096832,
-0.3416554033756256,
0.17000839114189148,
0.08563454449176788,
0.2633572816848755,
0.3192495107650757,
-0.06765954941511154,
0.05707067996263504,
-0.17959536612033844,
-0.06713420152664185,
-0.3339581787586212,
-0.3381415605545044,
-0.2207643687725067,
-0.041011348366737366,
0.2135365903377533,
-0.03741087764501572,
0.09054382890462875,
-0.09663748741149902,
-0.34973663091659546,
-0.027883511036634445,
0.4026634097099304,
0.019145578145980835,
0.047537729144096375,
-0.4151005744934082,
0.06765805184841156,
-0.25375595688819885,
0.3225973844528198,
-0.15228477120399475,
0.4280915856361389,
-0.2310677021741867,
0.07134968042373657,
0.31413206458091736,
-0.08454547822475433,
0.5494886040687561,
-0.015042813494801521,
0.399100124835968,
0.052241962403059006,
0.045973747968673706,
-0.29203909635543823,
0.15749745070934296,
0.11557626724243164,
0.24796728789806366,
-0.16457657516002655,
0.4196094274520874,
-0.29073360562324524,
-0.1900133192539215,
0.10329274833202362,
-0.24644038081169128,
-0.41068997979164124,
-0.12098778039216995,
0.0199117474257946,
-0.07169720530509949,
-0.18896615505218506,
-0.07999905198812485,
-0.20468978583812714,
0.20254136621952057,
0.021254410967230797,
-0.021979043260216713,
-0.28249040246009827,
-0.10431370884180069,
-0.1037399172782898,
0.04474501311779022,
0.09902773797512054,
-0.03422233462333679,
0.27596405148506165,
0.21994763612747192,
0.38232460618019104,
0.2967817783355713,
0.5761840343475342,
0.1833353191614151,
-0.5043206214904785,
0.18920278549194336,
-0.1608322262763977,
-0.09122022241353989,
0.13036255538463593,
0.08855242282152176,
0.09490294009447098,
0.37416955828666687,
0.21302518248558044,
-0.5666361451148987,
0.0718207135796547,
0.33829978108406067,
-0.202498659491539,
-0.4380052387714386,
-0.1011587530374527,
0.2663920819759369,
-0.11240729689598083,
0.03130118548870087,
0.035290345549583435,
0.25475168228149414,
-0.1312217265367508,
-0.11682000756263733,
-0.19039034843444824,
0.8330797553062439,
0.20818732678890228,
0.0056420378386974335,
0.3854505717754364,
-0.5095396041870117,
0.29586565494537354,
0.037283219397068024,
0.03642677515745163,
-0.3609909415245056,
-0.027415525168180466,
-0.14142999053001404,
0.12643828988075256,
0.05648224800825119,
-0.024246133863925934,
-0.3273172974586487,
-0.04508482664823532,
0.014025479555130005,
0.17459119856357574,
-0.10683684051036835,
0.5137959718704224,
0.0826236829161644,
0.0987589955329895,
-0.09139974415302277,
0.16001632809638977,
-0.3325120806694031,
0.23140959441661835,
-0.0019015781581401825,
-0.18369485437870026,
-0.0875634104013443,
-0.20481657981872559,
-0.5059590935707092,
-0.20111006498336792,
0.37007635831832886,
0.2791299819946289,
-0.03348890319466591,
-0.35635244846343994,
0.11395218968391418,
-0.3335815370082855,
-0.007029406726360321,
-0.08444103598594666,
-0.46506163477897644,
-0.01309318095445633,
-0.4569944143295288,
0.006404899526387453,
-0.12695470452308655,
0.04991121590137482,
0.13784991204738617,
-0.026095964014530182,
-0.16640201210975647,
0.030265122652053833,
0.2038200944662094,
-0.2385389804840088,
0.0033694952726364136,
-0.03573581576347351,
-0.24130405485630035,
-0.56618732213974,
0.0953969806432724,
-0.05108664929866791,
-0.11247876286506653,
-0.2610199451446533,
0.07318039238452911,
0.04177704453468323,
0.09071818739175797,
0.16659465432167053,
0.15944616496562958,
-0.12558546662330627,
0.0525653213262558,
0.7136176824569702,
-0.16833987832069397,
0.025943957269191742,
0.5236520767211914,
0.3934379518032074,
-0.18712711334228516,
-0.26472699642181396,
0.4723678231239319,
0.260419100522995,
-0.7728124856948853,
0.25102922320365906,
-0.0733288899064064,
0.28953033685684204,
0.22412198781967163,
0.6085132956504822,
0.10497316718101501,
-0.09825032204389572,
-0.04242530092597008,
-0.20158791542053223,
-0.000768568366765976,
0.10554923862218857,
0.02417670376598835,
0.3004724383354187,
-0.08331622183322906,
0.29001548886299133,
0.1778220534324646,
-0.10385027527809143,
-0.32269856333732605,
0.13404260575771332,
-0.003561750054359436,
0.15663741528987885,
0.2239958792924881,
-0.20740538835525513,
-0.08119934797286987,
-0.1554732620716095,
0.02196499891579151,
0.024403084069490433,
-0.3541949689388275,
-0.1384357362985611,
-0.008321852423250675,
0.1550900936126709,
0.10876394808292389,
-0.18804262578487396,
-0.043616022914648056,
-0.08747152984142303,
-0.22360603511333466,
0.2104913294315338,
-0.0404927134513855,
-0.17644202709197998,
-0.026946045458316803,
-0.0007680561393499374,
-0.0400058887898922,
-0.16610267758369446,
0.18593764305114746,
0.08487723767757416,
0.39483579993247986,
0.4969181418418884,
-0.29489389061927795,
0.12304511666297913,
-0.03339323028922081,
-0.05111561343073845,
-0.3058794438838959,
0.20119056105613708,
0.4023579955101013,
0.04149596393108368,
0.33617764711380005,
-0.36523205041885376,
0.22075733542442322,
0.1453661322593689,
0.36852335929870605,
0.2079308032989502,
-0.10674723982810974,
-0.16886530816555023,
0.2728290557861328,
0.14661017060279846,
-0.21140995621681213,
-0.03929509222507477,
0.4437558650970459,
-0.04911847040057182,
-0.008494172245264053,
-0.2813943028450012,
-0.04792832210659981,
0.18543514609336853,
-0.04344681650400162,
0.143453449010849,
0.5899989604949951,
-0.03319745510816574,
0.15937349200248718,
0.29991182684898376,
-0.37296316027641296,
-0.0824059545993805,
0.1538325399160385,
0.2737073600292206,
0.1780845820903778,
0.16738903522491455,
0.044577546417713165,
0.14778828620910645,
0.2528533935546875,
0.5202907919883728,
0.03156073018908501,
-0.3827105164527893,
-0.030906643718481064,
-0.08853179216384888,
0.11119907349348068,
0.1551382839679718,
0.369441956281662,
0.3212926387786865,
-0.1548086553812027,
0.04211100563406944,
-0.4417329430580139,
0.4684494733810425,
0.07413657009601593,
-0.038173288106918335,
-0.16117563843727112,
-0.08198937773704529,
-0.1447441577911377,
0.04829132929444313,
-0.22655093669891357,
0.10466881096363068,
0.052734386175870895,
0.05805843695998192,
-0.11421316862106323,
-0.4724870026111603,
-0.18156367540359497,
-0.24839022755622864,
0.15775656700134277,
-0.07658179849386215,
0.2877868711948395,
0.22109109163284302,
-0.01575940102338791,
0.13673996925354004,
0.6111676692962646,
0.10368865728378296,
-0.09087687730789185,
0.04581964761018753,
0.27494025230407715,
-0.06914041936397552,
-0.04422346502542496,
0.10999701917171478,
0.2956428527832031,
0.00010947883129119873,
-0.23910917341709137,
0.15561902523040771,
0.07903729379177094,
-0.07940497994422913,
0.1631196141242981,
-0.03220793232321739,
0.09751302003860474,
-0.09623248875141144,
0.21069073677062988,
-0.048603594303131104,
0.07132560759782791,
0.012909898534417152,
-0.16605189442634583,
-0.2766098082065582,
0.22057685256004333,
-0.04155074805021286,
-0.03221377357840538,
0.07725702226161957,
-0.3731209635734558,
0.08072206377983093,
-0.006093963980674744,
0.4643371105194092,
0.38977786898612976,
0.1698903888463974,
0.25547540187835693,
-0.27106231451034546,
-0.3655798137187958,
0.39633533358573914,
0.13917292654514313,
-0.07348164916038513,
0.0698249340057373,
0.10468120127916336,
0.055267903953790665,
0.08726726472377777,
0.4380337595939636,
-0.11771470308303833,
-0.01586836203932762,
0.30387628078460693,
-0.1740214228630066,
0.22142569720745087,
0.35883021354675293,
0.2274976223707199,
-0.10954488068819046,
-0.03671812266111374,
0.4413855969905853,
0.17543251812458038,
0.04208158701658249,
-0.16334787011146545,
0.04820431023836136,
-0.20255187153816223,
-0.5984383821487427,
0.6178454756736755,
0.15022681653499603,
0.02512768656015396,
-0.0526309572160244,
0.020679136738181114,
-0.1520359367132187,
-0.31468117237091064,
-0.2864719331264496,
0.37559470534324646,
0.2617076337337494,
0.14395543932914734,
-0.1275746375322342,
0.13833515346050262,
-0.19647032022476196,
-0.10797091573476791,
-0.2549694776535034,
0.3531324565410614,
-0.32511112093925476,
-0.0013842564076185226,
-0.12459280341863632,
-0.2735767662525177,
0.0018991408869624138,
-0.004212304949760437,
0.09297636151313782,
0.14223863184452057,
-0.17949610948562622,
-0.45022863149642944,
0.2940142750740051,
-0.17517411708831787,
-0.11101776361465454,
0.09289298951625824,
-0.013422548770904541,
0.005176976323127747,
-0.1058734580874443,
-0.19106179475784302,
0.22696071863174438,
0.4969744086265564,
-0.10521682351827621,
0.31968048214912415,
0.2587408423423767,
0.047233037650585175,
-0.10010889172554016,
-0.14316289126873016,
0.42984333634376526,
0.26328957080841064,
0.1075599193572998,
0.04653574898838997,
-0.053096383810043335
] |
https://github.com/huggingface/datasets/issues/4407 | Dataset Viewer issue for conll2012_ontonotesv5 | Thanks for reporting, @jiangwy99.
I guess this could be addressed only once we fix our issue with irresponsive backend endpoint.
CC: @severo | ### Link
https://huggingface.co/datasets/conll2012_ontonotesv5
### Description
Dataset viewer outage.
### Owner
No | 22 | Dataset Viewer issue for conll2012_ontonotesv5
### Link
https://huggingface.co/datasets/conll2012_ontonotesv5
### Description
Dataset viewer outage.
### Owner
No
Thanks for reporting, @jiangwy99.
I guess this could be addressed only once we fix our issue with irresponsive backend endpoint.
CC: @severo | [
-0.38620635867118835,
0.08108988404273987,
-0.09578682482242584,
0.3273922801017761,
0.3828919529914856,
-0.03852468729019165,
0.20774295926094055,
0.3001956343650818,
-0.12861007452011108,
0.30680859088897705,
-0.03723727911710739,
0.23106618225574493,
0.1367422491312027,
0.24194343388080597,
-0.22825442254543304,
0.17314770817756653,
-0.17044690251350403,
0.0976191833615303,
-0.2226874828338623,
0.04700275510549545,
-0.2161281555891037,
0.10419076681137085,
-0.22232873737812042,
-0.10442262887954712,
-0.34254148602485657,
-0.02639997936785221,
0.1569949835538864,
-0.042347557842731476,
-0.4058782756328583,
-0.29273614287376404,
0.12453761696815491,
0.1568751484155655,
-0.17985200881958008,
0.25248122215270996,
-0.00009773269266588613,
0.11774840950965881,
0.21953348815441132,
0.04065866768360138,
-0.3093300461769104,
0.06910407543182373,
-0.0324329175055027,
0.04727158695459366,
0.2140822559595108,
-0.04460127651691437,
-0.08784395456314087,
-0.13400597870349884,
0.09843042492866516,
-0.0952937975525856,
0.20986735820770264,
0.0933014303445816,
0.36819157004356384,
0.13508674502372742,
0.26767444610595703,
-0.17569655179977417,
-0.020275898277759552,
0.16762518882751465,
-0.22815187275409698,
0.22370707988739014,
0.17806407809257507,
-0.06908243894577026,
-0.25582650303840637,
0.357022225856781,
0.08018287271261215,
-0.018368825316429138,
0.1060018390417099,
-0.21477629244327545,
0.004933059215545654,
-0.03297518938779831,
0.3758821487426758,
0.048889871686697006,
0.7625736594200134,
-0.026033930480480194,
0.026103615760803223,
-0.012162894010543823,
0.05871442332863808,
0.0886550024151802,
0.35271546244621277,
-0.011983750388026237,
-0.1537424623966217,
0.2127501219511032,
-0.297099769115448,
-0.11246971786022186,
-0.24021553993225098,
0.25821012258529663,
-0.3999713659286499,
-0.10401687026023865,
-0.37046918272972107,
-0.00036440789699554443,
-0.006145227700471878,
-0.2251671701669693,
-0.0034990468993782997,
0.33666306734085083,
-0.17338626086711884,
-0.12253616750240326,
-0.24560405313968658,
-0.006520304828882217,
0.4204040765762329,
-0.23231279850006104,
0.18280723690986633,
0.07059183716773987,
0.14227916300296783,
0.2822487950325012,
-0.20918479561805725,
-0.026058606803417206,
0.23941795527935028,
0.08966539800167084,
0.24286627769470215,
0.16742509603500366,
0.5651730895042419,
0.06813511997461319,
-0.10010947287082672,
0.0427209734916687,
-0.11763438582420349,
-0.32524025440216064,
-0.2997165620326996,
-0.3169254958629608,
0.4021507501602173,
-0.49937576055526733,
-0.2028876543045044,
0.2432861328125,
-0.0373196117579937,
0.11531446129083633,
-0.03763336315751076,
0.48940521478652954,
0.10552944988012314,
0.10045693069696426,
0.22458188235759735,
-0.1837344914674759,
-0.1153087168931961,
-0.18670834600925446,
-0.09353074431419373,
-0.1300644725561142,
-0.19197896122932434,
-0.1258362978696823,
0.30839312076568604,
-0.2578057050704956,
0.2590382397174835,
-0.0811041072010994,
0.027418535202741623,
-0.13799931108951569,
-0.08480757474899292,
-0.11321140825748444,
-0.032777123153209686,
0.18989023566246033,
-0.005810506641864777,
0.07993105798959732,
0.08029790222644806,
0.017910055816173553,
0.25643110275268555,
0.010611463338136673,
0.10587179660797119,
-0.16928306221961975,
-0.3698980510234833,
0.38729074597358704,
-0.030677875503897667,
-0.1525658816099167,
-0.08258212357759476,
0.08931896090507507,
-0.11562979966402054,
-0.006775382906198502,
-0.013809092342853546,
0.1694728583097458,
-0.10157362371683121,
-0.06230513006448746,
0.08443615585565567,
0.48328471183776855,
-0.45768529176712036,
-0.043033257126808167,
0.08585900068283081,
-0.33621302247047424,
-0.14545074105262756,
0.03718149662017822,
-0.25384390354156494,
-0.06094706803560257,
-0.2841566205024719,
-0.18448740243911743,
0.42024311423301697,
-0.20979519188404083,
-0.6594178080558777,
0.23131206631660461,
-0.2850898504257202,
-0.18853411078453064,
-0.03577975183725357,
0.005762299057096243,
0.4630335867404938,
-0.02471756376326084,
-0.06179174780845642,
-0.0232013501226902,
0.24097038805484772,
0.12803451716899872,
-0.4046511948108673,
-0.08946716785430908,
-0.008407104760408401,
0.25576052069664,
0.2550242245197296,
-0.2111726701259613,
0.17697001993656158,
-0.07294288277626038,
0.21670448780059814,
0.06416536867618561,
0.13157249987125397,
0.17468589544296265,
0.2771802842617035,
0.1671595573425293,
0.14072677493095398,
-0.2864079773426056,
-0.2968316972255707,
-0.008866783231496811,
0.09984275698661804,
0.21246546506881714,
0.06200963258743286,
-0.025521401315927505,
-0.4011375904083252,
0.0705188438296318,
-0.3164031207561493,
-0.0887543112039566,
0.32670193910598755,
0.13273504376411438,
-0.26006370782852173,
0.16825026273727417,
0.0072643570601940155,
0.011513389647006989,
-0.2640396058559418,
0.08173351734876633,
0.002312067896127701,
0.1983550637960434,
-0.16741083562374115,
-0.056501418352127075,
0.007451258599758148,
-0.11879650503396988,
0.17648616433143616,
0.05104296654462814,
-0.12774494290351868,
0.2781279981136322,
-0.07805026322603226,
0.11744055151939392,
0.1974448263645172,
0.037458986043930054,
0.14467130601406097,
-0.4543076455593109,
0.19285665452480316,
-0.21249690651893616,
0.047361407428979874,
0.050854653120040894,
-0.34174901247024536,
0.0704689621925354,
0.05735296383500099,
0.08080743998289108,
-0.07075130194425583,
0.25863829255104065,
0.3232486844062805,
-0.06857964396476746,
0.05099283158779144,
-0.4203929603099823,
0.24577683210372925,
0.2854479253292084,
0.154497891664505,
0.020319458097219467,
-0.264295756816864,
0.20467732846736908,
0.09986354410648346,
0.15218357741832733,
-0.07484526187181473,
0.0654662698507309,
-0.2876319885253906,
-0.05917752534151077,
0.03829098865389824,
-0.03824852406978607,
0.0813225731253624,
0.24992020428180695,
0.07642751932144165,
0.15180166065692902,
0.08433765172958374,
-0.30346912145614624,
0.09628891944885254,
0.02187398076057434,
0.07317247986793518,
0.32027891278266907,
0.4778190553188324,
-0.07103195041418076,
-0.5160654783248901,
0.2147892713546753,
0.2574872672557831,
0.09810429811477661,
-0.2743578553199768,
-0.27143195271492004,
-0.22100602090358734,
-0.2742737829685211,
-0.05409786105155945,
-0.4050695300102234,
-0.23550507426261902,
-0.4160454273223877,
0.27919065952301025,
0.13044524192810059,
-0.18450303375720978,
0.26397019624710083,
-0.20727038383483887,
0.27531319856643677,
0.058102160692214966,
0.31892865896224976,
-0.02782038040459156,
-0.21038486063480377,
-0.004538252949714661,
0.26051709055900574,
0.3289017379283905,
0.17974726855754852,
0.4333869218826294,
-0.15171246230602264,
-0.09076980501413345,
-0.500155508518219,
-0.534413754940033,
0.2882428467273712,
-0.044241756200790405,
0.1835760772228241,
0.1551683396100998,
0.007002249360084534,
0.015400182455778122,
-0.046081479638814926,
0.07790958136320114,
0.0709126740694046,
-0.09107482433319092,
0.07492364943027496,
-0.1532495766878128,
0.02105075493454933,
-0.19909007847309113,
-0.3401210308074951,
0.0709243044257164,
-0.4543449282646179,
0.23487207293510437,
-0.06746354699134827,
-0.04152665287256241,
0.047741591930389404,
-0.10874135047197342,
0.1478363275527954,
0.08726462721824646,
0.09875410050153732,
-0.44717052578926086,
-0.23340901732444763,
0.21532133221626282,
-0.43286123871803284,
-0.37717658281326294,
0.42000484466552734,
0.4506593346595764,
0.06836368143558502,
0.08487635850906372,
-0.48744332790374756,
-0.18931154906749725,
-0.07664132863283157,
0.27798891067504883,
0.16905169188976288,
-0.32674673199653625,
0.3879695236682892,
0.021794766187667847,
-0.1367020159959793,
-0.17821070551872253,
-0.1698847860097885,
0.14533782005310059,
-0.24567270278930664,
0.03564171493053436,
-0.3647922873497009,
0.41124439239501953,
0.18043731153011322,
0.3192123472690582,
-0.03651546686887741,
0.03643946722149849,
0.13326752185821533,
-0.14568088948726654,
0.33951038122177124,
-0.16041579842567444,
-0.03322385996580124,
0.25074896216392517,
-0.11489468812942505,
0.07134919613599777,
0.10548242926597595,
0.11250773072242737,
-0.08327440172433853,
-0.21114055812358856,
0.03978121653199196,
-0.4274422228336334,
-0.3469342291355133,
-0.2195110321044922,
-0.18728721141815186,
0.20752131938934326,
0.15118680894374847,
0.32401448488235474,
-0.09927383065223694,
-0.12163946032524109,
0.061805177479982376,
0.12103187292814255,
0.15688908100128174,
-0.39622676372528076,
-0.18801552057266235,
0.5277568697929382,
-0.3540491759777069,
0.2576406002044678,
-0.30964919924736023,
0.1117800921201706,
-0.19410859048366547,
-0.20023754239082336,
0.2881932556629181,
-0.1736651510000229,
0.6495667099952698,
0.16928096115589142,
0.19269786775112152,
0.10520277917385101,
-0.11562430113554001,
-0.11536449939012527,
0.0743604451417923,
0.0900394469499588,
-0.013418419286608696,
0.13069786131381989,
0.12090656906366348,
-0.08282788842916489,
-0.08799879252910614,
0.47842925786972046,
-0.24183601140975952,
-0.14399617910385132,
-0.08835377544164658,
-0.10019215941429138,
-0.13110922276973724,
-0.13745608925819397,
-0.13002407550811768,
-0.13634875416755676,
0.05549302697181702,
-0.09085618704557419,
-0.10287919640541077,
-0.1728232055902481,
-0.09600484371185303,
-0.08966004848480225,
0.2681718170642853,
0.169074147939682,
-0.08111494034528732,
0.36702319979667664,
0.4183746874332428,
0.31601762771606445,
0.5008144378662109,
0.3193710446357727,
0.02342342957854271,
-0.6446974873542786,
0.3562443256378174,
-0.2407505214214325,
0.04965538531541824,
0.20701700448989868,
0.02179594337940216,
-0.23204582929611206,
-0.12571856379508972,
0.11750814318656921,
-0.11502208560705185,
0.2480570524930954,
0.23699113726615906,
0.06006218492984772,
-0.19950959086418152,
-0.16461361944675446,
0.29247984290122986,
0.03116971254348755,
-0.025628499686717987,
0.10912087559700012,
0.2991292476654053,
-0.08647546172142029,
0.06556440889835358,
0.044077396392822266,
0.8275095224380493,
-0.0287298783659935,
-0.2169453501701355,
0.26566872000694275,
-0.3871472477912903,
0.02097243443131447,
-0.23362070322036743,
0.16560280323028564,
-0.26414892077445984,
-0.3818553388118744,
-0.008982574567198753,
0.0763581395149231,
-0.02207755297422409,
-0.10150980949401855,
-0.08110718429088593,
-0.1275201439857483,
-0.009470537304878235,
-0.11221426725387573,
-0.1600581854581833,
0.027515068650245667,
-0.057375870645046234,
-0.11408096551895142,
-0.27789583802223206,
0.30799081921577454,
0.060296766459941864,
0.106464684009552,
-0.10183817148208618,
0.03113713674247265,
0.21104052662849426,
-0.17860186100006104,
-0.3647598624229431,
0.12141198664903641,
-0.046064890921115875,
-0.037080664187669754,
0.04683375358581543,
-0.24258576333522797,
0.27854281663894653,
0.3367879092693329,
0.0438455194234848,
0.1578821986913681,
-0.2235051542520523,
0.31824517250061035,
-0.09804389625787735,
0.0007247411413118243,
0.08026172965765,
0.22691677510738373,
0.18330083787441254,
-0.16243940591812134,
-0.15925593674182892,
0.33690133690834045,
0.01852409541606903,
-0.11040106415748596,
-0.08041995018720627,
0.07513271272182465,
-0.05388057976961136,
-0.32098388671875,
0.24970905482769012,
-0.0839909166097641,
-0.01870138943195343,
-0.2961096465587616,
0.26227402687072754,
-0.05894087255001068,
0.0593356229364872,
-0.10075785964727402,
0.012123480439186096,
-0.1964777112007141,
0.025027725845575333,
0.4067481458187103,
-0.09069141745567322,
-0.27296653389930725,
0.361463725566864,
0.36032769083976746,
-0.32462042570114136,
-0.3228367567062378,
-0.0386267825961113,
-0.004640629515051842,
-0.3640995919704437,
0.11687938868999481,
0.23562683165073395,
0.1081773042678833,
0.205265611410141,
0.5729237198829651,
-0.163105309009552,
-0.11983711272478104,
-0.1410312056541443,
-0.13550114631652832,
-0.33886924386024475,
0.10675956308841705,
-0.2708473801612854,
0.13966284692287445,
-0.020019663497805595,
0.06584376841783524,
0.10710729658603668,
-0.03593771159648895,
-0.4644254446029663,
0.16964897513389587,
-0.2862603962421417,
0.004115687683224678,
0.028489865362644196,
-0.14236444234848022,
-0.018799638375639915,
0.031238827854394913,
0.24206358194351196,
0.2130262553691864,
-0.22806987166404724,
-0.3060055375099182,
0.030428119003772736,
0.06360013037919998,
0.09393301606178284,
-0.06122127175331116,
-0.07649171352386475,
0.03536528721451759,
-0.20486915111541748,
0.08501830697059631,
0.2968257665634155,
0.3136669993400574,
-0.1081051230430603,
0.009197189472615719,
-0.20144601166248322,
0.062331296503543854,
0.1197853833436966,
0.18144944310188293,
0.26307088136672974,
0.2624756395816803,
-0.06671290099620819,
0.032426077872514725,
-0.19532814621925354,
0.03395780920982361,
-0.15891782939434052,
0.2385813593864441,
0.15564435720443726,
0.10543834418058395,
0.39584699273109436,
-0.23478592932224274,
-0.0071575939655303955,
0.5133572220802307,
0.21479740738868713,
0.251782089471817,
-0.1633320450782776,
-0.005271388217806816,
0.16464683413505554,
0.3832031786441803,
-0.3412044942378998,
-0.015472617000341415,
0.08131128549575806,
-0.1801397204399109,
0.23251330852508545,
-0.19849762320518494,
-0.05484110489487648,
-0.22771425545215607,
0.19025984406471252,
0.3394841253757477,
0.16690488159656525,
-0.21312588453292847,
0.18706151843070984,
0.3565852642059326,
-0.12120120227336884,
-0.064944326877594,
0.3805767297744751,
0.07682952284812927,
0.03228089213371277,
0.3210099935531616,
-0.03816830366849899,
0.08509286493062973,
-0.26417240500450134,
0.23439861834049225,
0.1758071482181549,
-0.2504027485847473,
0.11142359673976898,
0.24815046787261963,
-0.210671067237854,
0.05959812551736832,
-0.041488319635391235,
0.16057196259498596,
0.04729127511382103,
0.0696464255452156,
-0.45374351739883423,
0.27291661500930786,
-0.19851559400558472,
0.18058174848556519,
-0.11639361083507538,
-0.27518630027770996,
-0.07430156320333481,
0.21861883997917175,
-0.1744188368320465,
0.006916023790836334,
0.18500691652297974,
-0.04471549391746521,
-0.2766956686973572,
-0.4416786730289459,
0.08933676779270172,
-0.016726866364479065,
0.2058981955051422,
-0.25220611691474915,
0.1865232139825821,
0.031223170459270477,
0.08517598360776901,
0.2104123830795288,
0.37686100602149963,
0.09934160113334656,
0.1971045583486557,
0.06692306697368622,
0.008420074358582497,
-0.07579995691776276,
-0.09914593398571014,
-0.17671863734722137,
0.19550104439258575,
0.13085795938968658,
0.2875111401081085,
0.24667353928089142,
0.2629182040691376,
-0.2687184810638428,
0.1436530351638794,
-0.023365724831819534,
0.4514394700527191,
-0.21280495822429657,
-0.4644509255886078,
-0.14136160910129547,
-0.1967032253742218,
-0.16283293068408966,
-0.20344063639640808,
-0.24316108226776123,
-0.10040649771690369,
-0.07345834374427795,
0.07822097837924957,
0.15541866421699524,
-0.19906938076019287,
0.17116020619869232,
0.11451295018196106,
0.31293025612831116,
0.3041808605194092,
0.01707773655653,
0.10012774169445038,
-0.549954354763031,
-0.4152795970439911,
0.34765705466270447,
0.27301350235939026,
-0.15072563290596008,
-0.05976668745279312,
-0.02257484197616577,
0.2694058120250702,
0.036264654248952866,
0.09887196123600006,
0.07833445817232132,
-0.00898657739162445,
0.18486717343330383,
-0.3335520923137665,
0.11321218311786652,
0.19905796647071838,
-0.14030566811561584,
-0.015345657244324684,
-0.15288174152374268,
0.20400425791740417,
0.22298067808151245,
0.16253328323364258,
-0.0771840363740921,
0.21886169910430908,
-0.3686581552028656,
-0.11021573841571808,
0.3870183527469635,
0.07581644505262375,
0.37210631370544434,
-0.07335320860147476,
-0.12067747116088867,
-0.4021786153316498,
-0.47793522477149963,
-0.06660941243171692,
0.017388835549354553,
0.2366887331008911,
0.10917043685913086,
-0.007843022234737873,
0.06685824692249298,
0.009182503446936607,
0.07166122645139694,
-0.08591020107269287,
0.1641107052564621,
-0.2965250015258789,
-0.14970692992210388,
0.03553386777639389,
-0.09889879077672958,
0.15058425068855286,
0.13429059088230133,
0.11215813457965851,
-0.22632579505443573,
-0.21790143847465515,
-0.26169535517692566,
0.20344403386116028,
-0.06498967111110687,
-0.09798328578472137,
-0.2760489284992218,
0.12394996732473373,
0.09869706630706787,
-0.22889721393585205,
-0.5883466601371765,
0.10330382734537125,
0.3374790549278259,
0.12425286322832108,
0.08329226076602936,
0.20899078249931335,
0.0029626740142703056,
-0.046328894793987274,
-0.2226872593164444,
0.4101959764957428,
0.20807218551635742,
0.002188960090279579,
-0.005262747406959534,
-0.16939996182918549
] |
https://github.com/huggingface/datasets/issues/4407 | Dataset Viewer issue for conll2012_ontonotesv5 | Fixed, thanks for the patience. The issue was the amount of RAM allowed to extract the first rows of the dataset was not sufficient. | ### Link
https://huggingface.co/datasets/conll2012_ontonotesv5
### Description
Dataset viewer outage.
### Owner
No | 24 | Dataset Viewer issue for conll2012_ontonotesv5
### Link
https://huggingface.co/datasets/conll2012_ontonotesv5
### Description
Dataset viewer outage.
### Owner
No
Fixed, thanks for the patience. The issue was the amount of RAM allowed to extract the first rows of the dataset was not sufficient. | [
-0.4142865240573883,
-0.02956252545118332,
-0.12167942523956299,
0.6412820219993591,
0.2736390233039856,
0.04903022199869156,
0.037245213985443115,
0.34508487582206726,
-0.11032362282276154,
0.3875678777694702,
-0.017788147553801537,
0.12961731851100922,
0.12334335595369339,
0.1462036669254303,
-0.23742210865020752,
0.006691601127386093,
-0.24041754007339478,
0.10422458499670029,
-0.31042394042015076,
-0.03688750043511391,
-0.26565879583358765,
0.16041845083236694,
-0.3159298598766327,
-0.15316461026668549,
-0.3005642592906952,
0.004011237993836403,
0.11636444926261902,
0.05877946317195892,
-0.48259544372558594,
-0.31064677238464355,
0.07129471004009247,
0.10513049364089966,
0.033470723778009415,
0.1639111191034317,
-0.00010123819811269641,
-0.060364022850990295,
0.13254082202911377,
-0.007194016128778458,
-0.1927303522825241,
0.17514857649803162,
0.028811849653720856,
0.044716186821460724,
0.2069893479347229,
-0.2601955831050873,
-0.045926906168460846,
-0.12450804561376572,
0.0879555195569992,
-0.18009302020072937,
0.23891471326351166,
0.20564480125904083,
0.35081613063812256,
0.09330755472183228,
0.2158651500940323,
-0.25091812014579773,
0.17794513702392578,
0.008108198642730713,
-0.15099845826625824,
0.3815726935863495,
0.15821467339992523,
-0.012883741408586502,
-0.1762990653514862,
0.3993603587150574,
0.09550928324460983,
0.18085592985153198,
0.14051169157028198,
-0.10899373143911362,
-0.03817230463027954,
-0.1455978900194168,
0.42464709281921387,
0.11635740101337433,
0.678856611251831,
-0.005063619464635849,
0.07348159700632095,
0.0003949478268623352,
-0.004727731924504042,
0.0632663369178772,
0.4298802316188812,
-0.04244250804185867,
-0.291403591632843,
0.16217868030071259,
-0.18780654668807983,
-0.1510930210351944,
-0.20853133499622345,
0.24108083546161652,
-0.374382346868515,
-0.15605026483535767,
-0.2545715272426605,
-0.03743879497051239,
0.1944088637828827,
-0.07114587724208832,
0.18489882349967957,
0.2646678686141968,
-0.2026975303888321,
0.06130301207304001,
-0.2716512382030487,
0.04480677843093872,
0.40987715125083923,
-0.11905231326818466,
0.13090157508850098,
-0.06009878218173981,
0.0690125972032547,
0.1357138454914093,
-0.0185379758477211,
-0.12003134936094284,
0.1760796159505844,
0.034115586429834366,
0.04248819500207901,
0.2855777442455292,
0.33594298362731934,
0.028823627158999443,
-0.3145776391029358,
-0.07931232452392578,
-0.13393795490264893,
-0.25849324464797974,
-0.1640201359987259,
-0.2976524829864502,
0.35169196128845215,
-0.5228034853935242,
-0.13279949128627777,
0.3227347731590271,
-0.17608541250228882,
0.01637941598892212,
-0.15521763265132904,
0.5210554599761963,
0.1912408471107483,
-0.04720567911863327,
0.25511831045150757,
-0.1458059549331665,
-0.09767474234104156,
-0.26291424036026,
-0.16878049075603485,
-0.014465287327766418,
-0.1893082559108734,
-0.18022146821022034,
0.3542538583278656,
-0.3186675012111664,
0.21192538738250732,
-0.180644229054451,
0.06409213691949844,
-0.23087336122989655,
0.02496223710477352,
-0.2219594120979309,
0.11833585798740387,
0.16707170009613037,
0.011603143066167831,
0.08336219191551208,
0.08607208728790283,
0.11564375460147858,
0.23311245441436768,
0.11468194425106049,
0.25600728392601013,
-0.3014790117740631,
-0.25512459874153137,
0.3593754470348358,
-0.01978319138288498,
0.07949890941381454,
-0.09769324213266373,
0.15390823781490326,
-0.07987590879201889,
0.08624640107154846,
-0.03566349297761917,
0.07554025948047638,
-0.16336208581924438,
-0.06658247858285904,
0.13196460902690887,
0.49753445386886597,
-0.47257199883461,
0.08492118120193481,
0.08079103380441666,
-0.33155888319015503,
-0.014534726738929749,
0.08659990131855011,
-0.20265012979507446,
0.08291882276535034,
-0.3402710258960724,
-0.005459904670715332,
0.3555629849433899,
-0.12693417072296143,
-0.7326003313064575,
0.2775886356830597,
-0.13729047775268555,
-0.12678292393684387,
0.04557140916585922,
-0.08074751496315002,
0.6042962074279785,
0.11863115429878235,
-0.0028983578085899353,
0.03742113336920738,
0.11596216261386871,
-0.00009101070463657379,
-0.4909954071044922,
-0.0695614293217659,
0.006549660116434097,
0.27026674151420593,
0.4203309714794159,
-0.0814235731959343,
0.1227479875087738,
0.026960257440805435,
0.35361117124557495,
0.008389778435230255,
0.11976920068264008,
0.26502692699432373,
0.21284879744052887,
-0.00856492668390274,
0.15621165931224823,
-0.44286048412323,
-0.20839405059814453,
0.11310284584760666,
0.03590885549783707,
0.1794944554567337,
0.059087518602609634,
0.012608550488948822,
-0.28376543521881104,
0.04787590354681015,
-0.1472318470478058,
-0.021450430154800415,
0.29926854372024536,
0.02036501094698906,
-0.16589148342609406,
-0.08274275064468384,
0.03554319962859154,
0.126987487077713,
-0.3510926365852356,
0.12834104895591736,
-0.031132280826568604,
0.23364566266536713,
-0.23202411830425262,
-0.1270114630460739,
0.04987988620996475,
-0.2174912691116333,
0.008975192904472351,
-0.05594806745648384,
-0.13977399468421936,
0.1850341260433197,
0.0859573557972908,
-0.08882148563861847,
0.07889270782470703,
-0.09625251591205597,
0.051595792174339294,
-0.4529430568218231,
0.2639179825782776,
-0.10718011856079102,
0.010295744054019451,
0.08433087915182114,
-0.2817428708076477,
0.010946810245513916,
0.02380824275314808,
0.07356801629066467,
-0.02542549930512905,
0.12269576638936996,
0.23982834815979004,
0.02389087900519371,
0.1478332132101059,
-0.5041428208351135,
0.4153732657432556,
0.4197145700454712,
0.08315971493721008,
-0.0054062847048044205,
-0.38603317737579346,
0.06000407040119171,
0.06092621758580208,
0.08921074867248535,
-0.10899221152067184,
0.054305996745824814,
-0.23937579989433289,
-0.04596038907766342,
0.0859692245721817,
0.004602108150720596,
0.13054437935352325,
0.27732086181640625,
0.14981116354465485,
0.23435619473457336,
0.033833619207143784,
-0.20278969407081604,
0.14240849018096924,
0.010720588266849518,
0.029962407425045967,
0.17254342138767242,
0.27912625670433044,
0.039737749844789505,
-0.5495114326477051,
0.12613722681999207,
0.27446436882019043,
0.29214978218078613,
-0.273007333278656,
-0.35126397013664246,
-0.09887024760246277,
-0.3310898244380951,
0.05114008113741875,
-0.275840699672699,
-0.08184562623500824,
-0.36406123638153076,
0.15581369400024414,
0.11773869395256042,
-0.11279691755771637,
0.14453738927841187,
-0.23352551460266113,
0.1822674572467804,
0.08906636387109756,
0.39417800307273865,
0.03189452737569809,
-0.17733265459537506,
0.02946605160832405,
0.23981237411499023,
0.287249356508255,
0.30781474709510803,
0.3895204961299896,
-0.14143815636634827,
-0.13206520676612854,
-0.3086952269077301,
-0.4017321467399597,
0.29248204827308655,
-0.018194682896137238,
0.26509934663772583,
0.10973574966192245,
0.1948060542345047,
-0.10131138563156128,
-0.0015508141368627548,
0.044044509530067444,
0.08613669872283936,
-0.19042372703552246,
0.04068218544125557,
-0.050946567207574844,
-0.0798046663403511,
-0.1623774915933609,
-0.37548279762268066,
0.052428849041461945,
-0.4681737720966339,
0.26753467321395874,
0.08923220634460449,
0.047234706580638885,
-0.006026950664818287,
-0.05098314583301544,
0.13699793815612793,
0.06413650512695312,
0.22599808871746063,
-0.44152042269706726,
-0.18477322161197662,
0.2721191346645355,
-0.22454489767551422,
-0.397341787815094,
0.30681005120277405,
0.32382071018218994,
-0.0682474672794342,
0.264695942401886,
-0.518323540687561,
-0.061340801417827606,
-0.182549387216568,
0.2372252345085144,
0.008400313556194305,
-0.29535892605781555,
0.43562543392181396,
0.03807175159454346,
-0.07621400058269501,
-0.08662934601306915,
-0.04772216081619263,
0.19991742074489594,
-0.16416150331497192,
0.0008170381188392639,
-0.3298714756965637,
0.5606611371040344,
0.16071970760822296,
0.2602952718734741,
-0.04209526628255844,
0.2645856440067291,
0.11847060173749924,
-0.12386400252580643,
0.23742029070854187,
-0.1457226276397705,
-0.028883490711450577,
0.34022489190101624,
-0.20298513770103455,
-0.15098178386688232,
0.14276471734046936,
-0.08457950502634048,
-0.0799964889883995,
-0.20532377064228058,
0.15654964745044708,
-0.42994949221611023,
-0.32090625166893005,
-0.15486453473567963,
-0.30745530128479004,
0.2020968198776245,
0.25240421295166016,
0.3913962244987488,
-0.069426991045475,
-0.010412221774458885,
-0.031205620616674423,
-0.04946450889110565,
0.10303517431020737,
-0.33950114250183105,
-0.2575107514858246,
0.4094465672969818,
-0.538144588470459,
0.2604265809059143,
-0.23766767978668213,
0.073516346514225,
-0.10119505226612091,
-0.23140305280685425,
0.2889714241027832,
-0.12208307534456253,
0.7237082123756409,
0.16351500153541565,
0.2011406570672989,
0.19771181046962738,
-0.1525517851114273,
-0.16802223026752472,
0.027716893702745438,
-0.21611835062503815,
-0.041982900351285934,
0.09435296058654785,
0.12815138697624207,
-0.1792028844356537,
-0.08075449615716934,
0.5958132743835449,
-0.05698234215378761,
-0.17713041603565216,
-0.200575590133667,
-0.06736893206834793,
-0.20303386449813843,
-0.13927136361598969,
-0.07298798114061356,
-0.08883099257946014,
0.2030370533466339,
-0.06053251028060913,
-0.04760712757706642,
-0.17863208055496216,
-0.10394347459077835,
0.07839746028184891,
0.25868070125579834,
0.31696730852127075,
-0.17389677464962006,
0.5001296401023865,
0.35677334666252136,
0.25571122765541077,
0.48995867371559143,
0.26974356174468994,
-0.014440622180700302,
-0.5216046571731567,
0.3402308523654938,
-0.34997430443763733,
-0.009886637330055237,
0.274912565946579,
-0.019796602427959442,
-0.15107640624046326,
-0.078277587890625,
0.142600417137146,
-0.07153035700321198,
0.2880187928676605,
0.28740382194519043,
-0.022533010691404343,
-0.27740347385406494,
-0.2026541829109192,
0.26290056109428406,
-0.047438789159059525,
-0.08047711104154587,
0.13734422624111176,
0.1683526635169983,
-0.2168651819229126,
0.1278744339942932,
0.028215903788805008,
0.9269506335258484,
-0.12014785408973694,
-0.18816319108009338,
0.2790067195892334,
-0.27165865898132324,
0.02727440930902958,
-0.11849576234817505,
0.12506888806819916,
-0.22101879119873047,
-0.6195576786994934,
0.045540712773799896,
0.06607642769813538,
-0.04228554666042328,
0.025743268430233,
-0.10539168119430542,
-0.12184210866689682,
0.0097154900431633,
0.0060272216796875,
-0.07889046519994736,
0.08072377741336823,
0.06707239151000977,
0.005189882591366768,
-0.2557171583175659,
0.23244673013687134,
0.02550005540251732,
-0.006106283515691757,
-0.17183327674865723,
0.08959499001502991,
0.2099301517009735,
-0.23845812678337097,
-0.40196722745895386,
0.07795529067516327,
-0.23128877580165863,
-0.05214252322912216,
0.05697677284479141,
-0.27318650484085083,
0.1857709437608719,
0.3486466705799103,
-0.0068483129143714905,
0.19240109622478485,
-0.19245584309101105,
0.2048904448747635,
-0.05497611314058304,
-0.20683653652668,
0.15785029530525208,
0.22791585326194763,
0.21825957298278809,
-0.14717619121074677,
-0.1686721295118332,
0.37979474663734436,
-0.07554038614034653,
-0.15186116099357605,
-0.013790011405944824,
0.15094801783561707,
-0.07050715386867523,
-0.36274591088294983,
-0.07415446639060974,
-0.09590461850166321,
-0.13150127232074738,
-0.2860102653503418,
0.2497945874929428,
-0.019699744880199432,
-0.11319059133529663,
0.06630343198776245,
0.05701371282339096,
-0.24454306066036224,
-0.05645466223359108,
0.4338756203651428,
0.14686131477355957,
-0.24068383872509003,
0.3395593762397766,
0.4319424629211426,
-0.2815130352973938,
-0.29443618655204773,
-0.07333756983280182,
0.09530468285083771,
-0.26800602674484253,
0.13974739611148834,
0.0775403156876564,
0.0879969447851181,
0.18902982771396637,
0.4910586178302765,
0.05649064481258392,
-0.1459820568561554,
-0.16676776111125946,
-0.16766463220119476,
-0.4443608224391937,
0.20223304629325867,
-0.22790725529193878,
0.2314578741788864,
0.020622748881578445,
0.13329648971557617,
-0.04411276429891586,
0.08417871594429016,
-0.4468875229358673,
0.27253833413124084,
-0.2084704041481018,
0.02026306837797165,
0.021026570349931717,
-0.08749566227197647,
0.07894551008939743,
0.009019188582897186,
0.24888920783996582,
0.22664164006710052,
-0.21472963690757751,
-0.3370082974433899,
0.09025570750236511,
0.048658981919288635,
0.007567763328552246,
-0.1406347155570984,
0.01547738816589117,
-0.1505739688873291,
-0.24367186427116394,
-0.017784785479307175,
0.22689343988895416,
0.29628559947013855,
-0.08127424120903015,
-0.044870056211948395,
0.0759049579501152,
0.05346093326807022,
-0.04031771793961525,
0.22801573574543,
0.11012032628059387,
0.34872114658355713,
-0.04775431007146835,
0.18446987867355347,
-0.031054630875587463,
0.008918620645999908,
-0.149630606174469,
0.23344159126281738,
0.050689175724983215,
0.03443582355976105,
0.31142932176589966,
-0.2264755517244339,
-0.025785010308027267,
0.4019830524921417,
0.3507412374019623,
0.43902310729026794,
-0.07669265568256378,
0.0018168669193983078,
-0.033735956996679306,
0.40572044253349304,
-0.3433971703052521,
-0.0293598435819149,
0.039247266948223114,
-0.16293425858020782,
0.18957194685935974,
-0.047934047877788544,
-0.10530272871255875,
-0.14275695383548737,
0.1284453272819519,
0.25716686248779297,
0.14743474125862122,
-0.13926050066947937,
0.09974472224712372,
0.3536796271800995,
0.056506071239709854,
-0.08975185453891754,
0.37983664870262146,
0.24742825329303741,
0.2312571257352829,
0.5107938051223755,
0.06840983778238297,
0.06396058201789856,
-0.2184080183506012,
0.2503037452697754,
0.00898028165102005,
-0.3728781044483185,
0.06756847351789474,
0.4512847661972046,
-0.33073070645332336,
0.06383586674928665,
-0.19591397047042847,
0.1655358225107193,
0.06931708753108978,
0.08654868602752686,
-0.5050821304321289,
0.019282447174191475,
-0.21567094326019287,
0.061819758266210556,
-0.0071723125874996185,
-0.23626089096069336,
-0.1060904935002327,
0.22298362851142883,
-0.1909722089767456,
-0.0689001977443695,
0.2433915138244629,
-0.08429433405399323,
-0.27775847911834717,
-0.2786766588687897,
0.15531516075134277,
-0.03743227571249008,
0.021396011114120483,
-0.4353840947151184,
0.21308229863643646,
-0.07223108410835266,
0.08659175038337708,
0.21190327405929565,
0.371059775352478,
0.15956908464431763,
0.15624329447746277,
-0.06767982244491577,
0.009459719993174076,
-0.053710583597421646,
-0.18025386333465576,
-0.26559674739837646,
0.12096881121397018,
0.30590179562568665,
0.34755805134773254,
0.3416663706302643,
0.24275383353233337,
-0.2940026819705963,
0.12692362070083618,
0.11376871913671494,
0.30507099628448486,
-0.24671238660812378,
-0.5430795550346375,
-0.14830541610717773,
-0.17304149270057678,
-0.0243711955845356,
-0.3017684519290924,
-0.2082454264163971,
0.00309189036488533,
-0.09198154509067535,
0.03244035318493843,
0.16610467433929443,
0.13680732250213623,
0.15537910163402557,
-0.05152907595038414,
0.30332091450691223,
0.3595961630344391,
0.08916027843952179,
-0.09809788316488266,
-0.6330729722976685,
-0.3834671080112457,
0.3580489754676819,
0.14594538509845734,
-0.1324145495891571,
0.01224120520055294,
0.19909974932670593,
0.23436713218688965,
-0.08881979435682297,
0.07464645802974701,
0.05626564472913742,
-0.11880771070718765,
0.28789371252059937,
-0.3844209313392639,
-0.027934711426496506,
0.2874647378921509,
-0.09525042027235031,
-0.10486115515232086,
-0.2750459313392639,
0.212995246052742,
0.04431312158703804,
0.13808861374855042,
-0.15748339891433716,
0.21096178889274597,
-0.22468577325344086,
-0.10390207171440125,
0.39521324634552,
0.08627279102802277,
0.4252096116542816,
0.04939882457256317,
-0.1402161717414856,
-0.3331276476383209,
-0.3929431438446045,
-0.03685116022825241,
0.03292394056916237,
0.3324829041957855,
0.2931545376777649,
-0.09110992401838303,
0.024570411071181297,
0.03718739375472069,
0.11871106177568436,
-0.13659308850765228,
0.13790631294250488,
-0.40355873107910156,
-0.05330818146467209,
0.05572952330112457,
-0.0024240417405962944,
0.1797257512807846,
0.1660458743572235,
0.08571922034025192,
-0.1707092672586441,
-0.3062925934791565,
-0.21896420419216156,
0.17787548899650574,
0.02031557634472847,
-0.09143120050430298,
-0.3821469843387604,
0.11687483638525009,
0.05193503573536873,
-0.20056849718093872,
-0.7030825018882751,
-0.029377609491348267,
0.3780120313167572,
-0.04939528554677963,
-0.14998990297317505,
0.28373247385025024,
0.0642646849155426,
-0.025510428473353386,
-0.18203768134117126,
0.39943793416023254,
0.16276413202285767,
-0.10355465859174728,
-0.1999494433403015,
-0.1796540766954422
] |
https://github.com/huggingface/datasets/issues/4405 | [TypeError: Couldn't cast array of type] Cannot process dataset in v2.2.2 | And if the problem is that the way I am to construct the {Entity Type: list of spans} makes entity types without any spans hard to handle, is there a better way to meet the demand? Although I have verified that to make entity types without any spans to behave like `entity_chunk[label] = [[""]]` can perform normally, I still wonder if there is a more elegant way? | ## Describe the bug
I am trying to process the [conll2012_ontonotesv5](https://huggingface.co/datasets/conll2012_ontonotesv5) dataset in `datasets` v2.2.2 and am running into a type error when casting the features.
## Steps to reproduce the bug
```python
import os
from typing import (
List,
Dict,
)
from collections import (
defaultdict,
)
from dataclasses import (
dataclass,
)
from datasets import (
load_dataset,
)
@dataclass
class ConllConverter:
path: str
name: str
cache_dir: str
def __post_init__(
self,
):
self.dataset = load_dataset(
path=self.path,
name=self.name,
cache_dir=self.cache_dir,
)
def convert(
self,
):
class_label = self.dataset["train"].features["sentences"][0]["named_entities"].feature
# label_set = list(set([
# label.split("-")[1] if label != "O" else label for label in class_label.names
# ]))
def prepare_chunk(token, entity):
assert len(token) == len(entity)
# Sequence length
length = len(token)
# Variable used
entity_chunk = defaultdict(list)
idx = flag = 0
# While loop
while idx < length:
if entity[idx] == "O":
flag += 1
idx += 1
else:
iob_tp, lab_tp = entity[idx].split("-")
assert iob_tp == "B"
idx += 1
while idx < length and entity[idx].startswith("I-"):
idx += 1
entity_chunk[lab_tp].append(token[flag: idx])
flag = idx
entity_chunk = dict(entity_chunk)
# for label in label_set:
# if label != "O" and label not in entity_chunk.keys():
# entity_chunk[label] = None
return entity_chunk
def prepare_features(
batch: Dict[str, List],
) -> Dict[str, List]:
sentence = [
sent for doc_sent in batch["sentences"] for sent in doc_sent
]
feature = {
"sentence": list(),
}
for sent in sentence:
token = sent["words"]
entity = class_label.int2str(sent["named_entities"])
entity_chunk = prepare_chunk(token, entity)
sent_feat = {
"token": token,
"entity": entity,
"entity_chunk": entity_chunk,
}
feature["sentence"].append(sent_feat)
return feature
column_names = self.dataset.column_names["train"]
dataset = self.dataset.map(
function=prepare_features,
with_indices=False,
batched=True,
batch_size=3,
remove_columns=column_names,
num_proc=1,
)
dataset.save_to_disk(
dataset_dict_path=os.path.join("data", self.path, self.name)
)
if __name__ == "__main__":
converter = ConllConverter(
path="conll2012_ontonotesv5",
name="english_v4",
cache_dir="cache",
)
converter.convert()
```
## Expected results
I want to use the dataset to perform NER task and to change the label list into a {Entity Type: list of spans} format.
## Actual results
<details>
<summary>Traceback</summary>
```python
Traceback (most recent call last): | 0/81 [00:00<?, ?ba/s]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 532, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 499, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 2751, in _map_single
writer.write_batch(batch)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1793, in cast_array_to_feature
arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1793, in <listcomp>
arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1844, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
TypeError: Couldn't cast array of type
struct<CARDINAL: list<item: list<item: string>>, DATE: list<item: list<item: string>>, EVENT: list<item: list<item: string>>, FAC: list<item: list<item: string>>, GPE: list<item: list<item: string>>, LANGUAGE: list<item: list<item: string>>, LAW: list<item: list<item: string>>, LOC: list<item: list<item: string>>, MONEY: list<item: list<item: string>>, NORP: list<item: list<item: string>>, ORDINAL: list<item: list<item: string>>, ORG: list<item: list<item: string>>, PERCENT: list<item: list<item: string>>, PERSON: list<item: list<item: string>>, QUANTITY: list<item: list<item: string>>, TIME: list<item: list<item: string>>, WORK_OF_ART: list<item: list<item: string>>>
to
{'CARDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'DATE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'EVENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'FAC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'GPE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LAW': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LOC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'MONEY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'NORP': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORG': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERCENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERSON': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PRODUCT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'QUANTITY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'TIME': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'WORK_OF_ART': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None)}
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/jiangwangyi/workspace/work/Entity/dataconverter.py", line 110, in <module>
converter.convert()
File "/home2/jiangwangyi/workspace/work/Entity/dataconverter.py", line 91, in convert
dataset = self.dataset.map(
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 2459, in map
transformed_shards[index] = async_result.get()
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/multiprocess/pool.py", line 771, in get
raise self._value
TypeError: Couldn't cast array of type
struct<CARDINAL: list<item: list<item: string>>, DATE: list<item: list<item: string>>, EVENT: list<item: list<item: string>>, FAC: list<item: list<item: string>>, GPE: list<item: list<item: string>>, LANGUAGE: list<item: list<item: string>>, LAW: list<item: list<item: string>>, LOC: list<item: list<item: string>>, MONEY: list<item: list<item: string>>, NORP: list<item: list<item: string>>, ORDINAL: list<item: list<item: string>>, ORG: list<item: list<item: string>>, PERCENT: list<item: list<item: string>>, PERSON: list<item: list<item: string>>, QUANTITY: list<item: list<item: string>>, TIME: list<item: list<item: string>>, WORK_OF_ART: list<item: list<item: string>>>
to
{'CARDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'DATE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'EVENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'FAC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'GPE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LAW': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LOC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'MONEY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'NORP': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORG': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERCENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERSON': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PRODUCT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'QUANTITY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'TIME': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'WORK_OF_ART': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None)}
```
</details>
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Ubuntu 18.04
- Python version: 3.9.7
- PyArrow version: 7.0.0
| 67 | [TypeError: Couldn't cast array of type] Cannot process dataset in v2.2.2
## Describe the bug
I am trying to process the [conll2012_ontonotesv5](https://huggingface.co/datasets/conll2012_ontonotesv5) dataset in `datasets` v2.2.2 and am running into a type error when casting the features.
## Steps to reproduce the bug
```python
import os
from typing import (
List,
Dict,
)
from collections import (
defaultdict,
)
from dataclasses import (
dataclass,
)
from datasets import (
load_dataset,
)
@dataclass
class ConllConverter:
path: str
name: str
cache_dir: str
def __post_init__(
self,
):
self.dataset = load_dataset(
path=self.path,
name=self.name,
cache_dir=self.cache_dir,
)
def convert(
self,
):
class_label = self.dataset["train"].features["sentences"][0]["named_entities"].feature
# label_set = list(set([
# label.split("-")[1] if label != "O" else label for label in class_label.names
# ]))
def prepare_chunk(token, entity):
assert len(token) == len(entity)
# Sequence length
length = len(token)
# Variable used
entity_chunk = defaultdict(list)
idx = flag = 0
# While loop
while idx < length:
if entity[idx] == "O":
flag += 1
idx += 1
else:
iob_tp, lab_tp = entity[idx].split("-")
assert iob_tp == "B"
idx += 1
while idx < length and entity[idx].startswith("I-"):
idx += 1
entity_chunk[lab_tp].append(token[flag: idx])
flag = idx
entity_chunk = dict(entity_chunk)
# for label in label_set:
# if label != "O" and label not in entity_chunk.keys():
# entity_chunk[label] = None
return entity_chunk
def prepare_features(
batch: Dict[str, List],
) -> Dict[str, List]:
sentence = [
sent for doc_sent in batch["sentences"] for sent in doc_sent
]
feature = {
"sentence": list(),
}
for sent in sentence:
token = sent["words"]
entity = class_label.int2str(sent["named_entities"])
entity_chunk = prepare_chunk(token, entity)
sent_feat = {
"token": token,
"entity": entity,
"entity_chunk": entity_chunk,
}
feature["sentence"].append(sent_feat)
return feature
column_names = self.dataset.column_names["train"]
dataset = self.dataset.map(
function=prepare_features,
with_indices=False,
batched=True,
batch_size=3,
remove_columns=column_names,
num_proc=1,
)
dataset.save_to_disk(
dataset_dict_path=os.path.join("data", self.path, self.name)
)
if __name__ == "__main__":
converter = ConllConverter(
path="conll2012_ontonotesv5",
name="english_v4",
cache_dir="cache",
)
converter.convert()
```
## Expected results
I want to use the dataset to perform NER task and to change the label list into a {Entity Type: list of spans} format.
## Actual results
<details>
<summary>Traceback</summary>
```python
Traceback (most recent call last): | 0/81 [00:00<?, ?ba/s]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/multiprocess/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 532, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 499, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 2751, in _map_single
writer.write_batch(batch)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1793, in cast_array_to_feature
arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1793, in <listcomp>
arrays = [_c(array.field(name), subfeature) for name, subfeature in feature.items()]
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/table.py", line 1844, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
TypeError: Couldn't cast array of type
struct<CARDINAL: list<item: list<item: string>>, DATE: list<item: list<item: string>>, EVENT: list<item: list<item: string>>, FAC: list<item: list<item: string>>, GPE: list<item: list<item: string>>, LANGUAGE: list<item: list<item: string>>, LAW: list<item: list<item: string>>, LOC: list<item: list<item: string>>, MONEY: list<item: list<item: string>>, NORP: list<item: list<item: string>>, ORDINAL: list<item: list<item: string>>, ORG: list<item: list<item: string>>, PERCENT: list<item: list<item: string>>, PERSON: list<item: list<item: string>>, QUANTITY: list<item: list<item: string>>, TIME: list<item: list<item: string>>, WORK_OF_ART: list<item: list<item: string>>>
to
{'CARDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'DATE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'EVENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'FAC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'GPE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LAW': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LOC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'MONEY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'NORP': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORG': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERCENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERSON': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PRODUCT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'QUANTITY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'TIME': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'WORK_OF_ART': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None)}
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/jiangwangyi/workspace/work/Entity/dataconverter.py", line 110, in <module>
converter.convert()
File "/home2/jiangwangyi/workspace/work/Entity/dataconverter.py", line 91, in convert
dataset = self.dataset.map(
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 2459, in map
transformed_shards[index] = async_result.get()
File "/home2/jiangwangyi/miniconda3/lib/python3.9/site-packages/multiprocess/pool.py", line 771, in get
raise self._value
TypeError: Couldn't cast array of type
struct<CARDINAL: list<item: list<item: string>>, DATE: list<item: list<item: string>>, EVENT: list<item: list<item: string>>, FAC: list<item: list<item: string>>, GPE: list<item: list<item: string>>, LANGUAGE: list<item: list<item: string>>, LAW: list<item: list<item: string>>, LOC: list<item: list<item: string>>, MONEY: list<item: list<item: string>>, NORP: list<item: list<item: string>>, ORDINAL: list<item: list<item: string>>, ORG: list<item: list<item: string>>, PERCENT: list<item: list<item: string>>, PERSON: list<item: list<item: string>>, QUANTITY: list<item: list<item: string>>, TIME: list<item: list<item: string>>, WORK_OF_ART: list<item: list<item: string>>>
to
{'CARDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'DATE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'EVENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'FAC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'GPE': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LAW': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'LOC': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'MONEY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'NORP': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORDINAL': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'ORG': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERCENT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PERSON': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'PRODUCT': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'QUANTITY': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'TIME': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None), 'WORK_OF_ART': Sequence(feature=Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), length=-1, id=None)}
```
</details>
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Ubuntu 18.04
- Python version: 3.9.7
- PyArrow version: 7.0.0
And if the problem is that the way I am to construct the {Entity Type: list of spans} makes entity types without any spans hard to handle, is there a better way to meet the demand? Although I have verified that to make entity types without any spans to behave like `entity_chunk[label] = [[""]]` can perform normally, I still wonder if there is a more elegant way? | [
-0.11359870433807373,
0.011211171746253967,
-0.07485056668519974,
0.316217839717865,
0.5376300811767578,
0.2893628180027008,
0.2985488176345825,
0.41987329721450806,
-0.03577933460474014,
-0.12284478545188904,
-0.02414930984377861,
0.3688288629055023,
-0.35382115840911865,
0.27202388644218445,
-0.21005317568778992,
-0.31952595710754395,
0.12641482055187225,
-0.08547563850879669,
-0.30002209544181824,
-0.0036377795040607452,
-0.35012802481651306,
0.1295851469039917,
-0.5251383185386658,
0.03027385100722313,
-0.3081074357032776,
-0.1717657446861267,
0.25886771082878113,
0.029134858399629593,
-0.2456510215997696,
-0.3857424855232239,
0.31018880009651184,
-0.034896980971097946,
0.22762076556682587,
0.19524617493152618,
-0.00011758531036321074,
0.1859477013349533,
0.18872098624706268,
-0.024559900164604187,
-0.1255679726600647,
0.1391572207212448,
0.03456126153469086,
0.09350964426994324,
0.08883918821811676,
-0.25464263558387756,
0.16094502806663513,
-0.22583343088626862,
-0.17450712621212006,
-0.20656397938728333,
0.06930144131183624,
0.10166981816291809,
0.1647835522890091,
0.12593461573123932,
0.4252822995185852,
-0.015701353549957275,
0.047080449759960175,
0.08040288090705872,
-0.26675039529800415,
-0.14683473110198975,
-0.039463259279727936,
0.3862910568714142,
0.2558920383453369,
0.14981459081172943,
-0.4222540855407715,
-0.23862342536449432,
0.27908673882484436,
-0.31481704115867615,
-0.07551643997430801,
-0.3648766279220581,
-0.15299227833747864,
0.0011602900922298431,
0.576993465423584,
-0.19615820050239563,
-0.2990257441997528,
-0.11462769657373428,
-0.10533111542463303,
0.1415228396654129,
0.24070867896080017,
-0.10264667868614197,
-0.0461515337228775,
0.2725251317024231,
-0.3076188564300537,
0.10895313322544098,
-0.14388899505138397,
0.02103865146636963,
-0.06721951067447662,
-0.19268003106117249,
-0.21379949152469635,
0.14872145652770996,
-0.14513307809829712,
-0.26770901679992676,
0.11492998152971268,
0.03552078828215599,
0.015320735052227974,
0.17363151907920837,
-0.21690784394741058,
-0.060015033930540085,
0.14725767076015472,
-0.39721250534057617,
0.09522368758916855,
-0.029315687716007233,
-0.16143816709518433,
0.11259900778532028,
-0.284868985414505,
0.11749154329299927,
0.3565080761909485,
0.13784725964069366,
0.09460070729255676,
0.1247062161564827,
0.13333460688591003,
-0.15441320836544037,
-0.2559627294540405,
0.07685360312461853,
-0.3017221987247467,
-0.1767004430294037,
0.11173507571220398,
0.21147596836090088,
0.6046816110610962,
-0.44836127758026123,
-0.30048173666000366,
0.19826103746891022,
-0.23505640029907227,
0.2096956968307495,
0.35351765155792236,
0.2507160007953644,
0.16237059235572815,
0.5881476998329163,
0.47945892810821533,
0.08041180670261383,
0.026814518496394157,
-0.3041405975818634,
-0.10525879263877869,
-0.024861086159944534,
0.015323903411626816,
-0.38876283168792725,
0.10769277811050415,
0.16100238263607025,
0.05527014285326004,
-0.18347486853599548,
0.20413470268249512,
-0.1575319766998291,
-0.19738692045211792,
-0.02950405701994896,
-0.10535187274217606,
0.10156197845935822,
-0.23686222732067108,
0.18679669499397278,
0.4160948097705841,
0.039695046842098236,
-0.06848911941051483,
0.1085369735956192,
-0.22298592329025269,
-0.10092093795537949,
-0.030931273475289345,
0.16581980884075165,
0.027693457901477814,
0.09913495182991028,
-0.29596060514450073,
-0.08892194926738739,
0.49550461769104004,
-0.07812204957008362,
-0.07567655295133591,
-0.31463533639907837,
0.01291101798415184,
-0.2777961492538452,
0.01871332712471485,
0.03579046577215195,
-0.37469783425331116,
0.15610802173614502,
0.10161946713924408,
-0.16077092289924622,
0.22853955626487732,
0.21498878300189972,
-0.07026872038841248,
0.32561367750167847,
-0.18722407519817352,
-0.00858849287033081,
0.6014618873596191,
-0.004244204610586166,
-0.33292636275291443,
0.21343736350536346,
0.030699141323566437,
-0.1233711913228035,
0.0024802014231681824,
0.18036407232284546,
0.44246628880500793,
-0.25696703791618347,
-0.06419108808040619,
0.3009815216064453,
0.03755252808332443,
0.05058377981185913,
-0.2949724793434143,
-0.05705355852842331,
0.23959919810295105,
0.046046074479818344,
0.07890487462282181,
0.3441970646381378,
-0.10094540566205978,
0.3755095899105072,
0.06206348165869713,
-0.17998050153255463,
0.18972648680210114,
0.07592076063156128,
0.3709050714969635,
0.06131516024470329,
0.2228838950395584,
-0.5783167481422424,
-0.2051730453968048,
0.10045354813337326,
0.1481219232082367,
-0.03864138573408127,
0.1571047008037567,
0.07657000422477722,
-0.49553754925727844,
0.16043423116207123,
-0.25409263372421265,
0.2352929562330246,
0.08571900427341461,
-0.15705883502960205,
0.04457821324467659,
-0.020514197647571564,
-0.034653130918741226,
0.18853889405727386,
-0.19203788042068481,
0.0005558658158406615,
-0.09728997945785522,
0.2750612795352936,
-0.12954550981521606,
-0.3065386116504669,
-0.12298586964607239,
-0.03014884889125824,
0.25167810916900635,
0.021789655089378357,
-0.24089419841766357,
0.17777526378631592,
0.07846850156784058,
-0.175840362906456,
-0.264649361371994,
0.23737837374210358,
-0.1060345396399498,
-0.4833359122276306,
0.053591176867485046,
0.021506378427147865,
0.3588004410266876,
0.008311174809932709,
0.0503687858581543,
0.3680875897407532,
0.108001708984375,
0.21270233392715454,
-0.2648445963859558,
0.3541792631149292,
0.25948473811149597,
0.11789137125015259,
0.13524863123893738,
-0.2213602066040039,
-0.047456976026296616,
-0.007284410297870636,
0.03246527537703514,
-0.0749519094824791,
-0.28874969482421875,
0.23289817571640015,
0.24860931932926178,
0.05720789358019829,
0.17412638664245605,
0.02785506285727024,
-0.018427051603794098,
0.35004520416259766,
-0.14344164729118347,
-0.08786849677562714,
0.1242600604891777,
0.032004185020923615,
0.0009769387543201447,
0.18684354424476624,
0.018619021400809288,
0.0969352051615715,
0.1686968058347702,
0.08884549140930176,
0.20367932319641113,
0.08240795135498047,
0.21910279989242554,
0.10131819546222687,
-0.02509419247508049,
0.12699955701828003,
0.11748283356428146,
0.33526524901390076,
-0.531448483467102,
0.08539775758981705,
-0.38326576352119446,
0.03180898725986481,
-0.16544577479362488,
-0.0077751027420163155,
0.1920328140258789,
-0.4707021415233612,
-0.15664444863796234,
0.35048243403434753,
-0.16894863545894623,
0.23960942029953003,
-0.4766760766506195,
-0.1204410046339035,
0.5577707886695862,
-0.17833584547042847,
0.030039764940738678,
0.14770717918872833,
0.0855037197470665,
0.04647902771830559,
0.44845640659332275,
0.05110734701156616,
0.22528676688671112,
-0.016253067180514336,
-0.07378515601158142,
-0.09650642424821854,
-0.42865660786628723,
0.030789479613304138,
-0.2291852980852127,
0.20469149947166443,
0.3302893042564392,
0.1916174590587616,
-0.0026494599878787994,
-0.45710232853889465,
0.26233184337615967,
-0.0580107718706131,
-0.49914756417274475,
0.4636664092540741,
0.009863115847110748,
-0.20266516506671906,
-0.17955803871154785,
-0.3441242277622223,
0.020482709631323814,
-0.39702266454696655,
0.14929741621017456,
-0.06031453609466553,
0.02374318614602089,
-0.042460452765226364,
0.11094453185796738,
0.18092383444309235,
0.2796252369880676,
0.21497118473052979,
-0.15463173389434814,
0.16364088654518127,
0.3799847960472107,
-0.09148886054754257,
-0.03046843782067299,
-0.03671858459711075,
-0.034861985594034195,
-0.14825357496738434,
0.1030324399471283,
-0.2822856605052948,
0.04063152149319649,
-0.3637543320655823,
0.3203549385070801,
0.09250568598508835,
-0.2872653603553772,
0.39139893651008606,
0.24024401605129242,
0.13207361102104187,
-0.19234666228294373,
-0.060117002576589584,
0.17102420330047607,
0.09023851156234741,
0.039880625903606415,
0.11430013179779053,
0.751998782157898,
0.07008504867553711,
0.1856432557106018,
0.3328533470630646,
0.08508168160915375,
0.25955837965011597,
0.03867001459002495,
-0.15975666046142578,
-0.293049156665802,
-0.3595331609249115,
0.3788875937461853,
-0.1861303448677063,
-0.3171725273132324,
-0.15030665695667267,
-0.24797984957695007,
-0.4543023407459259,
0.04315420240163803,
0.1556212455034256,
-0.4223296642303467,
-0.17592120170593262,
-0.0013782158493995667,
-0.13920478522777557,
0.13404151797294617,
-0.22053728997707367,
0.06552528589963913,
-0.06504808366298676,
0.055312976241111755,
0.05025298148393631,
0.09551677852869034,
0.17692969739437103,
-0.15856583416461945,
-0.4953882098197937,
0.10056418180465698,
0.024052143096923828,
0.27776288986206055,
-0.014527668245136738,
0.43190258741378784,
-0.08103466033935547,
-0.26942354440689087,
-0.015363842248916626,
-0.08997397869825363,
0.7266281843185425,
0.15348030626773834,
0.14442509412765503,
0.23934400081634521,
0.16310420632362366,
-0.31686949729919434,
-0.15879803895950317,
-0.1734706312417984,
0.17573460936546326,
0.245323047041893,
-0.05205009877681732,
-0.28038790822029114,
0.05411703884601593,
0.4975256025791168,
0.13162435591220856,
-0.2380104809999466,
-0.015945252031087875,
-0.17459452152252197,
-0.546053946018219,
-0.30425384640693665,
-0.10731931775808334,
0.307231068611145,
0.4410487711429596,
-0.267249196767807,
0.14769800007343292,
-0.4195663630962372,
-0.04979315027594566,
0.2272871732711792,
0.007850948721170425,
0.28150299191474915,
-0.1358712762594223,
0.486026406288147,
-0.19857129454612732,
0.026710040867328644,
0.3268623948097229,
0.3228416442871094,
0.32267284393310547,
-0.6186864972114563,
0.1971803903579712,
0.08091769367456436,
0.29018571972846985,
-0.041949063539505005,
-0.33437061309814453,
-0.1404159665107727,
0.005349772050976753,
0.047434255480766296,
-0.03318741172552109,
0.1182631328701973,
0.38373371958732605,
0.08908401429653168,
-0.4055677652359009,
-0.49408844113349915,
0.250633180141449,
0.16263191401958466,
-0.04558214172720909,
-0.061411432921886444,
0.048824604600667953,
-0.27368807792663574,
0.41006624698638916,
0.16172945499420166,
0.912605881690979,
0.02157130092382431,
-0.19752344489097595,
0.4629213213920593,
-0.10331721603870392,
0.18439970910549164,
0.06664915382862091,
-0.007513931021094322,
-0.4021632671356201,
-0.22033122181892395,
-0.08585459738969803,
-0.14996632933616638,
0.1334260106086731,
-0.027487918734550476,
-0.37256935238838196,
-0.009050306864082813,
-0.7064781188964844,
-0.06113850697875023,
-0.04361166059970856,
-0.23002079129219055,
0.09181796759366989,
-0.1545775830745697,
-0.31836724281311035,
0.09526915103197098,
-0.18440258502960205,
-0.06653259694576263,
0.1361662745475769,
-0.1551472246646881,
-0.11050136387348175,
-0.264564573764801,
-0.4085277318954468,
0.12414402514696121,
-0.04216158762574196,
0.1820332407951355,
0.29611802101135254,
-0.02392727881669998,
0.40990105271339417,
0.4829886555671692,
0.4849482774734497,
0.17114542424678802,
0.0188177227973938,
-0.010359212756156921,
0.13379159569740295,
0.05545074865221977,
0.25123360753059387,
-0.006511943880468607,
0.38702353835105896,
-0.06361013650894165,
-0.08889348059892654,
0.09872343391180038,
-0.0529533289372921,
-0.17638668417930603,
0.02315962314605713,
-0.042299784719944,
0.004058949649333954,
-0.7462608814239502,
-0.36681482195854187,
0.03522982448339462,
-0.06256768107414246,
-0.2840265929698944,
0.09771515429019928,
0.033482663333415985,
-0.36571431159973145,
0.3121185004711151,
-0.037309255450963974,
-0.11035299301147461,
0.2702803313732147,
0.20540878176689148,
0.1555825024843216,
0.07295428961515427,
0.5346118211746216,
0.21332718431949615,
-0.27545076608657837,
-0.09583573043346405,
0.311118483543396,
-0.06025005877017975,
-0.4840293824672699,
0.24557577073574066,
-0.09283307194709778,
-0.21131709218025208,
-0.13655038177967072,
0.4110698997974396,
-0.15790201723575592,
0.09189319610595703,
-0.23919782042503357,
-0.20612147450447083,
-0.4562947154045105,
0.36188220977783203,
-0.14311210811138153,
0.06973572075366974,
-0.17239665985107422,
0.5306940674781799,
-0.20510238409042358,
-0.157942995429039,
-0.25620946288108826,
-0.10785027593374252,
-0.31329962611198425,
0.11484638601541519,
-0.0945003479719162,
-0.115890271961689,
-0.24228793382644653,
0.10616341233253479,
0.11010174453258514,
0.026806065812706947,
-0.11974769830703735,
-0.08936233818531036,
-0.0708848387002945,
0.13667060434818268,
-0.09407509118318558,
-0.15761294960975647,
0.005408882163465023,
-0.08074931800365448,
-0.3102130889892578,
-0.11959521472454071,
0.1180122047662735,
0.29999077320098877,
0.013550695031881332,
0.3219487965106964,
0.1568101942539215,
-0.011105231940746307,
0.140975221991539,
0.3847665786743164,
-0.0849481076002121,
0.04258263111114502,
0.13563279807567596,
0.2661575675010681,
0.0018304316326975822,
0.07481721043586731,
-0.21675443649291992,
0.17894266545772552,
0.07845352590084076,
-0.13273701071739197,
0.37833327054977417,
-0.5460129380226135,
-0.009554293006658554,
0.516804575920105,
0.28108635544776917,
0.3259838819503784,
-0.15734638273715973,
0.09295506775379181,
0.14283251762390137,
0.13913466036319733,
-0.2336377650499344,
-0.049762923270463943,
0.5487403273582458,
0.02528851479291916,
-0.14137449860572815,
0.2744385600090027,
-0.29498186707496643,
-0.12152248620986938,
0.13395562767982483,
0.1822725534439087,
0.44217053055763245,
-0.1299765557050705,
0.3588429391384125,
0.2221076637506485,
0.004864752292633057,
-0.03223271295428276,
0.08038962632417679,
-0.038634900003671646,
0.24888581037521362,
0.32346296310424805,
-0.02409370243549347,
-0.21776658296585083,
-0.02026958018541336,
0.3347029685974121,
0.312137633562088,
-0.16583006083965302,
-0.087999626994133,
0.3227291405200958,
-0.36738109588623047,
0.3064556121826172,
-0.23151257634162903,
0.11943075060844421,
-0.1121651902794838,
-0.40056830644607544,
-0.34015241265296936,
0.468889057636261,
-0.31506434082984924,
0.02664605900645256,
-0.08083823323249817,
-0.15070012211799622,
-0.1085934042930603,
-0.24378617107868195,
-0.10913775861263275,
-0.11502248048782349,
0.22845517098903656,
-0.128961443901062,
-0.1532614827156067,
-0.3925339877605438,
0.07389605790376663,
0.16109947860240936,
0.31897467374801636,
-0.39088860154151917,
0.300904780626297,
0.15972445905208588,
0.010909385979175568,
0.222431480884552,
0.39891836047172546,
0.4411929249763489,
0.5741068720817566,
-0.1284952610731125,
-0.061781566590070724,
-0.17123545706272125,
-0.21384158730506897,
-0.1642443984746933,
0.10524457693099976,
-0.18698224425315857,
0.3881397545337677,
0.1952093243598938,
0.07140468806028366,
0.006655997596681118,
-0.08171670138835907,
-0.05726968124508858,
0.4404633343219757,
-0.2696475088596344,
0.1584627628326416,
-0.31866782903671265,
-0.06635413318872452,
0.013931451365351677,
0.006138160824775696,
-0.44160962104797363,
-0.35941171646118164,
0.2153046727180481,
-0.043362319469451904,
0.26153600215911865,
0.46618807315826416,
0.04704653471708298,
-0.08428528904914856,
0.25163528323173523,
0.13818174600601196,
0.14688868820667267,
-0.03802773356437683,
-0.07193219661712646,
-0.18279781937599182,
0.1588817536830902,
0.40086546540260315,
-0.29756462574005127,
0.3192012906074524,
0.2506437599658966,
0.17977577447891235,
0.21059803664684296,
-0.04243987798690796,
-0.1664501130580902,
-0.05114834010601044,
0.4451911151409149,
-0.26094305515289307,
-0.14475250244140625,
0.19898664951324463,
-0.061193130910396576,
0.0034170374274253845,
-0.4516081213951111,
0.08287939429283142,
0.37090814113616943,
0.06838294863700867,
0.03809160366654396,
-0.011436477303504944,
-0.10505759716033936,
-0.10471349954605103,
0.10428060591220856,
0.31289899349212646,
0.477577805519104,
0.00120621919631958,
-0.2724549174308777,
-0.17132407426834106,
-0.7340039014816284,
-0.2492024004459381,
0.11871792376041412,
-0.15625827014446259,
0.458539754152298,
-0.3239547312259674,
0.3275834023952484,
-0.10499551892280579,
0.13225039839744568,
0.03782577067613602,
-0.2948250472545624,
-0.42420798540115356,
0.19849908351898193,
-0.5037027597427368,
0.19815419614315033,
-0.046775758266448975,
-0.02801463007926941,
0.16672208905220032,
0.21830753982067108,
-0.10124415159225464,
-0.5348532795906067,
0.7136809229850769,
0.1456603854894638,
-0.29814133048057556,
0.05683094263076782,
-0.1596059799194336,
-0.06814859062433243,
-0.006416141986846924,
-0.626198410987854,
-0.29486921429634094,
0.3653522729873657,
0.033547841012477875,
0.07844436168670654,
0.14124222099781036,
0.005983659066259861,
-0.14646847546100616,
-0.12200978398323059,
0.3484354615211487,
-0.19160473346710205,
0.04145433008670807,
0.0712880939245224,
-0.049604468047618866
] |
https://github.com/huggingface/datasets/issues/4404 | Dataset should have a `.name` field | Hi! You can already use `dset.builder_name` and `dset.config_name` for that purpose. And when it comes to versioning, it's better to use `dset._fingerprint` than the `version` attribute as the former represents a deterministic hash that encodes all the mutable ops executed on a dataset, and the latter stays the same unless it's manually updated after each op. | **Is your feature request related to a problem? Please describe.**
If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}`
Without some way of concisely identifying a dataset from the dataset object, tools which might run on more than one dataset must be passed the dataset object _and_ the name/id of the dataset being used.
**Describe the solution you'd like**
The DatasetInfo class should have a `name` field which is the name of a dataset. then for a given dataset if it evolves in time the `version` can be updated but its different versions of the same dataset with a unique `name`. The name could then all be accessed by `dataset.name`
**Describe alternatives you've considered**
For my own purposes I am considering making `NamedDataset[Dataset]` where the subclass just has a .name field.
**Additional context**
My guess is that most usecases are not working with more than one dataset in a given pipeline so a name is not really needed. This has surprised me though as one of the advantages of a standard dataset interface is to be able to build pipelines which can be passed in a dataset and separate responsibilities of the dataset loading from the train or eval pipeline.
| 56 | Dataset should have a `.name` field
**Is your feature request related to a problem? Please describe.**
If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}`
Without some way of concisely identifying a dataset from the dataset object, tools which might run on more than one dataset must be passed the dataset object _and_ the name/id of the dataset being used.
**Describe the solution you'd like**
The DatasetInfo class should have a `name` field which is the name of a dataset. then for a given dataset if it evolves in time the `version` can be updated but its different versions of the same dataset with a unique `name`. The name could then all be accessed by `dataset.name`
**Describe alternatives you've considered**
For my own purposes I am considering making `NamedDataset[Dataset]` where the subclass just has a .name field.
**Additional context**
My guess is that most usecases are not working with more than one dataset in a given pipeline so a name is not really needed. This has surprised me though as one of the advantages of a standard dataset interface is to be able to build pipelines which can be passed in a dataset and separate responsibilities of the dataset loading from the train or eval pipeline.
Hi! You can already use `dset.builder_name` and `dset.config_name` for that purpose. And when it comes to versioning, it's better to use `dset._fingerprint` than the `version` attribute as the former represents a deterministic hash that encodes all the mutable ops executed on a dataset, and the latter stays the same unless it's manually updated after each op. | [
-0.2966519594192505,
0.12201596796512604,
-0.0480525940656662,
-0.03259024769067764,
0.26509392261505127,
0.03471345454454422,
0.4459414780139923,
0.15255685150623322,
0.02036130428314209,
0.29660850763320923,
0.2530679702758789,
0.34521105885505676,
-0.2937363088130951,
0.46484285593032837,
0.1253766119480133,
-0.14446672797203064,
0.053089551627635956,
-0.1421547830104828,
-0.3888285160064697,
0.04611131548881531,
-0.14714354276657104,
-0.16242831945419312,
0.3247649669647217,
0.34083056449890137,
-0.10264462232589722,
-0.06276435405015945,
-0.05036689341068268,
-0.12212569266557693,
-0.1820768117904663,
-0.45040422677993774,
0.36971035599708557,
0.39409181475639343,
0.27443698048591614,
0.30392372608184814,
-0.00010870094411075115,
0.010561883449554443,
0.2450689822435379,
0.1000700294971466,
-0.5385891199111938,
-0.25303274393081665,
-0.5084054470062256,
-0.452189177274704,
0.3389115631580353,
-0.4580410420894623,
0.0709761381149292,
-0.04269794374704361,
0.2310507446527481,
-0.5444868206977844,
-0.2121228724718094,
-0.05905969440937042,
0.20942330360412598,
-0.08897431194782257,
-0.16774968802928925,
0.054443955421447754,
-0.07274464517831802,
0.28761929273605347,
-0.46547621488571167,
-0.047102075070142746,
0.2762782573699951,
0.15962687134742737,
0.2031053900718689,
0.3625679314136505,
0.07175827771425247,
-0.16996121406555176,
0.3858533799648285,
-0.00922509003430605,
0.45339033007621765,
-0.14558245241641998,
0.09269531071186066,
0.27778446674346924,
0.5314142107963562,
-0.49148204922676086,
-0.6298363208770752,
-0.2340269386768341,
0.10001262277364731,
-0.3899402320384979,
-0.09233259409666061,
-0.2981288433074951,
-0.044152043759822845,
0.20652158558368683,
-0.1369287222623825,
-0.12776120007038116,
-0.26609712839126587,
-0.01690574735403061,
0.13845974206924438,
0.1947963535785675,
0.017528235912322998,
0.38958072662353516,
-0.3813488483428955,
-0.16522817313671112,
0.1233200877904892,
-0.1277458667755127,
0.05542110651731491,
-0.2431083768606186,
-0.32077816128730774,
-0.17068588733673096,
0.016270436346530914,
-0.137864351272583,
0.04335859417915344,
-0.03574097156524658,
-0.03892083838582039,
-0.07973399758338928,
0.06658843159675598,
0.18669283390045166,
0.34920254349708557,
0.16345077753067017,
0.539790689945221,
-0.012264302000403404,
0.11178707331418991,
-0.4008878469467163,
-0.36600619554519653,
-0.11312504857778549,
-0.22193898260593414,
0.1816512495279312,
0.27877113223075867,
0.06302681565284729,
0.3653515577316284,
0.019873928278684616,
0.023214971646666527,
0.02307647094130516,
-0.14682644605636597,
-0.060615766793489456,
0.30612432956695557,
0.08780798316001892,
0.15287531912326813,
0.31747186183929443,
-0.016859889030456543,
-0.023669708520174026,
0.18621978163719177,
-0.36484384536743164,
-0.0852605402469635,
-0.06674382090568542,
-0.28243619203567505,
0.19161026179790497,
-0.11517702043056488,
0.027579374611377716,
0.10305379331111908,
-0.34582018852233887,
-0.09230493009090424,
-0.11209312081336975,
0.3969029188156128,
0.05974866822361946,
0.2817389667034149,
0.08325494080781937,
-0.2456148862838745,
0.07738744467496872,
0.021405573934316635,
-0.3432468771934509,
-0.4159175753593445,
-0.03487919270992279,
-0.007284298539161682,
-0.3777608573436737,
-0.02514922060072422,
0.20779253542423248,
-0.057783402502536774,
0.034548964351415634,
-0.036476485431194305,
0.467886745929718,
0.08265471458435059,
-0.04377717524766922,
0.089923195540905,
-0.09773033857345581,
-0.2750431001186371,
-0.2085570991039276,
-0.018874872475862503,
-0.027521580457687378,
-0.16241338849067688,
-0.025442272424697876,
-0.42737269401550293,
-0.19217921793460846,
-0.07799670845270157,
-0.4528699219226837,
-0.11495181173086166,
0.14229772984981537,
0.07326754182577133,
-0.19766883552074432,
0.7631708979606628,
-0.395195335149765,
0.1296386569738388,
0.30350854992866516,
-0.0723581463098526,
0.030587753280997276,
0.47690850496292114,
0.228569895029068,
0.22317902743816376,
-0.19412140548229218,
-0.27478906512260437,
-0.11862444877624512,
-0.28901174664497375,
-0.15906424820423126,
0.18526668846607208,
-0.19340026378631592,
-0.21065455675125122,
0.15934106707572937,
0.01393815502524376,
0.12941110134124756,
0.001873008906841278,
-0.15954461693763733,
0.20163989067077637,
-0.02839619293808937,
0.13814298808574677,
0.08403156697750092,
0.3356412351131439,
0.3314063549041748,
-0.129941925406456,
-0.45118141174316406,
-0.45736151933670044,
0.2020498514175415,
0.2609601616859436,
-0.24928653240203857,
0.16314661502838135,
-0.5547478795051575,
0.15037193894386292,
0.3470749258995056,
0.016318518668413162,
-0.278617799282074,
0.1140071451663971,
0.20323264598846436,
-0.2865848243236542,
-0.31984302401542664,
-0.29067549109458923,
0.09264729917049408,
-0.18058764934539795,
-0.0835670530796051,
-0.20142126083374023,
-0.18347516655921936,
0.3051171898841858,
0.16050803661346436,
-0.33537253737449646,
0.3347260355949402,
-0.06088739633560181,
0.1510046422481537,
-0.08726684749126434,
0.13888099789619446,
0.23499122262001038,
0.09576273709535599,
0.38774389028549194,
0.6402720808982849,
-0.18042711913585663,
0.055045682936906815,
0.03783518075942993,
-0.24066860973834991,
0.10124515742063522,
0.10104291886091232,
0.08180588483810425,
0.32766371965408325,
0.22315669059753418,
0.2963782548904419,
0.055307500064373016,
-0.1789175271987915,
0.13962574303150177,
-0.03581376373767853,
-0.4488333761692047,
-0.2228846549987793,
-0.3177998661994934,
-0.21000854671001434,
0.3665260374546051,
0.06073836237192154,
-0.4700995683670044,
0.1498016119003296,
0.4685696065425873,
0.09446659684181213,
-0.036768801510334015,
-0.1277090311050415,
-0.0863155648112297,
0.16434746980667114,
0.13082243502140045,
0.36031490564346313,
0.34432923793792725,
0.34356415271759033,
0.11053025722503662,
-0.12955854833126068,
0.018787771463394165,
0.14175261557102203,
0.1932082176208496,
0.2513197958469391,
0.12410753965377808,
-0.05557197332382202,
-0.04619147628545761,
0.026668837293982506,
0.012753039598464966,
-0.22454455494880676,
0.0928797498345375,
-0.18788234889507294,
-0.1599045693874359,
0.3488526940345764,
-0.07335734367370605,
-0.4054173231124878,
-0.4338229298591614,
-0.14196699857711792,
-0.19960492849349976,
-0.24964170157909393,
0.14178694784641266,
0.30061131715774536,
-0.2184903919696808,
0.37184780836105347,
-0.13997094333171844,
0.26768070459365845,
-0.07297991961240768,
-0.1420568823814392,
-0.05221943184733391,
-0.2291499525308609,
-0.25746700167655945,
0.01938256248831749,
0.11573830246925354,
-0.1441042721271515,
0.6123853921890259,
0.4177795350551605,
0.10314921289682388,
-0.7531182169914246,
-0.5336559414863586,
0.11013790965080261,
-0.04341397434473038,
0.37809574604034424,
0.24794958531856537,
-0.006998874247074127,
0.19630563259124756,
-0.37543269991874695,
0.14412015676498413,
-0.0029118042439222336,
0.008191725239157677,
-0.2732076048851013,
0.017000099644064903,
-0.1470443606376648,
-0.09948715567588806,
-0.2494218349456787,
-0.31931185722351074,
-0.35876697301864624,
0.3079248070716858,
-0.3523905575275421,
0.19212909042835236,
0.26234811544418335,
-0.42208725214004517,
0.09261635690927505,
0.05747469142079353,
0.3557174801826477,
-0.13502073287963867,
-0.28729498386383057,
-0.08829908072948456,
-0.0836447924375534,
0.15534372627735138,
-0.03476637974381447,
-0.2360752373933792,
0.23485074937343597,
0.24061429500579834,
-0.08008396625518799,
-0.21697881817817688,
0.20173563063144684,
0.11685694754123688,
0.46710070967674255,
-0.13916955888271332,
0.2621834874153137,
0.30310508608818054,
-0.017290789633989334,
-0.24203425645828247,
-0.34314659237861633,
0.21548575162887573,
-0.17068088054656982,
0.29108524322509766,
0.34880077838897705,
0.5264675617218018,
-0.17074178159236908,
0.5912013649940491,
0.005048492923378944,
-0.38688912987709045,
-0.08684596419334412,
-0.2655864655971527,
0.0008062310516834259,
0.07153668254613876,
-0.3753400444984436,
-0.12671206891536713,
-0.05998498201370239,
-0.4923577308654785,
0.3043176531791687,
-0.1240025982260704,
-0.08853305131196976,
-0.1311396062374115,
0.364576518535614,
-0.16305726766586304,
-0.2900276780128479,
0.027724288403987885,
-0.33467599749565125,
0.2335820198059082,
0.049472544342279434,
0.04032859951257706,
-0.2537747323513031,
0.25978678464889526,
-0.09118036925792694,
0.3853000998497009,
-0.16164135932922363,
-0.05680687353014946,
-0.16772474348545074,
-0.18050938844680786,
-0.20645442605018616,
0.13603653013706207,
0.13047295808792114,
0.2899407148361206,
-0.12453623116016388,
-0.33860430121421814,
0.06460602581501007,
0.3234599828720093,
0.42260855436325073,
-0.4990495443344116,
-0.1777515858411789,
-0.03045543283224106,
-0.4510253667831421,
0.05966939777135849,
-0.007364016026258469,
-0.01955081894993782,
0.21505743265151978,
0.20635205507278442,
0.07685735076665878,
-0.276856392621994,
-0.3868541121482849,
0.32164883613586426,
-0.10987339913845062,
-0.20238226652145386,
-0.19057044386863708,
-0.18384405970573425,
0.0630526915192604,
0.17461510002613068,
-0.22635477781295776,
-0.17248623073101044,
-0.10707820951938629,
-0.001112428493797779,
-0.07796412706375122,
-0.3933148682117462,
0.13168060779571533,
0.23641933500766754,
0.2153744101524353,
0.06229227036237717,
-0.06808417290449142,
0.4111672043800354,
-0.10167588293552399,
0.5575704574584961,
0.38253164291381836,
0.2155003845691681,
-0.2441163957118988,
-0.38251593708992004,
0.1652163565158844,
0.07069611549377441,
0.4143359065055847,
0.34269946813583374,
-0.019771840423345566,
0.021293938159942627,
-0.09489212930202484,
-0.05041171610355377,
-0.3846224546432495,
0.28100070357322693,
0.2772267758846283,
0.24202005565166473,
-0.6398451924324036,
-0.6308121085166931,
0.6837803721427917,
0.2701078951358795,
-0.2564944624900818,
0.7675668001174927,
0.16406716406345367,
-0.46140968799591064,
0.1359235942363739,
-0.07261363416910172,
0.9621540904045105,
-0.06826667487621307,
-0.06677530705928802,
-0.05288464576005936,
-0.19811154901981354,
0.35471299290657043,
0.05509647727012634,
-0.035670362412929535,
-0.38145461678504944,
-0.4002171754837036,
-0.125936359167099,
-0.003285076469182968,
0.28347137570381165,
0.2328064739704132,
-0.0196475051343441,
0.20428720116615295,
0.3484629988670349,
0.2293344885110855,
-0.0705728679895401,
0.3199605345726013,
0.04881390929222107,
-0.002880353480577469,
-0.01414291188120842,
0.09305370599031448,
-0.07099579274654388,
-0.0643705427646637,
-0.01395777240395546,
-0.12882579863071442,
0.09267120063304901,
0.01171785220503807,
-0.2231263667345047,
-0.35279032588005066,
0.09973162412643433,
0.029687117785215378,
-0.021170198917388916,
-0.22707568109035492,
0.19521895051002502,
0.14451982080936432,
0.36609554290771484,
-0.005465254187583923,
-0.07947070151567459,
0.26667359471321106,
-0.08049234002828598,
0.4541858434677124,
-0.17463599145412445,
-0.23740118741989136,
0.47905877232551575,
0.010059457272291183,
0.08667237311601639,
-0.05207512527704239,
-0.0515422597527504,
-0.24078552424907684,
-0.10923517495393753,
-0.04606267809867859,
0.39336085319519043,
-0.468899667263031,
0.1578126847743988,
0.128930002450943,
-0.005914447829127312,
-0.09555870294570923,
0.14031477272510529,
-0.007187455892562866,
-0.1536719650030136,
0.11646533012390137,
0.0626668930053711,
-0.2426413893699646,
0.04341919347643852,
0.016323424875736237,
-0.10714229196310043,
0.193076029419899,
0.11498476564884186,
-0.17377181351184845,
-0.09907486289739609,
-0.16259042918682098,
0.14903980493545532,
0.2664335370063782,
0.19643649458885193,
-0.047619663178920746,
0.11624696850776672,
-0.10836797952651978,
0.140408456325531,
0.029756028205156326,
0.1302568018436432,
0.24191096425056458,
-0.14181548357009888,
0.05010344833135605,
-0.30229827761650085,
0.3801746964454651,
-0.22906731069087982,
0.4539896249771118,
-0.055908478796482086,
0.0035992581397295,
-0.2519458830356598,
0.01335884165018797,
-0.34326523542404175,
-0.5196054577827454,
0.18451069295406342,
0.2122001200914383,
0.17814509570598602,
0.33004918694496155,
0.0777142122387886,
-0.11282417178153992,
0.15776194632053375,
-0.30620843172073364,
-0.22299250960350037,
-0.17083880305290222,
-0.2663572430610657,
0.14606529474258423,
-0.07690809667110443,
0.3595178425312042,
-0.10594246536493301,
-0.08590517938137054,
-0.13652004301548004,
-0.1774776726961136,
0.1461445689201355,
0.2775193452835083,
-0.04355926066637039,
0.45243966579437256,
0.2481592893600464,
0.23477759957313538,
-0.33712124824523926,
0.1125400960445404,
0.10432308912277222,
0.3556138873100281,
0.1285402476787567,
0.3519350588321686,
-0.3436834216117859,
-0.0324525386095047,
-0.16890385746955872,
0.03506745398044586,
-0.10111179947853088,
-0.09761466830968857,
0.21776703000068665,
0.30502551794052124,
0.1450834572315216,
0.48566025495529175,
0.2667293846607208,
0.4392327666282654,
-0.08909034729003906,
-0.006390892900526524,
0.08269710093736649,
0.23193204402923584,
-0.023007750511169434,
0.11563058942556381,
-0.03230323642492294,
-0.229525625705719,
0.07110424339771271,
0.30082452297210693,
-0.005473818629980087,
0.18465980887413025,
0.14882893860340118,
-0.08289257436990738,
0.04727180302143097,
-0.07729806005954742,
0.35529640316963196,
0.24442453682422638,
0.08252598345279694,
0.12851573526859283,
0.27493125200271606,
0.39371562004089355,
0.2213413417339325,
0.456470787525177,
0.06747067719697952,
0.45742735266685486,
0.2185106873512268,
-0.016486208885908127,
0.11330487579107285,
0.25632375478744507,
0.07902461290359497,
0.0858442485332489,
-0.39514997601509094,
-0.144423246383667,
0.041110809892416,
0.11005823314189911,
-0.14235259592533112,
-0.13381536304950714,
-0.08924928307533264,
-0.033936772495508194,
-0.015849675983190536,
-0.1377410590648651,
-0.47814247012138367,
-0.009153440594673157,
-0.19580788910388947,
-0.1772305965423584,
-0.07535333931446075,
-0.08730058372020721,
0.17011922597885132,
0.08287236094474792,
0.21562068164348602,
-0.23644323647022247,
0.0712130144238472,
0.15170496702194214,
0.293456494808197,
-0.25714194774627686,
0.14629864692687988,
0.20922355353832245,
-0.06751897931098938,
0.21554969251155853,
0.13679809868335724,
-0.03444281592965126,
0.05013730749487877,
0.1943313032388687,
-0.027714189141988754,
-0.050598252564668655,
-0.14948008954524994,
-0.14927217364311218,
-0.04599636793136597,
-0.08942654728889465,
0.12986280024051666,
0.33371701836586,
0.14070725440979004,
0.061478398740291595,
0.1481786072254181,
0.04087654501199722,
-0.03875870630145073,
-0.49173158407211304,
0.5172321200370789,
0.4336552619934082,
-0.038633547723293304,
0.12543636560440063,
0.06316760182380676,
-0.3699856698513031,
-0.22735010087490082,
0.47071605920791626,
0.2507839500904083,
0.17762041091918945,
-0.07351861894130707,
0.057099081575870514,
-0.23297423124313354,
0.14521469175815582,
0.2140008807182312,
-0.037401966750621796,
-0.04832758381962776,
-0.19131019711494446,
-0.26888924837112427,
-0.08928213268518448,
0.0562109500169754,
-0.43432167172431946,
0.1649123728275299,
-0.03533148020505905,
-0.027054883539676666,
0.03043225221335888,
0.02085675299167633,
-0.4764079451560974,
0.09187286347150803,
0.2625969350337982,
-0.3569428324699402,
-0.4166666865348816,
-0.17882001399993896,
0.09482228010892868,
0.25583234429359436,
-0.10265112668275833,
-0.06733347475528717,
0.10700786113739014,
-0.04466858506202698,
-0.17325010895729065,
-0.04684622958302498,
0.46406346559524536,
0.07881878316402435,
0.31192755699157715,
-0.17460624873638153,
0.3362869322299957,
-0.014093557372689247,
-0.08483148366212845,
0.0028158873319625854,
-0.1989896595478058,
-0.34012719988822937,
0.27892544865608215,
-0.15531335771083832,
0.1170252114534378,
-0.0919332355260849,
-0.04595151171088219,
-0.009736987762153149,
0.08394560217857361,
-0.16798636317253113,
-0.297317773103714,
-0.2269820272922516,
0.04861600697040558,
-0.01101524755358696,
0.04218698665499687,
0.0634579136967659,
0.33446136116981506,
0.04647936671972275,
0.3069216310977936,
-0.04834344610571861,
-0.27626752853393555,
0.45613598823547363,
-0.03727739304304123,
-0.27470260858535767,
-0.09718478471040726,
0.35441434383392334,
0.0843086689710617,
0.2604321241378784,
-0.3708469867706299,
-0.13047417998313904,
0.4607856571674347,
-0.13596829771995544,
-0.074382483959198,
0.357393354177475,
-0.04264627769589424,
0.13683076202869415,
-0.09454856812953949,
0.1841665804386139,
0.0023724064230918884,
0.044869810342788696,
-0.03319777920842171,
-0.1830827295780182
] |
https://github.com/huggingface/datasets/issues/4404 | Dataset should have a `.name` field | @mariosasko Can we make ._fingerprint not private? seems a critical component for tracking how a model was generated to ensure reproducibility. | **Is your feature request related to a problem? Please describe.**
If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}`
Without some way of concisely identifying a dataset from the dataset object, tools which might run on more than one dataset must be passed the dataset object _and_ the name/id of the dataset being used.
**Describe the solution you'd like**
The DatasetInfo class should have a `name` field which is the name of a dataset. then for a given dataset if it evolves in time the `version` can be updated but its different versions of the same dataset with a unique `name`. The name could then all be accessed by `dataset.name`
**Describe alternatives you've considered**
For my own purposes I am considering making `NamedDataset[Dataset]` where the subclass just has a .name field.
**Additional context**
My guess is that most usecases are not working with more than one dataset in a given pipeline so a name is not really needed. This has surprised me though as one of the advantages of a standard dataset interface is to be able to build pipelines which can be passed in a dataset and separate responsibilities of the dataset loading from the train or eval pipeline.
| 21 | Dataset should have a `.name` field
**Is your feature request related to a problem? Please describe.**
If building pipelines that can evaluate on more than one dataset, it would be nice to be able to log results of things like `Evaluating on {dataset.name}` or `results for {dataset.name} are: {results}`
Without some way of concisely identifying a dataset from the dataset object, tools which might run on more than one dataset must be passed the dataset object _and_ the name/id of the dataset being used.
**Describe the solution you'd like**
The DatasetInfo class should have a `name` field which is the name of a dataset. then for a given dataset if it evolves in time the `version` can be updated but its different versions of the same dataset with a unique `name`. The name could then all be accessed by `dataset.name`
**Describe alternatives you've considered**
For my own purposes I am considering making `NamedDataset[Dataset]` where the subclass just has a .name field.
**Additional context**
My guess is that most usecases are not working with more than one dataset in a given pipeline so a name is not really needed. This has surprised me though as one of the advantages of a standard dataset interface is to be able to build pipelines which can be passed in a dataset and separate responsibilities of the dataset loading from the train or eval pipeline.
@mariosasko Can we make ._fingerprint not private? seems a critical component for tracking how a model was generated to ensure reproducibility. | [
-0.19703616201877594,
0.24319157004356384,
-0.038532696664333344,
0.04517092555761337,
0.2002229541540146,
0.020660914480686188,
0.5441821813583374,
0.14952237904071808,
-0.05004757270216942,
0.25675857067108154,
0.21265888214111328,
0.2247088998556137,
-0.22967147827148438,
0.43412938714027405,
0.17241843044757843,
-0.05180547386407852,
0.010847434401512146,
-0.15944498777389526,
-0.23977261781692505,
-0.00038485974073410034,
-0.09422433376312256,
-0.14930202066898346,
0.3774065375328064,
0.3958885669708252,
-0.19058279693126678,
-0.04638957977294922,
-0.06258615851402283,
-0.08450499922037125,
-0.23357217013835907,
-0.37121349573135376,
0.28515657782554626,
0.3872959315776825,
0.19633491337299347,
0.3277764916419983,
-0.00010768762149382383,
-0.03442021831870079,
0.222263902425766,
0.09897103160619736,
-0.43406128883361816,
-0.18501822650432587,
-0.4547966420650482,
-0.37965261936187744,
0.386517196893692,
-0.47290483117103577,
0.08158034831285477,
-0.006348557770252228,
0.23830881714820862,
-0.46477219462394714,
-0.2697240710258484,
-0.14781208336353302,
0.2226816564798355,
-0.08181381225585938,
-0.15330643951892853,
0.09889841079711914,
-0.039839692413806915,
0.39166224002838135,
-0.4616931080818176,
-0.1435084193944931,
0.2070094645023346,
0.05882754176855087,
0.12297891080379486,
0.3338107764720917,
0.06379915773868561,
-0.22783194482326508,
0.44229432940483093,
0.01183268427848816,
0.33864912390708923,
-0.16597183048725128,
0.06003578007221222,
0.3364080488681793,
0.36973634362220764,
-0.46190980076789856,
-0.5859451293945312,
-0.2936447262763977,
0.14312221109867096,
-0.26606932282447815,
-0.044926680624485016,
-0.13477765023708344,
-0.0288686640560627,
0.257129430770874,
-0.1779002547264099,
-0.07455994933843613,
-0.2806490659713745,
-0.013594716787338257,
0.20709171891212463,
0.08293230831623077,
0.02272467315196991,
0.39811891317367554,
-0.398431658744812,
-0.1474187821149826,
0.1301743984222412,
-0.17495191097259521,
0.07459205389022827,
-0.29228150844573975,
-0.2064986675977707,
-0.22545288503170013,
0.07919713854789734,
0.05414753034710884,
0.0905512198805809,
-0.011848345398902893,
-0.050757743418216705,
-0.10285090655088425,
0.08262167125940323,
0.25373032689094543,
0.25748810172080994,
0.0974036157131195,
0.4203633964061737,
0.11235764622688293,
0.23773382604122162,
-0.3641098439693451,
-0.46180233359336853,
-0.11224982887506485,
-0.23115406930446625,
0.2660245895385742,
0.2582383453845978,
0.15798255801200867,
0.34212571382522583,
-0.0902087464928627,
-0.01822965405881405,
0.02586536481976509,
-0.1818227469921112,
-0.02403184399008751,
0.3868439197540283,
0.1423766314983368,
0.13112099468708038,
0.2119784653186798,
-0.06587648391723633,
-0.12274518609046936,
0.2639300525188446,
-0.43011826276779175,
-0.09793353825807571,
-0.053659047931432724,
-0.30369099974632263,
0.23351500928401947,
-0.11164410412311554,
0.018887383863329887,
0.14106698334217072,
-0.3405301868915558,
-0.00799810141324997,
-0.11755882203578949,
0.5215270519256592,
0.03011442720890045,
0.3712673485279083,
0.09078341722488403,
-0.1962457299232483,
0.028999244794249535,
0.08668963611125946,
-0.29307883977890015,
-0.39306604862213135,
-0.08925668150186539,
-0.07601805776357651,
-0.42878708243370056,
0.011825382709503174,
0.19100965559482574,
-0.1330084651708603,
0.09159637987613678,
-0.06017259508371353,
0.4138341546058655,
0.08254512399435043,
-0.016864728182554245,
0.13648368418216705,
-0.08685537427663803,
-0.17395512759685516,
-0.2629707455635071,
-0.061015792191028595,
-0.022362664341926575,
-0.1049150750041008,
0.0221644788980484,
-0.42460203170776367,
-0.21569503843784332,
-0.01596646010875702,
-0.3157043755054474,
-0.19645126163959503,
0.19871491193771362,
-0.02941085770726204,
-0.012823335826396942,
0.6968119740486145,
-0.3720574378967285,
0.12903957068920135,
0.315691202878952,
-0.1800394058227539,
0.03978902846574783,
0.4742891490459442,
0.19502295553684235,
0.10584382712841034,
-0.2858434021472931,
-0.21133649349212646,
-0.0875835120677948,
-0.34291109442710876,
-0.1461508721113205,
0.123381108045578,
-0.2375638633966446,
-0.1775953322649002,
0.12429185211658478,
-0.06681816279888153,
0.1368464231491089,
-0.0034450963139533997,
-0.2567178010940552,
0.1749846488237381,
-0.18701833486557007,
0.034880444407463074,
0.006573028862476349,
0.5625771880149841,
0.29068300127983093,
-0.14395786821842194,
-0.38076338171958923,
-0.41121524572372437,
0.17289847135543823,
0.07473362982273102,
-0.2875560224056244,
0.0769956111907959,
-0.6071959733963013,
0.297891765832901,
0.299495667219162,
0.02550002560019493,
-0.21517270803451538,
0.11273536086082458,
0.19598925113677979,
-0.28235170245170593,
-0.3899279832839966,
-0.28615573048591614,
0.08635915070772171,
-0.27504482865333557,
-0.06416396051645279,
-0.2974901497364044,
-0.2921995520591736,
0.32847169041633606,
0.21551641821861267,
-0.3247324526309967,
0.3374645709991455,
0.05296315997838974,
0.14157021045684814,
-0.03136386722326279,
0.13643863797187805,
0.18481327593326569,
0.06902583688497543,
0.4142295718193054,
0.7388362884521484,
-0.29356449842453003,
0.014117252081632614,
0.014878211542963982,
-0.23320160806179047,
0.10213268548250198,
0.07530403882265091,
0.0020439326763153076,
0.47092241048812866,
0.22102083265781403,
0.19362182915210724,
0.0574449822306633,
-0.24874019622802734,
0.05868743360042572,
-0.05087020993232727,
-0.5037033557891846,
-0.1759365200996399,
-0.18461164832115173,
-0.17902801930904388,
0.3853491246700287,
0.03507973253726959,
-0.4715837836265564,
0.19225774705410004,
0.4716801941394806,
0.10267302393913269,
0.027131501585245132,
-0.050440266728401184,
-0.09603055566549301,
0.06264803558588028,
0.13392683863639832,
0.32267946004867554,
0.41359245777130127,
0.31230008602142334,
0.04334022477269173,
-0.08305270969867706,
0.020085636526346207,
0.05949469655752182,
0.18359440565109253,
0.16918417811393738,
-0.0510638989508152,
-0.0881342813372612,
0.03797884285449982,
0.0009385207667946815,
-0.00609535351395607,
-0.27720993757247925,
0.061610862612724304,
-0.23924461007118225,
-0.2574772536754608,
0.3459181487560272,
0.03269553929567337,
-0.27622556686401367,
-0.36108875274658203,
-0.18076074123382568,
-0.11165250837802887,
-0.26310616731643677,
0.19592532515525818,
0.2828293442726135,
-0.2424703687429428,
0.2395002245903015,
-0.2799384295940399,
0.3601783514022827,
-0.2383183240890503,
-0.07673286646604538,
-0.036775387823581696,
-0.19697505235671997,
-0.1829974353313446,
0.027214381843805313,
0.1568082869052887,
0.010555863380432129,
0.5941190123558044,
0.46498748660087585,
0.14368154108524323,
-0.7062362432479858,
-0.6155758500099182,
0.03189065307378769,
0.00751073844730854,
0.41102856397628784,
0.29483383893966675,
-0.07689641416072845,
0.17463085055351257,
-0.41974562406539917,
0.1500420868396759,
-0.023825936019420624,
0.002314014360308647,
-0.2835993468761444,
-0.08588943630456924,
-0.23120957612991333,
-0.06827054917812347,
-0.06321952491998672,
-0.36961790919303894,
-0.24127520620822906,
0.3910614848136902,
-0.4218016266822815,
0.1779761016368866,
0.2794930934906006,
-0.4849835932254791,
0.16851136088371277,
-0.05063711479306221,
0.3562454581260681,
-0.1369466930627823,
-0.5906417369842529,
-0.014819804579019547,
-0.15492543578147888,
0.18818587064743042,
0.002040904015302658,
-0.20251494646072388,
0.14713624119758606,
0.16933268308639526,
-0.12125243246555328,
-0.32636988162994385,
0.19547924399375916,
0.1781139075756073,
0.5315656661987305,
-0.13667498528957367,
0.21328969299793243,
0.27560535073280334,
-0.012955799698829651,
-0.2052035629749298,
-0.27715128660202026,
0.06135840713977814,
-0.1817193627357483,
0.32912421226501465,
0.18676280975341797,
0.42743635177612305,
-0.1117277443408966,
0.6603037714958191,
0.10542397201061249,
-0.349115252494812,
-0.09401534497737885,
-0.14882373809814453,
-0.03597067669034004,
0.044275976717472076,
-0.4455832839012146,
-0.05038950964808464,
-0.05938330292701721,
-0.5576688647270203,
0.29165297746658325,
-0.11065386980772018,
-0.11255093663930893,
-0.08625881373882294,
0.3997976779937744,
-0.14457117021083832,
-0.320285439491272,
0.07248903065919876,
-0.15902280807495117,
0.21765968203544617,
0.07936251163482666,
0.026357121765613556,
-0.32451653480529785,
0.15527009963989258,
-0.0355912521481514,
0.35595834255218506,
-0.09983768314123154,
-0.16571027040481567,
-0.34188804030418396,
-0.2796821892261505,
-0.1636086106300354,
0.11621809750795364,
0.06000471115112305,
0.2419889271259308,
-0.1486063152551651,
-0.3096506893634796,
0.06353724747896194,
0.303964763879776,
0.5021291375160217,
-0.5014489889144897,
-0.18624790012836456,
-0.05076547712087631,
-0.4335431456565857,
0.1611577272415161,
0.0550130270421505,
0.01654539629817009,
0.2191675454378128,
0.24292448163032532,
0.09752897918224335,
-0.2790965437889099,
-0.27172234654426575,
0.28829240798950195,
-0.10723008960485458,
-0.12549954652786255,
-0.24964995682239532,
-0.1964649111032486,
0.07560241222381592,
0.2374018132686615,
-0.18771570920944214,
-0.1298823207616806,
-0.10779494047164917,
-0.002899494953453541,
-0.09169609099626541,
-0.42605355381965637,
0.12785738706588745,
0.33612602949142456,
0.2466360479593277,
-0.010957427322864532,
-0.11144446581602097,
0.4233902096748352,
-0.01979842036962509,
0.5751383304595947,
0.350730836391449,
0.28568214178085327,
-0.2899150550365448,
-0.4525676965713501,
0.10197118669748306,
0.028108984231948853,
0.4240342378616333,
0.47608402371406555,
-0.0417855866253376,
-0.014933131635189056,
0.02997354418039322,
-0.02443208545446396,
-0.3343072533607483,
0.28641512989997864,
0.15292973816394806,
0.23889392614364624,
-0.5848174095153809,
-0.5708189010620117,
0.5648999810218811,
0.2698703110218048,
-0.2238951176404953,
0.8354471921920776,
0.16907596588134766,
-0.42431995272636414,
0.1238364428281784,
-0.13536182045936584,
1.0952914953231812,
-0.03939516842365265,
-0.044843774288892746,
-0.09367788583040237,
-0.08811549842357635,
0.2812145948410034,
-0.03341832384467125,
-0.029828067868947983,
-0.4403001666069031,
-0.4457758665084839,
-0.10117275267839432,
-0.04974736273288727,
0.34790942072868347,
0.22064423561096191,
0.10555329918861389,
0.17222772538661957,
0.3168315887451172,
0.2685026228427887,
-0.12871524691581726,
0.36154904961586,
0.15156468749046326,
-0.04873436316847801,
0.007441333495080471,
0.11645922064781189,
0.019503552466630936,
-0.11705347895622253,
0.061441123485565186,
-0.14488744735717773,
0.09149928390979767,
0.05876649171113968,
-0.21836337447166443,
-0.26473280787467957,
-0.013729080557823181,
0.00596572645008564,
0.09106947481632233,
-0.3062216639518738,
0.21178008615970612,
0.099434994161129,
0.4287651777267456,
0.01795022375881672,
-0.11925292015075684,
0.24979592859745026,
-0.08819124847650528,
0.47630855441093445,
-0.11497136205434799,
-0.27433714270591736,
0.3948717415332794,
0.035751283168792725,
0.12912476062774658,
0.03150099888443947,
-0.016625719144940376,
-0.3303681015968323,
-0.11991234123706818,
-0.06408204138278961,
0.3879552483558655,
-0.5267472863197327,
0.07491461932659149,
0.023453805595636368,
0.033835116773843765,
-0.11279962956905365,
0.14888325333595276,
0.12979570031166077,
-0.2020704448223114,
0.1263457089662552,
0.05121222510933876,
-0.2103029191493988,
0.060157354921102524,
0.009063705801963806,
-0.19864514470100403,
0.18049345910549164,
0.06795860826969147,
-0.1521029770374298,
-0.07236563414335251,
-0.1747729480266571,
0.2835221588611603,
0.3948468267917633,
0.18821382522583008,
-0.10598371177911758,
0.21083679795265198,
-0.035903893411159515,
0.1408737748861313,
0.027159404009580612,
0.10429450869560242,
0.21005582809448242,
-0.11097222566604614,
0.04908982664346695,
-0.32466113567352295,
0.28425145149230957,
-0.31174272298812866,
0.4149223566055298,
-0.03385894373059273,
0.028739776462316513,
-0.3017001450061798,
0.07976049184799194,
-0.3598701059818268,
-0.4513489007949829,
0.08494019508361816,
0.15808553993701935,
0.16759878396987915,
0.28945595026016235,
0.14157874882221222,
-0.09040223062038422,
0.16652078926563263,
-0.1980290412902832,
-0.19617892801761627,
-0.18667510151863098,
-0.29730677604675293,
0.16788539290428162,
0.009013640694320202,
0.4050600528717041,
-0.02909688651561737,
-0.06633855402469635,
-0.14707227051258087,
-0.1591532677412033,
0.1500956416130066,
0.21255189180374146,
0.044296592473983765,
0.420089453458786,
0.20238105952739716,
0.1712808609008789,
-0.4647882580757141,
0.03027964010834694,
0.10722672194242477,
0.324788361787796,
0.15460090339183807,
0.2228512018918991,
-0.4402657449245453,
-0.0030456259846687317,
-0.1499783992767334,
0.043065883219242096,
-0.028441287577152252,
0.004240360110998154,
0.1671324074268341,
0.3580833673477173,
0.11284613609313965,
0.44436144828796387,
0.12840567529201508,
0.4234059154987335,
-0.13730373978614807,
0.12237197160720825,
0.157960444688797,
0.24321360886096954,
0.048595838248729706,
0.10832459479570389,
-0.036127325147390366,
-0.15575926005840302,
0.056814584881067276,
0.2942006587982178,
0.004253551363945007,
0.26557645201683044,
0.24199672043323517,
-0.15811270475387573,
0.12226259708404541,
-0.11804008483886719,
0.2911069989204407,
0.2159474492073059,
-0.013932615518569946,
0.13571466505527496,
0.3878943622112274,
0.4738208055496216,
0.16931506991386414,
0.5173925161361694,
0.10824694484472275,
0.4200478792190552,
0.20114389061927795,
0.022778727114200592,
0.1140344887971878,
0.22991560399532318,
0.04721296578645706,
0.08663201332092285,
-0.2492254674434662,
-0.11674245446920395,
-0.05466258525848389,
0.07871154695749283,
-0.18095242977142334,
-0.008525732904672623,
-0.06619495153427124,
-0.053249385207891464,
0.046029672026634216,
-0.22467651963233948,
-0.49204930663108826,
0.04664994031190872,
-0.10442092269659042,
-0.16220875084400177,
-0.11862653493881226,
-0.03716712445020676,
0.12246380746364594,
0.0667489543557167,
0.20672613382339478,
-0.28541266918182373,
0.016936270520091057,
0.19830536842346191,
0.40318337082862854,
-0.31570547819137573,
0.08292602747678757,
0.15512697398662567,
-0.06872659921646118,
0.18347018957138062,
0.09139873087406158,
-0.006640929728746414,
0.038545217365026474,
0.20490899682044983,
-0.04845771566033363,
-0.18240246176719666,
-0.18402299284934998,
-0.17392492294311523,
0.028959263116121292,
-0.029555901885032654,
0.09934568405151367,
0.26289936900138855,
0.14855915307998657,
0.04846131056547165,
0.19511213898658752,
0.027702748775482178,
0.12875036895275116,
-0.48510438203811646,
0.5448764562606812,
0.35978052020072937,
-0.0835031270980835,
0.03086940385401249,
-0.037366919219493866,
-0.32110488414764404,
-0.14706328511238098,
0.5184828042984009,
0.25268036127090454,
0.11957507580518723,
-0.12875358760356903,
0.05577380955219269,
-0.24782970547676086,
0.1260160207748413,
0.25728651881217957,
-0.14383074641227722,
-0.1178865060210228,
-0.13780996203422546,
-0.24742533266544342,
0.027896739542484283,
-0.04556603357195854,
-0.4277394711971283,
0.07159767299890518,
0.014896506443619728,
-0.006460055708885193,
0.07360410690307617,
-0.09880921244621277,
-0.4109760522842407,
0.10303448140621185,
0.27072322368621826,
-0.33352407813072205,
-0.27475616335868835,
-0.2521486282348633,
0.10832884907722473,
0.24657782912254333,
-0.061718687415122986,
-0.06169653311371803,
0.1775416135787964,
-0.04637052118778229,
-0.1876870095729828,
-0.13493506610393524,
0.3974419832229614,
0.1614205241203308,
0.4067063331604004,
-0.12715280055999756,
0.37824034690856934,
0.023738466203212738,
-0.13653337955474854,
-0.07384897768497467,
-0.18272724747657776,
-0.2888602316379547,
0.2618560791015625,
-0.08846074342727661,
0.12375876307487488,
-0.08316432684659958,
-0.08749911189079285,
-0.05663977935910225,
0.10849378257989883,
-0.18765081465244293,
-0.2673920691013336,
-0.1551554799079895,
0.07380728423595428,
-0.027380816638469696,
0.08782791346311569,
0.0978228747844696,
0.3201223313808441,
0.07296499609947205,
0.17062358558177948,
-0.022670075297355652,
-0.14423951506614685,
0.48113590478897095,
-0.1752709001302719,
-0.2810882329940796,
-0.017612412571907043,
0.403219610452652,
-0.049648724496364594,
0.1430840790271759,
-0.3983043134212494,
-0.1516703963279724,
0.4249362647533417,
-0.16794228553771973,
-0.12290811538696289,
0.31440332531929016,
0.10344246029853821,
0.2162276655435562,
-0.1289515495300293,
0.02703174203634262,
0.014598196372389793,
0.05377607047557831,
-0.03591666370630264,
-0.17086553573608398
] |
https://github.com/huggingface/datasets/issues/4401 | "NonMatchingChecksumError" when importing 'spider' dataset | Thanks for reporting, @OmarAlaaeldein.
Datasets hosted at Google Drive give problems quite often due to a change in their service:
- #3786
Related to:
- #3906
I'm having a look. | ## Describe the bug
When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('spider')
```
## Expected results
Dataset object
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0']
## Environment info
- `datasets` version: 2.2.2
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 30 | "NonMatchingChecksumError" when importing 'spider' dataset
## Describe the bug
When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('spider')
```
## Expected results
Dataset object
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0']
## Environment info
- `datasets` version: 2.2.2
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Thanks for reporting, @OmarAlaaeldein.
Datasets hosted at Google Drive give problems quite often due to a change in their service:
- #3786
Related to:
- #3906
I'm having a look. | [
-0.0728672444820404,
0.01186339557170868,
-0.09626880288124084,
0.22605817019939423,
0.2652372419834137,
0.11008373647928238,
0.08079357445240021,
0.22677570581436157,
0.23012030124664307,
0.18859875202178955,
-0.21560437977313995,
-0.12109038233757019,
0.0878107026219368,
0.17605476081371307,
-0.20002199709415436,
0.10022857785224915,
0.26008301973342896,
-0.11582784354686737,
-0.1724717617034912,
-0.10357411205768585,
-0.41983601450920105,
0.17875297367572784,
-0.12942881882190704,
-0.2689704895019531,
0.011540782637894154,
0.11804470419883728,
0.17342685163021088,
0.057078853249549866,
-0.010154226794838905,
-0.2137870490550995,
0.25868481397628784,
-0.01923496276140213,
0.14575143158435822,
0.5663110017776489,
-0.00011728266690624878,
0.1085302084684372,
0.3895692825317383,
0.08306567370891571,
-0.2898966670036316,
-0.04851295053958893,
-0.24703896045684814,
-0.45067864656448364,
-0.014772439375519753,
0.013448886573314667,
0.11379385739564896,
-0.031525496393442154,
-0.0042825620621442795,
-0.13960105180740356,
-0.007536202669143677,
0.1947077363729477,
0.2028317004442215,
0.4772949814796448,
0.05787808075547218,
0.0020849197171628475,
0.18572509288787842,
-0.2361670285463333,
-0.057809196412563324,
0.433183878660202,
0.1873706877231598,
0.05563242733478546,
-0.16497310996055603,
0.08694736659526825,
-0.18165649473667145,
0.20167739689350128,
0.12068722397089005,
-0.0313284695148468,
0.039079826325178146,
-0.43682053685188293,
0.09484167397022247,
0.29005080461502075,
0.45426252484321594,
-0.07078462839126587,
-0.30642762780189514,
-0.10387109965085983,
-0.1898590326309204,
0.1497291773557663,
0.4110514521598816,
0.19248197972774506,
0.06373037397861481,
-0.021046634763479233,
-0.48683398962020874,
0.2370540350675583,
0.10889141261577606,
0.12511533498764038,
-0.0900760069489479,
0.22801652550697327,
0.07479238510131836,
-0.043027594685554504,
-0.1469438672065735,
-0.3107696771621704,
0.42256593704223633,
-0.4784383773803711,
-0.0562826506793499,
0.08178836852312088,
-0.48449522256851196,
-0.09926864504814148,
0.07702764123678207,
0.5377655625343323,
0.2603922188282013,
0.5917293429374695,
0.09192632138729095,
0.13147655129432678,
-0.4183298349380493,
0.16022410988807678,
0.16050252318382263,
0.1526329666376114,
-0.021156862378120422,
-0.027461182326078415,
0.5484105348587036,
0.2201211303472519,
0.11073686182498932,
0.11297941207885742,
0.20388740301132202,
-0.3221631348133087,
0.4158269166946411,
0.0011133905500173569,
0.464108407497406,
-0.25495287775993347,
-0.3199554979801178,
0.34781089425086975,
-0.14381101727485657,
-0.20395615696907043,
-0.00882046390324831,
0.20397621393203735,
-0.28211140632629395,
-0.04144454002380371,
0.04152943938970566,
0.1380772590637207,
-0.042943790555000305,
-0.21875642240047455,
-0.2932715117931366,
-0.11633691191673279,
-0.011240679770708084,
0.016105737537145615,
0.024824563413858414,
-0.12554121017456055,
0.17769379913806915,
0.12095559388399124,
0.2277950495481491,
0.03856644034385681,
-0.054335616528987885,
-0.013594694435596466,
-0.29220789670944214,
0.43898072838783264,
0.1428394913673401,
0.15480270981788635,
0.21764971315860748,
0.0005302317440509796,
-0.17577020823955536,
0.1257217526435852,
-0.2211093008518219,
-0.07803674042224884,
-0.13096709549427032,
0.1987866759300232,
-0.623681366443634,
-0.24164554476737976,
-0.06380990892648697,
-0.3197570741176605,
0.01605350524187088,
-0.2622276842594147,
0.04757103696465492,
-0.26241928339004517,
-0.21164573729038239,
-0.2003815770149231,
-0.1641416847705841,
0.2858962416648865,
0.08915621042251587,
-0.07932788133621216,
0.08713074773550034,
-0.15516166388988495,
0.2231937050819397,
0.2719900906085968,
0.10535618662834167,
-0.18259423971176147,
-0.26303163170814514,
-0.06138329952955246,
0.06547817587852478,
-0.09807425737380981,
-0.5393840074539185,
0.006895922590047121,
-0.03526337444782257,
0.3871646523475647,
-0.015611417591571808,
0.009863769635558128,
-0.07518945634365082,
0.036054350435733795,
0.08209595829248428,
0.2271844744682312,
-0.014811171218752861,
0.18268515169620514,
-0.16308264434337616,
-0.21262602508068085,
0.26048582792282104,
0.16184061765670776,
0.09941300749778748,
0.12181392312049866,
0.30465343594551086,
-0.4611184000968933,
-0.008654288947582245,
-0.1618240475654602,
-0.0021003084257245064,
0.2785433828830719,
0.45163172483444214,
0.001980915665626526,
0.15249954164028168,
-0.2697222828865051,
-0.6410480737686157,
0.3587498366832733,
0.022666461765766144,
0.2106913924217224,
-0.09823964536190033,
-0.08675093948841095,
-0.24507588148117065,
-0.1658046841621399,
-0.23072464764118195,
0.05135929584503174,
0.00905543938279152,
0.1466466337442398,
0.1972856968641281,
0.20111757516860962,
0.19793356955051422,
0.14363732933998108,
-0.20456276834011078,
0.1665453165769577,
-0.47044214606285095,
0.6928070187568665,
-0.08834744989871979,
-0.15873630344867706,
0.14902234077453613,
-0.031797342002391815,
0.12282511591911316,
0.006261968053877354,
-0.22459739446640015,
0.3035033941268921,
0.04223504662513733,
0.29222679138183594,
-0.018073171377182007,
0.47679829597473145,
0.09957598149776459,
-0.21596784889698029,
0.14423640072345734,
0.6653072237968445,
0.11507116258144379,
-0.05922190845012665,
-0.2321375012397766,
0.38513314723968506,
-0.192704975605011,
0.2391526997089386,
0.004357133060693741,
0.2443770170211792,
0.3392389118671417,
-0.049690186977386475,
-0.21817384660243988,
-0.12108716368675232,
0.262117862701416,
-0.05108952149748802,
0.22618745267391205,
0.09763438254594803,
-0.34735026955604553,
-0.04830854386091232,
0.3087076246738434,
-0.19317243993282318,
0.08374102413654327,
0.159155935049057,
-0.08568773418664932,
-0.12645548582077026,
0.28633439540863037,
0.5417436361312866,
0.41920340061187744,
0.16083872318267822,
0.021243765950202942,
0.19357557594776154,
-0.07887063175439835,
-0.09912748634815216,
0.04311065375804901,
0.12388177216053009,
0.13574007153511047,
0.46036866307258606,
0.3559073507785797,
-0.04976069554686546,
-0.4000746011734009,
-0.0902915745973587,
-0.08738135546445847,
0.2246858924627304,
-0.4558771848678589,
-0.05230851098895073,
-0.23519442975521088,
-0.02753777801990509,
-0.28178760409355164,
0.07028738409280777,
-0.5093581676483154,
-0.45805126428604126,
-0.18146397173404694,
0.27993473410606384,
-0.25567400455474854,
0.23838414251804352,
-0.21831747889518738,
0.04938727617263794,
0.06365471333265305,
-0.2134801745414734,
-0.06089943274855614,
0.06270043551921844,
0.06493757665157318,
-0.018703490495681763,
0.4282436668872833,
0.007385491859167814,
0.33681634068489075,
-0.2589131295681,
0.13691526651382446,
-0.7973384261131287,
-0.30219918489456177,
-0.0037194527685642242,
-0.16142511367797852,
0.21458376944065094,
0.23152954876422882,
0.1016152948141098,
-0.002458333969116211,
-0.21375879645347595,
0.2662554979324341,
-0.12475856393575668,
-0.36408916115760803,
0.20804522931575775,
-0.03379840403795242,
-0.014289144426584244,
0.1531059294939041,
0.003681264817714691,
-0.13375549018383026,
-0.22113899886608124,
0.016272488981485367,
0.2067745476961136,
0.07593139261007309,
-0.05786779522895813,
-0.03768175095319748,
-0.01637827232480049,
0.3395492136478424,
0.10132654756307602,
-0.3013944625854492,
-0.48875826597213745,
0.5253267884254456,
-0.04229088872671127,
-0.27449268102645874,
0.10547833144664764,
-0.034974709153175354,
-0.044135358184576035,
0.17095479369163513,
-0.3284696340560913,
-0.3636941909790039,
-0.6020323634147644,
0.3311132490634918,
0.28029221296310425,
0.13476614654064178,
0.32869094610214233,
0.07207988947629929,
-0.05109994485974312,
-0.12087925523519516,
-0.3407101333141327,
-0.12840718030929565,
0.21714529395103455,
0.2571457624435425,
-0.06209173798561096,
0.48408105969429016,
-0.25697460770606995,
0.46695661544799805,
0.2572048306465149,
0.10112862288951874,
0.15704980492591858,
0.06247725337743759,
0.3521561920642853,
-0.07977066189050674,
-0.1301378458738327,
-0.11379553377628326,
-0.16288158297538757,
-0.17679378390312195,
0.14365547895431519,
0.030387815088033676,
0.07191350311040878,
-0.11556215584278107,
-0.2811340093612671,
-0.23302936553955078,
-0.14378544688224792,
-0.23739458620548248,
-0.09092804789543152,
0.25723597407341003,
0.14932122826576233,
-0.1413416862487793,
-0.15333397686481476,
-0.3393036127090454,
0.12379984557628632,
0.20019325613975525,
-0.137638658285141,
-0.05508136749267578,
-0.5316342711448669,
-0.055461086332798004,
-0.12780895829200745,
0.4939529299736023,
0.16239672899246216,
0.31829482316970825,
0.13327550888061523,
-0.2411644160747528,
0.02056065946817398,
-0.04762428626418114,
0.45651698112487793,
-0.5175803899765015,
0.17088377475738525,
-0.0834760069847107,
-0.07409545034170151,
-0.03580918908119202,
-0.2725648880004883,
-0.10003411769866943,
-0.17165692150592804,
0.36847123503685,
0.24241068959236145,
-0.1567554473876953,
0.0741897001862526,
0.42463335394859314,
0.3014432191848755,
-0.23043496906757355,
-0.14917628467082977,
-0.4152827262878418,
-0.30586037039756775,
-0.27806344628334045,
-0.12906000018119812,
-0.01906474679708481,
0.1413474678993225,
-0.16904854774475098,
0.04472212865948677,
-0.03657691180706024,
-0.17032527923583984,
0.4196053743362427,
0.03768143057823181,
0.19412359595298767,
0.052959270775318146,
0.32736143469810486,
0.07743479311466217,
-0.10821382701396942,
0.27889734506607056,
0.9316786527633667,
-0.3606700897216797,
-0.5317005515098572,
0.10659781843423843,
-0.14973917603492737,
-0.05891365557909012,
0.16024334728717804,
0.09420144557952881,
-0.19220200181007385,
0.22619618475437164,
0.06645789742469788,
-0.20973223447799683,
-0.3184364140033722,
0.07263626158237457,
0.39607536792755127,
-0.2962140142917633,
-0.15712293982505798,
0.35876378417015076,
0.1570671647787094,
-0.13685616850852966,
0.23606820404529572,
0.3609248995780945,
-0.10938235372304916,
0.23194710910320282,
0.177972674369812,
0.9211553931236267,
0.006957381963729858,
0.0522451214492321,
0.21542179584503174,
-0.20597735047340393,
0.20442943274974823,
0.0011398717761039734,
-0.044097259640693665,
-0.44325828552246094,
-0.47098761796951294,
-0.12026254087686539,
-0.28703340888023376,
0.15988689661026,
-0.2123681753873825,
0.024676095694303513,
0.41016435623168945,
-0.18564826250076294,
0.3955865800380707,
0.005495165940374136,
0.1544453650712967,
-0.29158568382263184,
0.09840697050094604,
0.046912699937820435,
0.17712581157684326,
-0.05005710572004318,
0.4220903813838959,
-0.12270274013280869,
0.13836094737052917,
-0.18741589784622192,
-0.20680847764015198,
-0.4170111417770386,
0.14189335703849792,
0.3142935335636139,
0.1853083074092865,
0.48765966296195984,
-0.34404653310775757,
-0.09404350817203522,
0.34040209650993347,
0.42693889141082764,
-0.029881831258535385,
-0.3099496364593506,
0.10655151307582855,
0.29064249992370605,
0.20659901201725006,
0.08128174394369125,
0.011516191996634007,
0.43326133489608765,
-0.05025498569011688,
-0.14429056644439697,
0.003830626606941223,
0.08191786706447601,
-0.282650351524353,
-0.26128295063972473,
-0.0035594627261161804,
-0.6132944226264954,
-0.562645435333252,
-0.3160477578639984,
-0.24435371160507202,
0.17143452167510986,
-0.3293074369430542,
0.13224497437477112,
0.1041649580001831,
0.09698914736509323,
0.18181107938289642,
0.14887794852256775,
-0.2515720725059509,
-0.2002958059310913,
0.5447270274162292,
0.11868204921483994,
-0.19994771480560303,
0.3139757812023163,
0.05626955255866051,
-0.36257678270339966,
-0.09605485945940018,
0.17358732223510742,
0.05817658454179764,
-0.2728409469127655,
0.20573808252811432,
-0.4322778880596161,
0.1208522766828537,
-0.14711154997348785,
0.26517075300216675,
0.25200217962265015,
0.25515690445899963,
0.1701575517654419,
-0.40319302678108215,
0.09200134128332138,
0.16824346780776978,
0.14799095690250397,
0.23590612411499023,
-0.32687047123908997,
-0.06082386150956154,
0.03750728815793991,
-0.3198946416378021,
-0.28204554319381714,
0.12432493269443512,
-0.3520921468734741,
-0.12008072435855865,
0.0813957005739212,
0.04729596525430679,
0.013757133856415749,
-0.2155286818742752,
0.10112852603197098,
-0.15830625593662262,
-0.11686477065086365,
-0.1398237645626068,
-0.24749067425727844,
0.1264318972826004,
0.14061100780963898,
-0.17796796560287476,
0.2708556652069092,
-0.06580784916877747,
0.0005036946386098862,
-0.09014818072319031,
0.048044051975011826,
0.31364575028419495,
-0.11076958477497101,
-0.028269506990909576,
0.24268724024295807,
-0.17228329181671143,
0.01885618269443512,
0.022446533665060997,
-0.3704003691673279,
0.13273224234580994,
-0.03382078930735588,
-0.010229766368865967,
0.033141572028398514,
0.08747278153896332,
0.08920349180698395,
0.09923239797353745,
0.022982977330684662,
-0.08034178614616394,
0.40249237418174744,
-0.21236146986484528,
-0.117725670337677,
0.2365192472934723,
0.3123683035373688,
0.3239797353744507,
-0.54478919506073,
-0.0014851223677396774,
0.20606690645217896,
0.20405270159244537,
-0.4111326038837433,
-0.2381042093038559,
0.18568825721740723,
-0.08666279166936874,
0.0005189888179302216,
0.12029378861188889,
0.12177208065986633,
-0.13160043954849243,
0.39052826166152954,
0.1550496518611908,
0.530168890953064,
-0.2389705628156662,
0.3176993429660797,
0.3870883285999298,
0.018566500395536423,
0.05298331379890442,
0.48806992173194885,
-0.2273714244365692,
-0.12399523705244064,
-0.030879803001880646,
0.018370166420936584,
0.09022518992424011,
0.018284907564520836,
0.15789678692817688,
-0.07850218564271927,
-0.510377824306488,
0.358104944229126,
0.013384714722633362,
-0.18974798917770386,
-0.04850044846534729,
0.25742846727371216,
0.1531355381011963,
-0.2927168309688568,
0.28717532753944397,
-0.433897465467453,
0.19909919798374176,
-0.019052907824516296,
0.007745824754238129,
0.03845500946044922,
-0.263702392578125,
-0.05853866785764694,
0.3453161120414734,
-0.06157248094677925,
-0.21526683866977692,
0.12871569395065308,
0.05066245421767235,
-0.15645408630371094,
-0.39582356810569763,
-0.060317814350128174,
-0.20948666334152222,
0.0010631754994392395,
-0.22490419447422028,
0.058176398277282715,
0.19118106365203857,
-0.23509135842323303,
-0.05579507723450661,
0.39925023913383484,
0.5047895312309265,
0.2429528385400772,
0.04208710044622421,
-0.025274604558944702,
-0.10048231482505798,
-0.015729915350675583,
0.11624105274677277,
0.5085943937301636,
-0.02238655835390091,
0.06209961697459221,
0.1669817566871643,
0.14723613858222961,
-0.1648768186569214,
0.07137663662433624,
-0.16494899988174438,
-0.17498961091041565,
-0.28455275297164917,
0.6665785908699036,
-0.13000866770744324,
0.09912269562482834,
-0.10219627618789673,
-0.043035052716732025,
-0.30455175042152405,
-0.13144581019878387,
0.12697504460811615,
0.16536518931388855,
0.09575487673282623,
-0.028539199382066727,
0.049515239894390106,
-0.035923756659030914,
0.395937979221344,
0.40429532527923584,
0.10566262155771255,
-0.01591898500919342,
-0.31209635734558105,
-0.7256067991256714,
0.23169735074043274,
-0.23822641372680664,
0.13994930684566498,
-0.015991419553756714,
0.021285446360707283,
-0.2325124442577362,
0.1043936014175415,
0.22655346989631653,
0.09127525985240936,
-0.410053551197052,
-0.09930500388145447,
-0.17131422460079193,
-0.154153972864151,
-0.060045987367630005,
-0.10539928078651428,
-0.20385341346263885,
-0.26829051971435547,
0.2916792333126068,
0.038070544600486755,
0.07482105493545532,
-0.10305353999137878,
-0.03839712589979172,
-0.19839318096637726,
-0.06748281419277191,
0.3610552251338959,
0.24658240377902985,
0.6986229419708252,
0.07661282271146774,
-0.03163812309503555,
-0.1865920126438141,
-0.4146580398082733,
-0.24421219527721405,
0.32229116559028625,
-0.1880163848400116,
0.45112892985343933,
0.026948874816298485,
-0.24520011246204376,
-0.1484251767396927,
0.3801427483558655,
0.09169840812683105,
0.07654400169849396,
-0.2635830044746399,
0.1209791973233223,
-0.15184465050697327,
0.10542668402194977,
0.04269084706902504,
0.05339767038822174,
0.14266571402549744,
0.22390499711036682,
-0.10600733757019043,
-0.34564411640167236,
0.3970465660095215,
-0.004395731724798679,
-0.13165906071662903,
-0.326226145029068,
0.1835106760263443,
-0.10242374986410141,
-0.32940536737442017,
-0.4720132648944855,
-0.022834211587905884,
0.34268075227737427,
0.07444874942302704,
-0.12494058907032013,
0.2631787359714508,
-0.0918036550283432,
0.0536869578063488,
0.048314157873392105,
0.011981204152107239,
0.14583459496498108,
-0.21975859999656677,
0.13657113909721375,
-0.0755656361579895
] |
https://github.com/huggingface/datasets/issues/4401 | "NonMatchingChecksumError" when importing 'spider' dataset | We have made a Pull Request to replace the Google Drive URL. This fix will be accessible in our next `datasets` library release.
In the meantime, once the PR merged into master, you can get this fix by installing our library from the GitHub master branch:
```shell
pip install git+https://github.com/huggingface/datasets#egg=datasets
```
Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file):
```shell
load_dataset("...", download_mode="force_redownload")
``` | ## Describe the bug
When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('spider')
```
## Expected results
Dataset object
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0']
## Environment info
- `datasets` version: 2.2.2
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 96 | "NonMatchingChecksumError" when importing 'spider' dataset
## Describe the bug
When importing 'spider' dataset [https://huggingface.co/datasets/spider] an error occurs
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('spider')
```
## Expected results
Dataset object
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0']
## Environment info
- `datasets` version: 2.2.2
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
We have made a Pull Request to replace the Google Drive URL. This fix will be accessible in our next `datasets` library release.
In the meantime, once the PR merged into master, you can get this fix by installing our library from the GitHub master branch:
```shell
pip install git+https://github.com/huggingface/datasets#egg=datasets
```
Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file):
```shell
load_dataset("...", download_mode="force_redownload")
``` | [
-0.16683997213840485,
-0.053235724568367004,
-0.08334986865520477,
0.2363288402557373,
0.3664657473564148,
0.09414287656545639,
-0.11232760548591614,
0.25241267681121826,
0.330585777759552,
0.2504543662071228,
-0.2705610692501068,
-0.017501264810562134,
0.09989360719919205,
0.23921625316143036,
-0.17693473398685455,
0.13164442777633667,
0.14180469512939453,
0.007768876850605011,
-0.179945170879364,
-0.023203406482934952,
-0.3352324068546295,
0.1538439244031906,
-0.10555090755224228,
-0.18284685909748077,
0.16117426753044128,
0.07621169835329056,
0.05375561863183975,
0.2299652099609375,
0.02996504306793213,
-0.3592963218688965,
0.1614762246608734,
-0.03330123797059059,
0.26305246353149414,
0.5273504853248596,
-0.0001114337210310623,
0.17811770737171173,
0.35785621404647827,
0.015652595087885857,
-0.11824390292167664,
-0.028253450989723206,
-0.17059335112571716,
-0.31894242763519287,
-0.05962780863046646,
-0.05718569830060005,
0.006165832281112671,
-0.15400367975234985,
0.01592412404716015,
-0.01994708925485611,
-0.020315110683441162,
0.24100667238235474,
0.24672609567642212,
0.4795820713043213,
0.2819165885448456,
0.040296074002981186,
0.193007230758667,
-0.35852378606796265,
-0.02686595730483532,
0.43743327260017395,
0.25033169984817505,
0.17845585942268372,
-0.19239279627799988,
0.1147318184375763,
-0.08690195530653,
0.2092137485742569,
0.18115922808647156,
0.0020425477996468544,
0.12286004424095154,
-0.34097903966903687,
0.06577087193727493,
0.26640722155570984,
0.3543379008769989,
-0.17823851108551025,
-0.1886003315448761,
-0.007856212556362152,
-0.10449481755495071,
0.0532878041267395,
0.48498234152793884,
0.21047557890415192,
-0.03243962675333023,
0.02572358213365078,
-0.426819771528244,
0.2513759434223175,
0.07480941712856293,
0.13386328518390656,
0.030924662947654724,
0.1879895180463791,
-0.017065398395061493,
-0.0721014067530632,
0.11600930988788605,
-0.3024871349334717,
0.18966327607631683,
-0.29375362396240234,
-0.034076351672410965,
0.08331282436847687,
-0.4002876281738281,
-0.16314247250556946,
-0.015430435538291931,
0.41492632031440735,
0.3865916132926941,
0.5272005796432495,
0.002786627970635891,
0.020332997664809227,
-0.31522083282470703,
0.07007498294115067,
0.2295607328414917,
0.06240342929959297,
-0.24917781352996826,
-0.025895360857248306,
0.5301983952522278,
0.35874050855636597,
0.1153327226638794,
0.08512788265943527,
0.14419223368167877,
-0.3454044461250305,
0.5365168452262878,
0.07408418506383896,
0.27563607692718506,
-0.3695295751094818,
-0.33208486437797546,
0.2570008635520935,
-0.06477559357881546,
-0.071537084877491,
0.07849535346031189,
0.43845999240875244,
-0.2777404189109802,
-0.048580899834632874,
0.05000656098127365,
0.05729834735393524,
-0.04725754261016846,
-0.07279932498931885,
-0.2715516984462738,
0.04822639748454094,
-0.0653623417019844,
-0.0833117738366127,
0.17766138911247253,
-0.28146758675575256,
0.18276458978652954,
0.06243100017309189,
0.22423526644706726,
0.04135437309741974,
-0.0996122732758522,
-0.02396690845489502,
-0.20474889874458313,
0.5159655213356018,
0.16752338409423828,
0.04388289153575897,
0.19690406322479248,
-0.05160710960626602,
-0.17663556337356567,
0.08911477774381638,
-0.23164263367652893,
-0.07707508653402328,
-0.1093873679637909,
0.24108225107192993,
-0.546972930431366,
-0.2249288558959961,
0.06892147660255432,
-0.47926682233810425,
-0.0019484460353851318,
-0.22880998253822327,
-0.05641300231218338,
-0.2160603404045105,
-0.21906273066997528,
-0.2104996144771576,
0.0458182692527771,
0.26186877489089966,
0.10184617340564728,
-0.029184989631175995,
0.1783515065908432,
-0.30348914861679077,
0.14053718745708466,
0.31145817041397095,
0.09614817053079605,
-0.15229976177215576,
-0.29096072912216187,
-0.07358955591917038,
-0.01556166261434555,
-0.17218367755413055,
-0.5376940965652466,
0.046497732400894165,
-0.01405128464102745,
0.34312862157821655,
0.03865617886185646,
0.07438075542449951,
-0.15379959344863892,
0.03734557330608368,
0.032913364470005035,
0.2217172235250473,
0.03410730138421059,
0.23889410495758057,
-0.2526608109474182,
-0.32572048902511597,
0.2986958622932434,
0.20261546969413757,
0.07666461169719696,
0.17690643668174744,
0.31121551990509033,
-0.4727613031864166,
0.11537304520606995,
-0.18868786096572876,
-0.02093237265944481,
0.3018077611923218,
0.39707186818122864,
0.11632335186004639,
0.1374608725309372,
-0.2539563477039337,
-0.5453718304634094,
0.2807047665119171,
-0.01836594007909298,
0.12126843631267548,
-0.21283163130283356,
-0.16523787379264832,
-0.34158986806869507,
-0.2799448072910309,
-0.22371496260166168,
0.011466199532151222,
0.13088387250900269,
0.1748366504907608,
0.22665193676948547,
0.15133510529994965,
0.07349397242069244,
0.19582915306091309,
-0.21703150868415833,
0.20446158945560455,
-0.43992704153060913,
0.5958439707756042,
-0.17696374654769897,
-0.11557823419570923,
0.2166927456855774,
0.01340445876121521,
0.06299684941768646,
-0.016200371086597443,
-0.13815787434577942,
0.3840797543525696,
0.02327135019004345,
0.12117545306682587,
0.05566265434026718,
0.3672062158584595,
0.11148280650377274,
-0.29525622725486755,
0.11674124747514725,
0.61776202917099,
0.22490257024765015,
0.04818538576364517,
-0.32206711173057556,
0.3059304356575012,
-0.3401889204978943,
0.17695772647857666,
0.12172767519950867,
0.16599604487419128,
0.3749144971370697,
-0.13569329679012299,
-0.12248688191175461,
-0.06886264681816101,
0.14925624430179596,
-0.020335152745246887,
0.09384413063526154,
0.04326602816581726,
-0.30707019567489624,
-0.18330571055412292,
0.23339353501796722,
-0.1537223607301712,
0.15669624507427216,
0.10845319926738739,
-0.051927633583545685,
-0.017874032258987427,
0.20468498766422272,
0.43251317739486694,
0.2822762727737427,
0.2210564911365509,
-0.0037870146334171295,
0.1495956927537918,
-0.18276725709438324,
-0.05769311264157295,
-0.016902290284633636,
0.04471740126609802,
0.1585286259651184,
0.429644912481308,
0.13526789844036102,
-0.04380102828145027,
-0.47383326292037964,
-0.12960141897201538,
-0.085624098777771,
0.3731191158294678,
-0.46403324604034424,
-0.10261618345975876,
-0.18553778529167175,
-0.12892824411392212,
-0.19076913595199585,
0.13511767983436584,
-0.4141834080219269,
-0.4462662935256958,
-0.18720024824142456,
0.33323079347610474,
-0.2557942867279053,
0.21671916544437408,
-0.23440632224082947,
0.05451665818691254,
-0.009314266964793205,
-0.2347273975610733,
-0.015951264649629593,
0.08745589852333069,
-0.01511044055223465,
0.0818256139755249,
0.42816075682640076,
0.11234796792268753,
0.41041356325149536,
-0.2191779911518097,
0.15942421555519104,
-0.5932658314704895,
-0.21978554129600525,
-0.0403878316283226,
-0.11781513690948486,
0.1905229687690735,
0.23527538776397705,
0.20843172073364258,
-0.030442263931035995,
-0.33719199895858765,
0.3144451677799225,
-0.1934347152709961,
-0.3801077604293823,
0.21042457222938538,
-0.02055675908923149,
-0.10552094131708145,
0.059997621923685074,
-0.10718358308076859,
-0.09981527179479599,
-0.3121776282787323,
-0.05435473471879959,
0.23953618109226227,
0.0642499253153801,
-0.022773128002882004,
0.04521135240793228,
0.044171206653118134,
0.18349981307983398,
0.3052273392677307,
-0.30459722876548767,
-0.4373168349266052,
0.5326146483421326,
0.007508250419050455,
-0.33295705914497375,
0.19738808274269104,
-0.10181178897619247,
-0.013180568814277649,
0.0676775574684143,
-0.4262622594833374,
-0.35223615169525146,
-0.6142645478248596,
0.12103955447673798,
0.265819251537323,
0.1878128945827484,
0.21774259209632874,
0.018995407968759537,
-0.1343878209590912,
0.015215523540973663,
-0.311725914478302,
-0.09202267974615097,
0.01850327104330063,
0.24047014117240906,
-0.047515660524368286,
0.4218081831932068,
-0.08996306359767914,
0.2787310481071472,
0.3283989429473877,
0.020610129460692406,
0.1528123915195465,
-0.04203379154205322,
0.4376519024372101,
-0.0017311722040176392,
-0.19897541403770447,
-0.03152026608586311,
-0.12771621346473694,
0.00209258496761322,
0.12749268114566803,
-0.01155131310224533,
0.18578669428825378,
-0.16497983038425446,
-0.22657158970832825,
-0.29784899950027466,
-0.22737222909927368,
-0.17976264655590057,
0.09260470420122147,
0.10121214389801025,
-0.00022793002426624298,
-0.12460781633853912,
-0.12098374962806702,
-0.31875598430633545,
0.2538014352321625,
0.43524473905563354,
-0.17770910263061523,
-0.03645375743508339,
-0.40043216943740845,
0.011833718046545982,
-0.21735963225364685,
0.4022362232208252,
0.12479054182767868,
0.35795825719833374,
0.11472797393798828,
-0.2340850532054901,
0.0063404664397239685,
-0.2008962631225586,
0.5228625535964966,
-0.3496148884296417,
0.21558883786201477,
-0.04725074768066406,
-0.20097428560256958,
0.08919546008110046,
-0.1865054965019226,
-0.2128181904554367,
-0.3222922384738922,
0.21905861794948578,
0.11813636124134064,
-0.2708570063114166,
0.014477318152785301,
0.5290250778198242,
0.2676551043987274,
-0.23383013904094696,
-0.15978935360908508,
-0.4675397276878357,
-0.33451661467552185,
-0.5196837186813354,
0.002003110945224762,
0.01130998320877552,
0.30996930599212646,
-0.10334493219852448,
0.008207499980926514,
-0.06495722383260727,
-0.2321704924106598,
0.43328386545181274,
0.08879773318767548,
0.3198276162147522,
0.15916533768177032,
0.35451585054397583,
0.03079908713698387,
-0.025009416043758392,
0.23155508935451508,
0.8851593136787415,
-0.4076487421989441,
-0.5603966116905212,
0.03831314295530319,
-0.21212726831436157,
-0.18921521306037903,
0.048636265099048615,
0.1010742112994194,
-0.2108040750026703,
0.35222163796424866,
0.10123240947723389,
-0.25716808438301086,
-0.24617280066013336,
0.0820593386888504,
0.2655547261238098,
-0.166775643825531,
-0.043899375945329666,
0.3008819818496704,
0.1363433599472046,
-0.15041875839233398,
0.26209378242492676,
0.3620184063911438,
-0.12998934090137482,
0.2221669703722,
0.2060568779706955,
0.8755499124526978,
-0.1643349826335907,
0.035911958664655685,
0.1861628293991089,
-0.14252109825611115,
0.18773385882377625,
0.004858300089836121,
-0.02793280780315399,
-0.3376471996307373,
-0.592968225479126,
-0.013902469538152218,
-0.1967138946056366,
0.1790221929550171,
-0.19355593621730804,
-0.03327269107103348,
0.36159688234329224,
-0.08084528148174286,
0.3468799591064453,
-0.008828969672322273,
0.26345983147621155,
-0.18352572619915009,
-0.0028735920786857605,
0.09061706066131592,
0.21131059527397156,
-0.05619875341653824,
0.36688467860221863,
-0.05084344372153282,
0.0854031890630722,
-0.077105313539505,
-0.14242702722549438,
-0.3486124873161316,
0.20442605018615723,
0.2218523472547531,
0.1621093899011612,
0.2611166536808014,
-0.11112209409475327,
-0.06655013561248779,
0.26325514912605286,
0.47673338651657104,
0.1490558534860611,
-0.28677934408187866,
0.16820840537548065,
0.3420083224773407,
0.10528618842363358,
-0.025393519550561905,
0.03486979007720947,
0.35645073652267456,
-0.062014102935791016,
-0.18183104693889618,
0.08674702048301697,
0.1307174265384674,
-0.40693676471710205,
-0.08327256143093109,
-0.04833251237869263,
-0.523724377155304,
-0.4701196849346161,
-0.16689416766166687,
-0.1502310186624527,
0.08756883442401886,
-0.2598356604576111,
0.16422922909259796,
0.22896812856197357,
-0.0012276250636205077,
0.11297857016324997,
0.19310256838798523,
-0.34283384680747986,
-0.23719103634357452,
0.5221376419067383,
0.13055145740509033,
-0.3194255828857422,
0.2920428514480591,
0.053979191929101944,
-0.3900892734527588,
-0.17444336414337158,
0.02976403385400772,
0.07915274798870087,
-0.21436971426010132,
0.12728027999401093,
-0.25888216495513916,
0.09268248081207275,
-0.07968404144048691,
0.28621402382850647,
0.29879140853881836,
0.20218700170516968,
0.19436714053153992,
-0.49340784549713135,
-0.06473100930452347,
0.20705662667751312,
0.2170667201280594,
0.31148815155029297,
-0.2918526828289032,
0.0422835573554039,
0.007604699581861496,
-0.35395127534866333,
-0.3709166646003723,
0.15654267370700836,
-0.4187489449977875,
-0.14106519520282745,
-0.061325229704380035,
0.07528159767389297,
0.06093395873904228,
-0.14399757981300354,
0.20304226875305176,
-0.07735273987054825,
-0.06645811349153519,
-0.19580480456352234,
-0.205464169383049,
0.09376376122236252,
0.07140667736530304,
-0.15247957408428192,
0.1692851185798645,
-0.13469740748405457,
-0.03194526210427284,
-0.15752315521240234,
0.12918858230113983,
0.23898768424987793,
-0.09640137851238251,
-0.027209492400288582,
0.2622859477996826,
-0.21981218457221985,
-0.03520066291093826,
-0.020457778126001358,
-0.4153061509132385,
0.018476732075214386,
0.045545775443315506,
0.02982628345489502,
-0.1640453189611435,
0.06567378342151642,
0.22629782557487488,
0.1161005049943924,
0.07446574419736862,
-0.10481031984090805,
0.3389642536640167,
-0.0754355788230896,
-0.17819218337535858,
0.23448418080806732,
0.2598113417625427,
0.39506280422210693,
-0.49154427647590637,
0.02363451011478901,
0.14640185236930847,
0.26788246631622314,
-0.4235406517982483,
-0.1041167750954628,
-0.016306620091199875,
-0.14292874932289124,
0.11520269513130188,
0.1616571843624115,
-0.051254868507385254,
-0.07225893437862396,
0.4140908718109131,
0.11480901390314102,
0.46780630946159363,
-0.2146400809288025,
0.19286802411079407,
0.3787284195423126,
-0.03269632160663605,
-0.07818186283111572,
0.35912764072418213,
-0.12647829949855804,
-0.0830559954047203,
0.03523554652929306,
-0.02521323412656784,
0.03196089714765549,
-0.159227192401886,
0.2046796977519989,
-0.18233546614646912,
-0.44397440552711487,
0.35934391617774963,
0.1760111004114151,
-0.15529823303222656,
-0.07515499740839005,
0.2903704047203064,
0.1397714912891388,
-0.20440946519374847,
0.1275685876607895,
-0.4852457642555237,
0.07864931225776672,
-0.03268551826477051,
0.02465793862938881,
-0.17276200652122498,
-0.23172003030776978,
-0.20529243350028992,
0.29373130202293396,
0.06179867684841156,
-0.3230729103088379,
0.06912679970264435,
0.07604308426380157,
-0.23084454238414764,
-0.38528305292129517,
-0.16430756449699402,
-0.029084809124469757,
-0.016664013266563416,
-0.19033831357955933,
0.06385604292154312,
0.33569031953811646,
-0.14443424344062805,
0.029069021344184875,
0.3819544315338135,
0.43423783779144287,
0.18090343475341797,
0.0753433108329773,
-0.029412217438220978,
-0.07449372112751007,
-0.00506538525223732,
0.04373123496770859,
0.4772578179836273,
0.0023529380559921265,
0.12910011410713196,
0.300582617521286,
0.20392267405986786,
-0.2200012058019638,
-0.1287667453289032,
-0.17714786529541016,
-0.14655540883541107,
-0.17110808193683624,
0.5775105953216553,
-0.07034873217344284,
0.15068286657333374,
-0.08893893659114838,
-0.012205801904201508,
-0.3100218176841736,
-0.13817694783210754,
0.002711077220737934,
-0.10650812089443207,
0.08075406402349472,
-0.05370348319411278,
0.0876874029636383,
0.03944067656993866,
0.4018961489200592,
0.41631370782852173,
0.08199747651815414,
-0.1551959365606308,
-0.27569013833999634,
-0.8605172634124756,
0.23536479473114014,
-0.28012534976005554,
-0.0738726332783699,
-0.0313362255692482,
0.08588165789842606,
-0.21248432993888855,
0.22005222737789154,
0.1940118670463562,
0.1749274581670761,
-0.31432202458381653,
-0.07909978926181793,
-0.11656621098518372,
-0.12177123129367828,
0.010120093822479248,
-0.17111852765083313,
-0.11488157510757446,
-0.32025203108787537,
0.2603728771209717,
-0.038694653660058975,
0.1484161913394928,
0.05861622840166092,
0.05064242333173752,
-0.1966879516839981,
-0.16943049430847168,
0.3105795383453369,
0.14912652969360352,
0.6850070953369141,
-0.03630199655890465,
-0.08975505828857422,
-0.11378854513168335,
-0.31162115931510925,
-0.23191727697849274,
0.3139955997467041,
0.019463837146759033,
0.34981057047843933,
0.08449187874794006,
-0.23890085518360138,
-0.15454933047294617,
0.37076470255851746,
0.08917634189128876,
0.10921739041805267,
-0.17260491847991943,
0.22445976734161377,
-0.01802600920200348,
0.08720710873603821,
0.04264933243393898,
0.0014293082058429718,
0.11208032071590424,
0.23203448951244354,
-0.1728358268737793,
-0.3200603723526001,
0.3932737708091736,
-0.017076723277568817,
-0.02489628456532955,
-0.4109392464160919,
0.20801837742328644,
-0.09360577911138535,
-0.21258237957954407,
-0.518272876739502,
0.13419798016548157,
0.1696464717388153,
0.1828809678554535,
-0.31278929114341736,
0.20780639350414276,
-0.2442896068096161,
0.052182819694280624,
0.014632422477006912,
0.04251624643802643,
0.19707083702087402,
-0.25637108087539673,
0.023569483309984207,
-0.08493340015411377
] |
https://github.com/huggingface/datasets/issues/4400 | load dataset wikitext-2-raw-v1 failed. Could not reach wikitext-2-raw-v1.py. | I tried in this way.
```python
from datasets import load_dataset
dataset = load_dataset(path="wikitext", name="wikitext-103-v1", split="train")
``` | ## Describe the bug
Could not reach wikitext-2-raw-v1.py
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikitext-2-raw-v1")
```
## Expected results
Download `wikitext-2-raw-v1` dataset successfully.
## Actual results
```
File "load_datasets.py", line 13, in <module>
load_dataset("wikitext-2-raw-v1")
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1715, in load_dataset
**config_kwargs,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1536, in load_dataset_builder
data_files=data_files,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1282, in dataset_module_factory
raise e1 from None
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1224, in dataset_module_factory
dynamic_modules_path=dynamic_modules_path,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 559, in get_module
local_path = self.download_loading_script(revision)
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 539, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "/root/miniconda3/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 246, in cached_path
download_desc=download_config.download_desc,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 582, in get_from_cache
raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.2.2/datasets/wikitext-2-raw-v1/wikitext-2-raw-v1.py (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Read timed out. (read timeout=100)",),))
```
I tried to download wikitext-2-raw-v1.py by chrome and got:

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: CentOS 7
- Python version: 3.6
- PyArrow version: 3.0.0
| 16 | load dataset wikitext-2-raw-v1 failed. Could not reach wikitext-2-raw-v1.py.
## Describe the bug
Could not reach wikitext-2-raw-v1.py
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikitext-2-raw-v1")
```
## Expected results
Download `wikitext-2-raw-v1` dataset successfully.
## Actual results
```
File "load_datasets.py", line 13, in <module>
load_dataset("wikitext-2-raw-v1")
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1715, in load_dataset
**config_kwargs,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1536, in load_dataset_builder
data_files=data_files,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1282, in dataset_module_factory
raise e1 from None
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 1224, in dataset_module_factory
dynamic_modules_path=dynamic_modules_path,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 559, in get_module
local_path = self.download_loading_script(revision)
File "/root/miniconda3/lib/python3.6/site-packages/datasets/load.py", line 539, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "/root/miniconda3/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 246, in cached_path
download_desc=download_config.download_desc,
File "/root/miniconda3/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 582, in get_from_cache
raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.2.2/datasets/wikitext-2-raw-v1/wikitext-2-raw-v1.py (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Read timed out. (read timeout=100)",),))
```
I tried to download wikitext-2-raw-v1.py by chrome and got:

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: CentOS 7
- Python version: 3.6
- PyArrow version: 3.0.0
I tried in this way.
```python
from datasets import load_dataset
dataset = load_dataset(path="wikitext", name="wikitext-103-v1", split="train")
``` | [
-0.19624373316764832,
-0.30115431547164917,
-0.095247283577919,
0.15761291980743408,
0.33065295219421387,
0.10222242027521133,
0.35033953189849854,
0.3770030736923218,
0.17281050980091095,
0.10918258875608444,
0.18630540370941162,
0.2885552942752838,
-0.08020054548978806,
0.20845188200473785,
0.03613831847906113,
-0.15841874480247498,
0.060973845422267914,
0.23578353226184845,
-0.23480451107025146,
-0.06580090522766113,
-0.32835209369659424,
0.10287599265575409,
-0.3103345036506653,
0.18984735012054443,
-0.22243225574493408,
0.009870951995253563,
0.013329735025763512,
0.22509756684303284,
-0.20970596373081207,
-0.5530808568000793,
0.3548192083835602,
-0.2648739218711853,
0.1514461189508438,
0.3412973880767822,
-0.00010272267536493018,
0.2362256795167923,
0.5095809698104858,
0.013954104855656624,
-0.39316079020500183,
-0.22862334549427032,
-0.3515765070915222,
-0.26005685329437256,
0.10564390569925308,
-0.23183947801589966,
-0.06617730855941772,
-0.3336022198200226,
-0.06832786649465561,
-0.3320414423942566,
0.36024773120880127,
0.29028329253196716,
0.31897807121276855,
0.31076398491859436,
0.2869628667831421,
-0.14021748304367065,
0.06191693991422653,
-0.25591957569122314,
-0.05796003341674805,
0.03936150670051575,
0.06242113187909126,
-0.17255185544490814,
0.13186049461364746,
0.16537652909755707,
0.21357153356075287,
0.06828552484512329,
0.2605777978897095,
-0.04717186465859413,
0.16815431416034698,
-0.4066667854785919,
0.19251754879951477,
0.1565215289592743,
0.557873010635376,
-0.3851581811904907,
-0.3924036920070648,
-0.10451921820640564,
0.014794794842600822,
-0.13967543840408325,
0.37845051288604736,
-0.10616060346364975,
-0.14450161159038544,
0.16430674493312836,
-0.19495883584022522,
-0.0773204118013382,
-0.1732936054468155,
0.08116461336612701,
-0.08237359672784805,
0.40526536107063293,
0.049243006855249405,
0.13288269937038422,
-0.2279149740934372,
-0.11881829798221588,
0.45471683144569397,
-0.06303517520427704,
-0.07718002796173096,
0.3156079649925232,
-0.43424615263938904,
-0.030080268159508705,
0.04179946333169937,
0.09599689394235611,
0.07472629100084305,
-0.049370408058166504,
0.01912228763103485,
-0.11569917947053909,
0.2530287802219391,
0.08986025303602219,
0.2635602653026581,
0.09957444667816162,
0.02236921712756157,
0.12147168070077896,
0.049719370901584625,
0.11914458870887756,
0.011526964604854584,
-0.04023158550262451,
-0.16706934571266174,
-0.2947450876235962,
0.07379722595214844,
0.15235504508018494,
0.23102958500385284,
-0.10913702100515366,
-0.3038053810596466,
0.07134366035461426,
0.14678740501403809,
0.1692885309457779,
-0.10614358633756638,
0.3609311282634735,
-0.12210322916507721,
0.28910237550735474,
-0.011908682063221931,
0.2468237280845642,
-0.09902837127447128,
0.10393518209457397,
-0.2501603066921234,
0.024591516703367233,
-0.16000375151634216,
-0.1278202384710312,
0.06782393157482147,
-0.001280197873711586,
0.4138752222061157,
0.07500982284545898,
0.016257628798484802,
-0.027178365737199783,
0.1640166938304901,
-0.019072482362389565,
-0.16137480735778809,
0.18417029082775116,
-0.0737268403172493,
0.36219465732574463,
0.24273590743541718,
0.03109678626060486,
-0.004414752125740051,
-0.04599212855100632,
-0.2913905382156372,
-0.2849239408969879,
-0.17132149636745453,
0.3458784222602844,
0.001466287299990654,
0.01161649078130722,
0.11019586026668549,
-0.18173274397850037,
0.27433398365974426,
-0.20578478276729584,
-0.10555253177881241,
-0.14576123654842377,
-0.2838614881038666,
-0.19064603745937347,
0.4041632413864136,
0.2112407237291336,
-0.25021374225616455,
0.0680052787065506,
-0.16570384800434113,
-0.27013811469078064,
0.008458450436592102,
-0.06655581295490265,
-0.30230027437210083,
0.3835490942001343,
-0.2908896505832672,
-0.02120788022875786,
0.3744899034500122,
-0.4936355650424957,
-0.6810416579246521,
0.10086032748222351,
-0.29028525948524475,
0.11973866075277328,
0.05433022230863571,
-0.16922520101070404,
0.13870778679847717,
-0.18243640661239624,
0.14636488258838654,
0.20969925820827484,
0.02703595533967018,
0.2451593577861786,
-0.40515005588531494,
-0.4257940649986267,
0.24484604597091675,
0.053463708609342575,
0.12318412959575653,
-0.08475290983915329,
0.11687895655632019,
0.18844982981681824,
0.29134583473205566,
0.024294167757034302,
0.09291280806064606,
0.20204617083072662,
0.0724719688296318,
-0.230512335896492,
0.14309526979923248,
-0.11502059549093246,
-0.39404430985450745,
0.3656279742717743,
-0.3171452581882477,
-0.14606092870235443,
-0.05878007411956787,
-0.10280629247426987,
-0.479231595993042,
-0.0056496355682611465,
-0.3388894498348236,
-0.17114432156085968,
0.3138725757598877,
0.24193963408470154,
0.18895293772220612,
0.13490600883960724,
-0.160741925239563,
0.18128696084022522,
-0.03995859995484352,
-0.04158249869942665,
-0.06376603245735168,
0.1951729655265808,
-0.04244492948055267,
-0.005394483916461468,
0.11149638891220093,
0.11590312421321869,
0.15914031863212585,
-0.1637028306722641,
-0.24396303296089172,
0.3720841705799103,
0.09168516844511032,
0.40770941972732544,
0.02711690030992031,
-0.3650718927383423,
0.07893822342157364,
-0.2639666795730591,
-0.05225951224565506,
0.28607815504074097,
0.2903725206851959,
0.01507541537284851,
0.06449103355407715,
0.04602324962615967,
0.16498245298862457,
0.23564264178276062,
-0.01735713705420494,
0.01615612767636776,
0.08329307287931442,
-0.012452132999897003,
0.14245960116386414,
-0.17892882227897644,
-0.032909560948610306,
0.24832548201084137,
0.02866927906870842,
-0.15653902292251587,
0.19283738732337952,
0.2774890661239624,
0.5467259883880615,
0.285031259059906,
0.06569938361644745,
0.056640464812517166,
-0.28669437766075134,
-0.1785508096218109,
0.00551384873688221,
0.31272801756858826,
0.3391708433628082,
0.1113385409116745,
-0.023249488323926926,
0.03093959018588066,
-0.007794941775500774,
0.04129403084516525,
0.3899133801460266,
0.147083580493927,
0.2541903257369995,
0.31884849071502686,
0.05734485015273094,
0.040819328278303146,
-0.012284856289625168,
-0.046242669224739075,
0.07847312092781067,
0.24652227759361267,
-0.26517200469970703,
-0.12923821806907654,
-0.17936530709266663,
0.3960857093334198,
0.0021344199776649475,
-0.14214491844177246,
0.0880570262670517,
-0.279649019241333,
0.01228773221373558,
0.015897052362561226,
-0.0825069397687912,
0.20590472221374512,
-0.2549809515476227,
0.06279812753200531,
0.11194927990436554,
0.007519662380218506,
-0.19326600432395935,
-0.2686499059200287,
-0.2660025358200073,
0.1786564290523529,
0.17954838275909424,
0.16223153471946716,
0.28916648030281067,
-0.10598568618297577,
-0.1432194858789444,
-0.03429582715034485,
-0.1112460047006607,
0.02369339019060135,
-0.04081465303897858,
0.31397947669029236,
0.19004318118095398,
0.23554764688014984,
0.007520727813243866,
-0.3921389877796173,
0.2727070748806,
-0.13778068125247955,
-0.24983952939510345,
-0.020544229075312614,
0.10582903772592545,
0.06300412118434906,
0.011840540915727615,
-0.3807746171951294,
-0.35153916478157043,
-0.4565453827381134,
-0.05655645579099655,
-0.015852531418204308,
0.05262097716331482,
-0.06822241842746735,
0.13817718625068665,
0.15615001320838928,
0.04362305626273155,
0.02998654916882515,
-0.1112762838602066,
-0.37517473101615906,
0.22513137757778168,
-0.2979189455509186,
-0.3819149434566498,
-0.08625424653291702,
0.06578027456998825,
0.22932465374469757,
0.14946678280830383,
-0.32168006896972656,
-0.093235082924366,
-0.1256665289402008,
0.06697742640972137,
-0.004096765071153641,
0.004445178434252739,
0.2595541775226593,
0.15370520949363708,
-0.15199215710163116,
-0.20431390404701233,
0.10482291877269745,
0.05366631597280502,
-0.27686041593551636,
0.323892205953598,
0.002996869385242462,
0.43428167700767517,
-0.05989180505275726,
0.709223210811615,
0.4461934566497803,
-0.06707808375358582,
0.26294833421707153,
-0.10601810365915298,
0.10889372229576111,
-0.2712748348712921,
-0.34860947728157043,
0.24641185998916626,
-0.020867034792900085,
0.09489385783672333,
0.24998286366462708,
-0.13792312145233154,
-0.09446876496076584,
-0.2181309014558792,
-0.025825396180152893,
-0.4542332887649536,
-0.1928129345178604,
-0.23843179643154144,
0.08948729187250137,
0.20942682027816772,
0.07875339686870575,
0.17489171028137207,
-0.28030717372894287,
-0.0458688847720623,
0.2017553746700287,
0.05305950343608856,
-0.10696224123239517,
0.06056751683354378,
-0.17743268609046936,
-0.11199208348989487,
-0.2775696814060211,
0.13626010715961456,
0.24294911324977875,
0.44619235396385193,
0.021810080856084824,
-0.216741681098938,
0.02339211106300354,
-0.1307237446308136,
0.48095226287841797,
-0.2928227484226227,
0.2621039152145386,
0.11365944147109985,
0.19474144279956818,
-0.4850289821624756,
-0.1521255224943161,
-0.024377156049013138,
0.43300414085388184,
0.19302187860012054,
0.12589162588119507,
-0.20749539136886597,
-0.058517105877399445,
0.12760336697101593,
0.17609018087387085,
-0.13236573338508606,
-0.11217380315065384,
-0.2239982634782791,
-0.10809614509344101,
-0.23934969305992126,
-0.08372773975133896,
-0.15568137168884277,
0.44736385345458984,
-0.2331104725599289,
-0.30826887488365173,
-0.32368701696395874,
-0.16940513253211975,
-0.13931749761104584,
0.23012082278728485,
0.3838663399219513,
-0.06221884861588478,
0.43118661642074585,
0.12459880113601685,
0.011359285563230515,
0.15285992622375488,
0.49191024899482727,
0.06363511830568314,
-0.3226573169231415,
0.013860343024134636,
-0.07663198560476303,
-0.06624113768339157,
0.1047007143497467,
-0.1711347997188568,
-0.05018734186887741,
-0.23984116315841675,
0.0972217321395874,
-0.0035304101184010506,
0.15182030200958252,
0.42556068301200867,
-0.10822911560535431,
-0.24511614441871643,
-0.21912230551242828,
0.42718029022216797,
-0.17715270817279816,
-0.12951475381851196,
0.5154322981834412,
-0.006207644939422607,
-0.3356125056743622,
-0.020732054486870766,
0.08398061245679855,
0.7094555497169495,
0.0991070345044136,
-0.12088124454021454,
0.17713585495948792,
-0.03113245591521263,
0.475393682718277,
-0.10265669226646423,
0.06006776914000511,
-0.39322566986083984,
-0.28650549054145813,
0.030526934191584587,
-0.08282122015953064,
-0.0018688961863517761,
-0.06601372361183167,
-0.24232089519500732,
0.15891797840595245,
-0.23068206012248993,
0.2066059559583664,
-0.017879962921142578,
0.1850142776966095,
-0.16474919021129608,
0.043577179312705994,
-0.1825798898935318,
0.24337413907051086,
0.14473150670528412,
0.23523704707622528,
-0.11684175580739975,
-0.10288050025701523,
-0.09414875507354736,
-0.3097072243690491,
-0.21972213685512543,
0.1822531819343567,
-0.37706291675567627,
0.34497594833374023,
-0.14593996107578278,
-0.24864526093006134,
0.17070461809635162,
0.28472900390625,
0.3534596562385559,
0.17200350761413574,
-0.41392531991004944,
0.20326988399028778,
-0.02589503675699234,
-0.14912523329257965,
-0.03264959156513214,
0.04587331786751747,
-0.0010711215436458588,
-0.09614574909210205,
-0.3061394691467285,
0.2974219024181366,
-0.17280183732509613,
0.025881655514240265,
0.10316109657287598,
-0.02986627072095871,
0.3697900176048279,
-0.1566091924905777,
-0.17621353268623352,
-0.026661373674869537,
-0.008432373404502869,
-0.3205212950706482,
0.25085189938545227,
-0.13746760785579681,
-0.14417333900928497,
0.21720001101493835,
-0.09287920594215393,
-0.17134863138198853,
0.07196364551782608,
0.594721794128418,
-0.03260792791843414,
0.03415790945291519,
0.6458591222763062,
-0.06086535006761551,
-0.1477658599615097,
-0.3684462010860443,
0.21618115901947021,
0.06609825044870377,
-0.32336047291755676,
0.007592815440148115,
0.08540946245193481,
0.16411159932613373,
-0.060898229479789734,
0.30718958377838135,
0.05262481048703194,
0.01755678281188011,
-0.07995008677244186,
-0.4100439250469208,
-0.28220319747924805,
0.05875561386346817,
-0.22100700438022614,
0.25026217103004456,
-0.06141533702611923,
0.07843755185604095,
0.07536818832159042,
-0.06497717648744583,
-0.4348474144935608,
0.02354740910232067,
-0.14807911217212677,
-0.042309969663619995,
0.11213545501232147,
-0.011547181755304337,
0.17364658415317535,
0.020966332405805588,
0.2771196663379669,
0.07462164759635925,
-0.24862593412399292,
-0.3638424873352051,
-0.051423080265522,
0.09721412509679794,
0.06572350114583969,
-0.1704976111650467,
0.04463789612054825,
-0.10423637181520462,
-0.06315913796424866,
-0.023041756823658943,
0.2132544219493866,
-0.09779065102338791,
-0.04069405794143677,
0.0058301882818341255,
0.2796226739883423,
0.044448480010032654,
-0.1338200569152832,
0.0697745606303215,
-0.17744436860084534,
0.04560057446360588,
-0.035869818180799484,
0.19399188458919525,
0.02829594723880291,
-0.032467205077409744,
0.16048011183738708,
0.03214595466852188,
-0.0003089010715484619,
0.1689833402633667,
0.34111329913139343,
-0.27019423246383667,
-0.0910462886095047,
0.16402114927768707,
0.08622516691684723,
0.5175604820251465,
-0.3443877100944519,
-0.09991978853940964,
0.2835189402103424,
0.40278735756874084,
-0.2832227647304535,
-0.15784262120723724,
-0.09555856883525848,
0.046622805297374725,
-0.01580432429909706,
-0.02832583338022232,
0.11960965394973755,
-0.5217717289924622,
0.07826364785432816,
0.09570590406656265,
0.3479129374027252,
-0.1712191104888916,
0.2195545881986618,
0.5279427766799927,
-0.027492227032780647,
-0.08441227674484253,
-0.10365717858076096,
0.00846766121685505,
0.22127088904380798,
0.4354594945907593,
-0.2283705472946167,
0.2329534888267517,
-0.2482842206954956,
0.15281464159488678,
-0.16468733549118042,
-0.43035855889320374,
0.2658497393131256,
0.06921941787004471,
-0.25179147720336914,
0.08513650298118591,
0.026304025202989578,
0.05728612467646599,
-0.054437655955553055,
0.032488878816366196,
-0.44695591926574707,
0.16987910866737366,
0.0440213680267334,
-0.21664686501026154,
-0.1927783340215683,
-0.16249074041843414,
-0.12015177309513092,
-0.06450527906417847,
-0.12294064462184906,
-0.030749835073947906,
0.1304095834493637,
0.0770709440112114,
-0.12509198486804962,
-0.2221234291791916,
-0.07282210886478424,
0.40558794140815735,
0.20351481437683105,
-0.28857192397117615,
0.30458125472068787,
0.25940874218940735,
0.03172940015792847,
-0.14469817280769348,
0.3858892321586609,
0.3283308744430542,
0.5300722718238831,
-0.32873523235321045,
0.05799968168139458,
0.15734505653381348,
-0.09688125550746918,
-0.10529104620218277,
0.22734422981739044,
-0.049508482217788696,
0.01218080148100853,
0.4133806824684143,
0.2820535898208618,
-0.2703486382961273,
-0.14822666347026825,
0.042258281260728836,
0.07981647551059723,
-0.1734040081501007,
0.14440934360027313,
0.04848196357488632,
0.06670623272657394,
-0.20490747690200806,
0.16024580597877502,
-0.5387022495269775,
-0.11186988651752472,
0.2235066443681717,
0.00910109467804432,
0.21894127130508423,
-0.18401113152503967,
0.14492598176002502,
-0.0671277791261673,
0.5501117706298828,
0.166998490691185,
0.10471615940332413,
-0.21611833572387695,
-0.3784360885620117,
-0.33800843358039856,
0.16601870954036713,
-0.09017357230186462,
-0.1827467828989029,
0.1091836616396904,
0.022506820037961006,
-0.20990264415740967,
0.09101512283086777,
0.26946449279785156,
0.355891615152359,
-0.10224009305238724,
0.3010687828063965,
-0.351249098777771,
-0.11193026602268219,
-0.1134500503540039,
-0.030994078144431114,
0.08192639797925949,
-0.5362480282783508,
0.1583297699689865,
-0.2749902904033661,
0.18834498524665833,
-0.08867449313402176,
0.10808847844600677,
0.07355789840221405,
-0.5162143707275391,
0.693347692489624,
0.08123114705085754,
0.22493845224380493,
-0.18538188934326172,
-0.06095484644174576,
-0.4585303068161011,
-0.22222639620304108,
-0.2234693020582199,
0.1400301158428192,
0.1471657007932663,
0.2233094573020935,
-0.05501826852560043,
-0.2786615490913391,
-0.07887987792491913,
0.08117947727441788,
0.19051465392112732,
0.29761746525764465,
-0.026791639626026154,
0.059112124145030975,
-0.05252043157815933,
0.08589556813240051,
0.23311872780323029,
0.020824216306209564,
-0.13583731651306152,
0.13915657997131348,
-0.2075883448123932,
-0.4402931034564972,
0.42509639263153076,
-0.19908097386360168,
-0.29480692744255066,
-0.08756549656391144,
0.4614740312099457,
-0.30399489402770996,
-0.0244834553450346,
-0.4334653317928314,
0.18969711661338806,
0.4931623339653015,
0.09897816926240921,
-0.10961949825286865,
0.1982751190662384,
0.004555955529212952,
0.0939825028181076,
-0.08679774403572083,
0.06742509454488754,
-0.11502165347337723,
0.025724167004227638,
-0.0311751626431942,
-0.2585456073284149
] |
https://github.com/huggingface/datasets/issues/4399 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name | Ok, so
```
os.path.basename("/home/user/")
```
gives `''` while
```
os.path.basename("/home/user")
```
gives `user`.
The code should check if the last char is a slash.
| ## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
| 24 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
Ok, so
```
os.path.basename("/home/user/")
```
gives `''` while
```
os.path.basename("/home/user")
```
gives `user`.
The code should check if the last char is a slash.
| [
-0.3629179000854492,
0.38892054557800293,
0.037886541336774826,
0.39080625772476196,
0.36331117153167725,
-0.08149291574954987,
0.48293718695640564,
0.5021459460258484,
0.11432813107967377,
0.41062986850738525,
0.07893934845924377,
0.29017600417137146,
0.008577247150242329,
-0.05256213992834091,
0.15353450179100037,
0.11076556146144867,
-0.23168137669563293,
0.23677723109722137,
0.0974547415971756,
-0.048054732382297516,
-0.15144695341587067,
0.1912442296743393,
0.012604445219039917,
0.4464966058731079,
-0.34945714473724365,
0.11317077279090881,
0.21405407786369324,
0.2656889855861664,
0.03739451617002487,
-0.3703395426273346,
0.2739361524581909,
-0.12711471319198608,
-0.08611848205327988,
0.3845891058444977,
-0.00011346485553076491,
0.10412284731864929,
0.42947906255722046,
-0.08437979221343994,
-0.3101493716239929,
-0.24779663980007172,
-0.04195372760295868,
-0.10593145340681076,
0.2164110690355301,
-0.35201290249824524,
-0.13703210651874542,
0.07804585993289948,
-0.11855092644691467,
-0.41169273853302,
0.2969740331172943,
0.4220336675643921,
0.18345846235752106,
0.18454554677009583,
-0.1021726131439209,
-0.11270987242460251,
0.03542644530534744,
0.2990281879901886,
-0.04882688820362091,
0.25823748111724854,
0.3272336721420288,
-0.3535931408405304,
-0.0004743635654449463,
0.028606507927179337,
-0.13703736662864685,
-0.027983762323856354,
-0.01480315625667572,
0.04365859553217888,
0.147780179977417,
-0.1334788054227829,
0.4491231441497803,
0.3709273934364319,
0.6906945109367371,
-0.3244909346103668,
-0.15621256828308105,
-0.19701001048088074,
0.034566689282655716,
0.06756864488124847,
0.4083978533744812,
-0.025147775188088417,
-0.5811172723770142,
0.23802806437015533,
0.1187678724527359,
-0.0645560696721077,
0.03324372321367264,
0.0017787590622901917,
0.04836810380220413,
0.2621920704841614,
-0.08061616867780685,
0.18587461113929749,
-0.2263421267271042,
-0.028307601809501648,
0.3941527307033539,
-0.34242939949035645,
0.01334986463189125,
0.21086211502552032,
-0.06619817018508911,
-0.021602559834718704,
0.2666487395763397,
0.08956117928028107,
0.08994432538747787,
-0.07753615081310272,
-0.12783271074295044,
-0.007762659341096878,
0.23194760084152222,
0.07589481770992279,
0.19358882308006287,
0.2525022029876709,
0.6238400340080261,
0.2876794934272766,
-0.03652900457382202,
0.1271330565214157,
-0.3004016876220703,
-0.03668150305747986,
-0.15351484715938568,
-0.18756043910980225,
-0.05812013894319534,
0.0016138684004545212,
0.3877025842666626,
-0.3596867620944977,
-0.09339909255504608,
0.09702062606811523,
-0.013647407293319702,
0.03858872503042221,
0.10181370377540588,
0.2870047390460968,
0.014012978412210941,
0.06837273389101028,
0.20593354105949402,
-0.027220144867897034,
-0.04508882761001587,
-0.3147343099117279,
-0.30410540103912354,
-0.018150214105844498,
-0.12168771028518677,
0.03848128020763397,
-0.049997564405202866,
-0.21426470577716827,
0.43999776244163513,
-0.17124177515506744,
0.04880688339471817,
0.02231334149837494,
0.024753952398896217,
0.12107357382774353,
-0.01572714000940323,
0.15947481989860535,
-0.21556486189365387,
0.0650373324751854,
0.23896333575248718,
-0.6704176664352417,
-0.06069459021091461,
0.03494574874639511,
-0.05225452035665512,
-0.6129394769668579,
-0.3708784878253937,
0.25107699632644653,
-0.09866297245025635,
0.27907970547676086,
0.12798301875591278,
-0.030366066843271255,
0.5235538482666016,
-0.18497410416603088,
-0.1268766224384308,
-0.013001769781112671,
0.1280992329120636,
-0.02230093441903591,
0.19482876360416412,
0.48196613788604736,
-0.39381158351898193,
0.07730188965797424,
-0.2471531182527542,
-0.31069421768188477,
0.14242903888225555,
-0.20091277360916138,
-0.45918557047843933,
0.5864149928092957,
-0.3453526496887207,
-0.11123870313167572,
0.8526448011398315,
-0.3912569582462311,
-0.4051673114299774,
0.4704047739505768,
-0.2793731689453125,
-0.07195062190294266,
0.1241743192076683,
-0.3237912058830261,
-0.14555855095386505,
-0.016624918207526207,
0.2496359646320343,
0.2736925482749939,
-0.24572423100471497,
-0.07950747013092041,
-0.24248334765434265,
-0.09334636479616165,
-0.042594075202941895,
0.2148331105709076,
0.1545848548412323,
0.3740237355232239,
0.02369321882724762,
0.02599364146590233,
0.5568772554397583,
0.07549647241830826,
-0.017407873645424843,
0.15893656015396118,
0.08146362006664276,
0.24519307911396027,
0.08966716378927231,
-0.2616601884365082,
-0.4605434536933899,
0.2562931776046753,
-0.42858564853668213,
0.09246811270713806,
-0.2882711887359619,
-0.13925650715827942,
-0.2602681815624237,
0.17596246302127838,
-0.3313256502151489,
-0.1270957589149475,
0.1308334320783615,
0.36631131172180176,
-0.060755655169487,
-0.35388779640197754,
-0.2475694864988327,
-0.16865843534469604,
-0.024901781231164932,
0.04911619424819946,
-0.27437856793403625,
0.16834895312786102,
-0.12181616574525833,
-0.11980517208576202,
-0.2529732286930084,
0.11833885312080383,
0.01794174686074257,
-0.2039967030286789,
-0.2538696825504303,
0.23196101188659668,
0.240976482629776,
-0.1253545582294464,
-0.13944628834724426,
-0.17840911448001862,
-0.1105450764298439,
0.12960106134414673,
-0.00942469947040081,
0.03855951130390167,
0.28560879826545715,
0.044697701930999756,
0.15264105796813965,
0.11304027587175369,
0.146719828248024,
0.29938817024230957,
-0.33556705713272095,
0.061641618609428406,
0.33286985754966736,
-0.11302155256271362,
0.24659210443496704,
-0.4325011074542999,
0.15067268908023834,
0.37289324402809143,
0.6006489992141724,
-0.02868490107357502,
-0.050899360328912735,
0.020298562943935394,
0.21366843581199646,
0.015683211386203766,
-0.20232561230659485,
-0.2074495255947113,
0.18936946988105774,
0.017564233392477036,
0.0856781154870987,
0.028072353452444077,
0.2978256940841675,
0.10818984359502792,
-0.2525029480457306,
0.09667885303497314,
0.04631717503070831,
-0.25275349617004395,
0.19529742002487183,
0.15294195711612701,
0.04916740581393242,
0.31193193793296814,
-0.14377976953983307,
0.022653937339782715,
-0.3495376706123352,
-0.3605758249759674,
0.24157410860061646,
0.08624862134456635,
-0.13507409393787384,
0.19048473238945007,
-0.16550475358963013,
-0.22526109218597412,
-0.502464771270752,
-0.08409641683101654,
-0.3281457722187042,
-0.31363818049430847,
-0.13936667144298553,
0.07629554718732834,
-0.3671266436576843,
0.32799744606018066,
0.18345721065998077,
0.1495577096939087,
-0.006218908354640007,
-0.4193837642669678,
-0.20050083100795746,
-0.12763150036334991,
-0.5451475977897644,
0.00018703937530517578,
0.2497352808713913,
0.004412476439028978,
0.11524870991706848,
-0.14545713365077972,
-0.16175338625907898,
-0.15710505843162537,
-0.27559617161750793,
0.41280341148376465,
0.11154307425022125,
0.696390688419342,
0.2851164937019348,
-0.24298195540905,
0.37338703870773315,
-0.27669915556907654,
0.36049818992614746,
0.1111910492181778,
-0.09558771550655365,
-0.07686823606491089,
0.18966424465179443,
-0.1485091596841812,
-0.14280766248703003,
-0.04096253961324692,
-0.11420273035764694,
-0.36235523223876953,
-0.27983564138412476,
0.01872822642326355,
0.23819600045681,
0.2502768635749817,
-0.20961154997348785,
0.3273407816886902,
0.0012147319503128529,
0.15687809884548187,
-0.24731461703777313,
-0.24467825889587402,
-0.04601671174168587,
-0.22070947289466858,
-0.16983841359615326,
-0.41822943091392517,
-0.12976454198360443,
0.20773173868656158,
0.012147743254899979,
-0.2219473421573639,
-0.22576141357421875,
0.10608576983213425,
0.21810153126716614,
0.0030046962201595306,
-0.17587122321128845,
0.4184737205505371,
0.2973593473434448,
0.07070829719305038,
-0.17902889847755432,
-0.22768734395503998,
0.1476992964744568,
0.120531365275383,
0.34508687257766724,
0.10555925220251083,
0.3077029585838318,
-0.2568717300891876,
0.3345533013343811,
-0.06859299540519714,
-0.04948384687304497,
0.08586696535348892,
-0.22040767967700958,
0.21745836734771729,
-0.271105021238327,
-0.36264798045158386,
0.0571332722902298,
0.24058175086975098,
-0.5050826072692871,
0.18522945046424866,
-0.37768176198005676,
-0.005713164806365967,
-0.25833505392074585,
0.020948588848114014,
-0.18299263715744019,
-0.21968528628349304,
-0.005168380215764046,
-0.38039544224739075,
0.08534446358680725,
0.3413276672363281,
0.22618436813354492,
-0.12175923585891724,
0.1825084090232849,
0.11857052147388458,
0.1893627941608429,
-0.010514318943023682,
-0.1460818350315094,
-0.27970120310783386,
-0.07481303811073303,
-0.2866721749305725,
0.27331167459487915,
0.13303162157535553,
0.12370704114437103,
-0.031662389636039734,
-0.0778871476650238,
0.12818120419979095,
0.13218283653259277,
0.4710918664932251,
-0.23184265196323395,
0.24113783240318298,
0.4879954159259796,
-0.019359461963176727,
-0.19514402747154236,
-0.18841075897216797,
0.0336291678249836,
0.3554054796695709,
-0.19095788896083832,
0.28676533699035645,
-0.08508080989122391,
-0.4366816580295563,
0.05487570911645889,
0.35570642352104187,
-0.37140005826950073,
-0.18644718825817108,
-0.2177926003932953,
-0.2671931982040405,
-0.12239677459001541,
0.0017247572541236877,
-0.20154140889644623,
0.688880443572998,
0.493958055973053,
0.03785889223217964,
-0.08082041889429092,
0.07814262807369232,
-0.07105164229869843,
0.08513706922531128,
0.27273139357566833,
-0.20452380180358887,
0.1732730269432068,
-0.1749383956193924,
0.3757423758506775,
0.026026032865047455,
0.5290929079055786,
0.07252441346645355,
-0.37031739950180054,
0.03889968991279602,
-0.07986622303724289,
0.14187222719192505,
0.42261266708374023,
-0.059648849070072174,
-0.2752257287502289,
-0.08576109260320663,
0.12748375535011292,
0.016979390755295753,
0.38445115089416504,
-0.027582528069615364,
-0.0884883850812912,
0.010277017019689083,
-0.3354848623275757,
0.35431355237960815,
-0.2652212381362915,
-0.13984033465385437,
0.5877319574356079,
-0.05140617489814758,
-0.4399122893810272,
0.4548724293708801,
0.13949303328990936,
0.8361124396324158,
0.31179285049438477,
-0.13696089386940002,
0.5035006999969482,
-0.10032905638217926,
0.1240910142660141,
0.06113250553607941,
-0.07618773728609085,
-0.5055689811706543,
-0.09886287897825241,
0.06268513947725296,
-0.07116962969303131,
0.2857706844806671,
0.3349590301513672,
0.11378562450408936,
0.2736877202987671,
-0.09019069373607635,
0.38835957646369934,
0.17260754108428955,
0.12016500532627106,
0.08714345097541809,
-0.18432122468948364,
-0.3400602340698242,
0.03488446772098541,
-0.045947521924972534,
0.41836580634117126,
-0.1274999976158142,
-0.06005045771598816,
0.18958257138729095,
-0.2947821021080017,
0.056953489780426025,
0.29479044675827026,
-0.5157187581062317,
0.17870043218135834,
0.10893921554088593,
-0.0226641446352005,
-0.03551073372364044,
0.10978341102600098,
-0.015472851693630219,
0.3307141065597534,
-0.11952930688858032,
0.2553060054779053,
0.07811083644628525,
0.16993315517902374,
-0.016918595880270004,
0.065405935049057,
0.5099183917045593,
-0.13880035281181335,
-0.15481743216514587,
0.08772106468677521,
-0.2954421043395996,
-0.12850303947925568,
0.4114159941673279,
-0.11942464113235474,
0.1864193081855774,
-0.4737437665462494,
-0.015468830242753029,
0.01566971093416214,
0.3024095892906189,
-0.02424677275121212,
0.1294027715921402,
-0.04521528631448746,
-0.45270270109176636,
-0.040571413934230804,
-0.2614302635192871,
-0.1918700486421585,
0.05145389214158058,
0.20099250972270966,
0.178818017244339,
-0.15936791896820068,
0.4923414885997772,
-0.17062535881996155,
0.1479572355747223,
-0.3145979642868042,
0.007134191691875458,
0.1872737854719162,
-0.34509333968162537,
0.16009442508220673,
-0.19974973797798157,
-0.32189470529556274,
0.07401513308286667,
0.22213366627693176,
0.2507116198539734,
0.17410960793495178,
-0.1758577674627304,
-0.20377780497074127,
-0.3946121633052826,
-0.06891833245754242,
-0.032911937683820724,
-0.008016109466552734,
0.0500137135386467,
0.41679880023002625,
0.0005773771554231644,
0.08403856307268143,
-0.2755016088485718,
-0.1662188023328781,
-0.22732257843017578,
0.45578500628471375,
-0.13932567834854126,
0.23681315779685974,
0.12503516674041748,
-0.016429679468274117,
0.14421610534191132,
-0.028918102383613586,
-0.25763174891471863,
-0.19506767392158508,
-0.12799303233623505,
0.1596081405878067,
0.12353451550006866,
0.023077651858329773,
-0.06480398029088974,
-0.07512354105710983,
-0.1319757103919983,
-0.17354409396648407,
0.2229081690311432,
-0.14693553745746613,
0.07191971689462662,
0.08426026254892349,
0.4647311568260193,
0.08769538253545761,
-0.27553901076316833,
0.05630940943956375,
-0.1361352503299713,
0.1581047922372818,
0.011352969333529472,
0.1699918657541275,
-0.10940250009298325,
-0.11120442301034927,
0.09714385867118835,
0.051089003682136536,
-0.33542943000793457,
0.11337815970182419,
0.24675098061561584,
-0.2691729664802551,
-0.19345201551914215,
0.5400638580322266,
0.16081437468528748,
0.3626745343208313,
-0.22250652313232422,
-0.12871134281158447,
0.29011279344558716,
0.21112358570098877,
-0.24471409618854523,
-0.058682382106781006,
0.07289327681064606,
-0.07371854782104492,
-0.011014953255653381,
0.15646666288375854,
-0.03473033756017685,
-0.16524864733219147,
0.07212325930595398,
0.04076980799436569,
0.36212173104286194,
-0.04336962103843689,
0.16349361836910248,
0.4220800995826721,
-0.25311198830604553,
0.2470538467168808,
0.4502515494823456,
0.3408341109752655,
0.14377591013908386,
0.5304273366928101,
-0.1948927640914917,
0.006683638319373131,
-0.3620399832725525,
0.11497416347265244,
0.16847525537014008,
-0.23440319299697876,
0.2690716087818146,
0.2259126603603363,
-0.15120962262153625,
-0.11961711198091507,
-0.15287649631500244,
-0.16097986698150635,
-0.4070848822593689,
-0.0015825685113668442,
-0.09210831671953201,
0.025617625564336777,
-0.34981489181518555,
0.024700723588466644,
-0.3452839255332947,
-0.06530313938856125,
-0.06982135772705078,
-0.10742183029651642,
0.13733111321926117,
0.09160933643579483,
0.15731774270534515,
-0.25157052278518677,
-0.2201535552740097,
0.04207348823547363,
-0.12782734632492065,
0.26086267828941345,
-0.07684724777936935,
-0.44288530945777893,
0.3594268262386322,
-0.06001564860343933,
-0.16569291055202484,
-0.053581517189741135,
0.2717227041721344,
0.2360859215259552,
0.2495337575674057,
-0.12598808109760284,
-0.2525135576725006,
-0.26741304993629456,
-0.1164708361029625,
-0.23613028228282928,
0.29595449566841125,
-0.2606978416442871,
0.17705757915973663,
0.4565812945365906,
0.12473291158676147,
-0.12154925614595413,
-0.12014137208461761,
0.22110922634601593,
0.22071121633052826,
-0.20956802368164062,
0.37322869896888733,
0.10515524446964264,
-0.14063991606235504,
-0.35178640484809875,
0.0929669439792633,
-0.18974095582962036,
-0.04421631246805191,
0.44039100408554077,
0.16716597974300385,
0.2460325062274933,
-0.04041704162955284,
0.09592969715595245,
-0.04035598412156105,
0.3709631860256195,
0.1399405598640442,
-0.2586614787578583,
-0.23565608263015747,
-0.33134931325912476,
-0.41324755549430847,
0.24748164415359497,
0.3162374496459961,
-0.08186731487512589,
0.21937328577041626,
0.030584750697016716,
0.04333781450986862,
0.03406864032149315,
-0.36792105436325073,
0.22821791470050812,
0.102119579911232,
-0.2722237706184387,
-0.21417589485645294,
-0.3221835494041443,
-0.21298636496067047,
0.11553185433149338,
0.1445704847574234,
-0.5449748635292053,
0.013491697609424591,
-0.2541729509830475,
0.009347528219223022,
-0.23203475773334503,
-0.29248693585395813,
0.3701959550380707,
-0.13654005527496338,
0.30575504899024963,
0.12466485053300858,
0.06554488837718964,
-0.06481624394655228,
0.08900636434555054,
-0.2037876546382904,
-0.17132344841957092,
-0.31155213713645935,
0.2579977810382843,
0.1227695643901825,
0.15953202545642853,
-0.0672716349363327,
0.39179667830467224,
-0.44677892327308655,
0.126088485121727,
-0.026385176926851273,
0.10850772261619568,
-0.12184891849756241,
-0.06434502452611923,
-0.19037076830863953,
0.2410319745540619,
0.30285489559173584,
0.11272169649600983,
0.07295414805412292,
0.23697777092456818,
-0.2891569137573242,
-0.37834471464157104,
0.6175777316093445,
-0.0354977585375309,
-0.5250323414802551,
-0.14335133135318756,
0.38457104563713074,
-0.17139077186584473,
-0.26409000158309937,
-0.27009016275405884,
0.032654546201229095,
0.4238118827342987,
-0.19700905680656433,
-0.049841806292533875,
0.0820154994726181,
-0.04368847981095314,
0.33877164125442505,
-0.09294261038303375,
0.050086505711078644,
0.131662517786026,
-0.06843136250972748,
-0.14147929847240448,
-0.1433672308921814
] |
https://github.com/huggingface/datasets/issues/4399 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name | I came through the same issue , just removing the last slash in the dataset path fixed it for me, may be this repo moderators could accept this as an accepted answer atleast if this could not be integrated
> The fix is:
>
> ```
> "name": os.path.basename(self.path[:-1] if self.path[-1] == "/" else self.path)
> ```
@apohllo consider making a pull request on this
Thanks for the amazing contributions from huggingface people !!
| ## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
| 74 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
I came through the same issue , just removing the last slash in the dataset path fixed it for me, may be this repo moderators could accept this as an accepted answer atleast if this could not be integrated
> The fix is:
>
> ```
> "name": os.path.basename(self.path[:-1] if self.path[-1] == "/" else self.path)
> ```
@apohllo consider making a pull request on this
Thanks for the amazing contributions from huggingface people !!
| [
-0.3629179000854492,
0.38892054557800293,
0.037886541336774826,
0.39080625772476196,
0.36331117153167725,
-0.08149291574954987,
0.48293718695640564,
0.5021459460258484,
0.11432813107967377,
0.41062986850738525,
0.07893934845924377,
0.29017600417137146,
0.008577247150242329,
-0.05256213992834091,
0.15353450179100037,
0.11076556146144867,
-0.23168137669563293,
0.23677723109722137,
0.0974547415971756,
-0.048054732382297516,
-0.15144695341587067,
0.1912442296743393,
0.012604445219039917,
0.4464966058731079,
-0.34945714473724365,
0.11317077279090881,
0.21405407786369324,
0.2656889855861664,
0.03739451617002487,
-0.3703395426273346,
0.2739361524581909,
-0.12711471319198608,
-0.08611848205327988,
0.3845891058444977,
-0.00011346485553076491,
0.10412284731864929,
0.42947906255722046,
-0.08437979221343994,
-0.3101493716239929,
-0.24779663980007172,
-0.04195372760295868,
-0.10593145340681076,
0.2164110690355301,
-0.35201290249824524,
-0.13703210651874542,
0.07804585993289948,
-0.11855092644691467,
-0.41169273853302,
0.2969740331172943,
0.4220336675643921,
0.18345846235752106,
0.18454554677009583,
-0.1021726131439209,
-0.11270987242460251,
0.03542644530534744,
0.2990281879901886,
-0.04882688820362091,
0.25823748111724854,
0.3272336721420288,
-0.3535931408405304,
-0.0004743635654449463,
0.028606507927179337,
-0.13703736662864685,
-0.027983762323856354,
-0.01480315625667572,
0.04365859553217888,
0.147780179977417,
-0.1334788054227829,
0.4491231441497803,
0.3709273934364319,
0.6906945109367371,
-0.3244909346103668,
-0.15621256828308105,
-0.19701001048088074,
0.034566689282655716,
0.06756864488124847,
0.4083978533744812,
-0.025147775188088417,
-0.5811172723770142,
0.23802806437015533,
0.1187678724527359,
-0.0645560696721077,
0.03324372321367264,
0.0017787590622901917,
0.04836810380220413,
0.2621920704841614,
-0.08061616867780685,
0.18587461113929749,
-0.2263421267271042,
-0.028307601809501648,
0.3941527307033539,
-0.34242939949035645,
0.01334986463189125,
0.21086211502552032,
-0.06619817018508911,
-0.021602559834718704,
0.2666487395763397,
0.08956117928028107,
0.08994432538747787,
-0.07753615081310272,
-0.12783271074295044,
-0.007762659341096878,
0.23194760084152222,
0.07589481770992279,
0.19358882308006287,
0.2525022029876709,
0.6238400340080261,
0.2876794934272766,
-0.03652900457382202,
0.1271330565214157,
-0.3004016876220703,
-0.03668150305747986,
-0.15351484715938568,
-0.18756043910980225,
-0.05812013894319534,
0.0016138684004545212,
0.3877025842666626,
-0.3596867620944977,
-0.09339909255504608,
0.09702062606811523,
-0.013647407293319702,
0.03858872503042221,
0.10181370377540588,
0.2870047390460968,
0.014012978412210941,
0.06837273389101028,
0.20593354105949402,
-0.027220144867897034,
-0.04508882761001587,
-0.3147343099117279,
-0.30410540103912354,
-0.018150214105844498,
-0.12168771028518677,
0.03848128020763397,
-0.049997564405202866,
-0.21426470577716827,
0.43999776244163513,
-0.17124177515506744,
0.04880688339471817,
0.02231334149837494,
0.024753952398896217,
0.12107357382774353,
-0.01572714000940323,
0.15947481989860535,
-0.21556486189365387,
0.0650373324751854,
0.23896333575248718,
-0.6704176664352417,
-0.06069459021091461,
0.03494574874639511,
-0.05225452035665512,
-0.6129394769668579,
-0.3708784878253937,
0.25107699632644653,
-0.09866297245025635,
0.27907970547676086,
0.12798301875591278,
-0.030366066843271255,
0.5235538482666016,
-0.18497410416603088,
-0.1268766224384308,
-0.013001769781112671,
0.1280992329120636,
-0.02230093441903591,
0.19482876360416412,
0.48196613788604736,
-0.39381158351898193,
0.07730188965797424,
-0.2471531182527542,
-0.31069421768188477,
0.14242903888225555,
-0.20091277360916138,
-0.45918557047843933,
0.5864149928092957,
-0.3453526496887207,
-0.11123870313167572,
0.8526448011398315,
-0.3912569582462311,
-0.4051673114299774,
0.4704047739505768,
-0.2793731689453125,
-0.07195062190294266,
0.1241743192076683,
-0.3237912058830261,
-0.14555855095386505,
-0.016624918207526207,
0.2496359646320343,
0.2736925482749939,
-0.24572423100471497,
-0.07950747013092041,
-0.24248334765434265,
-0.09334636479616165,
-0.042594075202941895,
0.2148331105709076,
0.1545848548412323,
0.3740237355232239,
0.02369321882724762,
0.02599364146590233,
0.5568772554397583,
0.07549647241830826,
-0.017407873645424843,
0.15893656015396118,
0.08146362006664276,
0.24519307911396027,
0.08966716378927231,
-0.2616601884365082,
-0.4605434536933899,
0.2562931776046753,
-0.42858564853668213,
0.09246811270713806,
-0.2882711887359619,
-0.13925650715827942,
-0.2602681815624237,
0.17596246302127838,
-0.3313256502151489,
-0.1270957589149475,
0.1308334320783615,
0.36631131172180176,
-0.060755655169487,
-0.35388779640197754,
-0.2475694864988327,
-0.16865843534469604,
-0.024901781231164932,
0.04911619424819946,
-0.27437856793403625,
0.16834895312786102,
-0.12181616574525833,
-0.11980517208576202,
-0.2529732286930084,
0.11833885312080383,
0.01794174686074257,
-0.2039967030286789,
-0.2538696825504303,
0.23196101188659668,
0.240976482629776,
-0.1253545582294464,
-0.13944628834724426,
-0.17840911448001862,
-0.1105450764298439,
0.12960106134414673,
-0.00942469947040081,
0.03855951130390167,
0.28560879826545715,
0.044697701930999756,
0.15264105796813965,
0.11304027587175369,
0.146719828248024,
0.29938817024230957,
-0.33556705713272095,
0.061641618609428406,
0.33286985754966736,
-0.11302155256271362,
0.24659210443496704,
-0.4325011074542999,
0.15067268908023834,
0.37289324402809143,
0.6006489992141724,
-0.02868490107357502,
-0.050899360328912735,
0.020298562943935394,
0.21366843581199646,
0.015683211386203766,
-0.20232561230659485,
-0.2074495255947113,
0.18936946988105774,
0.017564233392477036,
0.0856781154870987,
0.028072353452444077,
0.2978256940841675,
0.10818984359502792,
-0.2525029480457306,
0.09667885303497314,
0.04631717503070831,
-0.25275349617004395,
0.19529742002487183,
0.15294195711612701,
0.04916740581393242,
0.31193193793296814,
-0.14377976953983307,
0.022653937339782715,
-0.3495376706123352,
-0.3605758249759674,
0.24157410860061646,
0.08624862134456635,
-0.13507409393787384,
0.19048473238945007,
-0.16550475358963013,
-0.22526109218597412,
-0.502464771270752,
-0.08409641683101654,
-0.3281457722187042,
-0.31363818049430847,
-0.13936667144298553,
0.07629554718732834,
-0.3671266436576843,
0.32799744606018066,
0.18345721065998077,
0.1495577096939087,
-0.006218908354640007,
-0.4193837642669678,
-0.20050083100795746,
-0.12763150036334991,
-0.5451475977897644,
0.00018703937530517578,
0.2497352808713913,
0.004412476439028978,
0.11524870991706848,
-0.14545713365077972,
-0.16175338625907898,
-0.15710505843162537,
-0.27559617161750793,
0.41280341148376465,
0.11154307425022125,
0.696390688419342,
0.2851164937019348,
-0.24298195540905,
0.37338703870773315,
-0.27669915556907654,
0.36049818992614746,
0.1111910492181778,
-0.09558771550655365,
-0.07686823606491089,
0.18966424465179443,
-0.1485091596841812,
-0.14280766248703003,
-0.04096253961324692,
-0.11420273035764694,
-0.36235523223876953,
-0.27983564138412476,
0.01872822642326355,
0.23819600045681,
0.2502768635749817,
-0.20961154997348785,
0.3273407816886902,
0.0012147319503128529,
0.15687809884548187,
-0.24731461703777313,
-0.24467825889587402,
-0.04601671174168587,
-0.22070947289466858,
-0.16983841359615326,
-0.41822943091392517,
-0.12976454198360443,
0.20773173868656158,
0.012147743254899979,
-0.2219473421573639,
-0.22576141357421875,
0.10608576983213425,
0.21810153126716614,
0.0030046962201595306,
-0.17587122321128845,
0.4184737205505371,
0.2973593473434448,
0.07070829719305038,
-0.17902889847755432,
-0.22768734395503998,
0.1476992964744568,
0.120531365275383,
0.34508687257766724,
0.10555925220251083,
0.3077029585838318,
-0.2568717300891876,
0.3345533013343811,
-0.06859299540519714,
-0.04948384687304497,
0.08586696535348892,
-0.22040767967700958,
0.21745836734771729,
-0.271105021238327,
-0.36264798045158386,
0.0571332722902298,
0.24058175086975098,
-0.5050826072692871,
0.18522945046424866,
-0.37768176198005676,
-0.005713164806365967,
-0.25833505392074585,
0.020948588848114014,
-0.18299263715744019,
-0.21968528628349304,
-0.005168380215764046,
-0.38039544224739075,
0.08534446358680725,
0.3413276672363281,
0.22618436813354492,
-0.12175923585891724,
0.1825084090232849,
0.11857052147388458,
0.1893627941608429,
-0.010514318943023682,
-0.1460818350315094,
-0.27970120310783386,
-0.07481303811073303,
-0.2866721749305725,
0.27331167459487915,
0.13303162157535553,
0.12370704114437103,
-0.031662389636039734,
-0.0778871476650238,
0.12818120419979095,
0.13218283653259277,
0.4710918664932251,
-0.23184265196323395,
0.24113783240318298,
0.4879954159259796,
-0.019359461963176727,
-0.19514402747154236,
-0.18841075897216797,
0.0336291678249836,
0.3554054796695709,
-0.19095788896083832,
0.28676533699035645,
-0.08508080989122391,
-0.4366816580295563,
0.05487570911645889,
0.35570642352104187,
-0.37140005826950073,
-0.18644718825817108,
-0.2177926003932953,
-0.2671931982040405,
-0.12239677459001541,
0.0017247572541236877,
-0.20154140889644623,
0.688880443572998,
0.493958055973053,
0.03785889223217964,
-0.08082041889429092,
0.07814262807369232,
-0.07105164229869843,
0.08513706922531128,
0.27273139357566833,
-0.20452380180358887,
0.1732730269432068,
-0.1749383956193924,
0.3757423758506775,
0.026026032865047455,
0.5290929079055786,
0.07252441346645355,
-0.37031739950180054,
0.03889968991279602,
-0.07986622303724289,
0.14187222719192505,
0.42261266708374023,
-0.059648849070072174,
-0.2752257287502289,
-0.08576109260320663,
0.12748375535011292,
0.016979390755295753,
0.38445115089416504,
-0.027582528069615364,
-0.0884883850812912,
0.010277017019689083,
-0.3354848623275757,
0.35431355237960815,
-0.2652212381362915,
-0.13984033465385437,
0.5877319574356079,
-0.05140617489814758,
-0.4399122893810272,
0.4548724293708801,
0.13949303328990936,
0.8361124396324158,
0.31179285049438477,
-0.13696089386940002,
0.5035006999969482,
-0.10032905638217926,
0.1240910142660141,
0.06113250553607941,
-0.07618773728609085,
-0.5055689811706543,
-0.09886287897825241,
0.06268513947725296,
-0.07116962969303131,
0.2857706844806671,
0.3349590301513672,
0.11378562450408936,
0.2736877202987671,
-0.09019069373607635,
0.38835957646369934,
0.17260754108428955,
0.12016500532627106,
0.08714345097541809,
-0.18432122468948364,
-0.3400602340698242,
0.03488446772098541,
-0.045947521924972534,
0.41836580634117126,
-0.1274999976158142,
-0.06005045771598816,
0.18958257138729095,
-0.2947821021080017,
0.056953489780426025,
0.29479044675827026,
-0.5157187581062317,
0.17870043218135834,
0.10893921554088593,
-0.0226641446352005,
-0.03551073372364044,
0.10978341102600098,
-0.015472851693630219,
0.3307141065597534,
-0.11952930688858032,
0.2553060054779053,
0.07811083644628525,
0.16993315517902374,
-0.016918595880270004,
0.065405935049057,
0.5099183917045593,
-0.13880035281181335,
-0.15481743216514587,
0.08772106468677521,
-0.2954421043395996,
-0.12850303947925568,
0.4114159941673279,
-0.11942464113235474,
0.1864193081855774,
-0.4737437665462494,
-0.015468830242753029,
0.01566971093416214,
0.3024095892906189,
-0.02424677275121212,
0.1294027715921402,
-0.04521528631448746,
-0.45270270109176636,
-0.040571413934230804,
-0.2614302635192871,
-0.1918700486421585,
0.05145389214158058,
0.20099250972270966,
0.178818017244339,
-0.15936791896820068,
0.4923414885997772,
-0.17062535881996155,
0.1479572355747223,
-0.3145979642868042,
0.007134191691875458,
0.1872737854719162,
-0.34509333968162537,
0.16009442508220673,
-0.19974973797798157,
-0.32189470529556274,
0.07401513308286667,
0.22213366627693176,
0.2507116198539734,
0.17410960793495178,
-0.1758577674627304,
-0.20377780497074127,
-0.3946121633052826,
-0.06891833245754242,
-0.032911937683820724,
-0.008016109466552734,
0.0500137135386467,
0.41679880023002625,
0.0005773771554231644,
0.08403856307268143,
-0.2755016088485718,
-0.1662188023328781,
-0.22732257843017578,
0.45578500628471375,
-0.13932567834854126,
0.23681315779685974,
0.12503516674041748,
-0.016429679468274117,
0.14421610534191132,
-0.028918102383613586,
-0.25763174891471863,
-0.19506767392158508,
-0.12799303233623505,
0.1596081405878067,
0.12353451550006866,
0.023077651858329773,
-0.06480398029088974,
-0.07512354105710983,
-0.1319757103919983,
-0.17354409396648407,
0.2229081690311432,
-0.14693553745746613,
0.07191971689462662,
0.08426026254892349,
0.4647311568260193,
0.08769538253545761,
-0.27553901076316833,
0.05630940943956375,
-0.1361352503299713,
0.1581047922372818,
0.011352969333529472,
0.1699918657541275,
-0.10940250009298325,
-0.11120442301034927,
0.09714385867118835,
0.051089003682136536,
-0.33542943000793457,
0.11337815970182419,
0.24675098061561584,
-0.2691729664802551,
-0.19345201551914215,
0.5400638580322266,
0.16081437468528748,
0.3626745343208313,
-0.22250652313232422,
-0.12871134281158447,
0.29011279344558716,
0.21112358570098877,
-0.24471409618854523,
-0.058682382106781006,
0.07289327681064606,
-0.07371854782104492,
-0.011014953255653381,
0.15646666288375854,
-0.03473033756017685,
-0.16524864733219147,
0.07212325930595398,
0.04076980799436569,
0.36212173104286194,
-0.04336962103843689,
0.16349361836910248,
0.4220800995826721,
-0.25311198830604553,
0.2470538467168808,
0.4502515494823456,
0.3408341109752655,
0.14377591013908386,
0.5304273366928101,
-0.1948927640914917,
0.006683638319373131,
-0.3620399832725525,
0.11497416347265244,
0.16847525537014008,
-0.23440319299697876,
0.2690716087818146,
0.2259126603603363,
-0.15120962262153625,
-0.11961711198091507,
-0.15287649631500244,
-0.16097986698150635,
-0.4070848822593689,
-0.0015825685113668442,
-0.09210831671953201,
0.025617625564336777,
-0.34981489181518555,
0.024700723588466644,
-0.3452839255332947,
-0.06530313938856125,
-0.06982135772705078,
-0.10742183029651642,
0.13733111321926117,
0.09160933643579483,
0.15731774270534515,
-0.25157052278518677,
-0.2201535552740097,
0.04207348823547363,
-0.12782734632492065,
0.26086267828941345,
-0.07684724777936935,
-0.44288530945777893,
0.3594268262386322,
-0.06001564860343933,
-0.16569291055202484,
-0.053581517189741135,
0.2717227041721344,
0.2360859215259552,
0.2495337575674057,
-0.12598808109760284,
-0.2525135576725006,
-0.26741304993629456,
-0.1164708361029625,
-0.23613028228282928,
0.29595449566841125,
-0.2606978416442871,
0.17705757915973663,
0.4565812945365906,
0.12473291158676147,
-0.12154925614595413,
-0.12014137208461761,
0.22110922634601593,
0.22071121633052826,
-0.20956802368164062,
0.37322869896888733,
0.10515524446964264,
-0.14063991606235504,
-0.35178640484809875,
0.0929669439792633,
-0.18974095582962036,
-0.04421631246805191,
0.44039100408554077,
0.16716597974300385,
0.2460325062274933,
-0.04041704162955284,
0.09592969715595245,
-0.04035598412156105,
0.3709631860256195,
0.1399405598640442,
-0.2586614787578583,
-0.23565608263015747,
-0.33134931325912476,
-0.41324755549430847,
0.24748164415359497,
0.3162374496459961,
-0.08186731487512589,
0.21937328577041626,
0.030584750697016716,
0.04333781450986862,
0.03406864032149315,
-0.36792105436325073,
0.22821791470050812,
0.102119579911232,
-0.2722237706184387,
-0.21417589485645294,
-0.3221835494041443,
-0.21298636496067047,
0.11553185433149338,
0.1445704847574234,
-0.5449748635292053,
0.013491697609424591,
-0.2541729509830475,
0.009347528219223022,
-0.23203475773334503,
-0.29248693585395813,
0.3701959550380707,
-0.13654005527496338,
0.30575504899024963,
0.12466485053300858,
0.06554488837718964,
-0.06481624394655228,
0.08900636434555054,
-0.2037876546382904,
-0.17132344841957092,
-0.31155213713645935,
0.2579977810382843,
0.1227695643901825,
0.15953202545642853,
-0.0672716349363327,
0.39179667830467224,
-0.44677892327308655,
0.126088485121727,
-0.026385176926851273,
0.10850772261619568,
-0.12184891849756241,
-0.06434502452611923,
-0.19037076830863953,
0.2410319745540619,
0.30285489559173584,
0.11272169649600983,
0.07295414805412292,
0.23697777092456818,
-0.2891569137573242,
-0.37834471464157104,
0.6175777316093445,
-0.0354977585375309,
-0.5250323414802551,
-0.14335133135318756,
0.38457104563713074,
-0.17139077186584473,
-0.26409000158309937,
-0.27009016275405884,
0.032654546201229095,
0.4238118827342987,
-0.19700905680656433,
-0.049841806292533875,
0.0820154994726181,
-0.04368847981095314,
0.33877164125442505,
-0.09294261038303375,
0.050086505711078644,
0.131662517786026,
-0.06843136250972748,
-0.14147929847240448,
-0.1433672308921814
] |
https://github.com/huggingface/datasets/issues/4399 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name | @mariosasko here we go:
https://github.com/huggingface/datasets/pull/4967
TBH I haven't tested it yet, but should work, since this is a basic change. | ## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
| 20 | LocalDatasetModuleFactoryWithoutScript extracts invalid builder name
## Describe the bug
Trying to load a local dataset raises an error indicating that the config builder has to have a name.
No error should be reported, since the call is completly valid.
## Steps to reproduce the bug
```python
load_dataset("./data/some-dataset/", name="some-name")
```
## Expected results
The dataset should be loaded.
## Actual results
```
Traceback (most recent call last):
File "train_lquad.py", line 19, in <module>
load(tokenize_target_function, tokenize_target_function, {}, tokenizer)
File "train_lquad.py", line 14, in load
dataset = load_dataset("./data/lquad/", name="lquad")
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1708, in load_dataset
builder_instance = load_dataset_builder(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/load.py", line 1560, in load_dataset_builder
builder_instance: DatasetBuilder = builder_cls(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 269, in __init__
self.config, self.config_id = self._create_builder_config(
File "/net/pr2/scratch/people/plgapohl/python-3.8.6/lib/python3.8/site-packages/datasets/builder.py", line 403, in _create_builder_config
raise ValueError(f"BuilderConfig must have a name, got {builder_config.name}")
ValueError: BuilderConfig must have a name, got
```
## Environment info
- `datasets` version: 2.2.2
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.6
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
The error is probably in line 795 in load.py:
```
builder_kwargs = {
"hash": hash,
"data_files": data_files,
"name": os.path.basename(self.path),
"base_path": self.path,
**builder_kwargs,
}
```
`os.path.basename` for a directory returns an empty string, rather than the name of the directory.
@mariosasko here we go:
https://github.com/huggingface/datasets/pull/4967
TBH I haven't tested it yet, but should work, since this is a basic change. | [
-0.3629179000854492,
0.38892054557800293,
0.037886541336774826,
0.39080625772476196,
0.36331117153167725,
-0.08149291574954987,
0.48293718695640564,
0.5021459460258484,
0.11432813107967377,
0.41062986850738525,
0.07893934845924377,
0.29017600417137146,
0.008577247150242329,
-0.05256213992834091,
0.15353450179100037,
0.11076556146144867,
-0.23168137669563293,
0.23677723109722137,
0.0974547415971756,
-0.048054732382297516,
-0.15144695341587067,
0.1912442296743393,
0.012604445219039917,
0.4464966058731079,
-0.34945714473724365,
0.11317077279090881,
0.21405407786369324,
0.2656889855861664,
0.03739451617002487,
-0.3703395426273346,
0.2739361524581909,
-0.12711471319198608,
-0.08611848205327988,
0.3845891058444977,
-0.00011346485553076491,
0.10412284731864929,
0.42947906255722046,
-0.08437979221343994,
-0.3101493716239929,
-0.24779663980007172,
-0.04195372760295868,
-0.10593145340681076,
0.2164110690355301,
-0.35201290249824524,
-0.13703210651874542,
0.07804585993289948,
-0.11855092644691467,
-0.41169273853302,
0.2969740331172943,
0.4220336675643921,
0.18345846235752106,
0.18454554677009583,
-0.1021726131439209,
-0.11270987242460251,
0.03542644530534744,
0.2990281879901886,
-0.04882688820362091,
0.25823748111724854,
0.3272336721420288,
-0.3535931408405304,
-0.0004743635654449463,
0.028606507927179337,
-0.13703736662864685,
-0.027983762323856354,
-0.01480315625667572,
0.04365859553217888,
0.147780179977417,
-0.1334788054227829,
0.4491231441497803,
0.3709273934364319,
0.6906945109367371,
-0.3244909346103668,
-0.15621256828308105,
-0.19701001048088074,
0.034566689282655716,
0.06756864488124847,
0.4083978533744812,
-0.025147775188088417,
-0.5811172723770142,
0.23802806437015533,
0.1187678724527359,
-0.0645560696721077,
0.03324372321367264,
0.0017787590622901917,
0.04836810380220413,
0.2621920704841614,
-0.08061616867780685,
0.18587461113929749,
-0.2263421267271042,
-0.028307601809501648,
0.3941527307033539,
-0.34242939949035645,
0.01334986463189125,
0.21086211502552032,
-0.06619817018508911,
-0.021602559834718704,
0.2666487395763397,
0.08956117928028107,
0.08994432538747787,
-0.07753615081310272,
-0.12783271074295044,
-0.007762659341096878,
0.23194760084152222,
0.07589481770992279,
0.19358882308006287,
0.2525022029876709,
0.6238400340080261,
0.2876794934272766,
-0.03652900457382202,
0.1271330565214157,
-0.3004016876220703,
-0.03668150305747986,
-0.15351484715938568,
-0.18756043910980225,
-0.05812013894319534,
0.0016138684004545212,
0.3877025842666626,
-0.3596867620944977,
-0.09339909255504608,
0.09702062606811523,
-0.013647407293319702,
0.03858872503042221,
0.10181370377540588,
0.2870047390460968,
0.014012978412210941,
0.06837273389101028,
0.20593354105949402,
-0.027220144867897034,
-0.04508882761001587,
-0.3147343099117279,
-0.30410540103912354,
-0.018150214105844498,
-0.12168771028518677,
0.03848128020763397,
-0.049997564405202866,
-0.21426470577716827,
0.43999776244163513,
-0.17124177515506744,
0.04880688339471817,
0.02231334149837494,
0.024753952398896217,
0.12107357382774353,
-0.01572714000940323,
0.15947481989860535,
-0.21556486189365387,
0.0650373324751854,
0.23896333575248718,
-0.6704176664352417,
-0.06069459021091461,
0.03494574874639511,
-0.05225452035665512,
-0.6129394769668579,
-0.3708784878253937,
0.25107699632644653,
-0.09866297245025635,
0.27907970547676086,
0.12798301875591278,
-0.030366066843271255,
0.5235538482666016,
-0.18497410416603088,
-0.1268766224384308,
-0.013001769781112671,
0.1280992329120636,
-0.02230093441903591,
0.19482876360416412,
0.48196613788604736,
-0.39381158351898193,
0.07730188965797424,
-0.2471531182527542,
-0.31069421768188477,
0.14242903888225555,
-0.20091277360916138,
-0.45918557047843933,
0.5864149928092957,
-0.3453526496887207,
-0.11123870313167572,
0.8526448011398315,
-0.3912569582462311,
-0.4051673114299774,
0.4704047739505768,
-0.2793731689453125,
-0.07195062190294266,
0.1241743192076683,
-0.3237912058830261,
-0.14555855095386505,
-0.016624918207526207,
0.2496359646320343,
0.2736925482749939,
-0.24572423100471497,
-0.07950747013092041,
-0.24248334765434265,
-0.09334636479616165,
-0.042594075202941895,
0.2148331105709076,
0.1545848548412323,
0.3740237355232239,
0.02369321882724762,
0.02599364146590233,
0.5568772554397583,
0.07549647241830826,
-0.017407873645424843,
0.15893656015396118,
0.08146362006664276,
0.24519307911396027,
0.08966716378927231,
-0.2616601884365082,
-0.4605434536933899,
0.2562931776046753,
-0.42858564853668213,
0.09246811270713806,
-0.2882711887359619,
-0.13925650715827942,
-0.2602681815624237,
0.17596246302127838,
-0.3313256502151489,
-0.1270957589149475,
0.1308334320783615,
0.36631131172180176,
-0.060755655169487,
-0.35388779640197754,
-0.2475694864988327,
-0.16865843534469604,
-0.024901781231164932,
0.04911619424819946,
-0.27437856793403625,
0.16834895312786102,
-0.12181616574525833,
-0.11980517208576202,
-0.2529732286930084,
0.11833885312080383,
0.01794174686074257,
-0.2039967030286789,
-0.2538696825504303,
0.23196101188659668,
0.240976482629776,
-0.1253545582294464,
-0.13944628834724426,
-0.17840911448001862,
-0.1105450764298439,
0.12960106134414673,
-0.00942469947040081,
0.03855951130390167,
0.28560879826545715,
0.044697701930999756,
0.15264105796813965,
0.11304027587175369,
0.146719828248024,
0.29938817024230957,
-0.33556705713272095,
0.061641618609428406,
0.33286985754966736,
-0.11302155256271362,
0.24659210443496704,
-0.4325011074542999,
0.15067268908023834,
0.37289324402809143,
0.6006489992141724,
-0.02868490107357502,
-0.050899360328912735,
0.020298562943935394,
0.21366843581199646,
0.015683211386203766,
-0.20232561230659485,
-0.2074495255947113,
0.18936946988105774,
0.017564233392477036,
0.0856781154870987,
0.028072353452444077,
0.2978256940841675,
0.10818984359502792,
-0.2525029480457306,
0.09667885303497314,
0.04631717503070831,
-0.25275349617004395,
0.19529742002487183,
0.15294195711612701,
0.04916740581393242,
0.31193193793296814,
-0.14377976953983307,
0.022653937339782715,
-0.3495376706123352,
-0.3605758249759674,
0.24157410860061646,
0.08624862134456635,
-0.13507409393787384,
0.19048473238945007,
-0.16550475358963013,
-0.22526109218597412,
-0.502464771270752,
-0.08409641683101654,
-0.3281457722187042,
-0.31363818049430847,
-0.13936667144298553,
0.07629554718732834,
-0.3671266436576843,
0.32799744606018066,
0.18345721065998077,
0.1495577096939087,
-0.006218908354640007,
-0.4193837642669678,
-0.20050083100795746,
-0.12763150036334991,
-0.5451475977897644,
0.00018703937530517578,
0.2497352808713913,
0.004412476439028978,
0.11524870991706848,
-0.14545713365077972,
-0.16175338625907898,
-0.15710505843162537,
-0.27559617161750793,
0.41280341148376465,
0.11154307425022125,
0.696390688419342,
0.2851164937019348,
-0.24298195540905,
0.37338703870773315,
-0.27669915556907654,
0.36049818992614746,
0.1111910492181778,
-0.09558771550655365,
-0.07686823606491089,
0.18966424465179443,
-0.1485091596841812,
-0.14280766248703003,
-0.04096253961324692,
-0.11420273035764694,
-0.36235523223876953,
-0.27983564138412476,
0.01872822642326355,
0.23819600045681,
0.2502768635749817,
-0.20961154997348785,
0.3273407816886902,
0.0012147319503128529,
0.15687809884548187,
-0.24731461703777313,
-0.24467825889587402,
-0.04601671174168587,
-0.22070947289466858,
-0.16983841359615326,
-0.41822943091392517,
-0.12976454198360443,
0.20773173868656158,
0.012147743254899979,
-0.2219473421573639,
-0.22576141357421875,
0.10608576983213425,
0.21810153126716614,
0.0030046962201595306,
-0.17587122321128845,
0.4184737205505371,
0.2973593473434448,
0.07070829719305038,
-0.17902889847755432,
-0.22768734395503998,
0.1476992964744568,
0.120531365275383,
0.34508687257766724,
0.10555925220251083,
0.3077029585838318,
-0.2568717300891876,
0.3345533013343811,
-0.06859299540519714,
-0.04948384687304497,
0.08586696535348892,
-0.22040767967700958,
0.21745836734771729,
-0.271105021238327,
-0.36264798045158386,
0.0571332722902298,
0.24058175086975098,
-0.5050826072692871,
0.18522945046424866,
-0.37768176198005676,
-0.005713164806365967,
-0.25833505392074585,
0.020948588848114014,
-0.18299263715744019,
-0.21968528628349304,
-0.005168380215764046,
-0.38039544224739075,
0.08534446358680725,
0.3413276672363281,
0.22618436813354492,
-0.12175923585891724,
0.1825084090232849,
0.11857052147388458,
0.1893627941608429,
-0.010514318943023682,
-0.1460818350315094,
-0.27970120310783386,
-0.07481303811073303,
-0.2866721749305725,
0.27331167459487915,
0.13303162157535553,
0.12370704114437103,
-0.031662389636039734,
-0.0778871476650238,
0.12818120419979095,
0.13218283653259277,
0.4710918664932251,
-0.23184265196323395,
0.24113783240318298,
0.4879954159259796,
-0.019359461963176727,
-0.19514402747154236,
-0.18841075897216797,
0.0336291678249836,
0.3554054796695709,
-0.19095788896083832,
0.28676533699035645,
-0.08508080989122391,
-0.4366816580295563,
0.05487570911645889,
0.35570642352104187,
-0.37140005826950073,
-0.18644718825817108,
-0.2177926003932953,
-0.2671931982040405,
-0.12239677459001541,
0.0017247572541236877,
-0.20154140889644623,
0.688880443572998,
0.493958055973053,
0.03785889223217964,
-0.08082041889429092,
0.07814262807369232,
-0.07105164229869843,
0.08513706922531128,
0.27273139357566833,
-0.20452380180358887,
0.1732730269432068,
-0.1749383956193924,
0.3757423758506775,
0.026026032865047455,
0.5290929079055786,
0.07252441346645355,
-0.37031739950180054,
0.03889968991279602,
-0.07986622303724289,
0.14187222719192505,
0.42261266708374023,
-0.059648849070072174,
-0.2752257287502289,
-0.08576109260320663,
0.12748375535011292,
0.016979390755295753,
0.38445115089416504,
-0.027582528069615364,
-0.0884883850812912,
0.010277017019689083,
-0.3354848623275757,
0.35431355237960815,
-0.2652212381362915,
-0.13984033465385437,
0.5877319574356079,
-0.05140617489814758,
-0.4399122893810272,
0.4548724293708801,
0.13949303328990936,
0.8361124396324158,
0.31179285049438477,
-0.13696089386940002,
0.5035006999969482,
-0.10032905638217926,
0.1240910142660141,
0.06113250553607941,
-0.07618773728609085,
-0.5055689811706543,
-0.09886287897825241,
0.06268513947725296,
-0.07116962969303131,
0.2857706844806671,
0.3349590301513672,
0.11378562450408936,
0.2736877202987671,
-0.09019069373607635,
0.38835957646369934,
0.17260754108428955,
0.12016500532627106,
0.08714345097541809,
-0.18432122468948364,
-0.3400602340698242,
0.03488446772098541,
-0.045947521924972534,
0.41836580634117126,
-0.1274999976158142,
-0.06005045771598816,
0.18958257138729095,
-0.2947821021080017,
0.056953489780426025,
0.29479044675827026,
-0.5157187581062317,
0.17870043218135834,
0.10893921554088593,
-0.0226641446352005,
-0.03551073372364044,
0.10978341102600098,
-0.015472851693630219,
0.3307141065597534,
-0.11952930688858032,
0.2553060054779053,
0.07811083644628525,
0.16993315517902374,
-0.016918595880270004,
0.065405935049057,
0.5099183917045593,
-0.13880035281181335,
-0.15481743216514587,
0.08772106468677521,
-0.2954421043395996,
-0.12850303947925568,
0.4114159941673279,
-0.11942464113235474,
0.1864193081855774,
-0.4737437665462494,
-0.015468830242753029,
0.01566971093416214,
0.3024095892906189,
-0.02424677275121212,
0.1294027715921402,
-0.04521528631448746,
-0.45270270109176636,
-0.040571413934230804,
-0.2614302635192871,
-0.1918700486421585,
0.05145389214158058,
0.20099250972270966,
0.178818017244339,
-0.15936791896820068,
0.4923414885997772,
-0.17062535881996155,
0.1479572355747223,
-0.3145979642868042,
0.007134191691875458,
0.1872737854719162,
-0.34509333968162537,
0.16009442508220673,
-0.19974973797798157,
-0.32189470529556274,
0.07401513308286667,
0.22213366627693176,
0.2507116198539734,
0.17410960793495178,
-0.1758577674627304,
-0.20377780497074127,
-0.3946121633052826,
-0.06891833245754242,
-0.032911937683820724,
-0.008016109466552734,
0.0500137135386467,
0.41679880023002625,
0.0005773771554231644,
0.08403856307268143,
-0.2755016088485718,
-0.1662188023328781,
-0.22732257843017578,
0.45578500628471375,
-0.13932567834854126,
0.23681315779685974,
0.12503516674041748,
-0.016429679468274117,
0.14421610534191132,
-0.028918102383613586,
-0.25763174891471863,
-0.19506767392158508,
-0.12799303233623505,
0.1596081405878067,
0.12353451550006866,
0.023077651858329773,
-0.06480398029088974,
-0.07512354105710983,
-0.1319757103919983,
-0.17354409396648407,
0.2229081690311432,
-0.14693553745746613,
0.07191971689462662,
0.08426026254892349,
0.4647311568260193,
0.08769538253545761,
-0.27553901076316833,
0.05630940943956375,
-0.1361352503299713,
0.1581047922372818,
0.011352969333529472,
0.1699918657541275,
-0.10940250009298325,
-0.11120442301034927,
0.09714385867118835,
0.051089003682136536,
-0.33542943000793457,
0.11337815970182419,
0.24675098061561584,
-0.2691729664802551,
-0.19345201551914215,
0.5400638580322266,
0.16081437468528748,
0.3626745343208313,
-0.22250652313232422,
-0.12871134281158447,
0.29011279344558716,
0.21112358570098877,
-0.24471409618854523,
-0.058682382106781006,
0.07289327681064606,
-0.07371854782104492,
-0.011014953255653381,
0.15646666288375854,
-0.03473033756017685,
-0.16524864733219147,
0.07212325930595398,
0.04076980799436569,
0.36212173104286194,
-0.04336962103843689,
0.16349361836910248,
0.4220800995826721,
-0.25311198830604553,
0.2470538467168808,
0.4502515494823456,
0.3408341109752655,
0.14377591013908386,
0.5304273366928101,
-0.1948927640914917,
0.006683638319373131,
-0.3620399832725525,
0.11497416347265244,
0.16847525537014008,
-0.23440319299697876,
0.2690716087818146,
0.2259126603603363,
-0.15120962262153625,
-0.11961711198091507,
-0.15287649631500244,
-0.16097986698150635,
-0.4070848822593689,
-0.0015825685113668442,
-0.09210831671953201,
0.025617625564336777,
-0.34981489181518555,
0.024700723588466644,
-0.3452839255332947,
-0.06530313938856125,
-0.06982135772705078,
-0.10742183029651642,
0.13733111321926117,
0.09160933643579483,
0.15731774270534515,
-0.25157052278518677,
-0.2201535552740097,
0.04207348823547363,
-0.12782734632492065,
0.26086267828941345,
-0.07684724777936935,
-0.44288530945777893,
0.3594268262386322,
-0.06001564860343933,
-0.16569291055202484,
-0.053581517189741135,
0.2717227041721344,
0.2360859215259552,
0.2495337575674057,
-0.12598808109760284,
-0.2525135576725006,
-0.26741304993629456,
-0.1164708361029625,
-0.23613028228282928,
0.29595449566841125,
-0.2606978416442871,
0.17705757915973663,
0.4565812945365906,
0.12473291158676147,
-0.12154925614595413,
-0.12014137208461761,
0.22110922634601593,
0.22071121633052826,
-0.20956802368164062,
0.37322869896888733,
0.10515524446964264,
-0.14063991606235504,
-0.35178640484809875,
0.0929669439792633,
-0.18974095582962036,
-0.04421631246805191,
0.44039100408554077,
0.16716597974300385,
0.2460325062274933,
-0.04041704162955284,
0.09592969715595245,
-0.04035598412156105,
0.3709631860256195,
0.1399405598640442,
-0.2586614787578583,
-0.23565608263015747,
-0.33134931325912476,
-0.41324755549430847,
0.24748164415359497,
0.3162374496459961,
-0.08186731487512589,
0.21937328577041626,
0.030584750697016716,
0.04333781450986862,
0.03406864032149315,
-0.36792105436325073,
0.22821791470050812,
0.102119579911232,
-0.2722237706184387,
-0.21417589485645294,
-0.3221835494041443,
-0.21298636496067047,
0.11553185433149338,
0.1445704847574234,
-0.5449748635292053,
0.013491697609424591,
-0.2541729509830475,
0.009347528219223022,
-0.23203475773334503,
-0.29248693585395813,
0.3701959550380707,
-0.13654005527496338,
0.30575504899024963,
0.12466485053300858,
0.06554488837718964,
-0.06481624394655228,
0.08900636434555054,
-0.2037876546382904,
-0.17132344841957092,
-0.31155213713645935,
0.2579977810382843,
0.1227695643901825,
0.15953202545642853,
-0.0672716349363327,
0.39179667830467224,
-0.44677892327308655,
0.126088485121727,
-0.026385176926851273,
0.10850772261619568,
-0.12184891849756241,
-0.06434502452611923,
-0.19037076830863953,
0.2410319745540619,
0.30285489559173584,
0.11272169649600983,
0.07295414805412292,
0.23697777092456818,
-0.2891569137573242,
-0.37834471464157104,
0.6175777316093445,
-0.0354977585375309,
-0.5250323414802551,
-0.14335133135318756,
0.38457104563713074,
-0.17139077186584473,
-0.26409000158309937,
-0.27009016275405884,
0.032654546201229095,
0.4238118827342987,
-0.19700905680656433,
-0.049841806292533875,
0.0820154994726181,
-0.04368847981095314,
0.33877164125442505,
-0.09294261038303375,
0.050086505711078644,
0.131662517786026,
-0.06843136250972748,
-0.14147929847240448,
-0.1433672308921814
] |
https://github.com/huggingface/datasets/issues/4398 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` | It works if we either remove the `ds = ds.cast_column("id", Value("int32"))` line from the code above, or if instead calling `ds.remove_columns()` we remove the columns inside each mapping as `ds.map(..., remove_columns=[...])` instead of right after the mapping.
Both of those solutions seem to fix the issue, so the root cause of it may be around that. Sorry I cannot provide you more insights, in case I get to fix it I'll submit a PR, in the meanwhile the code that I'm using as a workaround is the following:
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
``` | First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 138 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
It works if we either remove the `ds = ds.cast_column("id", Value("int32"))` line from the code above, or if instead calling `ds.remove_columns()` we remove the columns inside each mapping as `ds.map(..., remove_columns=[...])` instead of right after the mapping.
Both of those solutions seem to fix the issue, so the root cause of it may be around that. Sorry I cannot provide you more insights, in case I get to fix it I'll submit a PR, in the meanwhile the code that I'm using as a workaround is the following:
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
``` | [
-0.07496000081300735,
-0.12038008868694305,
0.048825185745954514,
0.1968027502298355,
0.3531408905982971,
0.20017755031585693,
0.5984070897102356,
0.2834175229072571,
0.42076197266578674,
0.16230277717113495,
-0.03843817859888077,
0.27761566638946533,
0.13197094202041626,
-0.4079359769821167,
-0.34149208664894104,
-0.29413720965385437,
0.23942047357559204,
0.11668539047241211,
-0.3533419072628021,
0.05380704253911972,
-0.4022285044193268,
0.04542788118124008,
-0.3549343943595886,
0.1357315480709076,
0.14279361069202423,
-0.1493173986673355,
0.14244061708450317,
-0.02762269228696823,
0.26592716574668884,
-0.09055804461240768,
-0.09011560678482056,
-0.4098358452320099,
0.016678068786859512,
0.47190308570861816,
-0.00012268658610992134,
-0.09746695309877396,
0.1481126993894577,
0.0011863596737384796,
0.09490884840488434,
0.4947415590286255,
-0.2859954833984375,
0.26621532440185547,
-0.14296507835388184,
-0.2543034553527832,
0.1335398256778717,
0.026871338486671448,
-0.35336512327194214,
-0.3738171458244324,
-0.05427703261375427,
0.38562655448913574,
0.08198815584182739,
0.06730768084526062,
-0.000524863600730896,
-0.012146002613008022,
0.42323604226112366,
-0.2751351594924927,
-0.16789649426937103,
-0.20392778515815735,
0.19666051864624023,
0.12013915181159973,
0.009670831263065338,
0.255636990070343,
-0.2731388509273529,
-0.38320615887641907,
-0.018025606870651245,
0.08376996219158173,
0.39845168590545654,
-0.11718262732028961,
0.1879713237285614,
0.03433610871434212,
0.19579774141311646,
-0.31922104954719543,
-0.2005903571844101,
0.08583905547857285,
0.02579149231314659,
-0.1292763352394104,
0.16740693151950836,
-0.17855054140090942,
0.16844193637371063,
0.14968976378440857,
-0.03652973100543022,
0.3020241856575012,
0.1024918258190155,
0.15916594862937927,
-0.031080150976777077,
0.05975984036922455,
0.07008523494005203,
0.19679632782936096,
-0.15967892110347748,
-0.08548761159181595,
-0.08442111313343048,
-0.1185757964849472,
-0.05286240205168724,
0.28932511806488037,
-0.4359307587146759,
-0.09287315607070923,
0.214776873588562,
-0.4151070713996887,
-0.2945067882537842,
-0.2884408235549927,
-0.08004412800073624,
0.07150279730558395,
-0.10359346121549606,
0.336067795753479,
-0.054662901908159256,
0.1648799479007721,
-0.3414234519004822,
0.19035331904888153,
0.21981434524059296,
0.13075944781303406,
0.19957061111927032,
0.11126452684402466,
0.5259580612182617,
-0.06611087918281555,
-0.24613720178604126,
0.2598944902420044,
-0.03242627903819084,
-0.10758176445960999,
-0.30050307512283325,
0.381426602602005,
0.014565758407115936,
0.2330065667629242,
0.08031617105007172,
0.22424376010894775,
0.3531944751739502,
0.04533183202147484,
0.19185680150985718,
0.29726332426071167,
0.14187189936637878,
0.3102368414402008,
-0.19902320206165314,
0.14275985956192017,
0.0891164094209671,
-0.2037697434425354,
-0.009516511112451553,
0.13292178511619568,
-0.23610012233257294,
0.3629395365715027,
-0.22262389957904816,
-0.2513180077075958,
-0.3100322484970093,
-0.11244727671146393,
0.4107567071914673,
0.4908100664615631,
-0.18796831369400024,
0.15524347126483917,
0.22813484072685242,
0.05251532793045044,
-0.20472079515457153,
0.15387383103370667,
-0.12987211346626282,
-0.1410238891839981,
-0.15093493461608887,
0.1278405785560608,
0.15703141689300537,
0.1192435696721077,
0.21745386719703674,
-0.039404381066560745,
0.3997652530670166,
-0.13562926650047302,
0.4291294813156128,
-0.18684078752994537,
-0.07261103391647339,
-0.1371573507785797,
0.019146813079714775,
0.19411180913448334,
-0.39076802134513855,
-0.08150480687618256,
0.07683968544006348,
0.0875868946313858,
-0.12256636470556259,
0.23875193297863007,
-0.013807560317218304,
0.21844124794006348,
-0.3683435916900635,
0.10503152012825012,
0.27222883701324463,
-0.09352338314056396,
-0.011768870055675507,
0.16798008978366852,
-0.15738674998283386,
-0.0362548753619194,
0.09656514972448349,
0.04318226873874664,
0.1620493084192276,
-0.19039633870124817,
-0.03718751668930054,
0.17714016139507294,
-0.08651302009820938,
0.32975709438323975,
0.04342234507203102,
-0.16242636740207672,
0.3116750121116638,
-0.07334701716899872,
0.13131503760814667,
0.17456766963005066,
0.08168163895606995,
-0.48311546444892883,
0.014099106192588806,
-0.34166738390922546,
0.24144427478313446,
0.2852308750152588,
0.11420747637748718,
0.03452948108315468,
0.3201430141925812,
-0.28512585163116455,
-0.23935717344284058,
0.16583433747291565,
0.33791425824165344,
-0.12111468613147736,
-0.16131968796253204,
-0.045176465064287186,
-0.07555051147937775,
-0.013569388538599014,
0.19641928374767303,
0.16862522065639496,
-0.004398448392748833,
-0.10557003319263458,
-0.007968354970216751,
-0.2707931399345398,
-0.248218834400177,
-0.11947543174028397,
-0.10319991409778595,
0.09533581882715225,
-0.441982626914978,
0.07644682377576828,
-0.23415561020374298,
-0.21265184879302979,
-0.3842775523662567,
0.1423603892326355,
0.27498361468315125,
-0.22043026983737946,
-0.2298874855041504,
0.4006916880607605,
0.058917686343193054,
0.04711775481700897,
-0.31674036383628845,
0.008101701736450195,
-0.05293115973472595,
-0.06180652976036072,
0.0697033554315567,
0.4765448272228241,
0.2698902487754822,
-0.16611143946647644,
-0.13919097185134888,
0.3436969816684723,
-0.15520824491977692,
0.49099162220954895,
-0.1433175951242447,
0.1548612415790558,
0.29271429777145386,
-0.11052669584751129,
0.08208684623241425,
-0.49759942293167114,
-0.00013787299394607544,
-0.10444830358028412,
-0.23495067656040192,
-0.12696051597595215,
-0.13571739196777344,
0.21340879797935486,
0.2014816701412201,
-0.19160956144332886,
0.17699337005615234,
0.21728023886680603,
0.1252039521932602,
0.19332361221313477,
-0.0849318876862526,
-0.3301330506801605,
0.4600602388381958,
-0.08120681345462799,
-0.237810879945755,
-0.04019125550985336,
-0.03302103653550148,
-0.17911693453788757,
0.22177143394947052,
0.21204107999801636,
-0.3080695569515228,
0.33522364497184753,
0.2999143600463867,
0.11874613910913467,
-0.14425036311149597,
-0.3005686104297638,
0.0471951961517334,
0.19793415069580078,
-0.3961019217967987,
0.11692336946725845,
-0.1107444241642952,
0.20489534735679626,
-0.16396841406822205,
-0.05277000367641449,
0.09681689739227295,
-0.279940128326416,
0.009092334657907486,
-0.007814832031726837,
-0.607649564743042,
0.34774768352508545,
-0.27441367506980896,
0.046899497509002686,
0.1995188295841217,
-0.09843777865171432,
-0.09960001707077026,
-0.16149131953716278,
0.1205977350473404,
-0.08894816040992737,
-0.08000941574573517,
-0.14271415770053864,
-0.056214846670627594,
0.012003077194094658,
-0.14249037206172943,
-0.23515349626541138,
-0.1924702674150467,
0.11241430789232254,
-0.3664693236351013,
-0.29072460532188416,
0.13169193267822266,
-0.04527391493320465,
0.07879460602998734,
-0.16731172800064087,
-0.11503928899765015,
-0.07778357714414597,
0.02018948458135128,
0.5294173359870911,
-0.0618005134165287,
-0.08399944007396698,
-0.3883172273635864,
-0.18114814162254333,
0.34691140055656433,
-0.33390671014785767,
0.028198588639497757,
-0.43818122148513794,
0.21042972803115845,
-0.03863679990172386,
0.22969116270542145,
0.029571596533060074,
0.06529125571250916,
0.12540113925933838,
-0.22472621500492096,
0.3457932770252228,
0.11240953207015991,
0.1907096952199936,
-0.21751080453395844,
0.002415761351585388,
-0.056250959634780884,
-0.3433260917663574,
0.31455379724502563,
-0.3579168915748596,
-0.1432727724313736,
-0.20426884293556213,
-0.10852743685245514,
-0.12178477644920349,
0.19377414882183075,
0.45425131916999817,
0.07172752171754837,
0.04039531201124191,
-0.03969861939549446,
-0.1665404886007309,
0.06170516088604927,
0.28826674818992615,
-0.15529757738113403,
-0.13093328475952148,
0.5983136892318726,
-0.14909742772579193,
0.10592655837535858,
0.18238502740859985,
-0.25673195719718933,
0.2603453993797302,
0.03734120354056358,
0.28464755415916443,
0.019463859498500824,
-0.19360947608947754,
0.19869297742843628,
0.008853211998939514,
-0.24378623068332672,
0.04710449278354645,
-0.22452828288078308,
-0.3117446303367615,
0.16122649610042572,
0.28223779797554016,
-0.10387969017028809,
-0.38771650195121765,
0.45578888058662415,
-0.14016157388687134,
0.24553489685058594,
-0.1366027593612671,
0.22655847668647766,
-0.18953189253807068,
-0.008322970941662788,
0.3856815993785858,
0.11852873861789703,
0.3883622884750366,
-0.4394618272781372,
0.232147678732872,
-0.26556068658828735,
0.03297092020511627,
0.5838590860366821,
0.19212645292282104,
0.4650905430316925,
-0.18277618288993835,
-0.12873338162899017,
0.01426348090171814,
0.1167377382516861,
0.7664862871170044,
-0.3901921510696411,
0.1595219373703003,
0.39358577132225037,
0.3322189748287201,
-0.522208571434021,
-0.2706294357776642,
-0.3489105999469757,
-0.2113192230463028,
0.3844958543777466,
0.6925697326660156,
0.010168403387069702,
0.018453208729624748,
0.4259606599807739,
0.13623046875,
0.04480927065014839,
-0.2244950234889984,
-0.10691836476325989,
-0.2536141574382782,
-0.34348931908607483,
0.23082342743873596,
0.2740047574043274,
0.015371022745966911,
0.04953783005475998,
0.010499697178602219,
-0.032440200448036194,
-0.1339104175567627,
-0.17562325298786163,
-0.08894313871860504,
-0.04162155091762543,
0.09080072492361069,
0.13194157183170319,
-0.14910930395126343,
-0.31580430269241333,
-0.278999000787735,
0.28823456168174744,
-0.04836628958582878,
0.02333611249923706,
0.2921125590801239,
-0.10532213002443314,
0.2575424015522003,
0.5872701406478882,
0.03167213127017021,
0.05170833319425583,
-0.39908260107040405,
0.18924860656261444,
-0.03407808393239975,
-0.45789822936058044,
0.45958852767944336,
0.043275486677885056,
0.07446260750293732,
-0.1443852335214615,
0.3679054081439972,
0.06946039199829102,
-0.2770571708679199,
-0.07616427540779114,
0.286258339881897,
-0.3309241235256195,
1.1969572305679321,
0.13539591431617737,
0.9034432768821716,
-0.003559216856956482,
0.04231643304228783,
0.188210129737854,
-0.17243468761444092,
0.334477037191391,
-0.30588555335998535,
0.3353837728500366,
-0.43525898456573486,
-0.11857976019382477,
-0.1863073706626892,
-0.11951901018619537,
0.17666997015476227,
0.05189548805356026,
-0.15050850808620453,
0.24319988489151,
-0.4675707221031189,
0.6454009413719177,
0.09087242931127548,
-0.42992517352104187,
0.12332074344158173,
-0.5196479558944702,
-0.03725075349211693,
0.019337527453899384,
0.1886417716741562,
-0.33200517296791077,
0.039025019854307175,
0.18844963610172272,
-0.25496888160705566,
-0.26720142364501953,
-0.4390600919723511,
0.16587072610855103,
0.3977851867675781,
0.16808225214481354,
0.11350157856941223,
-0.03897713124752045,
0.12758265435695648,
-0.08289922773838043,
0.4729718565940857,
-0.10650056600570679,
-0.03243609517812729,
0.20882411301136017,
0.3529595732688904,
0.23875202238559723,
0.048318736255168915,
-0.09823671728372574,
0.1966734379529953,
0.26345956325531006,
-0.10343534499406815,
0.23267430067062378,
-0.10219166427850723,
-0.09333747625350952,
-0.297798216342926,
0.21534262597560883,
-0.2629818320274353,
-0.3358731269836426,
-0.20359408855438232,
-0.13228049874305725,
0.16813042759895325,
-0.2529107928276062,
0.04252444580197334,
-0.03153735399246216,
-0.09749528020620346,
0.6388795971870422,
-0.48013797402381897,
-0.3012734055519104,
-0.10092176496982574,
0.3429836928844452,
-0.0636676773428917,
0.1897112876176834,
0.2308792918920517,
0.29871946573257446,
-0.14408499002456665,
-0.16842877864837646,
-0.5474225878715515,
0.06223337724804878,
-0.4453330636024475,
0.09556813538074493,
-0.31187260150909424,
-0.5583484172821045,
-0.007038414478302002,
-0.016067203134298325,
-0.26364511251449585,
0.15366682410240173,
-0.41173887252807617,
-0.4018974006175995,
-0.14994707703590393,
0.060826610773801804,
0.5283561944961548,
0.24130035936832428,
-0.24034270644187927,
0.17798352241516113,
-0.6050801277160645,
0.023157410323619843,
-0.19636885821819305,
0.047183603048324585,
-0.009468669071793556,
0.5654847025871277,
0.12133908271789551,
0.0340406708419323,
-0.14951348304748535,
-0.1991671472787857,
0.07681415975093842,
0.35521507263183594,
-0.00910261832177639,
-0.08196762949228287,
-0.18046455085277557,
0.1685434877872467,
0.000510822981595993,
-0.25276994705200195,
-0.3086280822753906,
-0.05755935609340668,
-0.2885693609714508,
-0.41787639260292053,
0.17992956936359406,
0.12689751386642456,
-0.18718113005161285,
0.11905781924724579,
-0.2632574141025543,
-0.14811450242996216,
0.20170246064662933,
0.1424252986907959,
-0.08929647505283356,
0.44769370555877686,
-0.05689919367432594,
0.27750465273857117,
-0.6138931512832642,
0.04885534942150116,
-0.05865432322025299,
0.34333252906799316,
-0.07229587435722351,
0.2912048101425171,
0.3374849855899811,
-0.0076624080538749695,
-0.21267178654670715,
0.03702660650014877,
0.22037941217422485,
-0.01649513840675354,
-0.2821965515613556,
-0.4147123098373413,
-0.2256421148777008,
0.08485164493322372,
-0.0983695536851883,
-0.1211269274353981,
0.37947899103164673,
0.0640312135219574,
0.06203274056315422,
0.3659535050392151,
0.1135081946849823,
-0.21974068880081177,
-0.058266088366508484,
0.001820271834731102,
0.5340515971183777,
0.07204422354698181,
-0.18425682187080383,
0.2533990740776062,
-0.03456849232316017,
0.05827939882874489,
0.27868854999542236,
0.057582955807447433,
0.4411497712135315,
0.38025277853012085,
0.11792761087417603,
-0.3596866726875305,
0.10147212445735931,
0.09532059729099274,
-0.005116462707519531,
-0.41100263595581055,
0.6783583164215088,
0.11091673374176025,
-0.022507712244987488,
0.09494178742170334,
0.2529506981372833,
-0.31906217336654663,
-0.14289997518062592,
-0.12237637490034103,
-0.1221253052353859,
0.3213503062725067,
-0.21362918615341187,
-0.06499777734279633,
0.38582465052604675,
0.009114749729633331,
-0.05385245755314827,
-0.03305414319038391,
-0.08360746502876282,
0.2052699625492096,
0.578091025352478,
0.16615787148475647,
-0.15772117674350739,
0.004525660537183285,
-0.16802942752838135,
-0.059632740914821625,
0.19923171401023865,
-0.2974757254123688,
0.11587544530630112,
0.20093639194965363,
-0.02414385974407196,
0.18082544207572937,
-0.09275135397911072,
0.4057545065879822,
0.1711825430393219,
-0.14841708540916443,
0.4295463562011719,
-0.018135923892259598,
-0.12274289131164551,
0.07292891293764114,
0.28186675906181335,
-0.12580199539661407,
0.18570002913475037,
0.16118596494197845,
0.03667481243610382,
-0.11014071106910706,
-0.2034485638141632,
-0.006651807576417923,
0.8440606594085693,
-0.058130893856287,
0.19600410759449005,
-0.09567800164222717,
-0.18388162553310394,
-0.10510411858558655,
-0.19090870022773743,
-0.09413273632526398,
-0.18228179216384888,
0.2706741392612457,
-0.2599652111530304,
0.3163340091705322,
0.1356731653213501,
0.010269075632095337,
0.1832161247730255,
0.23811542987823486,
0.3785218596458435,
-0.09042073041200638,
-0.3189540207386017,
0.09256654977798462,
-0.21037320792675018,
0.2250635325908661,
0.02911306917667389,
0.08115492761135101,
0.2382201850414276,
0.14243200421333313,
0.24433717131614685,
-0.05202870070934296,
0.40876662731170654,
0.11589730530977249,
0.05852217227220535,
0.44239819049835205,
0.009822893887758255,
-0.20652300119400024,
-0.14250262081623077,
-0.1602378487586975,
-0.07350429892539978,
-0.33545663952827454,
0.26092207431793213,
0.27902624011039734,
0.09488070756196976,
-0.07668857276439667,
-0.24726690351963043,
-0.19159574806690216,
-0.3504449129104614,
0.4988401532173157,
0.1477409452199936,
0.07815834879875183,
-0.22966903448104858,
-0.18131890892982483,
-0.25420883297920227,
-0.15158596634864807,
-0.23570206761360168,
0.07781114429235458,
-0.17696574330329895,
0.1293712854385376,
-0.06612218171358109,
-0.20850013196468353,
-0.21328012645244598,
0.357896625995636,
-0.0593055821955204,
-0.03170032426714897,
-0.39132001996040344,
0.3980438709259033,
-0.5480564832687378,
0.15902134776115417,
-0.02294960245490074,
0.17973339557647705,
0.2428514063358307,
0.6293486952781677,
-0.18536297976970673,
-0.5753361582756042,
0.6385886669158936,
-0.2110421508550644,
-0.41637006402015686,
0.049137357622385025,
0.27252376079559326,
0.048515595495700836,
-0.023749979212880135,
-0.7079247236251831,
-0.00010381639003753662,
-0.017940785735845566,
-0.10516517609357834,
-0.17930682003498077,
-0.16741536557674408,
-0.010318819433450699,
-0.08396682143211365,
-0.06828451156616211,
0.17335325479507446,
0.29634222388267517,
0.06007128208875656,
0.16621807217597961,
-0.03737867996096611
] |
https://github.com/huggingface/datasets/issues/4398 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` | FYI the main reason I want to use `dataset.remove_columns` rather than the function inside `dataset.map` is because according to the 🤗 Datasets documentation, it's faster.
"🤗 Datasets also has a [Dataset.remove_columns()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.Dataset.remove_columns) method that is functionally identical, but faster, because it doesn’t copy the data of the remaining columns."
More information at https://huggingface.co/docs/datasets/process#map | First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 52 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
FYI the main reason I want to use `dataset.remove_columns` rather than the function inside `dataset.map` is because according to the 🤗 Datasets documentation, it's faster.
"🤗 Datasets also has a [Dataset.remove_columns()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.Dataset.remove_columns) method that is functionally identical, but faster, because it doesn’t copy the data of the remaining columns."
More information at https://huggingface.co/docs/datasets/process#map | [
-0.07496000081300735,
-0.12038008868694305,
0.048825185745954514,
0.1968027502298355,
0.3531408905982971,
0.20017755031585693,
0.5984070897102356,
0.2834175229072571,
0.42076197266578674,
0.16230277717113495,
-0.03843817859888077,
0.27761566638946533,
0.13197094202041626,
-0.4079359769821167,
-0.34149208664894104,
-0.29413720965385437,
0.23942047357559204,
0.11668539047241211,
-0.3533419072628021,
0.05380704253911972,
-0.4022285044193268,
0.04542788118124008,
-0.3549343943595886,
0.1357315480709076,
0.14279361069202423,
-0.1493173986673355,
0.14244061708450317,
-0.02762269228696823,
0.26592716574668884,
-0.09055804461240768,
-0.09011560678482056,
-0.4098358452320099,
0.016678068786859512,
0.47190308570861816,
-0.00012268658610992134,
-0.09746695309877396,
0.1481126993894577,
0.0011863596737384796,
0.09490884840488434,
0.4947415590286255,
-0.2859954833984375,
0.26621532440185547,
-0.14296507835388184,
-0.2543034553527832,
0.1335398256778717,
0.026871338486671448,
-0.35336512327194214,
-0.3738171458244324,
-0.05427703261375427,
0.38562655448913574,
0.08198815584182739,
0.06730768084526062,
-0.000524863600730896,
-0.012146002613008022,
0.42323604226112366,
-0.2751351594924927,
-0.16789649426937103,
-0.20392778515815735,
0.19666051864624023,
0.12013915181159973,
0.009670831263065338,
0.255636990070343,
-0.2731388509273529,
-0.38320615887641907,
-0.018025606870651245,
0.08376996219158173,
0.39845168590545654,
-0.11718262732028961,
0.1879713237285614,
0.03433610871434212,
0.19579774141311646,
-0.31922104954719543,
-0.2005903571844101,
0.08583905547857285,
0.02579149231314659,
-0.1292763352394104,
0.16740693151950836,
-0.17855054140090942,
0.16844193637371063,
0.14968976378440857,
-0.03652973100543022,
0.3020241856575012,
0.1024918258190155,
0.15916594862937927,
-0.031080150976777077,
0.05975984036922455,
0.07008523494005203,
0.19679632782936096,
-0.15967892110347748,
-0.08548761159181595,
-0.08442111313343048,
-0.1185757964849472,
-0.05286240205168724,
0.28932511806488037,
-0.4359307587146759,
-0.09287315607070923,
0.214776873588562,
-0.4151070713996887,
-0.2945067882537842,
-0.2884408235549927,
-0.08004412800073624,
0.07150279730558395,
-0.10359346121549606,
0.336067795753479,
-0.054662901908159256,
0.1648799479007721,
-0.3414234519004822,
0.19035331904888153,
0.21981434524059296,
0.13075944781303406,
0.19957061111927032,
0.11126452684402466,
0.5259580612182617,
-0.06611087918281555,
-0.24613720178604126,
0.2598944902420044,
-0.03242627903819084,
-0.10758176445960999,
-0.30050307512283325,
0.381426602602005,
0.014565758407115936,
0.2330065667629242,
0.08031617105007172,
0.22424376010894775,
0.3531944751739502,
0.04533183202147484,
0.19185680150985718,
0.29726332426071167,
0.14187189936637878,
0.3102368414402008,
-0.19902320206165314,
0.14275985956192017,
0.0891164094209671,
-0.2037697434425354,
-0.009516511112451553,
0.13292178511619568,
-0.23610012233257294,
0.3629395365715027,
-0.22262389957904816,
-0.2513180077075958,
-0.3100322484970093,
-0.11244727671146393,
0.4107567071914673,
0.4908100664615631,
-0.18796831369400024,
0.15524347126483917,
0.22813484072685242,
0.05251532793045044,
-0.20472079515457153,
0.15387383103370667,
-0.12987211346626282,
-0.1410238891839981,
-0.15093493461608887,
0.1278405785560608,
0.15703141689300537,
0.1192435696721077,
0.21745386719703674,
-0.039404381066560745,
0.3997652530670166,
-0.13562926650047302,
0.4291294813156128,
-0.18684078752994537,
-0.07261103391647339,
-0.1371573507785797,
0.019146813079714775,
0.19411180913448334,
-0.39076802134513855,
-0.08150480687618256,
0.07683968544006348,
0.0875868946313858,
-0.12256636470556259,
0.23875193297863007,
-0.013807560317218304,
0.21844124794006348,
-0.3683435916900635,
0.10503152012825012,
0.27222883701324463,
-0.09352338314056396,
-0.011768870055675507,
0.16798008978366852,
-0.15738674998283386,
-0.0362548753619194,
0.09656514972448349,
0.04318226873874664,
0.1620493084192276,
-0.19039633870124817,
-0.03718751668930054,
0.17714016139507294,
-0.08651302009820938,
0.32975709438323975,
0.04342234507203102,
-0.16242636740207672,
0.3116750121116638,
-0.07334701716899872,
0.13131503760814667,
0.17456766963005066,
0.08168163895606995,
-0.48311546444892883,
0.014099106192588806,
-0.34166738390922546,
0.24144427478313446,
0.2852308750152588,
0.11420747637748718,
0.03452948108315468,
0.3201430141925812,
-0.28512585163116455,
-0.23935717344284058,
0.16583433747291565,
0.33791425824165344,
-0.12111468613147736,
-0.16131968796253204,
-0.045176465064287186,
-0.07555051147937775,
-0.013569388538599014,
0.19641928374767303,
0.16862522065639496,
-0.004398448392748833,
-0.10557003319263458,
-0.007968354970216751,
-0.2707931399345398,
-0.248218834400177,
-0.11947543174028397,
-0.10319991409778595,
0.09533581882715225,
-0.441982626914978,
0.07644682377576828,
-0.23415561020374298,
-0.21265184879302979,
-0.3842775523662567,
0.1423603892326355,
0.27498361468315125,
-0.22043026983737946,
-0.2298874855041504,
0.4006916880607605,
0.058917686343193054,
0.04711775481700897,
-0.31674036383628845,
0.008101701736450195,
-0.05293115973472595,
-0.06180652976036072,
0.0697033554315567,
0.4765448272228241,
0.2698902487754822,
-0.16611143946647644,
-0.13919097185134888,
0.3436969816684723,
-0.15520824491977692,
0.49099162220954895,
-0.1433175951242447,
0.1548612415790558,
0.29271429777145386,
-0.11052669584751129,
0.08208684623241425,
-0.49759942293167114,
-0.00013787299394607544,
-0.10444830358028412,
-0.23495067656040192,
-0.12696051597595215,
-0.13571739196777344,
0.21340879797935486,
0.2014816701412201,
-0.19160956144332886,
0.17699337005615234,
0.21728023886680603,
0.1252039521932602,
0.19332361221313477,
-0.0849318876862526,
-0.3301330506801605,
0.4600602388381958,
-0.08120681345462799,
-0.237810879945755,
-0.04019125550985336,
-0.03302103653550148,
-0.17911693453788757,
0.22177143394947052,
0.21204107999801636,
-0.3080695569515228,
0.33522364497184753,
0.2999143600463867,
0.11874613910913467,
-0.14425036311149597,
-0.3005686104297638,
0.0471951961517334,
0.19793415069580078,
-0.3961019217967987,
0.11692336946725845,
-0.1107444241642952,
0.20489534735679626,
-0.16396841406822205,
-0.05277000367641449,
0.09681689739227295,
-0.279940128326416,
0.009092334657907486,
-0.007814832031726837,
-0.607649564743042,
0.34774768352508545,
-0.27441367506980896,
0.046899497509002686,
0.1995188295841217,
-0.09843777865171432,
-0.09960001707077026,
-0.16149131953716278,
0.1205977350473404,
-0.08894816040992737,
-0.08000941574573517,
-0.14271415770053864,
-0.056214846670627594,
0.012003077194094658,
-0.14249037206172943,
-0.23515349626541138,
-0.1924702674150467,
0.11241430789232254,
-0.3664693236351013,
-0.29072460532188416,
0.13169193267822266,
-0.04527391493320465,
0.07879460602998734,
-0.16731172800064087,
-0.11503928899765015,
-0.07778357714414597,
0.02018948458135128,
0.5294173359870911,
-0.0618005134165287,
-0.08399944007396698,
-0.3883172273635864,
-0.18114814162254333,
0.34691140055656433,
-0.33390671014785767,
0.028198588639497757,
-0.43818122148513794,
0.21042972803115845,
-0.03863679990172386,
0.22969116270542145,
0.029571596533060074,
0.06529125571250916,
0.12540113925933838,
-0.22472621500492096,
0.3457932770252228,
0.11240953207015991,
0.1907096952199936,
-0.21751080453395844,
0.002415761351585388,
-0.056250959634780884,
-0.3433260917663574,
0.31455379724502563,
-0.3579168915748596,
-0.1432727724313736,
-0.20426884293556213,
-0.10852743685245514,
-0.12178477644920349,
0.19377414882183075,
0.45425131916999817,
0.07172752171754837,
0.04039531201124191,
-0.03969861939549446,
-0.1665404886007309,
0.06170516088604927,
0.28826674818992615,
-0.15529757738113403,
-0.13093328475952148,
0.5983136892318726,
-0.14909742772579193,
0.10592655837535858,
0.18238502740859985,
-0.25673195719718933,
0.2603453993797302,
0.03734120354056358,
0.28464755415916443,
0.019463859498500824,
-0.19360947608947754,
0.19869297742843628,
0.008853211998939514,
-0.24378623068332672,
0.04710449278354645,
-0.22452828288078308,
-0.3117446303367615,
0.16122649610042572,
0.28223779797554016,
-0.10387969017028809,
-0.38771650195121765,
0.45578888058662415,
-0.14016157388687134,
0.24553489685058594,
-0.1366027593612671,
0.22655847668647766,
-0.18953189253807068,
-0.008322970941662788,
0.3856815993785858,
0.11852873861789703,
0.3883622884750366,
-0.4394618272781372,
0.232147678732872,
-0.26556068658828735,
0.03297092020511627,
0.5838590860366821,
0.19212645292282104,
0.4650905430316925,
-0.18277618288993835,
-0.12873338162899017,
0.01426348090171814,
0.1167377382516861,
0.7664862871170044,
-0.3901921510696411,
0.1595219373703003,
0.39358577132225037,
0.3322189748287201,
-0.522208571434021,
-0.2706294357776642,
-0.3489105999469757,
-0.2113192230463028,
0.3844958543777466,
0.6925697326660156,
0.010168403387069702,
0.018453208729624748,
0.4259606599807739,
0.13623046875,
0.04480927065014839,
-0.2244950234889984,
-0.10691836476325989,
-0.2536141574382782,
-0.34348931908607483,
0.23082342743873596,
0.2740047574043274,
0.015371022745966911,
0.04953783005475998,
0.010499697178602219,
-0.032440200448036194,
-0.1339104175567627,
-0.17562325298786163,
-0.08894313871860504,
-0.04162155091762543,
0.09080072492361069,
0.13194157183170319,
-0.14910930395126343,
-0.31580430269241333,
-0.278999000787735,
0.28823456168174744,
-0.04836628958582878,
0.02333611249923706,
0.2921125590801239,
-0.10532213002443314,
0.2575424015522003,
0.5872701406478882,
0.03167213127017021,
0.05170833319425583,
-0.39908260107040405,
0.18924860656261444,
-0.03407808393239975,
-0.45789822936058044,
0.45958852767944336,
0.043275486677885056,
0.07446260750293732,
-0.1443852335214615,
0.3679054081439972,
0.06946039199829102,
-0.2770571708679199,
-0.07616427540779114,
0.286258339881897,
-0.3309241235256195,
1.1969572305679321,
0.13539591431617737,
0.9034432768821716,
-0.003559216856956482,
0.04231643304228783,
0.188210129737854,
-0.17243468761444092,
0.334477037191391,
-0.30588555335998535,
0.3353837728500366,
-0.43525898456573486,
-0.11857976019382477,
-0.1863073706626892,
-0.11951901018619537,
0.17666997015476227,
0.05189548805356026,
-0.15050850808620453,
0.24319988489151,
-0.4675707221031189,
0.6454009413719177,
0.09087242931127548,
-0.42992517352104187,
0.12332074344158173,
-0.5196479558944702,
-0.03725075349211693,
0.019337527453899384,
0.1886417716741562,
-0.33200517296791077,
0.039025019854307175,
0.18844963610172272,
-0.25496888160705566,
-0.26720142364501953,
-0.4390600919723511,
0.16587072610855103,
0.3977851867675781,
0.16808225214481354,
0.11350157856941223,
-0.03897713124752045,
0.12758265435695648,
-0.08289922773838043,
0.4729718565940857,
-0.10650056600570679,
-0.03243609517812729,
0.20882411301136017,
0.3529595732688904,
0.23875202238559723,
0.048318736255168915,
-0.09823671728372574,
0.1966734379529953,
0.26345956325531006,
-0.10343534499406815,
0.23267430067062378,
-0.10219166427850723,
-0.09333747625350952,
-0.297798216342926,
0.21534262597560883,
-0.2629818320274353,
-0.3358731269836426,
-0.20359408855438232,
-0.13228049874305725,
0.16813042759895325,
-0.2529107928276062,
0.04252444580197334,
-0.03153735399246216,
-0.09749528020620346,
0.6388795971870422,
-0.48013797402381897,
-0.3012734055519104,
-0.10092176496982574,
0.3429836928844452,
-0.0636676773428917,
0.1897112876176834,
0.2308792918920517,
0.29871946573257446,
-0.14408499002456665,
-0.16842877864837646,
-0.5474225878715515,
0.06223337724804878,
-0.4453330636024475,
0.09556813538074493,
-0.31187260150909424,
-0.5583484172821045,
-0.007038414478302002,
-0.016067203134298325,
-0.26364511251449585,
0.15366682410240173,
-0.41173887252807617,
-0.4018974006175995,
-0.14994707703590393,
0.060826610773801804,
0.5283561944961548,
0.24130035936832428,
-0.24034270644187927,
0.17798352241516113,
-0.6050801277160645,
0.023157410323619843,
-0.19636885821819305,
0.047183603048324585,
-0.009468669071793556,
0.5654847025871277,
0.12133908271789551,
0.0340406708419323,
-0.14951348304748535,
-0.1991671472787857,
0.07681415975093842,
0.35521507263183594,
-0.00910261832177639,
-0.08196762949228287,
-0.18046455085277557,
0.1685434877872467,
0.000510822981595993,
-0.25276994705200195,
-0.3086280822753906,
-0.05755935609340668,
-0.2885693609714508,
-0.41787639260292053,
0.17992956936359406,
0.12689751386642456,
-0.18718113005161285,
0.11905781924724579,
-0.2632574141025543,
-0.14811450242996216,
0.20170246064662933,
0.1424252986907959,
-0.08929647505283356,
0.44769370555877686,
-0.05689919367432594,
0.27750465273857117,
-0.6138931512832642,
0.04885534942150116,
-0.05865432322025299,
0.34333252906799316,
-0.07229587435722351,
0.2912048101425171,
0.3374849855899811,
-0.0076624080538749695,
-0.21267178654670715,
0.03702660650014877,
0.22037941217422485,
-0.01649513840675354,
-0.2821965515613556,
-0.4147123098373413,
-0.2256421148777008,
0.08485164493322372,
-0.0983695536851883,
-0.1211269274353981,
0.37947899103164673,
0.0640312135219574,
0.06203274056315422,
0.3659535050392151,
0.1135081946849823,
-0.21974068880081177,
-0.058266088366508484,
0.001820271834731102,
0.5340515971183777,
0.07204422354698181,
-0.18425682187080383,
0.2533990740776062,
-0.03456849232316017,
0.05827939882874489,
0.27868854999542236,
0.057582955807447433,
0.4411497712135315,
0.38025277853012085,
0.11792761087417603,
-0.3596866726875305,
0.10147212445735931,
0.09532059729099274,
-0.005116462707519531,
-0.41100263595581055,
0.6783583164215088,
0.11091673374176025,
-0.022507712244987488,
0.09494178742170334,
0.2529506981372833,
-0.31906217336654663,
-0.14289997518062592,
-0.12237637490034103,
-0.1221253052353859,
0.3213503062725067,
-0.21362918615341187,
-0.06499777734279633,
0.38582465052604675,
0.009114749729633331,
-0.05385245755314827,
-0.03305414319038391,
-0.08360746502876282,
0.2052699625492096,
0.578091025352478,
0.16615787148475647,
-0.15772117674350739,
0.004525660537183285,
-0.16802942752838135,
-0.059632740914821625,
0.19923171401023865,
-0.2974757254123688,
0.11587544530630112,
0.20093639194965363,
-0.02414385974407196,
0.18082544207572937,
-0.09275135397911072,
0.4057545065879822,
0.1711825430393219,
-0.14841708540916443,
0.4295463562011719,
-0.018135923892259598,
-0.12274289131164551,
0.07292891293764114,
0.28186675906181335,
-0.12580199539661407,
0.18570002913475037,
0.16118596494197845,
0.03667481243610382,
-0.11014071106910706,
-0.2034485638141632,
-0.006651807576417923,
0.8440606594085693,
-0.058130893856287,
0.19600410759449005,
-0.09567800164222717,
-0.18388162553310394,
-0.10510411858558655,
-0.19090870022773743,
-0.09413273632526398,
-0.18228179216384888,
0.2706741392612457,
-0.2599652111530304,
0.3163340091705322,
0.1356731653213501,
0.010269075632095337,
0.1832161247730255,
0.23811542987823486,
0.3785218596458435,
-0.09042073041200638,
-0.3189540207386017,
0.09256654977798462,
-0.21037320792675018,
0.2250635325908661,
0.02911306917667389,
0.08115492761135101,
0.2382201850414276,
0.14243200421333313,
0.24433717131614685,
-0.05202870070934296,
0.40876662731170654,
0.11589730530977249,
0.05852217227220535,
0.44239819049835205,
0.009822893887758255,
-0.20652300119400024,
-0.14250262081623077,
-0.1602378487586975,
-0.07350429892539978,
-0.33545663952827454,
0.26092207431793213,
0.27902624011039734,
0.09488070756196976,
-0.07668857276439667,
-0.24726690351963043,
-0.19159574806690216,
-0.3504449129104614,
0.4988401532173157,
0.1477409452199936,
0.07815834879875183,
-0.22966903448104858,
-0.18131890892982483,
-0.25420883297920227,
-0.15158596634864807,
-0.23570206761360168,
0.07781114429235458,
-0.17696574330329895,
0.1293712854385376,
-0.06612218171358109,
-0.20850013196468353,
-0.21328012645244598,
0.357896625995636,
-0.0593055821955204,
-0.03170032426714897,
-0.39132001996040344,
0.3980438709259033,
-0.5480564832687378,
0.15902134776115417,
-0.02294960245490074,
0.17973339557647705,
0.2428514063358307,
0.6293486952781677,
-0.18536297976970673,
-0.5753361582756042,
0.6385886669158936,
-0.2110421508550644,
-0.41637006402015686,
0.049137357622385025,
0.27252376079559326,
0.048515595495700836,
-0.023749979212880135,
-0.7079247236251831,
-0.00010381639003753662,
-0.017940785735845566,
-0.10516517609357834,
-0.17930682003498077,
-0.16741536557674408,
-0.010318819433450699,
-0.08396682143211365,
-0.06828451156616211,
0.17335325479507446,
0.29634222388267517,
0.06007128208875656,
0.16621807217597961,
-0.03737867996096611
] |
https://github.com/huggingface/datasets/issues/4398 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` | Here I'm presenting all the scenarios so that you can further investigate the issue:
- ✅ `cast_column` -> `map` with `remove_columns` -> `map` with `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ❌ `cast_column` -> `map` -> `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ❌ `cast_column` -> `map` with `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ✅ `cast_column` -> `map` -> `remove_columns` -> `map` with `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ✅ `map` -> `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
``` | First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 335 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Here I'm presenting all the scenarios so that you can further investigate the issue:
- ✅ `cast_column` -> `map` with `remove_columns` -> `map` with `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ❌ `cast_column` -> `map` -> `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ❌ `cast_column` -> `map` with `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])}, remove_columns=["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ✅ `cast_column` -> `map` -> `remove_columns` -> `map` with `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32"))
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings, remove_columns=["inputs"])
ds.add_faiss_index(column="embeddings")
```
- ✅ `map` -> `remove_columns` -> `map` -> `remove_columns` -> `add_faiss_index`
```python
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns(["inputs"])
ds.add_faiss_index(column="embeddings")
``` | [
-0.07496000081300735,
-0.12038008868694305,
0.048825185745954514,
0.1968027502298355,
0.3531408905982971,
0.20017755031585693,
0.5984070897102356,
0.2834175229072571,
0.42076197266578674,
0.16230277717113495,
-0.03843817859888077,
0.27761566638946533,
0.13197094202041626,
-0.4079359769821167,
-0.34149208664894104,
-0.29413720965385437,
0.23942047357559204,
0.11668539047241211,
-0.3533419072628021,
0.05380704253911972,
-0.4022285044193268,
0.04542788118124008,
-0.3549343943595886,
0.1357315480709076,
0.14279361069202423,
-0.1493173986673355,
0.14244061708450317,
-0.02762269228696823,
0.26592716574668884,
-0.09055804461240768,
-0.09011560678482056,
-0.4098358452320099,
0.016678068786859512,
0.47190308570861816,
-0.00012268658610992134,
-0.09746695309877396,
0.1481126993894577,
0.0011863596737384796,
0.09490884840488434,
0.4947415590286255,
-0.2859954833984375,
0.26621532440185547,
-0.14296507835388184,
-0.2543034553527832,
0.1335398256778717,
0.026871338486671448,
-0.35336512327194214,
-0.3738171458244324,
-0.05427703261375427,
0.38562655448913574,
0.08198815584182739,
0.06730768084526062,
-0.000524863600730896,
-0.012146002613008022,
0.42323604226112366,
-0.2751351594924927,
-0.16789649426937103,
-0.20392778515815735,
0.19666051864624023,
0.12013915181159973,
0.009670831263065338,
0.255636990070343,
-0.2731388509273529,
-0.38320615887641907,
-0.018025606870651245,
0.08376996219158173,
0.39845168590545654,
-0.11718262732028961,
0.1879713237285614,
0.03433610871434212,
0.19579774141311646,
-0.31922104954719543,
-0.2005903571844101,
0.08583905547857285,
0.02579149231314659,
-0.1292763352394104,
0.16740693151950836,
-0.17855054140090942,
0.16844193637371063,
0.14968976378440857,
-0.03652973100543022,
0.3020241856575012,
0.1024918258190155,
0.15916594862937927,
-0.031080150976777077,
0.05975984036922455,
0.07008523494005203,
0.19679632782936096,
-0.15967892110347748,
-0.08548761159181595,
-0.08442111313343048,
-0.1185757964849472,
-0.05286240205168724,
0.28932511806488037,
-0.4359307587146759,
-0.09287315607070923,
0.214776873588562,
-0.4151070713996887,
-0.2945067882537842,
-0.2884408235549927,
-0.08004412800073624,
0.07150279730558395,
-0.10359346121549606,
0.336067795753479,
-0.054662901908159256,
0.1648799479007721,
-0.3414234519004822,
0.19035331904888153,
0.21981434524059296,
0.13075944781303406,
0.19957061111927032,
0.11126452684402466,
0.5259580612182617,
-0.06611087918281555,
-0.24613720178604126,
0.2598944902420044,
-0.03242627903819084,
-0.10758176445960999,
-0.30050307512283325,
0.381426602602005,
0.014565758407115936,
0.2330065667629242,
0.08031617105007172,
0.22424376010894775,
0.3531944751739502,
0.04533183202147484,
0.19185680150985718,
0.29726332426071167,
0.14187189936637878,
0.3102368414402008,
-0.19902320206165314,
0.14275985956192017,
0.0891164094209671,
-0.2037697434425354,
-0.009516511112451553,
0.13292178511619568,
-0.23610012233257294,
0.3629395365715027,
-0.22262389957904816,
-0.2513180077075958,
-0.3100322484970093,
-0.11244727671146393,
0.4107567071914673,
0.4908100664615631,
-0.18796831369400024,
0.15524347126483917,
0.22813484072685242,
0.05251532793045044,
-0.20472079515457153,
0.15387383103370667,
-0.12987211346626282,
-0.1410238891839981,
-0.15093493461608887,
0.1278405785560608,
0.15703141689300537,
0.1192435696721077,
0.21745386719703674,
-0.039404381066560745,
0.3997652530670166,
-0.13562926650047302,
0.4291294813156128,
-0.18684078752994537,
-0.07261103391647339,
-0.1371573507785797,
0.019146813079714775,
0.19411180913448334,
-0.39076802134513855,
-0.08150480687618256,
0.07683968544006348,
0.0875868946313858,
-0.12256636470556259,
0.23875193297863007,
-0.013807560317218304,
0.21844124794006348,
-0.3683435916900635,
0.10503152012825012,
0.27222883701324463,
-0.09352338314056396,
-0.011768870055675507,
0.16798008978366852,
-0.15738674998283386,
-0.0362548753619194,
0.09656514972448349,
0.04318226873874664,
0.1620493084192276,
-0.19039633870124817,
-0.03718751668930054,
0.17714016139507294,
-0.08651302009820938,
0.32975709438323975,
0.04342234507203102,
-0.16242636740207672,
0.3116750121116638,
-0.07334701716899872,
0.13131503760814667,
0.17456766963005066,
0.08168163895606995,
-0.48311546444892883,
0.014099106192588806,
-0.34166738390922546,
0.24144427478313446,
0.2852308750152588,
0.11420747637748718,
0.03452948108315468,
0.3201430141925812,
-0.28512585163116455,
-0.23935717344284058,
0.16583433747291565,
0.33791425824165344,
-0.12111468613147736,
-0.16131968796253204,
-0.045176465064287186,
-0.07555051147937775,
-0.013569388538599014,
0.19641928374767303,
0.16862522065639496,
-0.004398448392748833,
-0.10557003319263458,
-0.007968354970216751,
-0.2707931399345398,
-0.248218834400177,
-0.11947543174028397,
-0.10319991409778595,
0.09533581882715225,
-0.441982626914978,
0.07644682377576828,
-0.23415561020374298,
-0.21265184879302979,
-0.3842775523662567,
0.1423603892326355,
0.27498361468315125,
-0.22043026983737946,
-0.2298874855041504,
0.4006916880607605,
0.058917686343193054,
0.04711775481700897,
-0.31674036383628845,
0.008101701736450195,
-0.05293115973472595,
-0.06180652976036072,
0.0697033554315567,
0.4765448272228241,
0.2698902487754822,
-0.16611143946647644,
-0.13919097185134888,
0.3436969816684723,
-0.15520824491977692,
0.49099162220954895,
-0.1433175951242447,
0.1548612415790558,
0.29271429777145386,
-0.11052669584751129,
0.08208684623241425,
-0.49759942293167114,
-0.00013787299394607544,
-0.10444830358028412,
-0.23495067656040192,
-0.12696051597595215,
-0.13571739196777344,
0.21340879797935486,
0.2014816701412201,
-0.19160956144332886,
0.17699337005615234,
0.21728023886680603,
0.1252039521932602,
0.19332361221313477,
-0.0849318876862526,
-0.3301330506801605,
0.4600602388381958,
-0.08120681345462799,
-0.237810879945755,
-0.04019125550985336,
-0.03302103653550148,
-0.17911693453788757,
0.22177143394947052,
0.21204107999801636,
-0.3080695569515228,
0.33522364497184753,
0.2999143600463867,
0.11874613910913467,
-0.14425036311149597,
-0.3005686104297638,
0.0471951961517334,
0.19793415069580078,
-0.3961019217967987,
0.11692336946725845,
-0.1107444241642952,
0.20489534735679626,
-0.16396841406822205,
-0.05277000367641449,
0.09681689739227295,
-0.279940128326416,
0.009092334657907486,
-0.007814832031726837,
-0.607649564743042,
0.34774768352508545,
-0.27441367506980896,
0.046899497509002686,
0.1995188295841217,
-0.09843777865171432,
-0.09960001707077026,
-0.16149131953716278,
0.1205977350473404,
-0.08894816040992737,
-0.08000941574573517,
-0.14271415770053864,
-0.056214846670627594,
0.012003077194094658,
-0.14249037206172943,
-0.23515349626541138,
-0.1924702674150467,
0.11241430789232254,
-0.3664693236351013,
-0.29072460532188416,
0.13169193267822266,
-0.04527391493320465,
0.07879460602998734,
-0.16731172800064087,
-0.11503928899765015,
-0.07778357714414597,
0.02018948458135128,
0.5294173359870911,
-0.0618005134165287,
-0.08399944007396698,
-0.3883172273635864,
-0.18114814162254333,
0.34691140055656433,
-0.33390671014785767,
0.028198588639497757,
-0.43818122148513794,
0.21042972803115845,
-0.03863679990172386,
0.22969116270542145,
0.029571596533060074,
0.06529125571250916,
0.12540113925933838,
-0.22472621500492096,
0.3457932770252228,
0.11240953207015991,
0.1907096952199936,
-0.21751080453395844,
0.002415761351585388,
-0.056250959634780884,
-0.3433260917663574,
0.31455379724502563,
-0.3579168915748596,
-0.1432727724313736,
-0.20426884293556213,
-0.10852743685245514,
-0.12178477644920349,
0.19377414882183075,
0.45425131916999817,
0.07172752171754837,
0.04039531201124191,
-0.03969861939549446,
-0.1665404886007309,
0.06170516088604927,
0.28826674818992615,
-0.15529757738113403,
-0.13093328475952148,
0.5983136892318726,
-0.14909742772579193,
0.10592655837535858,
0.18238502740859985,
-0.25673195719718933,
0.2603453993797302,
0.03734120354056358,
0.28464755415916443,
0.019463859498500824,
-0.19360947608947754,
0.19869297742843628,
0.008853211998939514,
-0.24378623068332672,
0.04710449278354645,
-0.22452828288078308,
-0.3117446303367615,
0.16122649610042572,
0.28223779797554016,
-0.10387969017028809,
-0.38771650195121765,
0.45578888058662415,
-0.14016157388687134,
0.24553489685058594,
-0.1366027593612671,
0.22655847668647766,
-0.18953189253807068,
-0.008322970941662788,
0.3856815993785858,
0.11852873861789703,
0.3883622884750366,
-0.4394618272781372,
0.232147678732872,
-0.26556068658828735,
0.03297092020511627,
0.5838590860366821,
0.19212645292282104,
0.4650905430316925,
-0.18277618288993835,
-0.12873338162899017,
0.01426348090171814,
0.1167377382516861,
0.7664862871170044,
-0.3901921510696411,
0.1595219373703003,
0.39358577132225037,
0.3322189748287201,
-0.522208571434021,
-0.2706294357776642,
-0.3489105999469757,
-0.2113192230463028,
0.3844958543777466,
0.6925697326660156,
0.010168403387069702,
0.018453208729624748,
0.4259606599807739,
0.13623046875,
0.04480927065014839,
-0.2244950234889984,
-0.10691836476325989,
-0.2536141574382782,
-0.34348931908607483,
0.23082342743873596,
0.2740047574043274,
0.015371022745966911,
0.04953783005475998,
0.010499697178602219,
-0.032440200448036194,
-0.1339104175567627,
-0.17562325298786163,
-0.08894313871860504,
-0.04162155091762543,
0.09080072492361069,
0.13194157183170319,
-0.14910930395126343,
-0.31580430269241333,
-0.278999000787735,
0.28823456168174744,
-0.04836628958582878,
0.02333611249923706,
0.2921125590801239,
-0.10532213002443314,
0.2575424015522003,
0.5872701406478882,
0.03167213127017021,
0.05170833319425583,
-0.39908260107040405,
0.18924860656261444,
-0.03407808393239975,
-0.45789822936058044,
0.45958852767944336,
0.043275486677885056,
0.07446260750293732,
-0.1443852335214615,
0.3679054081439972,
0.06946039199829102,
-0.2770571708679199,
-0.07616427540779114,
0.286258339881897,
-0.3309241235256195,
1.1969572305679321,
0.13539591431617737,
0.9034432768821716,
-0.003559216856956482,
0.04231643304228783,
0.188210129737854,
-0.17243468761444092,
0.334477037191391,
-0.30588555335998535,
0.3353837728500366,
-0.43525898456573486,
-0.11857976019382477,
-0.1863073706626892,
-0.11951901018619537,
0.17666997015476227,
0.05189548805356026,
-0.15050850808620453,
0.24319988489151,
-0.4675707221031189,
0.6454009413719177,
0.09087242931127548,
-0.42992517352104187,
0.12332074344158173,
-0.5196479558944702,
-0.03725075349211693,
0.019337527453899384,
0.1886417716741562,
-0.33200517296791077,
0.039025019854307175,
0.18844963610172272,
-0.25496888160705566,
-0.26720142364501953,
-0.4390600919723511,
0.16587072610855103,
0.3977851867675781,
0.16808225214481354,
0.11350157856941223,
-0.03897713124752045,
0.12758265435695648,
-0.08289922773838043,
0.4729718565940857,
-0.10650056600570679,
-0.03243609517812729,
0.20882411301136017,
0.3529595732688904,
0.23875202238559723,
0.048318736255168915,
-0.09823671728372574,
0.1966734379529953,
0.26345956325531006,
-0.10343534499406815,
0.23267430067062378,
-0.10219166427850723,
-0.09333747625350952,
-0.297798216342926,
0.21534262597560883,
-0.2629818320274353,
-0.3358731269836426,
-0.20359408855438232,
-0.13228049874305725,
0.16813042759895325,
-0.2529107928276062,
0.04252444580197334,
-0.03153735399246216,
-0.09749528020620346,
0.6388795971870422,
-0.48013797402381897,
-0.3012734055519104,
-0.10092176496982574,
0.3429836928844452,
-0.0636676773428917,
0.1897112876176834,
0.2308792918920517,
0.29871946573257446,
-0.14408499002456665,
-0.16842877864837646,
-0.5474225878715515,
0.06223337724804878,
-0.4453330636024475,
0.09556813538074493,
-0.31187260150909424,
-0.5583484172821045,
-0.007038414478302002,
-0.016067203134298325,
-0.26364511251449585,
0.15366682410240173,
-0.41173887252807617,
-0.4018974006175995,
-0.14994707703590393,
0.060826610773801804,
0.5283561944961548,
0.24130035936832428,
-0.24034270644187927,
0.17798352241516113,
-0.6050801277160645,
0.023157410323619843,
-0.19636885821819305,
0.047183603048324585,
-0.009468669071793556,
0.5654847025871277,
0.12133908271789551,
0.0340406708419323,
-0.14951348304748535,
-0.1991671472787857,
0.07681415975093842,
0.35521507263183594,
-0.00910261832177639,
-0.08196762949228287,
-0.18046455085277557,
0.1685434877872467,
0.000510822981595993,
-0.25276994705200195,
-0.3086280822753906,
-0.05755935609340668,
-0.2885693609714508,
-0.41787639260292053,
0.17992956936359406,
0.12689751386642456,
-0.18718113005161285,
0.11905781924724579,
-0.2632574141025543,
-0.14811450242996216,
0.20170246064662933,
0.1424252986907959,
-0.08929647505283356,
0.44769370555877686,
-0.05689919367432594,
0.27750465273857117,
-0.6138931512832642,
0.04885534942150116,
-0.05865432322025299,
0.34333252906799316,
-0.07229587435722351,
0.2912048101425171,
0.3374849855899811,
-0.0076624080538749695,
-0.21267178654670715,
0.03702660650014877,
0.22037941217422485,
-0.01649513840675354,
-0.2821965515613556,
-0.4147123098373413,
-0.2256421148777008,
0.08485164493322372,
-0.0983695536851883,
-0.1211269274353981,
0.37947899103164673,
0.0640312135219574,
0.06203274056315422,
0.3659535050392151,
0.1135081946849823,
-0.21974068880081177,
-0.058266088366508484,
0.001820271834731102,
0.5340515971183777,
0.07204422354698181,
-0.18425682187080383,
0.2533990740776062,
-0.03456849232316017,
0.05827939882874489,
0.27868854999542236,
0.057582955807447433,
0.4411497712135315,
0.38025277853012085,
0.11792761087417603,
-0.3596866726875305,
0.10147212445735931,
0.09532059729099274,
-0.005116462707519531,
-0.41100263595581055,
0.6783583164215088,
0.11091673374176025,
-0.022507712244987488,
0.09494178742170334,
0.2529506981372833,
-0.31906217336654663,
-0.14289997518062592,
-0.12237637490034103,
-0.1221253052353859,
0.3213503062725067,
-0.21362918615341187,
-0.06499777734279633,
0.38582465052604675,
0.009114749729633331,
-0.05385245755314827,
-0.03305414319038391,
-0.08360746502876282,
0.2052699625492096,
0.578091025352478,
0.16615787148475647,
-0.15772117674350739,
0.004525660537183285,
-0.16802942752838135,
-0.059632740914821625,
0.19923171401023865,
-0.2974757254123688,
0.11587544530630112,
0.20093639194965363,
-0.02414385974407196,
0.18082544207572937,
-0.09275135397911072,
0.4057545065879822,
0.1711825430393219,
-0.14841708540916443,
0.4295463562011719,
-0.018135923892259598,
-0.12274289131164551,
0.07292891293764114,
0.28186675906181335,
-0.12580199539661407,
0.18570002913475037,
0.16118596494197845,
0.03667481243610382,
-0.11014071106910706,
-0.2034485638141632,
-0.006651807576417923,
0.8440606594085693,
-0.058130893856287,
0.19600410759449005,
-0.09567800164222717,
-0.18388162553310394,
-0.10510411858558655,
-0.19090870022773743,
-0.09413273632526398,
-0.18228179216384888,
0.2706741392612457,
-0.2599652111530304,
0.3163340091705322,
0.1356731653213501,
0.010269075632095337,
0.1832161247730255,
0.23811542987823486,
0.3785218596458435,
-0.09042073041200638,
-0.3189540207386017,
0.09256654977798462,
-0.21037320792675018,
0.2250635325908661,
0.02911306917667389,
0.08115492761135101,
0.2382201850414276,
0.14243200421333313,
0.24433717131614685,
-0.05202870070934296,
0.40876662731170654,
0.11589730530977249,
0.05852217227220535,
0.44239819049835205,
0.009822893887758255,
-0.20652300119400024,
-0.14250262081623077,
-0.1602378487586975,
-0.07350429892539978,
-0.33545663952827454,
0.26092207431793213,
0.27902624011039734,
0.09488070756196976,
-0.07668857276439667,
-0.24726690351963043,
-0.19159574806690216,
-0.3504449129104614,
0.4988401532173157,
0.1477409452199936,
0.07815834879875183,
-0.22966903448104858,
-0.18131890892982483,
-0.25420883297920227,
-0.15158596634864807,
-0.23570206761360168,
0.07781114429235458,
-0.17696574330329895,
0.1293712854385376,
-0.06612218171358109,
-0.20850013196468353,
-0.21328012645244598,
0.357896625995636,
-0.0593055821955204,
-0.03170032426714897,
-0.39132001996040344,
0.3980438709259033,
-0.5480564832687378,
0.15902134776115417,
-0.02294960245490074,
0.17973339557647705,
0.2428514063358307,
0.6293486952781677,
-0.18536297976970673,
-0.5753361582756042,
0.6385886669158936,
-0.2110421508550644,
-0.41637006402015686,
0.049137357622385025,
0.27252376079559326,
0.048515595495700836,
-0.023749979212880135,
-0.7079247236251831,
-0.00010381639003753662,
-0.017940785735845566,
-0.10516517609357834,
-0.17930682003498077,
-0.16741536557674408,
-0.010318819433450699,
-0.08396682143211365,
-0.06828451156616211,
0.17335325479507446,
0.29634222388267517,
0.06007128208875656,
0.16621807217597961,
-0.03737867996096611
] |
https://github.com/huggingface/datasets/issues/4398 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError` | So on, I've created #4411 so as to fix the bug with `remove_columns` under certain conditions before `add_faiss_index`, which means that the scenarios not working above are already working fine. | First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 30 | Calling `cast_column`/`remove_columns` and a sequence of `map` operations ends up making `faiss` fail with `ValueError`
First of all, sorry in advance for the unclear title, but this bug is weird to explain (at least for me), so I tried my best to summarize all the information in this issue.
## Describe the bug
Calling a certain combination of operations over a 🤗 `Dataset` and then trying to calculate the `faiss` index with `.add_faiss_index` ends up throwing an exception while trying to set the format back of a previously removed column. But this just happens over certain conditions... I'll present some scenarios below!
## Steps to reproduce the bug
Assuming the following dataset named `sample.csv` with some IMDb data:
```csv
id,title,summary
1877830,"The Batman","When a sadistic serial killer begins murdering key political figures in Gotham, Batman is forced to investigate the city's hidden corruption and question his family's involvement."
9419884,"Doctor Strange in the Multiverse of Madness","Doctor Strange teams up with a mysterious teenage girl from his dreams who can travel across multiverses, to battle multiple threats, including other-universe versions of himself, which threaten to wipe out millions across the multiverse. They seek help from Wanda the Scarlet Witch, Wong and others."
11138512,"The Northman","From visionary director Robert Eggers comes The Northman, an action-filled epic that follows a young Viking prince on his quest to avenge his father's murder."
1745960,"Top Gun: Maverick","After more than thirty years of service as one of the Navy's top aviators, Pete Mitchell is where he belongs, pushing the envelope as a courageous test pilot and dodging the advancement in rank that would ground him."
```
We'll be able to reproduce the bug using the following piece of code:
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset, Value
ds = load_dataset("csv", data_files=["sample.csv"], split="train")
ds = ds.cast_column("id", Value("int32")) # from `int64` to `int32`
ds = ds.map(lambda x: {"inputs": f"{ctx_tokenizer.sep_token}".join(["title", "summary"])})
ds = ds.remove_columns(["title", "summary"])
def generate_embeddings(x):
return {"embeddings": ctx_encoder(**ctx_tokenizer(x["inputs"], return_tensors="pt"))[0][0].numpy()}
ds = ds.map(generate_embeddings)
ds = ds.remove_columns("inputs")
ds.add_faiss_index(column="embeddings") # It fails here!
```
The code above is an adaptation of https://huggingface.co/docs/datasets/faiss_es, for the sake of presenting the bug with a simple example.
## Expected results
Ideally, the `faiss` index should be calculated over the 🤗 `Dataset` and no exception should be triggered.
## Actual results
But what happens instead is that a `ValueError: Columns ['inputs'] not in the dataset. Current columns in the dataset: ['id', 'embeddings']`, which makes no sense as that column has been previously dropped.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
So on, I've created #4411 so as to fix the bug with `remove_columns` under certain conditions before `add_faiss_index`, which means that the scenarios not working above are already working fine. | [
-0.07496000081300735,
-0.12038008868694305,
0.048825185745954514,
0.1968027502298355,
0.3531408905982971,
0.20017755031585693,
0.5984070897102356,
0.2834175229072571,
0.42076197266578674,
0.16230277717113495,
-0.03843817859888077,
0.27761566638946533,
0.13197094202041626,
-0.4079359769821167,
-0.34149208664894104,
-0.29413720965385437,
0.23942047357559204,
0.11668539047241211,
-0.3533419072628021,
0.05380704253911972,
-0.4022285044193268,
0.04542788118124008,
-0.3549343943595886,
0.1357315480709076,
0.14279361069202423,
-0.1493173986673355,
0.14244061708450317,
-0.02762269228696823,
0.26592716574668884,
-0.09055804461240768,
-0.09011560678482056,
-0.4098358452320099,
0.016678068786859512,
0.47190308570861816,
-0.00012268658610992134,
-0.09746695309877396,
0.1481126993894577,
0.0011863596737384796,
0.09490884840488434,
0.4947415590286255,
-0.2859954833984375,
0.26621532440185547,
-0.14296507835388184,
-0.2543034553527832,
0.1335398256778717,
0.026871338486671448,
-0.35336512327194214,
-0.3738171458244324,
-0.05427703261375427,
0.38562655448913574,
0.08198815584182739,
0.06730768084526062,
-0.000524863600730896,
-0.012146002613008022,
0.42323604226112366,
-0.2751351594924927,
-0.16789649426937103,
-0.20392778515815735,
0.19666051864624023,
0.12013915181159973,
0.009670831263065338,
0.255636990070343,
-0.2731388509273529,
-0.38320615887641907,
-0.018025606870651245,
0.08376996219158173,
0.39845168590545654,
-0.11718262732028961,
0.1879713237285614,
0.03433610871434212,
0.19579774141311646,
-0.31922104954719543,
-0.2005903571844101,
0.08583905547857285,
0.02579149231314659,
-0.1292763352394104,
0.16740693151950836,
-0.17855054140090942,
0.16844193637371063,
0.14968976378440857,
-0.03652973100543022,
0.3020241856575012,
0.1024918258190155,
0.15916594862937927,
-0.031080150976777077,
0.05975984036922455,
0.07008523494005203,
0.19679632782936096,
-0.15967892110347748,
-0.08548761159181595,
-0.08442111313343048,
-0.1185757964849472,
-0.05286240205168724,
0.28932511806488037,
-0.4359307587146759,
-0.09287315607070923,
0.214776873588562,
-0.4151070713996887,
-0.2945067882537842,
-0.2884408235549927,
-0.08004412800073624,
0.07150279730558395,
-0.10359346121549606,
0.336067795753479,
-0.054662901908159256,
0.1648799479007721,
-0.3414234519004822,
0.19035331904888153,
0.21981434524059296,
0.13075944781303406,
0.19957061111927032,
0.11126452684402466,
0.5259580612182617,
-0.06611087918281555,
-0.24613720178604126,
0.2598944902420044,
-0.03242627903819084,
-0.10758176445960999,
-0.30050307512283325,
0.381426602602005,
0.014565758407115936,
0.2330065667629242,
0.08031617105007172,
0.22424376010894775,
0.3531944751739502,
0.04533183202147484,
0.19185680150985718,
0.29726332426071167,
0.14187189936637878,
0.3102368414402008,
-0.19902320206165314,
0.14275985956192017,
0.0891164094209671,
-0.2037697434425354,
-0.009516511112451553,
0.13292178511619568,
-0.23610012233257294,
0.3629395365715027,
-0.22262389957904816,
-0.2513180077075958,
-0.3100322484970093,
-0.11244727671146393,
0.4107567071914673,
0.4908100664615631,
-0.18796831369400024,
0.15524347126483917,
0.22813484072685242,
0.05251532793045044,
-0.20472079515457153,
0.15387383103370667,
-0.12987211346626282,
-0.1410238891839981,
-0.15093493461608887,
0.1278405785560608,
0.15703141689300537,
0.1192435696721077,
0.21745386719703674,
-0.039404381066560745,
0.3997652530670166,
-0.13562926650047302,
0.4291294813156128,
-0.18684078752994537,
-0.07261103391647339,
-0.1371573507785797,
0.019146813079714775,
0.19411180913448334,
-0.39076802134513855,
-0.08150480687618256,
0.07683968544006348,
0.0875868946313858,
-0.12256636470556259,
0.23875193297863007,
-0.013807560317218304,
0.21844124794006348,
-0.3683435916900635,
0.10503152012825012,
0.27222883701324463,
-0.09352338314056396,
-0.011768870055675507,
0.16798008978366852,
-0.15738674998283386,
-0.0362548753619194,
0.09656514972448349,
0.04318226873874664,
0.1620493084192276,
-0.19039633870124817,
-0.03718751668930054,
0.17714016139507294,
-0.08651302009820938,
0.32975709438323975,
0.04342234507203102,
-0.16242636740207672,
0.3116750121116638,
-0.07334701716899872,
0.13131503760814667,
0.17456766963005066,
0.08168163895606995,
-0.48311546444892883,
0.014099106192588806,
-0.34166738390922546,
0.24144427478313446,
0.2852308750152588,
0.11420747637748718,
0.03452948108315468,
0.3201430141925812,
-0.28512585163116455,
-0.23935717344284058,
0.16583433747291565,
0.33791425824165344,
-0.12111468613147736,
-0.16131968796253204,
-0.045176465064287186,
-0.07555051147937775,
-0.013569388538599014,
0.19641928374767303,
0.16862522065639496,
-0.004398448392748833,
-0.10557003319263458,
-0.007968354970216751,
-0.2707931399345398,
-0.248218834400177,
-0.11947543174028397,
-0.10319991409778595,
0.09533581882715225,
-0.441982626914978,
0.07644682377576828,
-0.23415561020374298,
-0.21265184879302979,
-0.3842775523662567,
0.1423603892326355,
0.27498361468315125,
-0.22043026983737946,
-0.2298874855041504,
0.4006916880607605,
0.058917686343193054,
0.04711775481700897,
-0.31674036383628845,
0.008101701736450195,
-0.05293115973472595,
-0.06180652976036072,
0.0697033554315567,
0.4765448272228241,
0.2698902487754822,
-0.16611143946647644,
-0.13919097185134888,
0.3436969816684723,
-0.15520824491977692,
0.49099162220954895,
-0.1433175951242447,
0.1548612415790558,
0.29271429777145386,
-0.11052669584751129,
0.08208684623241425,
-0.49759942293167114,
-0.00013787299394607544,
-0.10444830358028412,
-0.23495067656040192,
-0.12696051597595215,
-0.13571739196777344,
0.21340879797935486,
0.2014816701412201,
-0.19160956144332886,
0.17699337005615234,
0.21728023886680603,
0.1252039521932602,
0.19332361221313477,
-0.0849318876862526,
-0.3301330506801605,
0.4600602388381958,
-0.08120681345462799,
-0.237810879945755,
-0.04019125550985336,
-0.03302103653550148,
-0.17911693453788757,
0.22177143394947052,
0.21204107999801636,
-0.3080695569515228,
0.33522364497184753,
0.2999143600463867,
0.11874613910913467,
-0.14425036311149597,
-0.3005686104297638,
0.0471951961517334,
0.19793415069580078,
-0.3961019217967987,
0.11692336946725845,
-0.1107444241642952,
0.20489534735679626,
-0.16396841406822205,
-0.05277000367641449,
0.09681689739227295,
-0.279940128326416,
0.009092334657907486,
-0.007814832031726837,
-0.607649564743042,
0.34774768352508545,
-0.27441367506980896,
0.046899497509002686,
0.1995188295841217,
-0.09843777865171432,
-0.09960001707077026,
-0.16149131953716278,
0.1205977350473404,
-0.08894816040992737,
-0.08000941574573517,
-0.14271415770053864,
-0.056214846670627594,
0.012003077194094658,
-0.14249037206172943,
-0.23515349626541138,
-0.1924702674150467,
0.11241430789232254,
-0.3664693236351013,
-0.29072460532188416,
0.13169193267822266,
-0.04527391493320465,
0.07879460602998734,
-0.16731172800064087,
-0.11503928899765015,
-0.07778357714414597,
0.02018948458135128,
0.5294173359870911,
-0.0618005134165287,
-0.08399944007396698,
-0.3883172273635864,
-0.18114814162254333,
0.34691140055656433,
-0.33390671014785767,
0.028198588639497757,
-0.43818122148513794,
0.21042972803115845,
-0.03863679990172386,
0.22969116270542145,
0.029571596533060074,
0.06529125571250916,
0.12540113925933838,
-0.22472621500492096,
0.3457932770252228,
0.11240953207015991,
0.1907096952199936,
-0.21751080453395844,
0.002415761351585388,
-0.056250959634780884,
-0.3433260917663574,
0.31455379724502563,
-0.3579168915748596,
-0.1432727724313736,
-0.20426884293556213,
-0.10852743685245514,
-0.12178477644920349,
0.19377414882183075,
0.45425131916999817,
0.07172752171754837,
0.04039531201124191,
-0.03969861939549446,
-0.1665404886007309,
0.06170516088604927,
0.28826674818992615,
-0.15529757738113403,
-0.13093328475952148,
0.5983136892318726,
-0.14909742772579193,
0.10592655837535858,
0.18238502740859985,
-0.25673195719718933,
0.2603453993797302,
0.03734120354056358,
0.28464755415916443,
0.019463859498500824,
-0.19360947608947754,
0.19869297742843628,
0.008853211998939514,
-0.24378623068332672,
0.04710449278354645,
-0.22452828288078308,
-0.3117446303367615,
0.16122649610042572,
0.28223779797554016,
-0.10387969017028809,
-0.38771650195121765,
0.45578888058662415,
-0.14016157388687134,
0.24553489685058594,
-0.1366027593612671,
0.22655847668647766,
-0.18953189253807068,
-0.008322970941662788,
0.3856815993785858,
0.11852873861789703,
0.3883622884750366,
-0.4394618272781372,
0.232147678732872,
-0.26556068658828735,
0.03297092020511627,
0.5838590860366821,
0.19212645292282104,
0.4650905430316925,
-0.18277618288993835,
-0.12873338162899017,
0.01426348090171814,
0.1167377382516861,
0.7664862871170044,
-0.3901921510696411,
0.1595219373703003,
0.39358577132225037,
0.3322189748287201,
-0.522208571434021,
-0.2706294357776642,
-0.3489105999469757,
-0.2113192230463028,
0.3844958543777466,
0.6925697326660156,
0.010168403387069702,
0.018453208729624748,
0.4259606599807739,
0.13623046875,
0.04480927065014839,
-0.2244950234889984,
-0.10691836476325989,
-0.2536141574382782,
-0.34348931908607483,
0.23082342743873596,
0.2740047574043274,
0.015371022745966911,
0.04953783005475998,
0.010499697178602219,
-0.032440200448036194,
-0.1339104175567627,
-0.17562325298786163,
-0.08894313871860504,
-0.04162155091762543,
0.09080072492361069,
0.13194157183170319,
-0.14910930395126343,
-0.31580430269241333,
-0.278999000787735,
0.28823456168174744,
-0.04836628958582878,
0.02333611249923706,
0.2921125590801239,
-0.10532213002443314,
0.2575424015522003,
0.5872701406478882,
0.03167213127017021,
0.05170833319425583,
-0.39908260107040405,
0.18924860656261444,
-0.03407808393239975,
-0.45789822936058044,
0.45958852767944336,
0.043275486677885056,
0.07446260750293732,
-0.1443852335214615,
0.3679054081439972,
0.06946039199829102,
-0.2770571708679199,
-0.07616427540779114,
0.286258339881897,
-0.3309241235256195,
1.1969572305679321,
0.13539591431617737,
0.9034432768821716,
-0.003559216856956482,
0.04231643304228783,
0.188210129737854,
-0.17243468761444092,
0.334477037191391,
-0.30588555335998535,
0.3353837728500366,
-0.43525898456573486,
-0.11857976019382477,
-0.1863073706626892,
-0.11951901018619537,
0.17666997015476227,
0.05189548805356026,
-0.15050850808620453,
0.24319988489151,
-0.4675707221031189,
0.6454009413719177,
0.09087242931127548,
-0.42992517352104187,
0.12332074344158173,
-0.5196479558944702,
-0.03725075349211693,
0.019337527453899384,
0.1886417716741562,
-0.33200517296791077,
0.039025019854307175,
0.18844963610172272,
-0.25496888160705566,
-0.26720142364501953,
-0.4390600919723511,
0.16587072610855103,
0.3977851867675781,
0.16808225214481354,
0.11350157856941223,
-0.03897713124752045,
0.12758265435695648,
-0.08289922773838043,
0.4729718565940857,
-0.10650056600570679,
-0.03243609517812729,
0.20882411301136017,
0.3529595732688904,
0.23875202238559723,
0.048318736255168915,
-0.09823671728372574,
0.1966734379529953,
0.26345956325531006,
-0.10343534499406815,
0.23267430067062378,
-0.10219166427850723,
-0.09333747625350952,
-0.297798216342926,
0.21534262597560883,
-0.2629818320274353,
-0.3358731269836426,
-0.20359408855438232,
-0.13228049874305725,
0.16813042759895325,
-0.2529107928276062,
0.04252444580197334,
-0.03153735399246216,
-0.09749528020620346,
0.6388795971870422,
-0.48013797402381897,
-0.3012734055519104,
-0.10092176496982574,
0.3429836928844452,
-0.0636676773428917,
0.1897112876176834,
0.2308792918920517,
0.29871946573257446,
-0.14408499002456665,
-0.16842877864837646,
-0.5474225878715515,
0.06223337724804878,
-0.4453330636024475,
0.09556813538074493,
-0.31187260150909424,
-0.5583484172821045,
-0.007038414478302002,
-0.016067203134298325,
-0.26364511251449585,
0.15366682410240173,
-0.41173887252807617,
-0.4018974006175995,
-0.14994707703590393,
0.060826610773801804,
0.5283561944961548,
0.24130035936832428,
-0.24034270644187927,
0.17798352241516113,
-0.6050801277160645,
0.023157410323619843,
-0.19636885821819305,
0.047183603048324585,
-0.009468669071793556,
0.5654847025871277,
0.12133908271789551,
0.0340406708419323,
-0.14951348304748535,
-0.1991671472787857,
0.07681415975093842,
0.35521507263183594,
-0.00910261832177639,
-0.08196762949228287,
-0.18046455085277557,
0.1685434877872467,
0.000510822981595993,
-0.25276994705200195,
-0.3086280822753906,
-0.05755935609340668,
-0.2885693609714508,
-0.41787639260292053,
0.17992956936359406,
0.12689751386642456,
-0.18718113005161285,
0.11905781924724579,
-0.2632574141025543,
-0.14811450242996216,
0.20170246064662933,
0.1424252986907959,
-0.08929647505283356,
0.44769370555877686,
-0.05689919367432594,
0.27750465273857117,
-0.6138931512832642,
0.04885534942150116,
-0.05865432322025299,
0.34333252906799316,
-0.07229587435722351,
0.2912048101425171,
0.3374849855899811,
-0.0076624080538749695,
-0.21267178654670715,
0.03702660650014877,
0.22037941217422485,
-0.01649513840675354,
-0.2821965515613556,
-0.4147123098373413,
-0.2256421148777008,
0.08485164493322372,
-0.0983695536851883,
-0.1211269274353981,
0.37947899103164673,
0.0640312135219574,
0.06203274056315422,
0.3659535050392151,
0.1135081946849823,
-0.21974068880081177,
-0.058266088366508484,
0.001820271834731102,
0.5340515971183777,
0.07204422354698181,
-0.18425682187080383,
0.2533990740776062,
-0.03456849232316017,
0.05827939882874489,
0.27868854999542236,
0.057582955807447433,
0.4411497712135315,
0.38025277853012085,
0.11792761087417603,
-0.3596866726875305,
0.10147212445735931,
0.09532059729099274,
-0.005116462707519531,
-0.41100263595581055,
0.6783583164215088,
0.11091673374176025,
-0.022507712244987488,
0.09494178742170334,
0.2529506981372833,
-0.31906217336654663,
-0.14289997518062592,
-0.12237637490034103,
-0.1221253052353859,
0.3213503062725067,
-0.21362918615341187,
-0.06499777734279633,
0.38582465052604675,
0.009114749729633331,
-0.05385245755314827,
-0.03305414319038391,
-0.08360746502876282,
0.2052699625492096,
0.578091025352478,
0.16615787148475647,
-0.15772117674350739,
0.004525660537183285,
-0.16802942752838135,
-0.059632740914821625,
0.19923171401023865,
-0.2974757254123688,
0.11587544530630112,
0.20093639194965363,
-0.02414385974407196,
0.18082544207572937,
-0.09275135397911072,
0.4057545065879822,
0.1711825430393219,
-0.14841708540916443,
0.4295463562011719,
-0.018135923892259598,
-0.12274289131164551,
0.07292891293764114,
0.28186675906181335,
-0.12580199539661407,
0.18570002913475037,
0.16118596494197845,
0.03667481243610382,
-0.11014071106910706,
-0.2034485638141632,
-0.006651807576417923,
0.8440606594085693,
-0.058130893856287,
0.19600410759449005,
-0.09567800164222717,
-0.18388162553310394,
-0.10510411858558655,
-0.19090870022773743,
-0.09413273632526398,
-0.18228179216384888,
0.2706741392612457,
-0.2599652111530304,
0.3163340091705322,
0.1356731653213501,
0.010269075632095337,
0.1832161247730255,
0.23811542987823486,
0.3785218596458435,
-0.09042073041200638,
-0.3189540207386017,
0.09256654977798462,
-0.21037320792675018,
0.2250635325908661,
0.02911306917667389,
0.08115492761135101,
0.2382201850414276,
0.14243200421333313,
0.24433717131614685,
-0.05202870070934296,
0.40876662731170654,
0.11589730530977249,
0.05852217227220535,
0.44239819049835205,
0.009822893887758255,
-0.20652300119400024,
-0.14250262081623077,
-0.1602378487586975,
-0.07350429892539978,
-0.33545663952827454,
0.26092207431793213,
0.27902624011039734,
0.09488070756196976,
-0.07668857276439667,
-0.24726690351963043,
-0.19159574806690216,
-0.3504449129104614,
0.4988401532173157,
0.1477409452199936,
0.07815834879875183,
-0.22966903448104858,
-0.18131890892982483,
-0.25420883297920227,
-0.15158596634864807,
-0.23570206761360168,
0.07781114429235458,
-0.17696574330329895,
0.1293712854385376,
-0.06612218171358109,
-0.20850013196468353,
-0.21328012645244598,
0.357896625995636,
-0.0593055821955204,
-0.03170032426714897,
-0.39132001996040344,
0.3980438709259033,
-0.5480564832687378,
0.15902134776115417,
-0.02294960245490074,
0.17973339557647705,
0.2428514063358307,
0.6293486952781677,
-0.18536297976970673,
-0.5753361582756042,
0.6385886669158936,
-0.2110421508550644,
-0.41637006402015686,
0.049137357622385025,
0.27252376079559326,
0.048515595495700836,
-0.023749979212880135,
-0.7079247236251831,
-0.00010381639003753662,
-0.017940785735845566,
-0.10516517609357834,
-0.17930682003498077,
-0.16741536557674408,
-0.010318819433450699,
-0.08396682143211365,
-0.06828451156616211,
0.17335325479507446,
0.29634222388267517,
0.06007128208875656,
0.16621807217597961,
-0.03737867996096611
] |
https://github.com/huggingface/datasets/issues/4394 | trainer became extremely slow after reload dataset by `load_from_disk` | I tried to make the dataset much more smaller (100000 rows) , then the speed became `33.88it/s` from`8.62s/it`. It's nearly 200 times... Do you have any idea? Thank you! | ## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
``` | 29 | trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
```
I tried to make the dataset much more smaller (100000 rows) , then the speed became `33.88it/s` from`8.62s/it`. It's nearly 200 times... Do you have any idea? Thank you! | [
-0.38637226819992065,
-0.21976208686828613,
0.03526904806494713,
0.3179870843887329,
0.4394131302833557,
-0.030464142560958862,
0.29100674390792847,
0.21080446243286133,
-0.0378291942179203,
-0.004967339336872101,
0.05309347063302994,
0.3047199845314026,
-0.07701048254966736,
0.03184027224779129,
0.008200628682971,
0.034079134464263916,
0.13440003991127014,
0.11523600667715073,
0.28374919295310974,
-0.07888039201498032,
0.033773936331272125,
-0.0910930261015892,
-0.09097111225128174,
-0.07611905038356781,
-0.406963586807251,
-0.07981477677822113,
0.03177858144044876,
0.180572509765625,
-0.07125359028577805,
-0.5702989101409912,
0.22113120555877686,
0.0748828649520874,
0.36249080300331116,
0.26786008477211,
-0.00012314235209487379,
-0.05193554610013962,
-0.325035035610199,
0.026302700862288475,
-0.0859382152557373,
0.22866851091384888,
0.27626460790634155,
-0.13055267930030823,
0.19306831061840057,
-0.17078794538974762,
-0.08208172023296356,
-0.24524925649166107,
-0.17911691963672638,
-0.11786013096570969,
0.21836215257644653,
0.18464694917201996,
0.04879578948020935,
0.06659632176160812,
-0.5050296187400818,
-0.0050559802912175655,
-0.166460782289505,
0.27542686462402344,
-0.06031695008277893,
0.0017720302566885948,
0.11749868839979172,
-0.40681836009025574,
-0.20466408133506775,
0.10369649529457092,
-0.0626915693283081,
-0.012647897005081177,
0.2866872251033783,
0.020544622093439102,
-0.11973229795694351,
0.14069393277168274,
0.04556519165635109,
-0.14630094170570374,
-0.04707632213830948,
-0.00862644612789154,
-0.21828345954418182,
-0.24714437127113342,
0.08379699289798737,
-0.5629323124885559,
0.09889759123325348,
-0.09240531921386719,
-0.02453828975558281,
-0.028697911649942398,
-0.2102973312139511,
-0.06545376032590866,
0.009597130119800568,
-0.06518597900867462,
0.060480840504169464,
0.2073051929473877,
0.0917489156126976,
0.13716410100460052,
0.08902791142463684,
0.25447016954421997,
0.1912025362253189,
0.029345957562327385,
0.19533780217170715,
0.4416448473930359,
-0.5611755847930908,
-0.09125931560993195,
-0.05662918835878372,
-0.3301607370376587,
0.0009555108845233917,
0.1980917900800705,
0.15663930773735046,
0.1599293351173401,
-0.09566782414913177,
-0.19015058875083923,
0.019073419272899628,
0.4450259208679199,
-0.3133971691131592,
0.2823393940925598,
0.24253295361995697,
0.38922667503356934,
-0.5867893099784851,
0.013453379273414612,
-0.39690157771110535,
0.17532742023468018,
0.6353464722633362,
-0.10815701633691788,
-0.3246838450431824,
-0.02054629847407341,
-0.3674156963825226,
0.1310705542564392,
-0.39970099925994873,
-0.17391590774059296,
0.26882824301719666,
0.42208176851272583,
-0.4954182207584381,
0.40051329135894775,
-0.0019016638398170471,
-0.25380808115005493,
-0.36379474401474,
0.027611833065748215,
-0.10353542864322662,
-0.15209685266017914,
-0.3862708806991577,
0.24611632525920868,
0.0807441920042038,
-0.1110590398311615,
0.15661486983299255,
0.07567579299211502,
-0.12455639243125916,
-0.20554319024085999,
0.2163822501897812,
-0.33035099506378174,
0.024866357445716858,
0.052288301289081573,
0.051695648580789566,
0.12862275540828705,
0.08042478561401367,
0.22177033126354218,
-0.041990380734205246,
0.2141796052455902,
-0.5387409329414368,
-0.44621357321739197,
0.04854757338762283,
0.09008205682039261,
0.0367220863699913,
-0.08672699332237244,
-0.33889928460121155,
-0.10830286145210266,
0.3502649962902069,
0.0980408787727356,
-0.15296265482902527,
-0.17487287521362305,
-0.2936495840549469,
-0.09223225712776184,
0.45935434103012085,
0.1148732602596283,
-0.16613753139972687,
-0.05291474983096123,
0.0017319312319159508,
0.16881120204925537,
0.3509356677532196,
0.7525118589401245,
-0.3872276246547699,
0.6114924550056458,
-0.29266926646232605,
0.0031438246369361877,
0.23759064078330994,
-0.15513865649700165,
-0.3249274492263794,
0.2272465080022812,
-0.015627898275852203,
0.23535774648189545,
0.26524731516838074,
0.18566201627254486,
0.34898218512535095,
0.12547332048416138,
0.4880950152873993,
0.5788702964782715,
0.07895749062299728,
0.16813230514526367,
-0.281914085149765,
-0.4019101858139038,
0.08822494745254517,
0.2316007763147354,
0.21264657378196716,
0.05523690953850746,
0.09263190627098083,
0.29452475905418396,
0.4921146333217621,
-0.16989772021770477,
-0.05934599041938782,
0.1283888816833496,
0.15225940942764282,
0.0028285086154937744,
0.16470198333263397,
0.15383201837539673,
-0.29813843965530396,
0.1492723822593689,
-0.2925891876220703,
-0.04247415065765381,
0.2994235157966614,
-0.2567552924156189,
-0.1424771547317505,
-0.1566479206085205,
-0.3169174790382385,
-0.18975192308425903,
-0.051709577441215515,
0.3341493308544159,
-0.06434614956378937,
0.025363579392433167,
-0.011105641722679138,
0.39077356457710266,
-0.2505989670753479,
-0.042567599564790726,
0.11503544449806213,
0.14422115683555603,
0.06845039129257202,
-0.15147307515144348,
0.03762822598218918,
0.04920845851302147,
0.1610972285270691,
-0.09220922738313675,
-0.19738832116127014,
0.22420871257781982,
0.17702877521514893,
0.19812646508216858,
-0.06960134953260422,
0.08657931536436081,
0.2436007559299469,
0.2435721755027771,
0.11843155324459076,
-0.08731703460216522,
0.1601284146308899,
-0.28565749526023865,
0.06216014176607132,
0.39513635635375977,
0.19116787612438202,
0.1260022222995758,
0.3182213306427002,
-0.25163736939430237,
0.2360442876815796,
0.01655852422118187,
0.2142917513847351,
0.04350512474775314,
0.21275749802589417,
0.25327685475349426,
0.3053136169910431,
0.12638601660728455,
-0.42344725131988525,
-0.0020868703722953796,
0.35511359572410583,
-0.060917146503925323,
-0.15975281596183777,
0.15390217304229736,
0.04881807416677475,
-0.3445369601249695,
-0.1384950876235962,
-0.061898067593574524,
0.37168455123901367,
0.06627131998538971,
-0.13474684953689575,
-0.02739749290049076,
-0.037807006388902664,
-0.09309940040111542,
0.08125977218151093,
-0.025606922805309296,
0.11858443915843964,
0.1554347276687622,
0.19358915090560913,
0.1859755963087082,
-0.3281741738319397,
-0.2165559083223343,
0.33628225326538086,
0.4011087417602539,
-0.3167451322078705,
0.16421444714069366,
-0.103254534304142,
0.13714739680290222,
-0.20983372628688812,
-0.09492510557174683,
0.028619201853871346,
-0.0004475237801671028,
-0.05188480019569397,
0.4803924262523651,
0.3026464283466339,
0.19623388350009918,
0.11760842800140381,
0.2856168746948242,
0.05828651785850525,
-0.12635701894760132,
-0.006156366318464279,
-0.023579580709338188,
-0.1716989278793335,
-0.05733681842684746,
0.34036558866500854,
-0.2039715200662613,
0.29856014251708984,
-0.06183134764432907,
-0.14117750525474548,
-0.14207106828689575,
-0.20209676027297974,
-0.0609147772192955,
-0.026120729744434357,
0.044368766248226166,
-0.04316301643848419,
0.1116134524345398,
-0.4604116678237915,
-0.15866057574748993,
0.2311265766620636,
-0.26691657304763794,
-0.1182970181107521,
-0.05792112275958061,
-0.07097214460372925,
0.10206346958875656,
0.27256566286087036,
-0.40661346912384033,
-0.21232900023460388,
0.08229982852935791,
-0.11189651489257812,
0.054693546146154404,
0.0575096569955349,
-0.1423499435186386,
0.14253169298171997,
0.17285068333148956,
0.10520590841770172,
-0.09774439036846161,
-0.2215031534433365,
-0.438597708940506,
0.29765668511390686,
-0.055528849363327026,
-0.16233034431934357,
-0.2930673360824585,
-0.020419232547283173,
0.3406916558742523,
0.04725980386137962,
-0.5262550711631775,
0.10016047209501266,
-0.25958728790283203,
-0.23950527608394623,
-0.46545618772506714,
0.03272535279393196,
0.1959388256072998,
-0.08704812824726105,
-0.04295071214437485,
0.2505356967449188,
-0.22392448782920837,
0.07972485572099686,
-0.13778623938560486,
0.0313839316368103,
-0.3499142825603485,
0.3071400225162506,
0.1494056135416031,
0.9009149670600891,
-0.19200623035430908,
-0.2715054154396057,
0.4921928346157074,
-0.21582812070846558,
-0.040104787796735764,
-0.35567620396614075,
-0.24814793467521667,
-0.10030239075422287,
-0.3729476034641266,
-0.2330242395401001,
-0.044158935546875,
-0.22625893354415894,
-0.06754973530769348,
-0.04244238883256912,
0.08325830101966858,
0.0584871768951416,
-0.12660861015319824,
0.24782350659370422,
-0.32631346583366394,
0.15816837549209595,
-0.02992049604654312,
0.11926723271608353,
-0.3122684955596924,
-0.1720394492149353,
0.07886549830436707,
-0.1321534812450409,
0.03000827133655548,
-0.19909954071044922,
-0.48475566506385803,
-0.39440062642097473,
-0.23937007784843445,
-0.03272940218448639,
-0.01392495259642601,
0.45064622163772583,
0.23698000609874725,
0.06228742003440857,
0.345400869846344,
-0.06128525361418724,
0.4051549434661865,
0.393477201461792,
0.09398927539587021,
0.2833556830883026,
-0.578027606010437,
-0.11382423341274261,
-0.20221327245235443,
-0.06339401751756668,
-0.3741150498390198,
-0.17160753905773163,
0.778454065322876,
0.00023780018091201782,
-0.24299243092536926,
0.15528884530067444,
-0.050907671451568604,
-0.290587842464447,
0.11009465157985687,
-0.15355785191059113,
-0.15424498915672302,
-0.3993927240371704,
0.3332065939903259,
-0.2683350443840027,
0.30676931142807007,
-0.031117932870984077,
-0.13953647017478943,
-0.2771560251712799,
0.04529315233230591,
0.04498988389968872,
-0.03139954060316086,
0.14951646327972412,
0.07846532762050629,
0.36941441893577576,
-0.15569531917572021,
0.06301969289779663,
0.5287389159202576,
0.009071912616491318,
-0.06364673376083374,
0.14144204556941986,
0.12872770428657532,
0.23773601651191711,
0.2863072156906128,
0.3591455817222595,
-0.1633632928133011,
0.26512765884399414,
0.12776324152946472,
0.2870222330093384,
-0.3025052547454834,
0.3221716582775116,
0.3813350200653076,
-0.07576261460781097,
-0.5091366171836853,
-0.5259767174720764,
0.19832941889762878,
0.32533907890319824,
-0.0245794877409935,
0.15560725331306458,
-0.25436168909072876,
-0.13997170329093933,
0.4881083369255066,
0.27757444977760315,
0.9936202764511108,
-0.2853430509567261,
0.5272606611251831,
0.17094412446022034,
0.0482339933514595,
-0.07109369337558746,
-0.46105682849884033,
0.09300017356872559,
-0.4535082280635834,
0.09519322216510773,
0.12411339581012726,
-0.10841542482376099,
0.0450994148850441,
0.009705692529678345,
0.02080298587679863,
0.20669043064117432,
-0.056197457015514374,
0.3238106667995453,
-0.1835133284330368,
0.3758663237094879,
0.05505198985338211,
-0.3397040069103241,
-0.32594138383865356,
-0.060651205480098724,
-0.03581055998802185,
0.019613007083535194,
-0.09551124274730682,
0.08040038496255875,
0.23100069165229797,
-0.07656462490558624,
-0.07239630818367004,
-0.05491285026073456,
-0.5283771753311157,
0.20125170052051544,
-0.3467369079589844,
-0.28826141357421875,
-0.048330001533031464,
0.15604758262634277,
0.03502056375145912,
0.11602790653705597,
0.05379120260477066,
0.18911099433898926,
-0.2787642180919647,
0.2131967842578888,
0.17098183929920197,
-0.44048240780830383,
0.36916354298591614,
0.004994947463274002,
-0.1289473921060562,
-0.06113722175359726,
-0.13846948742866516,
-0.2618168294429779,
-0.0014890283346176147,
-0.049684733152389526,
0.45228296518325806,
-0.25182345509529114,
-0.25238344073295593,
-0.10666993260383606,
-0.13233453035354614,
-0.40126150846481323,
0.06961876153945923,
0.1121542900800705,
-0.03820640966296196,
0.39311930537223816,
-0.003320883959531784,
-0.14626234769821167,
-0.1561039835214615,
0.8311660885810852,
0.47867339849472046,
-0.43485286831855774,
0.7112202644348145,
-0.06885552406311035,
0.010140884667634964,
-0.21800115704536438,
0.2515530586242676,
0.6165882349014282,
-0.16276982426643372,
0.1812690943479538,
-0.14650379121303558,
0.040846556425094604,
0.15806737542152405,
0.0554373636841774,
-0.07137410342693329,
0.06481847912073135,
-0.04543603956699371,
-0.2481273114681244,
-0.6477534174919128,
-0.12169608473777771,
0.1386875957250595,
0.14271703362464905,
0.3231392800807953,
0.07679871469736099,
-0.09503722935914993,
0.2717110216617584,
-0.17406314611434937,
0.23280227184295654,
-0.10273522883653641,
0.18301570415496826,
-0.41741058230400085,
-0.11716831475496292,
0.3049141764640808,
0.08010387420654297,
0.034170962870121,
0.08009536564350128,
0.0680924504995346,
-0.12092696875333786,
-0.19008296728134155,
0.17100712656974792,
0.15735837817192078,
-0.22650404274463654,
0.05744428560137749,
-0.3286139965057373,
-0.17581255733966827,
-0.14716260135173798,
0.08351463079452515,
0.2556447386741638,
0.07482083141803741,
-0.18300463259220123,
0.2518596947193146,
-0.07994876056909561,
-0.08709758520126343,
-0.15243346989154816,
-0.15476366877555847,
-0.036232009530067444,
0.23870499432086945,
-0.007251560688018799,
-0.005159351974725723,
-0.21820741891860962,
-0.3573620021343231,
-0.0625716969370842,
0.4304966330528259,
0.40409547090530396,
0.1884080171585083,
-0.3177962899208069,
-0.2888011634349823,
-0.04913070797920227,
0.15708167850971222,
0.2712632417678833,
-0.1120985671877861,
-0.2701931297779083,
0.35228481888771057,
0.01624409854412079,
-0.03678007423877716,
-0.22051487863063812,
0.09483498334884644,
-0.2107236236333847,
-0.17482393980026245,
0.14321111142635345,
0.16228343546390533,
0.08925323188304901,
-0.3164372444152832,
-0.05990048125386238,
0.17219610512256622,
-0.11110822856426239,
0.20000235736370087,
0.2422827035188675,
0.09793274104595184,
-0.07963582873344421,
-0.014883002266287804,
0.08705084770917892,
0.1374998539686203,
0.5984494090080261,
0.04291301593184471,
0.5294970870018005,
0.03785228729248047,
0.4290355145931244,
-0.32342439889907837,
-0.45521441102027893,
-0.3162524402141571,
0.41384652256965637,
-0.4343474507331848,
-0.008409500122070312,
-0.16699236631393433,
0.47238045930862427,
0.2069135308265686,
-0.31624484062194824,
-0.15096144378185272,
0.3528125584125519,
-0.315202921628952,
-0.06140711158514023,
-0.08437031507492065,
0.09455060213804245,
0.032483384013175964,
0.30703264474868774,
-0.09204593300819397,
0.23565970361232758,
0.01654476672410965,
0.08666858822107315,
-0.306746244430542,
0.15016748011112213,
-0.13635346293449402,
0.2988751232624054,
0.26044610142707825,
-0.2343565821647644,
0.12713797390460968,
-0.21535618603229523,
-0.10891270637512207,
-0.2021830677986145,
0.1925848126411438,
0.4132919907569885,
0.39532431960105896,
0.3305819630622864,
0.08329623937606812,
0.11489908397197723,
0.16451358795166016,
0.05519988387823105,
0.035987529903650284,
0.13942928612232208,
0.15989181399345398,
-0.014085344038903713,
-0.0305674709379673,
-0.1386231631040573,
-0.07806295156478882,
0.07269218564033508,
0.017383340746164322,
0.004935489967465401,
0.27500617504119873,
0.256466805934906,
-0.23951667547225952,
-0.10579308867454529,
0.3536236882209778,
-0.11524894833564758,
0.20020313560962677,
0.37235772609710693,
0.12938851118087769,
0.19932952523231506,
-0.17974817752838135,
-0.0005345568060874939,
-0.04067288711667061,
0.7157196402549744,
0.17442381381988525,
-0.4718081057071686,
-0.42337512969970703,
-0.17379973828792572,
-0.4032091796398163,
-0.03048398345708847,
-0.07415962219238281,
0.4284726679325104,
0.10667769610881805,
0.19032949209213257,
-0.1354108452796936,
-0.21128472685813904,
0.28762155771255493,
0.10240404307842255,
-0.03286424279212952,
0.28579771518707275,
-0.14776711165905,
0.06900535523891449,
-0.47364240884780884,
0.07856228947639465,
-0.09080364555120468,
-0.3415638506412506,
0.49249863624572754,
-0.05992451682686806,
-0.09641164541244507,
0.011058798991143703,
-0.05874495208263397,
-0.1129329651594162,
0.4021667242050171,
0.6775509119033813,
-0.11295221745967865,
0.10745703428983688,
0.044962428510189056,
0.13003243505954742,
-0.015948403626680374,
0.12995150685310364,
0.07236689329147339,
0.13911661505699158,
0.33604174852371216,
0.20422744750976562,
-0.11079561710357666,
0.05287040397524834,
-0.48344120383262634,
0.12429842352867126,
-0.05201561376452446,
-0.3791631758213043,
-0.18050286173820496,
0.16931886970996857,
0.3067929446697235,
0.21080905199050903,
0.1213625818490982,
0.4833923876285553,
0.031222669407725334,
0.16129626333713531,
-0.779965877532959,
-0.11295390129089355,
0.21906965970993042,
-0.0836382508277893,
-0.012673845514655113,
-0.27843451499938965,
0.2595222592353821,
-0.0045424699783325195,
0.17537428438663483,
-0.5549368858337402,
0.05757690221071243,
0.2556156814098358,
-0.022646356374025345,
-0.21532584726810455,
0.352751225233078,
0.14280089735984802,
0.2786637544631958,
-0.13625182211399078,
0.12687921524047852,
-0.10533035546541214,
-0.14704814553260803,
0.08289715647697449,
-0.12630335986614227
] |
https://github.com/huggingface/datasets/issues/4394 | trainer became extremely slow after reload dataset by `load_from_disk` | Similar issue: https://github.com/huggingface/transformers/issues/8818
I changed `RandomSampler` to `SequentialSampler` in the `trainer.py`, but the speed didn't become faster. | ## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
``` | 17 | trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
```
Similar issue: https://github.com/huggingface/transformers/issues/8818
I changed `RandomSampler` to `SequentialSampler` in the `trainer.py`, but the speed didn't become faster. | [
-0.38637226819992065,
-0.21976208686828613,
0.03526904806494713,
0.3179870843887329,
0.4394131302833557,
-0.030464142560958862,
0.29100674390792847,
0.21080446243286133,
-0.0378291942179203,
-0.004967339336872101,
0.05309347063302994,
0.3047199845314026,
-0.07701048254966736,
0.03184027224779129,
0.008200628682971,
0.034079134464263916,
0.13440003991127014,
0.11523600667715073,
0.28374919295310974,
-0.07888039201498032,
0.033773936331272125,
-0.0910930261015892,
-0.09097111225128174,
-0.07611905038356781,
-0.406963586807251,
-0.07981477677822113,
0.03177858144044876,
0.180572509765625,
-0.07125359028577805,
-0.5702989101409912,
0.22113120555877686,
0.0748828649520874,
0.36249080300331116,
0.26786008477211,
-0.00012314235209487379,
-0.05193554610013962,
-0.325035035610199,
0.026302700862288475,
-0.0859382152557373,
0.22866851091384888,
0.27626460790634155,
-0.13055267930030823,
0.19306831061840057,
-0.17078794538974762,
-0.08208172023296356,
-0.24524925649166107,
-0.17911691963672638,
-0.11786013096570969,
0.21836215257644653,
0.18464694917201996,
0.04879578948020935,
0.06659632176160812,
-0.5050296187400818,
-0.0050559802912175655,
-0.166460782289505,
0.27542686462402344,
-0.06031695008277893,
0.0017720302566885948,
0.11749868839979172,
-0.40681836009025574,
-0.20466408133506775,
0.10369649529457092,
-0.0626915693283081,
-0.012647897005081177,
0.2866872251033783,
0.020544622093439102,
-0.11973229795694351,
0.14069393277168274,
0.04556519165635109,
-0.14630094170570374,
-0.04707632213830948,
-0.00862644612789154,
-0.21828345954418182,
-0.24714437127113342,
0.08379699289798737,
-0.5629323124885559,
0.09889759123325348,
-0.09240531921386719,
-0.02453828975558281,
-0.028697911649942398,
-0.2102973312139511,
-0.06545376032590866,
0.009597130119800568,
-0.06518597900867462,
0.060480840504169464,
0.2073051929473877,
0.0917489156126976,
0.13716410100460052,
0.08902791142463684,
0.25447016954421997,
0.1912025362253189,
0.029345957562327385,
0.19533780217170715,
0.4416448473930359,
-0.5611755847930908,
-0.09125931560993195,
-0.05662918835878372,
-0.3301607370376587,
0.0009555108845233917,
0.1980917900800705,
0.15663930773735046,
0.1599293351173401,
-0.09566782414913177,
-0.19015058875083923,
0.019073419272899628,
0.4450259208679199,
-0.3133971691131592,
0.2823393940925598,
0.24253295361995697,
0.38922667503356934,
-0.5867893099784851,
0.013453379273414612,
-0.39690157771110535,
0.17532742023468018,
0.6353464722633362,
-0.10815701633691788,
-0.3246838450431824,
-0.02054629847407341,
-0.3674156963825226,
0.1310705542564392,
-0.39970099925994873,
-0.17391590774059296,
0.26882824301719666,
0.42208176851272583,
-0.4954182207584381,
0.40051329135894775,
-0.0019016638398170471,
-0.25380808115005493,
-0.36379474401474,
0.027611833065748215,
-0.10353542864322662,
-0.15209685266017914,
-0.3862708806991577,
0.24611632525920868,
0.0807441920042038,
-0.1110590398311615,
0.15661486983299255,
0.07567579299211502,
-0.12455639243125916,
-0.20554319024085999,
0.2163822501897812,
-0.33035099506378174,
0.024866357445716858,
0.052288301289081573,
0.051695648580789566,
0.12862275540828705,
0.08042478561401367,
0.22177033126354218,
-0.041990380734205246,
0.2141796052455902,
-0.5387409329414368,
-0.44621357321739197,
0.04854757338762283,
0.09008205682039261,
0.0367220863699913,
-0.08672699332237244,
-0.33889928460121155,
-0.10830286145210266,
0.3502649962902069,
0.0980408787727356,
-0.15296265482902527,
-0.17487287521362305,
-0.2936495840549469,
-0.09223225712776184,
0.45935434103012085,
0.1148732602596283,
-0.16613753139972687,
-0.05291474983096123,
0.0017319312319159508,
0.16881120204925537,
0.3509356677532196,
0.7525118589401245,
-0.3872276246547699,
0.6114924550056458,
-0.29266926646232605,
0.0031438246369361877,
0.23759064078330994,
-0.15513865649700165,
-0.3249274492263794,
0.2272465080022812,
-0.015627898275852203,
0.23535774648189545,
0.26524731516838074,
0.18566201627254486,
0.34898218512535095,
0.12547332048416138,
0.4880950152873993,
0.5788702964782715,
0.07895749062299728,
0.16813230514526367,
-0.281914085149765,
-0.4019101858139038,
0.08822494745254517,
0.2316007763147354,
0.21264657378196716,
0.05523690953850746,
0.09263190627098083,
0.29452475905418396,
0.4921146333217621,
-0.16989772021770477,
-0.05934599041938782,
0.1283888816833496,
0.15225940942764282,
0.0028285086154937744,
0.16470198333263397,
0.15383201837539673,
-0.29813843965530396,
0.1492723822593689,
-0.2925891876220703,
-0.04247415065765381,
0.2994235157966614,
-0.2567552924156189,
-0.1424771547317505,
-0.1566479206085205,
-0.3169174790382385,
-0.18975192308425903,
-0.051709577441215515,
0.3341493308544159,
-0.06434614956378937,
0.025363579392433167,
-0.011105641722679138,
0.39077356457710266,
-0.2505989670753479,
-0.042567599564790726,
0.11503544449806213,
0.14422115683555603,
0.06845039129257202,
-0.15147307515144348,
0.03762822598218918,
0.04920845851302147,
0.1610972285270691,
-0.09220922738313675,
-0.19738832116127014,
0.22420871257781982,
0.17702877521514893,
0.19812646508216858,
-0.06960134953260422,
0.08657931536436081,
0.2436007559299469,
0.2435721755027771,
0.11843155324459076,
-0.08731703460216522,
0.1601284146308899,
-0.28565749526023865,
0.06216014176607132,
0.39513635635375977,
0.19116787612438202,
0.1260022222995758,
0.3182213306427002,
-0.25163736939430237,
0.2360442876815796,
0.01655852422118187,
0.2142917513847351,
0.04350512474775314,
0.21275749802589417,
0.25327685475349426,
0.3053136169910431,
0.12638601660728455,
-0.42344725131988525,
-0.0020868703722953796,
0.35511359572410583,
-0.060917146503925323,
-0.15975281596183777,
0.15390217304229736,
0.04881807416677475,
-0.3445369601249695,
-0.1384950876235962,
-0.061898067593574524,
0.37168455123901367,
0.06627131998538971,
-0.13474684953689575,
-0.02739749290049076,
-0.037807006388902664,
-0.09309940040111542,
0.08125977218151093,
-0.025606922805309296,
0.11858443915843964,
0.1554347276687622,
0.19358915090560913,
0.1859755963087082,
-0.3281741738319397,
-0.2165559083223343,
0.33628225326538086,
0.4011087417602539,
-0.3167451322078705,
0.16421444714069366,
-0.103254534304142,
0.13714739680290222,
-0.20983372628688812,
-0.09492510557174683,
0.028619201853871346,
-0.0004475237801671028,
-0.05188480019569397,
0.4803924262523651,
0.3026464283466339,
0.19623388350009918,
0.11760842800140381,
0.2856168746948242,
0.05828651785850525,
-0.12635701894760132,
-0.006156366318464279,
-0.023579580709338188,
-0.1716989278793335,
-0.05733681842684746,
0.34036558866500854,
-0.2039715200662613,
0.29856014251708984,
-0.06183134764432907,
-0.14117750525474548,
-0.14207106828689575,
-0.20209676027297974,
-0.0609147772192955,
-0.026120729744434357,
0.044368766248226166,
-0.04316301643848419,
0.1116134524345398,
-0.4604116678237915,
-0.15866057574748993,
0.2311265766620636,
-0.26691657304763794,
-0.1182970181107521,
-0.05792112275958061,
-0.07097214460372925,
0.10206346958875656,
0.27256566286087036,
-0.40661346912384033,
-0.21232900023460388,
0.08229982852935791,
-0.11189651489257812,
0.054693546146154404,
0.0575096569955349,
-0.1423499435186386,
0.14253169298171997,
0.17285068333148956,
0.10520590841770172,
-0.09774439036846161,
-0.2215031534433365,
-0.438597708940506,
0.29765668511390686,
-0.055528849363327026,
-0.16233034431934357,
-0.2930673360824585,
-0.020419232547283173,
0.3406916558742523,
0.04725980386137962,
-0.5262550711631775,
0.10016047209501266,
-0.25958728790283203,
-0.23950527608394623,
-0.46545618772506714,
0.03272535279393196,
0.1959388256072998,
-0.08704812824726105,
-0.04295071214437485,
0.2505356967449188,
-0.22392448782920837,
0.07972485572099686,
-0.13778623938560486,
0.0313839316368103,
-0.3499142825603485,
0.3071400225162506,
0.1494056135416031,
0.9009149670600891,
-0.19200623035430908,
-0.2715054154396057,
0.4921928346157074,
-0.21582812070846558,
-0.040104787796735764,
-0.35567620396614075,
-0.24814793467521667,
-0.10030239075422287,
-0.3729476034641266,
-0.2330242395401001,
-0.044158935546875,
-0.22625893354415894,
-0.06754973530769348,
-0.04244238883256912,
0.08325830101966858,
0.0584871768951416,
-0.12660861015319824,
0.24782350659370422,
-0.32631346583366394,
0.15816837549209595,
-0.02992049604654312,
0.11926723271608353,
-0.3122684955596924,
-0.1720394492149353,
0.07886549830436707,
-0.1321534812450409,
0.03000827133655548,
-0.19909954071044922,
-0.48475566506385803,
-0.39440062642097473,
-0.23937007784843445,
-0.03272940218448639,
-0.01392495259642601,
0.45064622163772583,
0.23698000609874725,
0.06228742003440857,
0.345400869846344,
-0.06128525361418724,
0.4051549434661865,
0.393477201461792,
0.09398927539587021,
0.2833556830883026,
-0.578027606010437,
-0.11382423341274261,
-0.20221327245235443,
-0.06339401751756668,
-0.3741150498390198,
-0.17160753905773163,
0.778454065322876,
0.00023780018091201782,
-0.24299243092536926,
0.15528884530067444,
-0.050907671451568604,
-0.290587842464447,
0.11009465157985687,
-0.15355785191059113,
-0.15424498915672302,
-0.3993927240371704,
0.3332065939903259,
-0.2683350443840027,
0.30676931142807007,
-0.031117932870984077,
-0.13953647017478943,
-0.2771560251712799,
0.04529315233230591,
0.04498988389968872,
-0.03139954060316086,
0.14951646327972412,
0.07846532762050629,
0.36941441893577576,
-0.15569531917572021,
0.06301969289779663,
0.5287389159202576,
0.009071912616491318,
-0.06364673376083374,
0.14144204556941986,
0.12872770428657532,
0.23773601651191711,
0.2863072156906128,
0.3591455817222595,
-0.1633632928133011,
0.26512765884399414,
0.12776324152946472,
0.2870222330093384,
-0.3025052547454834,
0.3221716582775116,
0.3813350200653076,
-0.07576261460781097,
-0.5091366171836853,
-0.5259767174720764,
0.19832941889762878,
0.32533907890319824,
-0.0245794877409935,
0.15560725331306458,
-0.25436168909072876,
-0.13997170329093933,
0.4881083369255066,
0.27757444977760315,
0.9936202764511108,
-0.2853430509567261,
0.5272606611251831,
0.17094412446022034,
0.0482339933514595,
-0.07109369337558746,
-0.46105682849884033,
0.09300017356872559,
-0.4535082280635834,
0.09519322216510773,
0.12411339581012726,
-0.10841542482376099,
0.0450994148850441,
0.009705692529678345,
0.02080298587679863,
0.20669043064117432,
-0.056197457015514374,
0.3238106667995453,
-0.1835133284330368,
0.3758663237094879,
0.05505198985338211,
-0.3397040069103241,
-0.32594138383865356,
-0.060651205480098724,
-0.03581055998802185,
0.019613007083535194,
-0.09551124274730682,
0.08040038496255875,
0.23100069165229797,
-0.07656462490558624,
-0.07239630818367004,
-0.05491285026073456,
-0.5283771753311157,
0.20125170052051544,
-0.3467369079589844,
-0.28826141357421875,
-0.048330001533031464,
0.15604758262634277,
0.03502056375145912,
0.11602790653705597,
0.05379120260477066,
0.18911099433898926,
-0.2787642180919647,
0.2131967842578888,
0.17098183929920197,
-0.44048240780830383,
0.36916354298591614,
0.004994947463274002,
-0.1289473921060562,
-0.06113722175359726,
-0.13846948742866516,
-0.2618168294429779,
-0.0014890283346176147,
-0.049684733152389526,
0.45228296518325806,
-0.25182345509529114,
-0.25238344073295593,
-0.10666993260383606,
-0.13233453035354614,
-0.40126150846481323,
0.06961876153945923,
0.1121542900800705,
-0.03820640966296196,
0.39311930537223816,
-0.003320883959531784,
-0.14626234769821167,
-0.1561039835214615,
0.8311660885810852,
0.47867339849472046,
-0.43485286831855774,
0.7112202644348145,
-0.06885552406311035,
0.010140884667634964,
-0.21800115704536438,
0.2515530586242676,
0.6165882349014282,
-0.16276982426643372,
0.1812690943479538,
-0.14650379121303558,
0.040846556425094604,
0.15806737542152405,
0.0554373636841774,
-0.07137410342693329,
0.06481847912073135,
-0.04543603956699371,
-0.2481273114681244,
-0.6477534174919128,
-0.12169608473777771,
0.1386875957250595,
0.14271703362464905,
0.3231392800807953,
0.07679871469736099,
-0.09503722935914993,
0.2717110216617584,
-0.17406314611434937,
0.23280227184295654,
-0.10273522883653641,
0.18301570415496826,
-0.41741058230400085,
-0.11716831475496292,
0.3049141764640808,
0.08010387420654297,
0.034170962870121,
0.08009536564350128,
0.0680924504995346,
-0.12092696875333786,
-0.19008296728134155,
0.17100712656974792,
0.15735837817192078,
-0.22650404274463654,
0.05744428560137749,
-0.3286139965057373,
-0.17581255733966827,
-0.14716260135173798,
0.08351463079452515,
0.2556447386741638,
0.07482083141803741,
-0.18300463259220123,
0.2518596947193146,
-0.07994876056909561,
-0.08709758520126343,
-0.15243346989154816,
-0.15476366877555847,
-0.036232009530067444,
0.23870499432086945,
-0.007251560688018799,
-0.005159351974725723,
-0.21820741891860962,
-0.3573620021343231,
-0.0625716969370842,
0.4304966330528259,
0.40409547090530396,
0.1884080171585083,
-0.3177962899208069,
-0.2888011634349823,
-0.04913070797920227,
0.15708167850971222,
0.2712632417678833,
-0.1120985671877861,
-0.2701931297779083,
0.35228481888771057,
0.01624409854412079,
-0.03678007423877716,
-0.22051487863063812,
0.09483498334884644,
-0.2107236236333847,
-0.17482393980026245,
0.14321111142635345,
0.16228343546390533,
0.08925323188304901,
-0.3164372444152832,
-0.05990048125386238,
0.17219610512256622,
-0.11110822856426239,
0.20000235736370087,
0.2422827035188675,
0.09793274104595184,
-0.07963582873344421,
-0.014883002266287804,
0.08705084770917892,
0.1374998539686203,
0.5984494090080261,
0.04291301593184471,
0.5294970870018005,
0.03785228729248047,
0.4290355145931244,
-0.32342439889907837,
-0.45521441102027893,
-0.3162524402141571,
0.41384652256965637,
-0.4343474507331848,
-0.008409500122070312,
-0.16699236631393433,
0.47238045930862427,
0.2069135308265686,
-0.31624484062194824,
-0.15096144378185272,
0.3528125584125519,
-0.315202921628952,
-0.06140711158514023,
-0.08437031507492065,
0.09455060213804245,
0.032483384013175964,
0.30703264474868774,
-0.09204593300819397,
0.23565970361232758,
0.01654476672410965,
0.08666858822107315,
-0.306746244430542,
0.15016748011112213,
-0.13635346293449402,
0.2988751232624054,
0.26044610142707825,
-0.2343565821647644,
0.12713797390460968,
-0.21535618603229523,
-0.10891270637512207,
-0.2021830677986145,
0.1925848126411438,
0.4132919907569885,
0.39532431960105896,
0.3305819630622864,
0.08329623937606812,
0.11489908397197723,
0.16451358795166016,
0.05519988387823105,
0.035987529903650284,
0.13942928612232208,
0.15989181399345398,
-0.014085344038903713,
-0.0305674709379673,
-0.1386231631040573,
-0.07806295156478882,
0.07269218564033508,
0.017383340746164322,
0.004935489967465401,
0.27500617504119873,
0.256466805934906,
-0.23951667547225952,
-0.10579308867454529,
0.3536236882209778,
-0.11524894833564758,
0.20020313560962677,
0.37235772609710693,
0.12938851118087769,
0.19932952523231506,
-0.17974817752838135,
-0.0005345568060874939,
-0.04067288711667061,
0.7157196402549744,
0.17442381381988525,
-0.4718081057071686,
-0.42337512969970703,
-0.17379973828792572,
-0.4032091796398163,
-0.03048398345708847,
-0.07415962219238281,
0.4284726679325104,
0.10667769610881805,
0.19032949209213257,
-0.1354108452796936,
-0.21128472685813904,
0.28762155771255493,
0.10240404307842255,
-0.03286424279212952,
0.28579771518707275,
-0.14776711165905,
0.06900535523891449,
-0.47364240884780884,
0.07856228947639465,
-0.09080364555120468,
-0.3415638506412506,
0.49249863624572754,
-0.05992451682686806,
-0.09641164541244507,
0.011058798991143703,
-0.05874495208263397,
-0.1129329651594162,
0.4021667242050171,
0.6775509119033813,
-0.11295221745967865,
0.10745703428983688,
0.044962428510189056,
0.13003243505954742,
-0.015948403626680374,
0.12995150685310364,
0.07236689329147339,
0.13911661505699158,
0.33604174852371216,
0.20422744750976562,
-0.11079561710357666,
0.05287040397524834,
-0.48344120383262634,
0.12429842352867126,
-0.05201561376452446,
-0.3791631758213043,
-0.18050286173820496,
0.16931886970996857,
0.3067929446697235,
0.21080905199050903,
0.1213625818490982,
0.4833923876285553,
0.031222669407725334,
0.16129626333713531,
-0.779965877532959,
-0.11295390129089355,
0.21906965970993042,
-0.0836382508277893,
-0.012673845514655113,
-0.27843451499938965,
0.2595222592353821,
-0.0045424699783325195,
0.17537428438663483,
-0.5549368858337402,
0.05757690221071243,
0.2556156814098358,
-0.022646356374025345,
-0.21532584726810455,
0.352751225233078,
0.14280089735984802,
0.2786637544631958,
-0.13625182211399078,
0.12687921524047852,
-0.10533035546541214,
-0.14704814553260803,
0.08289715647697449,
-0.12630335986614227
] |
https://github.com/huggingface/datasets/issues/4394 | trainer became extremely slow after reload dataset by `load_from_disk` | I changed
```
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
```
to
```
tokenized_datasets = load_from_disk(
"/pathto/dataset", keep_in_memory=True
)
```
and obtained normal speed. It's seems that the problem is on the os's speed limit. | ## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
``` | 33 | trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
```
I changed
```
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
```
to
```
tokenized_datasets = load_from_disk(
"/pathto/dataset", keep_in_memory=True
)
```
and obtained normal speed. It's seems that the problem is on the os's speed limit. | [
-0.38637226819992065,
-0.21976208686828613,
0.03526904806494713,
0.3179870843887329,
0.4394131302833557,
-0.030464142560958862,
0.29100674390792847,
0.21080446243286133,
-0.0378291942179203,
-0.004967339336872101,
0.05309347063302994,
0.3047199845314026,
-0.07701048254966736,
0.03184027224779129,
0.008200628682971,
0.034079134464263916,
0.13440003991127014,
0.11523600667715073,
0.28374919295310974,
-0.07888039201498032,
0.033773936331272125,
-0.0910930261015892,
-0.09097111225128174,
-0.07611905038356781,
-0.406963586807251,
-0.07981477677822113,
0.03177858144044876,
0.180572509765625,
-0.07125359028577805,
-0.5702989101409912,
0.22113120555877686,
0.0748828649520874,
0.36249080300331116,
0.26786008477211,
-0.00012314235209487379,
-0.05193554610013962,
-0.325035035610199,
0.026302700862288475,
-0.0859382152557373,
0.22866851091384888,
0.27626460790634155,
-0.13055267930030823,
0.19306831061840057,
-0.17078794538974762,
-0.08208172023296356,
-0.24524925649166107,
-0.17911691963672638,
-0.11786013096570969,
0.21836215257644653,
0.18464694917201996,
0.04879578948020935,
0.06659632176160812,
-0.5050296187400818,
-0.0050559802912175655,
-0.166460782289505,
0.27542686462402344,
-0.06031695008277893,
0.0017720302566885948,
0.11749868839979172,
-0.40681836009025574,
-0.20466408133506775,
0.10369649529457092,
-0.0626915693283081,
-0.012647897005081177,
0.2866872251033783,
0.020544622093439102,
-0.11973229795694351,
0.14069393277168274,
0.04556519165635109,
-0.14630094170570374,
-0.04707632213830948,
-0.00862644612789154,
-0.21828345954418182,
-0.24714437127113342,
0.08379699289798737,
-0.5629323124885559,
0.09889759123325348,
-0.09240531921386719,
-0.02453828975558281,
-0.028697911649942398,
-0.2102973312139511,
-0.06545376032590866,
0.009597130119800568,
-0.06518597900867462,
0.060480840504169464,
0.2073051929473877,
0.0917489156126976,
0.13716410100460052,
0.08902791142463684,
0.25447016954421997,
0.1912025362253189,
0.029345957562327385,
0.19533780217170715,
0.4416448473930359,
-0.5611755847930908,
-0.09125931560993195,
-0.05662918835878372,
-0.3301607370376587,
0.0009555108845233917,
0.1980917900800705,
0.15663930773735046,
0.1599293351173401,
-0.09566782414913177,
-0.19015058875083923,
0.019073419272899628,
0.4450259208679199,
-0.3133971691131592,
0.2823393940925598,
0.24253295361995697,
0.38922667503356934,
-0.5867893099784851,
0.013453379273414612,
-0.39690157771110535,
0.17532742023468018,
0.6353464722633362,
-0.10815701633691788,
-0.3246838450431824,
-0.02054629847407341,
-0.3674156963825226,
0.1310705542564392,
-0.39970099925994873,
-0.17391590774059296,
0.26882824301719666,
0.42208176851272583,
-0.4954182207584381,
0.40051329135894775,
-0.0019016638398170471,
-0.25380808115005493,
-0.36379474401474,
0.027611833065748215,
-0.10353542864322662,
-0.15209685266017914,
-0.3862708806991577,
0.24611632525920868,
0.0807441920042038,
-0.1110590398311615,
0.15661486983299255,
0.07567579299211502,
-0.12455639243125916,
-0.20554319024085999,
0.2163822501897812,
-0.33035099506378174,
0.024866357445716858,
0.052288301289081573,
0.051695648580789566,
0.12862275540828705,
0.08042478561401367,
0.22177033126354218,
-0.041990380734205246,
0.2141796052455902,
-0.5387409329414368,
-0.44621357321739197,
0.04854757338762283,
0.09008205682039261,
0.0367220863699913,
-0.08672699332237244,
-0.33889928460121155,
-0.10830286145210266,
0.3502649962902069,
0.0980408787727356,
-0.15296265482902527,
-0.17487287521362305,
-0.2936495840549469,
-0.09223225712776184,
0.45935434103012085,
0.1148732602596283,
-0.16613753139972687,
-0.05291474983096123,
0.0017319312319159508,
0.16881120204925537,
0.3509356677532196,
0.7525118589401245,
-0.3872276246547699,
0.6114924550056458,
-0.29266926646232605,
0.0031438246369361877,
0.23759064078330994,
-0.15513865649700165,
-0.3249274492263794,
0.2272465080022812,
-0.015627898275852203,
0.23535774648189545,
0.26524731516838074,
0.18566201627254486,
0.34898218512535095,
0.12547332048416138,
0.4880950152873993,
0.5788702964782715,
0.07895749062299728,
0.16813230514526367,
-0.281914085149765,
-0.4019101858139038,
0.08822494745254517,
0.2316007763147354,
0.21264657378196716,
0.05523690953850746,
0.09263190627098083,
0.29452475905418396,
0.4921146333217621,
-0.16989772021770477,
-0.05934599041938782,
0.1283888816833496,
0.15225940942764282,
0.0028285086154937744,
0.16470198333263397,
0.15383201837539673,
-0.29813843965530396,
0.1492723822593689,
-0.2925891876220703,
-0.04247415065765381,
0.2994235157966614,
-0.2567552924156189,
-0.1424771547317505,
-0.1566479206085205,
-0.3169174790382385,
-0.18975192308425903,
-0.051709577441215515,
0.3341493308544159,
-0.06434614956378937,
0.025363579392433167,
-0.011105641722679138,
0.39077356457710266,
-0.2505989670753479,
-0.042567599564790726,
0.11503544449806213,
0.14422115683555603,
0.06845039129257202,
-0.15147307515144348,
0.03762822598218918,
0.04920845851302147,
0.1610972285270691,
-0.09220922738313675,
-0.19738832116127014,
0.22420871257781982,
0.17702877521514893,
0.19812646508216858,
-0.06960134953260422,
0.08657931536436081,
0.2436007559299469,
0.2435721755027771,
0.11843155324459076,
-0.08731703460216522,
0.1601284146308899,
-0.28565749526023865,
0.06216014176607132,
0.39513635635375977,
0.19116787612438202,
0.1260022222995758,
0.3182213306427002,
-0.25163736939430237,
0.2360442876815796,
0.01655852422118187,
0.2142917513847351,
0.04350512474775314,
0.21275749802589417,
0.25327685475349426,
0.3053136169910431,
0.12638601660728455,
-0.42344725131988525,
-0.0020868703722953796,
0.35511359572410583,
-0.060917146503925323,
-0.15975281596183777,
0.15390217304229736,
0.04881807416677475,
-0.3445369601249695,
-0.1384950876235962,
-0.061898067593574524,
0.37168455123901367,
0.06627131998538971,
-0.13474684953689575,
-0.02739749290049076,
-0.037807006388902664,
-0.09309940040111542,
0.08125977218151093,
-0.025606922805309296,
0.11858443915843964,
0.1554347276687622,
0.19358915090560913,
0.1859755963087082,
-0.3281741738319397,
-0.2165559083223343,
0.33628225326538086,
0.4011087417602539,
-0.3167451322078705,
0.16421444714069366,
-0.103254534304142,
0.13714739680290222,
-0.20983372628688812,
-0.09492510557174683,
0.028619201853871346,
-0.0004475237801671028,
-0.05188480019569397,
0.4803924262523651,
0.3026464283466339,
0.19623388350009918,
0.11760842800140381,
0.2856168746948242,
0.05828651785850525,
-0.12635701894760132,
-0.006156366318464279,
-0.023579580709338188,
-0.1716989278793335,
-0.05733681842684746,
0.34036558866500854,
-0.2039715200662613,
0.29856014251708984,
-0.06183134764432907,
-0.14117750525474548,
-0.14207106828689575,
-0.20209676027297974,
-0.0609147772192955,
-0.026120729744434357,
0.044368766248226166,
-0.04316301643848419,
0.1116134524345398,
-0.4604116678237915,
-0.15866057574748993,
0.2311265766620636,
-0.26691657304763794,
-0.1182970181107521,
-0.05792112275958061,
-0.07097214460372925,
0.10206346958875656,
0.27256566286087036,
-0.40661346912384033,
-0.21232900023460388,
0.08229982852935791,
-0.11189651489257812,
0.054693546146154404,
0.0575096569955349,
-0.1423499435186386,
0.14253169298171997,
0.17285068333148956,
0.10520590841770172,
-0.09774439036846161,
-0.2215031534433365,
-0.438597708940506,
0.29765668511390686,
-0.055528849363327026,
-0.16233034431934357,
-0.2930673360824585,
-0.020419232547283173,
0.3406916558742523,
0.04725980386137962,
-0.5262550711631775,
0.10016047209501266,
-0.25958728790283203,
-0.23950527608394623,
-0.46545618772506714,
0.03272535279393196,
0.1959388256072998,
-0.08704812824726105,
-0.04295071214437485,
0.2505356967449188,
-0.22392448782920837,
0.07972485572099686,
-0.13778623938560486,
0.0313839316368103,
-0.3499142825603485,
0.3071400225162506,
0.1494056135416031,
0.9009149670600891,
-0.19200623035430908,
-0.2715054154396057,
0.4921928346157074,
-0.21582812070846558,
-0.040104787796735764,
-0.35567620396614075,
-0.24814793467521667,
-0.10030239075422287,
-0.3729476034641266,
-0.2330242395401001,
-0.044158935546875,
-0.22625893354415894,
-0.06754973530769348,
-0.04244238883256912,
0.08325830101966858,
0.0584871768951416,
-0.12660861015319824,
0.24782350659370422,
-0.32631346583366394,
0.15816837549209595,
-0.02992049604654312,
0.11926723271608353,
-0.3122684955596924,
-0.1720394492149353,
0.07886549830436707,
-0.1321534812450409,
0.03000827133655548,
-0.19909954071044922,
-0.48475566506385803,
-0.39440062642097473,
-0.23937007784843445,
-0.03272940218448639,
-0.01392495259642601,
0.45064622163772583,
0.23698000609874725,
0.06228742003440857,
0.345400869846344,
-0.06128525361418724,
0.4051549434661865,
0.393477201461792,
0.09398927539587021,
0.2833556830883026,
-0.578027606010437,
-0.11382423341274261,
-0.20221327245235443,
-0.06339401751756668,
-0.3741150498390198,
-0.17160753905773163,
0.778454065322876,
0.00023780018091201782,
-0.24299243092536926,
0.15528884530067444,
-0.050907671451568604,
-0.290587842464447,
0.11009465157985687,
-0.15355785191059113,
-0.15424498915672302,
-0.3993927240371704,
0.3332065939903259,
-0.2683350443840027,
0.30676931142807007,
-0.031117932870984077,
-0.13953647017478943,
-0.2771560251712799,
0.04529315233230591,
0.04498988389968872,
-0.03139954060316086,
0.14951646327972412,
0.07846532762050629,
0.36941441893577576,
-0.15569531917572021,
0.06301969289779663,
0.5287389159202576,
0.009071912616491318,
-0.06364673376083374,
0.14144204556941986,
0.12872770428657532,
0.23773601651191711,
0.2863072156906128,
0.3591455817222595,
-0.1633632928133011,
0.26512765884399414,
0.12776324152946472,
0.2870222330093384,
-0.3025052547454834,
0.3221716582775116,
0.3813350200653076,
-0.07576261460781097,
-0.5091366171836853,
-0.5259767174720764,
0.19832941889762878,
0.32533907890319824,
-0.0245794877409935,
0.15560725331306458,
-0.25436168909072876,
-0.13997170329093933,
0.4881083369255066,
0.27757444977760315,
0.9936202764511108,
-0.2853430509567261,
0.5272606611251831,
0.17094412446022034,
0.0482339933514595,
-0.07109369337558746,
-0.46105682849884033,
0.09300017356872559,
-0.4535082280635834,
0.09519322216510773,
0.12411339581012726,
-0.10841542482376099,
0.0450994148850441,
0.009705692529678345,
0.02080298587679863,
0.20669043064117432,
-0.056197457015514374,
0.3238106667995453,
-0.1835133284330368,
0.3758663237094879,
0.05505198985338211,
-0.3397040069103241,
-0.32594138383865356,
-0.060651205480098724,
-0.03581055998802185,
0.019613007083535194,
-0.09551124274730682,
0.08040038496255875,
0.23100069165229797,
-0.07656462490558624,
-0.07239630818367004,
-0.05491285026073456,
-0.5283771753311157,
0.20125170052051544,
-0.3467369079589844,
-0.28826141357421875,
-0.048330001533031464,
0.15604758262634277,
0.03502056375145912,
0.11602790653705597,
0.05379120260477066,
0.18911099433898926,
-0.2787642180919647,
0.2131967842578888,
0.17098183929920197,
-0.44048240780830383,
0.36916354298591614,
0.004994947463274002,
-0.1289473921060562,
-0.06113722175359726,
-0.13846948742866516,
-0.2618168294429779,
-0.0014890283346176147,
-0.049684733152389526,
0.45228296518325806,
-0.25182345509529114,
-0.25238344073295593,
-0.10666993260383606,
-0.13233453035354614,
-0.40126150846481323,
0.06961876153945923,
0.1121542900800705,
-0.03820640966296196,
0.39311930537223816,
-0.003320883959531784,
-0.14626234769821167,
-0.1561039835214615,
0.8311660885810852,
0.47867339849472046,
-0.43485286831855774,
0.7112202644348145,
-0.06885552406311035,
0.010140884667634964,
-0.21800115704536438,
0.2515530586242676,
0.6165882349014282,
-0.16276982426643372,
0.1812690943479538,
-0.14650379121303558,
0.040846556425094604,
0.15806737542152405,
0.0554373636841774,
-0.07137410342693329,
0.06481847912073135,
-0.04543603956699371,
-0.2481273114681244,
-0.6477534174919128,
-0.12169608473777771,
0.1386875957250595,
0.14271703362464905,
0.3231392800807953,
0.07679871469736099,
-0.09503722935914993,
0.2717110216617584,
-0.17406314611434937,
0.23280227184295654,
-0.10273522883653641,
0.18301570415496826,
-0.41741058230400085,
-0.11716831475496292,
0.3049141764640808,
0.08010387420654297,
0.034170962870121,
0.08009536564350128,
0.0680924504995346,
-0.12092696875333786,
-0.19008296728134155,
0.17100712656974792,
0.15735837817192078,
-0.22650404274463654,
0.05744428560137749,
-0.3286139965057373,
-0.17581255733966827,
-0.14716260135173798,
0.08351463079452515,
0.2556447386741638,
0.07482083141803741,
-0.18300463259220123,
0.2518596947193146,
-0.07994876056909561,
-0.08709758520126343,
-0.15243346989154816,
-0.15476366877555847,
-0.036232009530067444,
0.23870499432086945,
-0.007251560688018799,
-0.005159351974725723,
-0.21820741891860962,
-0.3573620021343231,
-0.0625716969370842,
0.4304966330528259,
0.40409547090530396,
0.1884080171585083,
-0.3177962899208069,
-0.2888011634349823,
-0.04913070797920227,
0.15708167850971222,
0.2712632417678833,
-0.1120985671877861,
-0.2701931297779083,
0.35228481888771057,
0.01624409854412079,
-0.03678007423877716,
-0.22051487863063812,
0.09483498334884644,
-0.2107236236333847,
-0.17482393980026245,
0.14321111142635345,
0.16228343546390533,
0.08925323188304901,
-0.3164372444152832,
-0.05990048125386238,
0.17219610512256622,
-0.11110822856426239,
0.20000235736370087,
0.2422827035188675,
0.09793274104595184,
-0.07963582873344421,
-0.014883002266287804,
0.08705084770917892,
0.1374998539686203,
0.5984494090080261,
0.04291301593184471,
0.5294970870018005,
0.03785228729248047,
0.4290355145931244,
-0.32342439889907837,
-0.45521441102027893,
-0.3162524402141571,
0.41384652256965637,
-0.4343474507331848,
-0.008409500122070312,
-0.16699236631393433,
0.47238045930862427,
0.2069135308265686,
-0.31624484062194824,
-0.15096144378185272,
0.3528125584125519,
-0.315202921628952,
-0.06140711158514023,
-0.08437031507492065,
0.09455060213804245,
0.032483384013175964,
0.30703264474868774,
-0.09204593300819397,
0.23565970361232758,
0.01654476672410965,
0.08666858822107315,
-0.306746244430542,
0.15016748011112213,
-0.13635346293449402,
0.2988751232624054,
0.26044610142707825,
-0.2343565821647644,
0.12713797390460968,
-0.21535618603229523,
-0.10891270637512207,
-0.2021830677986145,
0.1925848126411438,
0.4132919907569885,
0.39532431960105896,
0.3305819630622864,
0.08329623937606812,
0.11489908397197723,
0.16451358795166016,
0.05519988387823105,
0.035987529903650284,
0.13942928612232208,
0.15989181399345398,
-0.014085344038903713,
-0.0305674709379673,
-0.1386231631040573,
-0.07806295156478882,
0.07269218564033508,
0.017383340746164322,
0.004935489967465401,
0.27500617504119873,
0.256466805934906,
-0.23951667547225952,
-0.10579308867454529,
0.3536236882209778,
-0.11524894833564758,
0.20020313560962677,
0.37235772609710693,
0.12938851118087769,
0.19932952523231506,
-0.17974817752838135,
-0.0005345568060874939,
-0.04067288711667061,
0.7157196402549744,
0.17442381381988525,
-0.4718081057071686,
-0.42337512969970703,
-0.17379973828792572,
-0.4032091796398163,
-0.03048398345708847,
-0.07415962219238281,
0.4284726679325104,
0.10667769610881805,
0.19032949209213257,
-0.1354108452796936,
-0.21128472685813904,
0.28762155771255493,
0.10240404307842255,
-0.03286424279212952,
0.28579771518707275,
-0.14776711165905,
0.06900535523891449,
-0.47364240884780884,
0.07856228947639465,
-0.09080364555120468,
-0.3415638506412506,
0.49249863624572754,
-0.05992451682686806,
-0.09641164541244507,
0.011058798991143703,
-0.05874495208263397,
-0.1129329651594162,
0.4021667242050171,
0.6775509119033813,
-0.11295221745967865,
0.10745703428983688,
0.044962428510189056,
0.13003243505954742,
-0.015948403626680374,
0.12995150685310364,
0.07236689329147339,
0.13911661505699158,
0.33604174852371216,
0.20422744750976562,
-0.11079561710357666,
0.05287040397524834,
-0.48344120383262634,
0.12429842352867126,
-0.05201561376452446,
-0.3791631758213043,
-0.18050286173820496,
0.16931886970996857,
0.3067929446697235,
0.21080905199050903,
0.1213625818490982,
0.4833923876285553,
0.031222669407725334,
0.16129626333713531,
-0.779965877532959,
-0.11295390129089355,
0.21906965970993042,
-0.0836382508277893,
-0.012673845514655113,
-0.27843451499938965,
0.2595222592353821,
-0.0045424699783325195,
0.17537428438663483,
-0.5549368858337402,
0.05757690221071243,
0.2556156814098358,
-0.022646356374025345,
-0.21532584726810455,
0.352751225233078,
0.14280089735984802,
0.2786637544631958,
-0.13625182211399078,
0.12687921524047852,
-0.10533035546541214,
-0.14704814553260803,
0.08289715647697449,
-0.12630335986614227
] |
https://github.com/huggingface/datasets/issues/4394 | trainer became extremely slow after reload dataset by `load_from_disk` | Hi ! Currently `save_to_disk` saves one big Arrow file, which causes some slow downs. This has been discussed in #3735 and we'll implement sharding pretty soon to solve this
For now you can try splitting and saving your dataset in several Arrow files. Then you can load them one by one and use `concatenate_datasets` to have your big dataset again and hopefully with a better speed | ## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
``` | 66 | trainer became extremely slow after reload dataset by `load_from_disk`
## Describe the bug
Due to memory problem, I need to save my tokenized datasets locally by CPU and reload it by multi GPU for running training script. However, after I reload it by `load_from_disk` and start training, the speed is extremely slow. It says I need about 1500 hours with 8 A100 cards. Before this, I can run the whole script in one day with a single A100 card.
Since I am try to pre-train a BERT, **my dataset is very large(29058165 rows)**
## Steps to reproduce the bug
```python
tokenized_datasets.save_to_disk(
"/pathto/dataset"
)
tokenized_datasets = load_from_disk(
"/pathto/dataset"
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=tokenized_datasets["train"] if training_args.do_train else None,
eval_dataset=tokenized_datasets["validation"]
if training_args.do_eval
else None,
tokenizer=tokenizer,
data_collator=data_collator,
)
train_result = trainer.train(resume_from_checkpoint=checkpoint)
```
## Expected results
Without the save and reload process, I only need about one day to run the whole script with one A100 card.
## Actual results
```
[INFO|trainer.py:1290] 2022-05-23 22:49:46,266 >> ***** Running training *****
[INFO|trainer.py:1291] 2022-05-23 22:49:46,266 >> Num examples = 29058165
[INFO|trainer.py:1292] 2022-05-23 22:49:46,266 >> Num Epochs = 5
[INFO|trainer.py:1293] 2022-05-23 22:49:46,266 >> Instantaneous batch size per device = 16
[INFO|trainer.py:1294] 2022-05-23 22:49:46,266 >> Total train batch size (w. parallel, distributed & accumulation) = 256
[INFO|trainer.py:1295] 2022-05-23 22:49:46,266 >> Gradient Accumulation steps = 2
[INFO|trainer.py:1296] 2022-05-23 22:49:46,266 >> Total optimization steps = 567540
0%| | 1/567540 [00:09<1544:49:04, 9.80s/it]
0%| | 2/567540 [00:17<1320:00:17, 8.37s/it]
0%| | 3/567540 [00:26<1393:10:17, 8.84s/it]
0%| | 4/567540 [00:34<1344:56:33, 8.53s/it]
0%| | 5/567540 [00:43<1359:36:12, 8.62s/it]
```
## Environment info
```
torch 1.11.0+cu113
torchaudio 0.11.0+cu113
torchvision 0.12.0+cu113
transformers 4.18.0
datasets 2.2.2
```
Hi ! Currently `save_to_disk` saves one big Arrow file, which causes some slow downs. This has been discussed in #3735 and we'll implement sharding pretty soon to solve this
For now you can try splitting and saving your dataset in several Arrow files. Then you can load them one by one and use `concatenate_datasets` to have your big dataset again and hopefully with a better speed | [
-0.38637226819992065,
-0.21976208686828613,
0.03526904806494713,
0.3179870843887329,
0.4394131302833557,
-0.030464142560958862,
0.29100674390792847,
0.21080446243286133,
-0.0378291942179203,
-0.004967339336872101,
0.05309347063302994,
0.3047199845314026,
-0.07701048254966736,
0.03184027224779129,
0.008200628682971,
0.034079134464263916,
0.13440003991127014,
0.11523600667715073,
0.28374919295310974,
-0.07888039201498032,
0.033773936331272125,
-0.0910930261015892,
-0.09097111225128174,
-0.07611905038356781,
-0.406963586807251,
-0.07981477677822113,
0.03177858144044876,
0.180572509765625,
-0.07125359028577805,
-0.5702989101409912,
0.22113120555877686,
0.0748828649520874,
0.36249080300331116,
0.26786008477211,
-0.00012314235209487379,
-0.05193554610013962,
-0.325035035610199,
0.026302700862288475,
-0.0859382152557373,
0.22866851091384888,
0.27626460790634155,
-0.13055267930030823,
0.19306831061840057,
-0.17078794538974762,
-0.08208172023296356,
-0.24524925649166107,
-0.17911691963672638,
-0.11786013096570969,
0.21836215257644653,
0.18464694917201996,
0.04879578948020935,
0.06659632176160812,
-0.5050296187400818,
-0.0050559802912175655,
-0.166460782289505,
0.27542686462402344,
-0.06031695008277893,
0.0017720302566885948,
0.11749868839979172,
-0.40681836009025574,
-0.20466408133506775,
0.10369649529457092,
-0.0626915693283081,
-0.012647897005081177,
0.2866872251033783,
0.020544622093439102,
-0.11973229795694351,
0.14069393277168274,
0.04556519165635109,
-0.14630094170570374,
-0.04707632213830948,
-0.00862644612789154,
-0.21828345954418182,
-0.24714437127113342,
0.08379699289798737,
-0.5629323124885559,
0.09889759123325348,
-0.09240531921386719,
-0.02453828975558281,
-0.028697911649942398,
-0.2102973312139511,
-0.06545376032590866,
0.009597130119800568,
-0.06518597900867462,
0.060480840504169464,
0.2073051929473877,
0.0917489156126976,
0.13716410100460052,
0.08902791142463684,
0.25447016954421997,
0.1912025362253189,
0.029345957562327385,
0.19533780217170715,
0.4416448473930359,
-0.5611755847930908,
-0.09125931560993195,
-0.05662918835878372,
-0.3301607370376587,
0.0009555108845233917,
0.1980917900800705,
0.15663930773735046,
0.1599293351173401,
-0.09566782414913177,
-0.19015058875083923,
0.019073419272899628,
0.4450259208679199,
-0.3133971691131592,
0.2823393940925598,
0.24253295361995697,
0.38922667503356934,
-0.5867893099784851,
0.013453379273414612,
-0.39690157771110535,
0.17532742023468018,
0.6353464722633362,
-0.10815701633691788,
-0.3246838450431824,
-0.02054629847407341,
-0.3674156963825226,
0.1310705542564392,
-0.39970099925994873,
-0.17391590774059296,
0.26882824301719666,
0.42208176851272583,
-0.4954182207584381,
0.40051329135894775,
-0.0019016638398170471,
-0.25380808115005493,
-0.36379474401474,
0.027611833065748215,
-0.10353542864322662,
-0.15209685266017914,
-0.3862708806991577,
0.24611632525920868,
0.0807441920042038,
-0.1110590398311615,
0.15661486983299255,
0.07567579299211502,
-0.12455639243125916,
-0.20554319024085999,
0.2163822501897812,
-0.33035099506378174,
0.024866357445716858,
0.052288301289081573,
0.051695648580789566,
0.12862275540828705,
0.08042478561401367,
0.22177033126354218,
-0.041990380734205246,
0.2141796052455902,
-0.5387409329414368,
-0.44621357321739197,
0.04854757338762283,
0.09008205682039261,
0.0367220863699913,
-0.08672699332237244,
-0.33889928460121155,
-0.10830286145210266,
0.3502649962902069,
0.0980408787727356,
-0.15296265482902527,
-0.17487287521362305,
-0.2936495840549469,
-0.09223225712776184,
0.45935434103012085,
0.1148732602596283,
-0.16613753139972687,
-0.05291474983096123,
0.0017319312319159508,
0.16881120204925537,
0.3509356677532196,
0.7525118589401245,
-0.3872276246547699,
0.6114924550056458,
-0.29266926646232605,
0.0031438246369361877,
0.23759064078330994,
-0.15513865649700165,
-0.3249274492263794,
0.2272465080022812,
-0.015627898275852203,
0.23535774648189545,
0.26524731516838074,
0.18566201627254486,
0.34898218512535095,
0.12547332048416138,
0.4880950152873993,
0.5788702964782715,
0.07895749062299728,
0.16813230514526367,
-0.281914085149765,
-0.4019101858139038,
0.08822494745254517,
0.2316007763147354,
0.21264657378196716,
0.05523690953850746,
0.09263190627098083,
0.29452475905418396,
0.4921146333217621,
-0.16989772021770477,
-0.05934599041938782,
0.1283888816833496,
0.15225940942764282,
0.0028285086154937744,
0.16470198333263397,
0.15383201837539673,
-0.29813843965530396,
0.1492723822593689,
-0.2925891876220703,
-0.04247415065765381,
0.2994235157966614,
-0.2567552924156189,
-0.1424771547317505,
-0.1566479206085205,
-0.3169174790382385,
-0.18975192308425903,
-0.051709577441215515,
0.3341493308544159,
-0.06434614956378937,
0.025363579392433167,
-0.011105641722679138,
0.39077356457710266,
-0.2505989670753479,
-0.042567599564790726,
0.11503544449806213,
0.14422115683555603,
0.06845039129257202,
-0.15147307515144348,
0.03762822598218918,
0.04920845851302147,
0.1610972285270691,
-0.09220922738313675,
-0.19738832116127014,
0.22420871257781982,
0.17702877521514893,
0.19812646508216858,
-0.06960134953260422,
0.08657931536436081,
0.2436007559299469,
0.2435721755027771,
0.11843155324459076,
-0.08731703460216522,
0.1601284146308899,
-0.28565749526023865,
0.06216014176607132,
0.39513635635375977,
0.19116787612438202,
0.1260022222995758,
0.3182213306427002,
-0.25163736939430237,
0.2360442876815796,
0.01655852422118187,
0.2142917513847351,
0.04350512474775314,
0.21275749802589417,
0.25327685475349426,
0.3053136169910431,
0.12638601660728455,
-0.42344725131988525,
-0.0020868703722953796,
0.35511359572410583,
-0.060917146503925323,
-0.15975281596183777,
0.15390217304229736,
0.04881807416677475,
-0.3445369601249695,
-0.1384950876235962,
-0.061898067593574524,
0.37168455123901367,
0.06627131998538971,
-0.13474684953689575,
-0.02739749290049076,
-0.037807006388902664,
-0.09309940040111542,
0.08125977218151093,
-0.025606922805309296,
0.11858443915843964,
0.1554347276687622,
0.19358915090560913,
0.1859755963087082,
-0.3281741738319397,
-0.2165559083223343,
0.33628225326538086,
0.4011087417602539,
-0.3167451322078705,
0.16421444714069366,
-0.103254534304142,
0.13714739680290222,
-0.20983372628688812,
-0.09492510557174683,
0.028619201853871346,
-0.0004475237801671028,
-0.05188480019569397,
0.4803924262523651,
0.3026464283466339,
0.19623388350009918,
0.11760842800140381,
0.2856168746948242,
0.05828651785850525,
-0.12635701894760132,
-0.006156366318464279,
-0.023579580709338188,
-0.1716989278793335,
-0.05733681842684746,
0.34036558866500854,
-0.2039715200662613,
0.29856014251708984,
-0.06183134764432907,
-0.14117750525474548,
-0.14207106828689575,
-0.20209676027297974,
-0.0609147772192955,
-0.026120729744434357,
0.044368766248226166,
-0.04316301643848419,
0.1116134524345398,
-0.4604116678237915,
-0.15866057574748993,
0.2311265766620636,
-0.26691657304763794,
-0.1182970181107521,
-0.05792112275958061,
-0.07097214460372925,
0.10206346958875656,
0.27256566286087036,
-0.40661346912384033,
-0.21232900023460388,
0.08229982852935791,
-0.11189651489257812,
0.054693546146154404,
0.0575096569955349,
-0.1423499435186386,
0.14253169298171997,
0.17285068333148956,
0.10520590841770172,
-0.09774439036846161,
-0.2215031534433365,
-0.438597708940506,
0.29765668511390686,
-0.055528849363327026,
-0.16233034431934357,
-0.2930673360824585,
-0.020419232547283173,
0.3406916558742523,
0.04725980386137962,
-0.5262550711631775,
0.10016047209501266,
-0.25958728790283203,
-0.23950527608394623,
-0.46545618772506714,
0.03272535279393196,
0.1959388256072998,
-0.08704812824726105,
-0.04295071214437485,
0.2505356967449188,
-0.22392448782920837,
0.07972485572099686,
-0.13778623938560486,
0.0313839316368103,
-0.3499142825603485,
0.3071400225162506,
0.1494056135416031,
0.9009149670600891,
-0.19200623035430908,
-0.2715054154396057,
0.4921928346157074,
-0.21582812070846558,
-0.040104787796735764,
-0.35567620396614075,
-0.24814793467521667,
-0.10030239075422287,
-0.3729476034641266,
-0.2330242395401001,
-0.044158935546875,
-0.22625893354415894,
-0.06754973530769348,
-0.04244238883256912,
0.08325830101966858,
0.0584871768951416,
-0.12660861015319824,
0.24782350659370422,
-0.32631346583366394,
0.15816837549209595,
-0.02992049604654312,
0.11926723271608353,
-0.3122684955596924,
-0.1720394492149353,
0.07886549830436707,
-0.1321534812450409,
0.03000827133655548,
-0.19909954071044922,
-0.48475566506385803,
-0.39440062642097473,
-0.23937007784843445,
-0.03272940218448639,
-0.01392495259642601,
0.45064622163772583,
0.23698000609874725,
0.06228742003440857,
0.345400869846344,
-0.06128525361418724,
0.4051549434661865,
0.393477201461792,
0.09398927539587021,
0.2833556830883026,
-0.578027606010437,
-0.11382423341274261,
-0.20221327245235443,
-0.06339401751756668,
-0.3741150498390198,
-0.17160753905773163,
0.778454065322876,
0.00023780018091201782,
-0.24299243092536926,
0.15528884530067444,
-0.050907671451568604,
-0.290587842464447,
0.11009465157985687,
-0.15355785191059113,
-0.15424498915672302,
-0.3993927240371704,
0.3332065939903259,
-0.2683350443840027,
0.30676931142807007,
-0.031117932870984077,
-0.13953647017478943,
-0.2771560251712799,
0.04529315233230591,
0.04498988389968872,
-0.03139954060316086,
0.14951646327972412,
0.07846532762050629,
0.36941441893577576,
-0.15569531917572021,
0.06301969289779663,
0.5287389159202576,
0.009071912616491318,
-0.06364673376083374,
0.14144204556941986,
0.12872770428657532,
0.23773601651191711,
0.2863072156906128,
0.3591455817222595,
-0.1633632928133011,
0.26512765884399414,
0.12776324152946472,
0.2870222330093384,
-0.3025052547454834,
0.3221716582775116,
0.3813350200653076,
-0.07576261460781097,
-0.5091366171836853,
-0.5259767174720764,
0.19832941889762878,
0.32533907890319824,
-0.0245794877409935,
0.15560725331306458,
-0.25436168909072876,
-0.13997170329093933,
0.4881083369255066,
0.27757444977760315,
0.9936202764511108,
-0.2853430509567261,
0.5272606611251831,
0.17094412446022034,
0.0482339933514595,
-0.07109369337558746,
-0.46105682849884033,
0.09300017356872559,
-0.4535082280635834,
0.09519322216510773,
0.12411339581012726,
-0.10841542482376099,
0.0450994148850441,
0.009705692529678345,
0.02080298587679863,
0.20669043064117432,
-0.056197457015514374,
0.3238106667995453,
-0.1835133284330368,
0.3758663237094879,
0.05505198985338211,
-0.3397040069103241,
-0.32594138383865356,
-0.060651205480098724,
-0.03581055998802185,
0.019613007083535194,
-0.09551124274730682,
0.08040038496255875,
0.23100069165229797,
-0.07656462490558624,
-0.07239630818367004,
-0.05491285026073456,
-0.5283771753311157,
0.20125170052051544,
-0.3467369079589844,
-0.28826141357421875,
-0.048330001533031464,
0.15604758262634277,
0.03502056375145912,
0.11602790653705597,
0.05379120260477066,
0.18911099433898926,
-0.2787642180919647,
0.2131967842578888,
0.17098183929920197,
-0.44048240780830383,
0.36916354298591614,
0.004994947463274002,
-0.1289473921060562,
-0.06113722175359726,
-0.13846948742866516,
-0.2618168294429779,
-0.0014890283346176147,
-0.049684733152389526,
0.45228296518325806,
-0.25182345509529114,
-0.25238344073295593,
-0.10666993260383606,
-0.13233453035354614,
-0.40126150846481323,
0.06961876153945923,
0.1121542900800705,
-0.03820640966296196,
0.39311930537223816,
-0.003320883959531784,
-0.14626234769821167,
-0.1561039835214615,
0.8311660885810852,
0.47867339849472046,
-0.43485286831855774,
0.7112202644348145,
-0.06885552406311035,
0.010140884667634964,
-0.21800115704536438,
0.2515530586242676,
0.6165882349014282,
-0.16276982426643372,
0.1812690943479538,
-0.14650379121303558,
0.040846556425094604,
0.15806737542152405,
0.0554373636841774,
-0.07137410342693329,
0.06481847912073135,
-0.04543603956699371,
-0.2481273114681244,
-0.6477534174919128,
-0.12169608473777771,
0.1386875957250595,
0.14271703362464905,
0.3231392800807953,
0.07679871469736099,
-0.09503722935914993,
0.2717110216617584,
-0.17406314611434937,
0.23280227184295654,
-0.10273522883653641,
0.18301570415496826,
-0.41741058230400085,
-0.11716831475496292,
0.3049141764640808,
0.08010387420654297,
0.034170962870121,
0.08009536564350128,
0.0680924504995346,
-0.12092696875333786,
-0.19008296728134155,
0.17100712656974792,
0.15735837817192078,
-0.22650404274463654,
0.05744428560137749,
-0.3286139965057373,
-0.17581255733966827,
-0.14716260135173798,
0.08351463079452515,
0.2556447386741638,
0.07482083141803741,
-0.18300463259220123,
0.2518596947193146,
-0.07994876056909561,
-0.08709758520126343,
-0.15243346989154816,
-0.15476366877555847,
-0.036232009530067444,
0.23870499432086945,
-0.007251560688018799,
-0.005159351974725723,
-0.21820741891860962,
-0.3573620021343231,
-0.0625716969370842,
0.4304966330528259,
0.40409547090530396,
0.1884080171585083,
-0.3177962899208069,
-0.2888011634349823,
-0.04913070797920227,
0.15708167850971222,
0.2712632417678833,
-0.1120985671877861,
-0.2701931297779083,
0.35228481888771057,
0.01624409854412079,
-0.03678007423877716,
-0.22051487863063812,
0.09483498334884644,
-0.2107236236333847,
-0.17482393980026245,
0.14321111142635345,
0.16228343546390533,
0.08925323188304901,
-0.3164372444152832,
-0.05990048125386238,
0.17219610512256622,
-0.11110822856426239,
0.20000235736370087,
0.2422827035188675,
0.09793274104595184,
-0.07963582873344421,
-0.014883002266287804,
0.08705084770917892,
0.1374998539686203,
0.5984494090080261,
0.04291301593184471,
0.5294970870018005,
0.03785228729248047,
0.4290355145931244,
-0.32342439889907837,
-0.45521441102027893,
-0.3162524402141571,
0.41384652256965637,
-0.4343474507331848,
-0.008409500122070312,
-0.16699236631393433,
0.47238045930862427,
0.2069135308265686,
-0.31624484062194824,
-0.15096144378185272,
0.3528125584125519,
-0.315202921628952,
-0.06140711158514023,
-0.08437031507492065,
0.09455060213804245,
0.032483384013175964,
0.30703264474868774,
-0.09204593300819397,
0.23565970361232758,
0.01654476672410965,
0.08666858822107315,
-0.306746244430542,
0.15016748011112213,
-0.13635346293449402,
0.2988751232624054,
0.26044610142707825,
-0.2343565821647644,
0.12713797390460968,
-0.21535618603229523,
-0.10891270637512207,
-0.2021830677986145,
0.1925848126411438,
0.4132919907569885,
0.39532431960105896,
0.3305819630622864,
0.08329623937606812,
0.11489908397197723,
0.16451358795166016,
0.05519988387823105,
0.035987529903650284,
0.13942928612232208,
0.15989181399345398,
-0.014085344038903713,
-0.0305674709379673,
-0.1386231631040573,
-0.07806295156478882,
0.07269218564033508,
0.017383340746164322,
0.004935489967465401,
0.27500617504119873,
0.256466805934906,
-0.23951667547225952,
-0.10579308867454529,
0.3536236882209778,
-0.11524894833564758,
0.20020313560962677,
0.37235772609710693,
0.12938851118087769,
0.19932952523231506,
-0.17974817752838135,
-0.0005345568060874939,
-0.04067288711667061,
0.7157196402549744,
0.17442381381988525,
-0.4718081057071686,
-0.42337512969970703,
-0.17379973828792572,
-0.4032091796398163,
-0.03048398345708847,
-0.07415962219238281,
0.4284726679325104,
0.10667769610881805,
0.19032949209213257,
-0.1354108452796936,
-0.21128472685813904,
0.28762155771255493,
0.10240404307842255,
-0.03286424279212952,
0.28579771518707275,
-0.14776711165905,
0.06900535523891449,
-0.47364240884780884,
0.07856228947639465,
-0.09080364555120468,
-0.3415638506412506,
0.49249863624572754,
-0.05992451682686806,
-0.09641164541244507,
0.011058798991143703,
-0.05874495208263397,
-0.1129329651594162,
0.4021667242050171,
0.6775509119033813,
-0.11295221745967865,
0.10745703428983688,
0.044962428510189056,
0.13003243505954742,
-0.015948403626680374,
0.12995150685310364,
0.07236689329147339,
0.13911661505699158,
0.33604174852371216,
0.20422744750976562,
-0.11079561710357666,
0.05287040397524834,
-0.48344120383262634,
0.12429842352867126,
-0.05201561376452446,
-0.3791631758213043,
-0.18050286173820496,
0.16931886970996857,
0.3067929446697235,
0.21080905199050903,
0.1213625818490982,
0.4833923876285553,
0.031222669407725334,
0.16129626333713531,
-0.779965877532959,
-0.11295390129089355,
0.21906965970993042,
-0.0836382508277893,
-0.012673845514655113,
-0.27843451499938965,
0.2595222592353821,
-0.0045424699783325195,
0.17537428438663483,
-0.5549368858337402,
0.05757690221071243,
0.2556156814098358,
-0.022646356374025345,
-0.21532584726810455,
0.352751225233078,
0.14280089735984802,
0.2786637544631958,
-0.13625182211399078,
0.12687921524047852,
-0.10533035546541214,
-0.14704814553260803,
0.08289715647697449,
-0.12630335986614227
] |
https://github.com/huggingface/datasets/issues/4386 | Bug for wiki_auto_asset_turk from GEM | Hi @StevenTang1998,
We have fixed the issue:
- #4389
The fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by installing `datasets` from our GitHub repo:
```
pip install git+https://github.com/huggingface/datasets#egg=datasets
``` | ## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
``` | 40 | Bug for wiki_auto_asset_turk from GEM
## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
```
Hi @StevenTang1998,
We have fixed the issue:
- #4389
The fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by installing `datasets` from our GitHub repo:
```
pip install git+https://github.com/huggingface/datasets#egg=datasets
``` | [
-0.187733992934227,
-0.1669272780418396,
-0.10573554039001465,
0.3018324375152588,
0.33037495613098145,
-0.02343079447746277,
0.7409369349479675,
0.5015612840652466,
0.13661853969097137,
0.16635775566101074,
0.2308674454689026,
0.44556257128715515,
0.053311362862586975,
-0.25278908014297485,
0.08449742943048477,
-0.1733134537935257,
0.16505743563175201,
0.025424867868423462,
0.060379840433597565,
-0.1526317000389099,
-0.2187018096446991,
0.29764029383659363,
-0.1038627177476883,
-0.03000028431415558,
-0.36032333970069885,
-0.013252107426524162,
0.09708237648010254,
-0.05011765658855438,
-0.05393608659505844,
-0.24513830244541168,
-0.11450190097093582,
-0.14970336854457855,
-0.13497303426265717,
0.2672877907752991,
-0.00010537065099924803,
0.06604401767253876,
0.2611876130104065,
0.026785733178257942,
-0.16069450974464417,
-0.03396539390087128,
-0.07484883815050125,
-0.1780986785888672,
0.015442639589309692,
-0.46917492151260376,
-0.042941220104694366,
0.2425203174352646,
-0.21238180994987488,
0.19958266615867615,
0.2402765452861786,
0.2606534957885742,
0.34883710741996765,
0.4523056745529175,
0.05412251129746437,
-0.1372791826725006,
0.29538944363594055,
-0.46522223949432373,
-0.1132965162396431,
-0.20462320744991302,
-0.2410775125026703,
-0.0381537601351738,
-0.12727463245391846,
0.5845193862915039,
-0.24252749979496002,
0.03539089113473892,
-0.04855800420045853,
0.03854869678616524,
0.03539927676320076,
-0.3668389916419983,
0.3045104444026947,
0.14131642878055573,
0.43398889899253845,
-0.06617218255996704,
-0.22206898033618927,
-0.07195046544075012,
-0.011535984463989735,
0.06476934999227524,
0.2257479727268219,
0.3142949640750885,
-0.08829779922962189,
0.029770854860544205,
-0.12477388232946396,
0.08746431022882462,
0.023892991244792938,
0.12249797582626343,
-0.21890807151794434,
0.3386088013648987,
-0.09103548526763916,
0.017195280641317368,
-0.05990385636687279,
-0.10027472674846649,
-0.11955036967992783,
-0.11782272160053253,
-0.28293007612228394,
0.06000186502933502,
-0.16870076954364777,
-0.20918907225131989,
0.31669723987579346,
-0.05554205924272537,
0.023520514369010925,
0.042720213532447815,
0.15643484890460968,
0.1253843605518341,
-0.14585761725902557,
0.18111148476600647,
-0.06804147362709045,
0.3054145872592926,
-0.07446721941232681,
-0.22191409766674042,
0.20017686486244202,
0.16827410459518433,
-0.15968205034732819,
0.04592204466462135,
-0.011913232505321503,
-0.21671687066555023,
0.31651148200035095,
-0.05009981244802475,
0.10307255387306213,
0.1397707611322403,
-0.07614002376794815,
0.18703138828277588,
0.31505900621414185,
0.03737679123878479,
-0.1458345204591751,
0.314561665058136,
-0.08057031780481339,
-0.014965090900659561,
-0.05778961256146431,
0.1910301297903061,
-0.29221001267433167,
0.0687212198972702,
-0.21113190054893494,
0.26347237825393677,
0.0540609173476696,
-0.14674274623394012,
-0.09722994267940521,
-0.02309880033135414,
0.49466273188591003,
0.14083009958267212,
-0.24629054963588715,
-0.15469294786453247,
0.029621174558997154,
0.01553826592862606,
0.1938656121492386,
0.2728927731513977,
0.06081089749932289,
0.2143445461988449,
0.14542296528816223,
-0.24070797860622406,
0.0007221624255180359,
-0.013349488377571106,
-0.43753862380981445,
-0.33780375123023987,
-0.5317656993865967,
0.3395082950592041,
-0.01683097891509533,
0.027242962270975113,
0.19747675955295563,
0.13817371428012848,
0.5045561194419861,
-0.2562766373157501,
0.13821600377559662,
-0.05607122927904129,
-0.25861087441444397,
-0.1258736103773117,
0.14325103163719177,
0.41772425174713135,
-0.3364108204841614,
-0.030773144215345383,
-0.12045338749885559,
0.03705473244190216,
0.22082087397575378,
-0.042336445301771164,
-0.07828149944543839,
-0.07183743268251419,
-0.1747620403766632,
0.2981664538383484,
0.14897143840789795,
-0.15472349524497986,
-0.47073855996131897,
-0.10703729093074799,
-0.15939337015151978,
0.11407006531953812,
0.15658949315547943,
0.15022222697734833,
0.2855539321899414,
-0.004087383858859539,
0.13407215476036072,
0.28786522150039673,
0.12492208927869797,
0.17252379655838013,
-0.5078421235084534,
-0.3517095148563385,
-0.15001223981380463,
-0.1455731987953186,
0.07396852970123291,
-0.07236713916063309,
0.16386684775352478,
0.03375488147139549,
0.1892860382795334,
0.026687487959861755,
-0.045603178441524506,
-0.04730571061372757,
0.02071397565305233,
-0.07345806062221527,
0.13953246176242828,
-0.05730798840522766,
-0.013099521398544312,
0.21314185857772827,
0.4854757487773895,
0.31927359104156494,
-0.08897948265075684,
-0.1556706726551056,
-0.10858699679374695,
-0.11024732142686844,
-0.35316306352615356,
-0.24475029110908508,
0.25999411940574646,
0.21308530867099762,
-0.05381760746240616,
0.1960826814174652,
-0.030079681426286697,
-0.35380107164382935,
0.0591849759221077,
-0.15070883929729462,
-0.10653835535049438,
0.11735880374908447,
-0.12760184705257416,
-0.022045422345399857,
-0.1514989137649536,
0.10012036561965942,
0.01356496661901474,
0.12473004311323166,
-0.2276831865310669,
0.2184816300868988,
-0.14824262261390686,
0.4246782064437866,
-0.09860248118638992,
-0.22193275392055511,
0.15917958319187164,
0.029891785234212875,
0.06197869032621384,
0.1253819614648819,
0.06660450994968414,
-0.01698216050863266,
0.16468679904937744,
0.4277077317237854,
0.3770754337310791,
0.10822056233882904,
-0.022603219375014305,
0.21100977063179016,
0.20462913811206818,
0.027830805629491806,
0.19032447040081024,
-0.4856310486793518,
-0.08231410384178162,
-0.05266634002327919,
-0.2023036926984787,
-0.09402391314506531,
-0.18850469589233398,
0.5502774715423584,
0.7330446839332581,
0.1219671219587326,
0.27803805470466614,
-0.058012597262859344,
-0.14855346083641052,
-0.09116774052381516,
0.1488383561372757,
0.5148152709007263,
0.17676398158073425,
0.2093600481748581,
-0.05920090153813362,
-0.24854710698127747,
0.03333362936973572,
-0.2580622136592865,
0.3193987309932709,
0.20269668102264404,
0.2062171846628189,
0.357862651348114,
0.3114629089832306,
0.09418817609548569,
-0.4008297026157379,
-0.03307114169001579,
-0.1267743855714798,
0.0859016478061676,
-0.07829223573207855,
0.07101643085479736,
-0.10626319795846939,
0.21011224389076233,
0.018213791772723198,
-0.1323622614145279,
-0.033439751714468,
-0.2020367681980133,
0.34711503982543945,
-0.014684680849313736,
-0.31266987323760986,
0.30233123898506165,
0.06547491252422333,
-0.00900152325630188,
-0.011536195874214172,
-0.0940355733036995,
-0.4192047715187073,
-0.3149334490299225,
-0.08980847150087357,
0.06484824419021606,
0.165073424577713,
-0.17334617674350739,
0.3634183406829834,
-0.0468071773648262,
-0.21153225004673004,
-0.18827730417251587,
-0.4674341380596161,
0.11617524176836014,
-0.016731593757867813,
0.31012827157974243,
0.07145091891288757,
0.18140122294425964,
-0.05246638506650925,
-0.3490624725818634,
0.2035827934741974,
-0.012087369337677956,
-0.15972177684307098,
0.21226897835731506,
0.08200976997613907,
-0.10524802654981613,
-0.2953498363494873,
-0.4323243796825409,
-0.100264772772789,
-0.3670354187488556,
-0.27303779125213623,
0.20489707589149475,
0.22122494876384735,
-0.02740742266178131,
0.3493446111679077,
-0.0393165722489357,
0.07254902273416519,
0.10675649344921112,
-0.13678018748760223,
-0.2495598942041397,
0.5068500638008118,
-0.32369938492774963,
-0.3541509509086609,
-0.038664888590574265,
-0.24560673534870148,
0.391724169254303,
-0.16426803171634674,
-0.38442474603652954,
-0.053809382021427155,
-0.10167133808135986,
0.05268348380923271,
0.16725879907608032,
-0.12821157276630402,
0.144290030002594,
0.20711089670658112,
-0.2650366723537445,
-0.1645529866218567,
0.20103402435779572,
-0.023960724472999573,
-0.11957951635122299,
-0.1271735429763794,
-0.021250829100608826,
0.3986443877220154,
-0.03167107701301575,
0.7439637184143066,
-0.08988012373447418,
-0.029071133583784103,
0.2985660433769226,
-0.20516817271709442,
0.14404112100601196,
-0.2538488507270813,
-0.2986951470375061,
-0.12352709472179413,
-0.09001991152763367,
0.017456907778978348,
0.255368709564209,
-0.023374110460281372,
-0.19590525329113007,
-0.02462697960436344,
0.051806848496198654,
-0.5353285670280457,
-0.3577952980995178,
-0.21319051086902618,
0.0603301115334034,
-0.07064355164766312,
0.12189401686191559,
0.330626517534256,
-0.122669517993927,
-0.1159651130437851,
0.21439164876937866,
0.19256898760795593,
-0.06369011849164963,
-0.16530801355838776,
-0.0668097734451294,
0.17198669910430908,
-0.4675302505493164,
0.1009795069694519,
-0.06318598985671997,
-0.12108403444290161,
0.025388922542333603,
-0.16732648015022278,
0.1392975151538849,
-0.2782610356807709,
0.3021124005317688,
-0.16182564198970795,
0.26511603593826294,
0.09662523865699768,
-0.13593730330467224,
-0.10122726857662201,
-0.13812188804149628,
-0.05467468500137329,
-0.2223973274230957,
0.3570302724838257,
0.4032679796218872,
-0.0001817569136619568,
-0.05260761082172394,
0.3525593876838684,
0.012492231093347073,
-0.16860325634479523,
-0.07281829416751862,
-0.21408617496490479,
-0.3344394564628601,
-0.39346668124198914,
-0.003411531448364258,
-0.17115415632724762,
0.3308514952659607,
-0.2467225342988968,
-0.29140353202819824,
-0.15958571434020996,
0.09452232718467712,
-0.08723215758800507,
0.1656852513551712,
0.32637545466423035,
-0.02846480719745159,
0.2792617082595825,
-0.21507760882377625,
-0.20698681473731995,
0.05782654881477356,
0.15381449460983276,
0.054322998970746994,
0.017920739948749542,
-0.2104175090789795,
-0.24357916414737701,
-0.06779692322015762,
0.2339928299188614,
-0.1961129754781723,
0.11313243210315704,
-0.25656870007514954,
0.3437701463699341,
0.007902960292994976,
-0.07704905420541763,
0.3279895484447479,
-0.04477175697684288,
-0.005365098360925913,
-0.3324660360813141,
0.4623365104198456,
-0.17107510566711426,
0.011193811893463135,
0.14542751014232635,
0.06448802351951599,
-0.18922875821590424,
0.5419318675994873,
0.14007902145385742,
0.7988923192024231,
0.28450077772140503,
0.19949433207511902,
0.4518373906612396,
0.18439632654190063,
0.4956328272819519,
-0.2964443564414978,
0.1979726105928421,
-0.5014528036117554,
0.15449158847332,
-0.011382320895791054,
0.12380969524383545,
-0.0957421138882637,
0.044643256813287735,
-0.15418511629104614,
0.016668852418661118,
-0.33916234970092773,
0.16193559765815735,
-0.22670122981071472,
-0.07170004397630692,
-0.3052423596382141,
-0.16060835123062134,
0.09454930573701859,
0.1747460514307022,
0.29473239183425903,
0.2048204392194748,
0.04755883291363716,
-0.1662503182888031,
0.20739781856536865,
-0.32909727096557617,
-0.23013320565223694,
0.2553898096084595,
0.06281990557909012,
0.1760869026184082,
-0.24489831924438477,
-0.4098685383796692,
-0.05242842063307762,
0.40921902656555176,
-0.06366878747940063,
0.10126179456710815,
-0.022895781323313713,
0.2765994369983673,
0.21972507238388062,
0.06700829416513443,
-0.014231163077056408,
0.013107712380588055,
0.37213611602783203,
-0.23085379600524902,
-0.24956804513931274,
-0.0022513195872306824,
-0.14784181118011475,
0.22229929268360138,
-0.22448372840881348,
0.22069969773292542,
0.2941857576370239,
0.015507984906435013,
-0.289719820022583,
0.06629719585180283,
-0.2585965692996979,
-0.486510694026947,
0.2759113907814026,
-0.23300595581531525,
-0.2051355093717575,
0.054380714893341064,
-0.20036545395851135,
-0.21720799803733826,
-0.12863625586032867,
0.3384062945842743,
0.0782475620508194,
0.14481447637081146,
0.3300706744194031,
0.0017000921070575714,
-0.28752750158309937,
-0.33436575531959534,
-0.1211073249578476,
0.09208047389984131,
-0.6184704899787903,
0.14439110457897186,
0.006913222372531891,
-0.051142483949661255,
-0.09680523723363876,
-0.08955295383930206,
-0.1966579556465149,
0.022591441869735718,
-0.239046111702919,
-0.40673959255218506,
0.08549883216619492,
0.027581870555877686,
0.07106228917837143,
0.2387336939573288,
0.029187612235546112,
-0.4032132625579834,
-0.12184854596853256,
0.11805806308984756,
-0.389984667301178,
0.16642117500305176,
-0.054811108857393265,
0.15195557475090027,
-0.25367841124534607,
0.24517685174942017,
0.07561179250478745,
0.10334853827953339,
0.2626621723175049,
0.1665097028017044,
-0.167806938290596,
-0.3601534962654114,
-0.28456878662109375,
0.1074286624789238,
-0.0013398472219705582,
-0.04780343919992447,
0.2853239178657532,
0.030134785920381546,
-0.19205091893672943,
-0.2141665369272232,
0.3930340111255646,
-0.04772880673408508,
-0.1344655603170395,
0.16660062968730927,
0.0779053196310997,
0.23717451095581055,
0.10685388743877411,
0.014832781627774239,
-0.06192876398563385,
0.642121434211731,
-0.06950885057449341,
0.09891930222511292,
0.07523474097251892,
-0.04244508221745491,
0.025370735675096512,
0.08107132464647293,
-0.18747158348560333,
0.3042633533477783,
0.2601737976074219,
-0.21726711094379425,
0.10368740558624268,
0.03787415102124214,
0.13245506584644318,
0.16182579100131989,
-0.27762651443481445,
-0.18813149631023407,
0.13873937726020813,
0.4102507531642914,
-0.3026036024093628,
-0.31009024381637573,
0.06223016977310181,
-0.14993515610694885,
0.2022458016872406,
-0.0244050994515419,
-0.037998784333467484,
-0.31667056679725647,
-0.24275635182857513,
0.24063819646835327,
0.2542457580566406,
-0.5270772576332092,
0.02953384444117546,
0.44990643858909607,
-0.13762366771697998,
0.206437349319458,
-0.08681968599557877,
-0.2415561079978943,
0.09310003370046616,
0.5315912365913391,
0.11782173067331314,
0.4310862123966217,
0.17664793133735657,
-0.08652512729167938,
-0.09069564193487167,
-0.3072262108325958,
0.3053937554359436,
0.0976213663816452,
-0.17441722750663757,
0.284537672996521,
0.2675817012786865,
0.15822744369506836,
0.24541963636875153,
-0.04844803735613823,
-0.38698893785476685,
0.22608868777751923,
-0.23187246918678284,
0.02801491692662239,
-0.08843779563903809,
-0.1724095642566681,
-0.060044899582862854,
0.47082778811454773,
0.0550532266497612,
0.2545154094696045,
0.09565769135951996,
0.12176281213760376,
-0.14268216490745544,
-0.24853281676769257,
0.16066309809684753,
-0.028246648609638214,
0.07460982352495193,
-0.2810758054256439,
0.06868020445108414,
0.38801199197769165,
0.027944207191467285,
-0.18532131612300873,
0.12518475949764252,
0.44440609216690063,
0.29973554611206055,
0.1832658350467682,
-0.2225385159254074,
-0.0825747698545456,
-0.08074717968702316,
-0.11892996728420258,
0.1267658770084381,
0.10003301501274109,
0.11775374412536621,
0.14025521278381348,
0.24047213792800903,
-0.3610631227493286,
-0.07615654170513153,
0.3780953586101532,
-0.04828339442610741,
-0.15165482461452484,
0.1728823482990265,
-0.21593981981277466,
-0.2740248143672943,
-0.1674831211566925,
0.0023212283849716187,
-0.3260318636894226,
-0.04433279484510422,
0.4911673367023468,
0.2987097203731537,
0.10183963924646378,
-0.25068730115890503,
0.13391649723052979,
-0.09141932427883148,
0.2199973464012146,
-0.09975859522819519,
-0.1078505590558052,
-0.15995748341083527,
-0.033930324018001556,
-0.502448558807373,
0.22591789066791534,
0.20844398438930511,
0.1441226303577423,
-0.1239396184682846,
0.17265291512012482,
-0.16092517971992493,
0.03964502364397049,
0.28521716594696045,
-0.29481497406959534,
0.20978137850761414,
0.2723448574542999,
-0.30191946029663086,
0.11155390739440918,
-0.18309099972248077,
-0.1350097805261612,
0.012066993862390518,
-0.5142561197280884,
0.0652615949511528,
-0.6222754716873169,
0.15443938970565796,
0.012096872553229332,
0.01568867266178131,
0.11798298358917236,
-0.3300043046474457,
0.6879630088806152,
-0.030488481745123863,
0.08927333354949951,
-0.3238643407821655,
0.07019335776567459,
-0.11653043329715729,
-0.12631458044052124,
-0.03545735776424408,
0.21259886026382446,
0.11701001226902008,
0.4363550543785095,
0.18684841692447662,
0.017002977430820465,
-0.13045749068260193,
0.16578954458236694,
-0.0357641838490963,
0.08965115249156952,
-0.06389279663562775,
0.07154246419668198,
0.02667997032403946,
0.1353255659341812,
0.1439731866121292,
0.2228507399559021,
-0.02796284854412079,
0.1447974145412445,
-0.19603866338729858,
-0.5424208641052246,
0.3385098874568939,
-0.28928717970848083,
-0.35592371225357056,
-0.17975389957427979,
0.29828548431396484,
0.2000325322151184,
-0.006408926099538803,
-0.4808538556098938,
-0.012663990259170532,
0.2559331953525543,
0.11588793247938156,
-0.17204557359218597,
0.2057778537273407,
0.2289728820323944,
0.04885916784405708,
-0.028367936611175537,
0.18097811937332153,
0.1486263871192932,
-0.18799376487731934,
0.2086602747440338,
-0.25266093015670776
] |
https://github.com/huggingface/datasets/issues/4386 | Bug for wiki_auto_asset_turk from GEM | Thanks for your reply!!
And the totto dataset has the same problem. The url should be change to [https://storage.googleapis.com/totto-public/totto_data.zip](https://storage.googleapis.com/totto-public/totto_data.zip). | ## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
``` | 19 | Bug for wiki_auto_asset_turk from GEM
## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
```
Thanks for your reply!!
And the totto dataset has the same problem. The url should be change to [https://storage.googleapis.com/totto-public/totto_data.zip](https://storage.googleapis.com/totto-public/totto_data.zip). | [
-0.187733992934227,
-0.1669272780418396,
-0.10573554039001465,
0.3018324375152588,
0.33037495613098145,
-0.02343079447746277,
0.7409369349479675,
0.5015612840652466,
0.13661853969097137,
0.16635775566101074,
0.2308674454689026,
0.44556257128715515,
0.053311362862586975,
-0.25278908014297485,
0.08449742943048477,
-0.1733134537935257,
0.16505743563175201,
0.025424867868423462,
0.060379840433597565,
-0.1526317000389099,
-0.2187018096446991,
0.29764029383659363,
-0.1038627177476883,
-0.03000028431415558,
-0.36032333970069885,
-0.013252107426524162,
0.09708237648010254,
-0.05011765658855438,
-0.05393608659505844,
-0.24513830244541168,
-0.11450190097093582,
-0.14970336854457855,
-0.13497303426265717,
0.2672877907752991,
-0.00010537065099924803,
0.06604401767253876,
0.2611876130104065,
0.026785733178257942,
-0.16069450974464417,
-0.03396539390087128,
-0.07484883815050125,
-0.1780986785888672,
0.015442639589309692,
-0.46917492151260376,
-0.042941220104694366,
0.2425203174352646,
-0.21238180994987488,
0.19958266615867615,
0.2402765452861786,
0.2606534957885742,
0.34883710741996765,
0.4523056745529175,
0.05412251129746437,
-0.1372791826725006,
0.29538944363594055,
-0.46522223949432373,
-0.1132965162396431,
-0.20462320744991302,
-0.2410775125026703,
-0.0381537601351738,
-0.12727463245391846,
0.5845193862915039,
-0.24252749979496002,
0.03539089113473892,
-0.04855800420045853,
0.03854869678616524,
0.03539927676320076,
-0.3668389916419983,
0.3045104444026947,
0.14131642878055573,
0.43398889899253845,
-0.06617218255996704,
-0.22206898033618927,
-0.07195046544075012,
-0.011535984463989735,
0.06476934999227524,
0.2257479727268219,
0.3142949640750885,
-0.08829779922962189,
0.029770854860544205,
-0.12477388232946396,
0.08746431022882462,
0.023892991244792938,
0.12249797582626343,
-0.21890807151794434,
0.3386088013648987,
-0.09103548526763916,
0.017195280641317368,
-0.05990385636687279,
-0.10027472674846649,
-0.11955036967992783,
-0.11782272160053253,
-0.28293007612228394,
0.06000186502933502,
-0.16870076954364777,
-0.20918907225131989,
0.31669723987579346,
-0.05554205924272537,
0.023520514369010925,
0.042720213532447815,
0.15643484890460968,
0.1253843605518341,
-0.14585761725902557,
0.18111148476600647,
-0.06804147362709045,
0.3054145872592926,
-0.07446721941232681,
-0.22191409766674042,
0.20017686486244202,
0.16827410459518433,
-0.15968205034732819,
0.04592204466462135,
-0.011913232505321503,
-0.21671687066555023,
0.31651148200035095,
-0.05009981244802475,
0.10307255387306213,
0.1397707611322403,
-0.07614002376794815,
0.18703138828277588,
0.31505900621414185,
0.03737679123878479,
-0.1458345204591751,
0.314561665058136,
-0.08057031780481339,
-0.014965090900659561,
-0.05778961256146431,
0.1910301297903061,
-0.29221001267433167,
0.0687212198972702,
-0.21113190054893494,
0.26347237825393677,
0.0540609173476696,
-0.14674274623394012,
-0.09722994267940521,
-0.02309880033135414,
0.49466273188591003,
0.14083009958267212,
-0.24629054963588715,
-0.15469294786453247,
0.029621174558997154,
0.01553826592862606,
0.1938656121492386,
0.2728927731513977,
0.06081089749932289,
0.2143445461988449,
0.14542296528816223,
-0.24070797860622406,
0.0007221624255180359,
-0.013349488377571106,
-0.43753862380981445,
-0.33780375123023987,
-0.5317656993865967,
0.3395082950592041,
-0.01683097891509533,
0.027242962270975113,
0.19747675955295563,
0.13817371428012848,
0.5045561194419861,
-0.2562766373157501,
0.13821600377559662,
-0.05607122927904129,
-0.25861087441444397,
-0.1258736103773117,
0.14325103163719177,
0.41772425174713135,
-0.3364108204841614,
-0.030773144215345383,
-0.12045338749885559,
0.03705473244190216,
0.22082087397575378,
-0.042336445301771164,
-0.07828149944543839,
-0.07183743268251419,
-0.1747620403766632,
0.2981664538383484,
0.14897143840789795,
-0.15472349524497986,
-0.47073855996131897,
-0.10703729093074799,
-0.15939337015151978,
0.11407006531953812,
0.15658949315547943,
0.15022222697734833,
0.2855539321899414,
-0.004087383858859539,
0.13407215476036072,
0.28786522150039673,
0.12492208927869797,
0.17252379655838013,
-0.5078421235084534,
-0.3517095148563385,
-0.15001223981380463,
-0.1455731987953186,
0.07396852970123291,
-0.07236713916063309,
0.16386684775352478,
0.03375488147139549,
0.1892860382795334,
0.026687487959861755,
-0.045603178441524506,
-0.04730571061372757,
0.02071397565305233,
-0.07345806062221527,
0.13953246176242828,
-0.05730798840522766,
-0.013099521398544312,
0.21314185857772827,
0.4854757487773895,
0.31927359104156494,
-0.08897948265075684,
-0.1556706726551056,
-0.10858699679374695,
-0.11024732142686844,
-0.35316306352615356,
-0.24475029110908508,
0.25999411940574646,
0.21308530867099762,
-0.05381760746240616,
0.1960826814174652,
-0.030079681426286697,
-0.35380107164382935,
0.0591849759221077,
-0.15070883929729462,
-0.10653835535049438,
0.11735880374908447,
-0.12760184705257416,
-0.022045422345399857,
-0.1514989137649536,
0.10012036561965942,
0.01356496661901474,
0.12473004311323166,
-0.2276831865310669,
0.2184816300868988,
-0.14824262261390686,
0.4246782064437866,
-0.09860248118638992,
-0.22193275392055511,
0.15917958319187164,
0.029891785234212875,
0.06197869032621384,
0.1253819614648819,
0.06660450994968414,
-0.01698216050863266,
0.16468679904937744,
0.4277077317237854,
0.3770754337310791,
0.10822056233882904,
-0.022603219375014305,
0.21100977063179016,
0.20462913811206818,
0.027830805629491806,
0.19032447040081024,
-0.4856310486793518,
-0.08231410384178162,
-0.05266634002327919,
-0.2023036926984787,
-0.09402391314506531,
-0.18850469589233398,
0.5502774715423584,
0.7330446839332581,
0.1219671219587326,
0.27803805470466614,
-0.058012597262859344,
-0.14855346083641052,
-0.09116774052381516,
0.1488383561372757,
0.5148152709007263,
0.17676398158073425,
0.2093600481748581,
-0.05920090153813362,
-0.24854710698127747,
0.03333362936973572,
-0.2580622136592865,
0.3193987309932709,
0.20269668102264404,
0.2062171846628189,
0.357862651348114,
0.3114629089832306,
0.09418817609548569,
-0.4008297026157379,
-0.03307114169001579,
-0.1267743855714798,
0.0859016478061676,
-0.07829223573207855,
0.07101643085479736,
-0.10626319795846939,
0.21011224389076233,
0.018213791772723198,
-0.1323622614145279,
-0.033439751714468,
-0.2020367681980133,
0.34711503982543945,
-0.014684680849313736,
-0.31266987323760986,
0.30233123898506165,
0.06547491252422333,
-0.00900152325630188,
-0.011536195874214172,
-0.0940355733036995,
-0.4192047715187073,
-0.3149334490299225,
-0.08980847150087357,
0.06484824419021606,
0.165073424577713,
-0.17334617674350739,
0.3634183406829834,
-0.0468071773648262,
-0.21153225004673004,
-0.18827730417251587,
-0.4674341380596161,
0.11617524176836014,
-0.016731593757867813,
0.31012827157974243,
0.07145091891288757,
0.18140122294425964,
-0.05246638506650925,
-0.3490624725818634,
0.2035827934741974,
-0.012087369337677956,
-0.15972177684307098,
0.21226897835731506,
0.08200976997613907,
-0.10524802654981613,
-0.2953498363494873,
-0.4323243796825409,
-0.100264772772789,
-0.3670354187488556,
-0.27303779125213623,
0.20489707589149475,
0.22122494876384735,
-0.02740742266178131,
0.3493446111679077,
-0.0393165722489357,
0.07254902273416519,
0.10675649344921112,
-0.13678018748760223,
-0.2495598942041397,
0.5068500638008118,
-0.32369938492774963,
-0.3541509509086609,
-0.038664888590574265,
-0.24560673534870148,
0.391724169254303,
-0.16426803171634674,
-0.38442474603652954,
-0.053809382021427155,
-0.10167133808135986,
0.05268348380923271,
0.16725879907608032,
-0.12821157276630402,
0.144290030002594,
0.20711089670658112,
-0.2650366723537445,
-0.1645529866218567,
0.20103402435779572,
-0.023960724472999573,
-0.11957951635122299,
-0.1271735429763794,
-0.021250829100608826,
0.3986443877220154,
-0.03167107701301575,
0.7439637184143066,
-0.08988012373447418,
-0.029071133583784103,
0.2985660433769226,
-0.20516817271709442,
0.14404112100601196,
-0.2538488507270813,
-0.2986951470375061,
-0.12352709472179413,
-0.09001991152763367,
0.017456907778978348,
0.255368709564209,
-0.023374110460281372,
-0.19590525329113007,
-0.02462697960436344,
0.051806848496198654,
-0.5353285670280457,
-0.3577952980995178,
-0.21319051086902618,
0.0603301115334034,
-0.07064355164766312,
0.12189401686191559,
0.330626517534256,
-0.122669517993927,
-0.1159651130437851,
0.21439164876937866,
0.19256898760795593,
-0.06369011849164963,
-0.16530801355838776,
-0.0668097734451294,
0.17198669910430908,
-0.4675302505493164,
0.1009795069694519,
-0.06318598985671997,
-0.12108403444290161,
0.025388922542333603,
-0.16732648015022278,
0.1392975151538849,
-0.2782610356807709,
0.3021124005317688,
-0.16182564198970795,
0.26511603593826294,
0.09662523865699768,
-0.13593730330467224,
-0.10122726857662201,
-0.13812188804149628,
-0.05467468500137329,
-0.2223973274230957,
0.3570302724838257,
0.4032679796218872,
-0.0001817569136619568,
-0.05260761082172394,
0.3525593876838684,
0.012492231093347073,
-0.16860325634479523,
-0.07281829416751862,
-0.21408617496490479,
-0.3344394564628601,
-0.39346668124198914,
-0.003411531448364258,
-0.17115415632724762,
0.3308514952659607,
-0.2467225342988968,
-0.29140353202819824,
-0.15958571434020996,
0.09452232718467712,
-0.08723215758800507,
0.1656852513551712,
0.32637545466423035,
-0.02846480719745159,
0.2792617082595825,
-0.21507760882377625,
-0.20698681473731995,
0.05782654881477356,
0.15381449460983276,
0.054322998970746994,
0.017920739948749542,
-0.2104175090789795,
-0.24357916414737701,
-0.06779692322015762,
0.2339928299188614,
-0.1961129754781723,
0.11313243210315704,
-0.25656870007514954,
0.3437701463699341,
0.007902960292994976,
-0.07704905420541763,
0.3279895484447479,
-0.04477175697684288,
-0.005365098360925913,
-0.3324660360813141,
0.4623365104198456,
-0.17107510566711426,
0.011193811893463135,
0.14542751014232635,
0.06448802351951599,
-0.18922875821590424,
0.5419318675994873,
0.14007902145385742,
0.7988923192024231,
0.28450077772140503,
0.19949433207511902,
0.4518373906612396,
0.18439632654190063,
0.4956328272819519,
-0.2964443564414978,
0.1979726105928421,
-0.5014528036117554,
0.15449158847332,
-0.011382320895791054,
0.12380969524383545,
-0.0957421138882637,
0.044643256813287735,
-0.15418511629104614,
0.016668852418661118,
-0.33916234970092773,
0.16193559765815735,
-0.22670122981071472,
-0.07170004397630692,
-0.3052423596382141,
-0.16060835123062134,
0.09454930573701859,
0.1747460514307022,
0.29473239183425903,
0.2048204392194748,
0.04755883291363716,
-0.1662503182888031,
0.20739781856536865,
-0.32909727096557617,
-0.23013320565223694,
0.2553898096084595,
0.06281990557909012,
0.1760869026184082,
-0.24489831924438477,
-0.4098685383796692,
-0.05242842063307762,
0.40921902656555176,
-0.06366878747940063,
0.10126179456710815,
-0.022895781323313713,
0.2765994369983673,
0.21972507238388062,
0.06700829416513443,
-0.014231163077056408,
0.013107712380588055,
0.37213611602783203,
-0.23085379600524902,
-0.24956804513931274,
-0.0022513195872306824,
-0.14784181118011475,
0.22229929268360138,
-0.22448372840881348,
0.22069969773292542,
0.2941857576370239,
0.015507984906435013,
-0.289719820022583,
0.06629719585180283,
-0.2585965692996979,
-0.486510694026947,
0.2759113907814026,
-0.23300595581531525,
-0.2051355093717575,
0.054380714893341064,
-0.20036545395851135,
-0.21720799803733826,
-0.12863625586032867,
0.3384062945842743,
0.0782475620508194,
0.14481447637081146,
0.3300706744194031,
0.0017000921070575714,
-0.28752750158309937,
-0.33436575531959534,
-0.1211073249578476,
0.09208047389984131,
-0.6184704899787903,
0.14439110457897186,
0.006913222372531891,
-0.051142483949661255,
-0.09680523723363876,
-0.08955295383930206,
-0.1966579556465149,
0.022591441869735718,
-0.239046111702919,
-0.40673959255218506,
0.08549883216619492,
0.027581870555877686,
0.07106228917837143,
0.2387336939573288,
0.029187612235546112,
-0.4032132625579834,
-0.12184854596853256,
0.11805806308984756,
-0.389984667301178,
0.16642117500305176,
-0.054811108857393265,
0.15195557475090027,
-0.25367841124534607,
0.24517685174942017,
0.07561179250478745,
0.10334853827953339,
0.2626621723175049,
0.1665097028017044,
-0.167806938290596,
-0.3601534962654114,
-0.28456878662109375,
0.1074286624789238,
-0.0013398472219705582,
-0.04780343919992447,
0.2853239178657532,
0.030134785920381546,
-0.19205091893672943,
-0.2141665369272232,
0.3930340111255646,
-0.04772880673408508,
-0.1344655603170395,
0.16660062968730927,
0.0779053196310997,
0.23717451095581055,
0.10685388743877411,
0.014832781627774239,
-0.06192876398563385,
0.642121434211731,
-0.06950885057449341,
0.09891930222511292,
0.07523474097251892,
-0.04244508221745491,
0.025370735675096512,
0.08107132464647293,
-0.18747158348560333,
0.3042633533477783,
0.2601737976074219,
-0.21726711094379425,
0.10368740558624268,
0.03787415102124214,
0.13245506584644318,
0.16182579100131989,
-0.27762651443481445,
-0.18813149631023407,
0.13873937726020813,
0.4102507531642914,
-0.3026036024093628,
-0.31009024381637573,
0.06223016977310181,
-0.14993515610694885,
0.2022458016872406,
-0.0244050994515419,
-0.037998784333467484,
-0.31667056679725647,
-0.24275635182857513,
0.24063819646835327,
0.2542457580566406,
-0.5270772576332092,
0.02953384444117546,
0.44990643858909607,
-0.13762366771697998,
0.206437349319458,
-0.08681968599557877,
-0.2415561079978943,
0.09310003370046616,
0.5315912365913391,
0.11782173067331314,
0.4310862123966217,
0.17664793133735657,
-0.08652512729167938,
-0.09069564193487167,
-0.3072262108325958,
0.3053937554359436,
0.0976213663816452,
-0.17441722750663757,
0.284537672996521,
0.2675817012786865,
0.15822744369506836,
0.24541963636875153,
-0.04844803735613823,
-0.38698893785476685,
0.22608868777751923,
-0.23187246918678284,
0.02801491692662239,
-0.08843779563903809,
-0.1724095642566681,
-0.060044899582862854,
0.47082778811454773,
0.0550532266497612,
0.2545154094696045,
0.09565769135951996,
0.12176281213760376,
-0.14268216490745544,
-0.24853281676769257,
0.16066309809684753,
-0.028246648609638214,
0.07460982352495193,
-0.2810758054256439,
0.06868020445108414,
0.38801199197769165,
0.027944207191467285,
-0.18532131612300873,
0.12518475949764252,
0.44440609216690063,
0.29973554611206055,
0.1832658350467682,
-0.2225385159254074,
-0.0825747698545456,
-0.08074717968702316,
-0.11892996728420258,
0.1267658770084381,
0.10003301501274109,
0.11775374412536621,
0.14025521278381348,
0.24047213792800903,
-0.3610631227493286,
-0.07615654170513153,
0.3780953586101532,
-0.04828339442610741,
-0.15165482461452484,
0.1728823482990265,
-0.21593981981277466,
-0.2740248143672943,
-0.1674831211566925,
0.0023212283849716187,
-0.3260318636894226,
-0.04433279484510422,
0.4911673367023468,
0.2987097203731537,
0.10183963924646378,
-0.25068730115890503,
0.13391649723052979,
-0.09141932427883148,
0.2199973464012146,
-0.09975859522819519,
-0.1078505590558052,
-0.15995748341083527,
-0.033930324018001556,
-0.502448558807373,
0.22591789066791534,
0.20844398438930511,
0.1441226303577423,
-0.1239396184682846,
0.17265291512012482,
-0.16092517971992493,
0.03964502364397049,
0.28521716594696045,
-0.29481497406959534,
0.20978137850761414,
0.2723448574542999,
-0.30191946029663086,
0.11155390739440918,
-0.18309099972248077,
-0.1350097805261612,
0.012066993862390518,
-0.5142561197280884,
0.0652615949511528,
-0.6222754716873169,
0.15443938970565796,
0.012096872553229332,
0.01568867266178131,
0.11798298358917236,
-0.3300043046474457,
0.6879630088806152,
-0.030488481745123863,
0.08927333354949951,
-0.3238643407821655,
0.07019335776567459,
-0.11653043329715729,
-0.12631458044052124,
-0.03545735776424408,
0.21259886026382446,
0.11701001226902008,
0.4363550543785095,
0.18684841692447662,
0.017002977430820465,
-0.13045749068260193,
0.16578954458236694,
-0.0357641838490963,
0.08965115249156952,
-0.06389279663562775,
0.07154246419668198,
0.02667997032403946,
0.1353255659341812,
0.1439731866121292,
0.2228507399559021,
-0.02796284854412079,
0.1447974145412445,
-0.19603866338729858,
-0.5424208641052246,
0.3385098874568939,
-0.28928717970848083,
-0.35592371225357056,
-0.17975389957427979,
0.29828548431396484,
0.2000325322151184,
-0.006408926099538803,
-0.4808538556098938,
-0.012663990259170532,
0.2559331953525543,
0.11588793247938156,
-0.17204557359218597,
0.2057778537273407,
0.2289728820323944,
0.04885916784405708,
-0.028367936611175537,
0.18097811937332153,
0.1486263871192932,
-0.18799376487731934,
0.2086602747440338,
-0.25266093015670776
] |
https://github.com/huggingface/datasets/issues/4386 | Bug for wiki_auto_asset_turk from GEM | Hi again @StevenTang1998,
I don't see any problem when loading `totto` dataset:
```python
In [4]: import datasets
...: ds = datasets.load_dataset("totto")
Downloading builder script: 5.58kB [00:00, 5.33MB/s]
Downloading metadata: 2.78kB [00:00, 2.96MB/s]
Using custom data configuration default
Downloading and preparing dataset totto/default (download: 179.03 MiB, generated: 706.59 MiB, post-processed: Unknown size, total: 885.62 MiB) to .../.cache/huggingface/datasets/totto/default/1.0.0/263c85871e5451bc892c65ca0306c0629eb7beb161e0eb998f56231562335dd2...
Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 188M/188M [00:32<00:00, 5.77MB/s]
Dataset totto downloaded and prepared to .../.cache/huggingface/datasets/totto/default/1.0.0/263c85871e5451bc892c65ca0306c0629eb7beb161e0eb998f56231562335dd2. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 147.95it/s]
In [5]: ds
Out[5]:
DatasetDict({
train: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 120761
})
validation: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 7700
})
test: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 7700
})
})
``` | ## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
``` | 134 | Bug for wiki_auto_asset_turk from GEM
## Describe the bug
The script of wiki_auto_asset_turk for GEM may be out of date.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('gem', 'wiki_auto_asset_turk')
```
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1731, in load_dataset
builder_instance.download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 640, in download_and_prepare
self._download_and_prepare(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 1158, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/builder.py", line 707, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/tangtianyi/.cache/huggingface/modules/datasets_modules/datasets/gem/982a54473b12c6a6e40d4356e025fb7172a5bb2065e655e2c1af51f2b3cf4ca1/gem.py", line 538, in _split_generators
dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 416, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 294, in download
downloaded_path_or_paths = map_nested(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 351, in map_nested
mapped = [
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 352, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 288, in _single_map_nested
return function(data_struct)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 320, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 234, in cached_path
output_path = get_from_cache(
File "/home/tangtianyi/miniconda3/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 579, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/facebookresearch/asset/raw/master/dataset/asset.test.orig
```
Hi again @StevenTang1998,
I don't see any problem when loading `totto` dataset:
```python
In [4]: import datasets
...: ds = datasets.load_dataset("totto")
Downloading builder script: 5.58kB [00:00, 5.33MB/s]
Downloading metadata: 2.78kB [00:00, 2.96MB/s]
Using custom data configuration default
Downloading and preparing dataset totto/default (download: 179.03 MiB, generated: 706.59 MiB, post-processed: Unknown size, total: 885.62 MiB) to .../.cache/huggingface/datasets/totto/default/1.0.0/263c85871e5451bc892c65ca0306c0629eb7beb161e0eb998f56231562335dd2...
Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 188M/188M [00:32<00:00, 5.77MB/s]
Dataset totto downloaded and prepared to .../.cache/huggingface/datasets/totto/default/1.0.0/263c85871e5451bc892c65ca0306c0629eb7beb161e0eb998f56231562335dd2. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 147.95it/s]
In [5]: ds
Out[5]:
DatasetDict({
train: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 120761
})
validation: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 7700
})
test: Dataset({
features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
num_rows: 7700
})
})
``` | [
-0.187733992934227,
-0.1669272780418396,
-0.10573554039001465,
0.3018324375152588,
0.33037495613098145,
-0.02343079447746277,
0.7409369349479675,
0.5015612840652466,
0.13661853969097137,
0.16635775566101074,
0.2308674454689026,
0.44556257128715515,
0.053311362862586975,
-0.25278908014297485,
0.08449742943048477,
-0.1733134537935257,
0.16505743563175201,
0.025424867868423462,
0.060379840433597565,
-0.1526317000389099,
-0.2187018096446991,
0.29764029383659363,
-0.1038627177476883,
-0.03000028431415558,
-0.36032333970069885,
-0.013252107426524162,
0.09708237648010254,
-0.05011765658855438,
-0.05393608659505844,
-0.24513830244541168,
-0.11450190097093582,
-0.14970336854457855,
-0.13497303426265717,
0.2672877907752991,
-0.00010537065099924803,
0.06604401767253876,
0.2611876130104065,
0.026785733178257942,
-0.16069450974464417,
-0.03396539390087128,
-0.07484883815050125,
-0.1780986785888672,
0.015442639589309692,
-0.46917492151260376,
-0.042941220104694366,
0.2425203174352646,
-0.21238180994987488,
0.19958266615867615,
0.2402765452861786,
0.2606534957885742,
0.34883710741996765,
0.4523056745529175,
0.05412251129746437,
-0.1372791826725006,
0.29538944363594055,
-0.46522223949432373,
-0.1132965162396431,
-0.20462320744991302,
-0.2410775125026703,
-0.0381537601351738,
-0.12727463245391846,
0.5845193862915039,
-0.24252749979496002,
0.03539089113473892,
-0.04855800420045853,
0.03854869678616524,
0.03539927676320076,
-0.3668389916419983,
0.3045104444026947,
0.14131642878055573,
0.43398889899253845,
-0.06617218255996704,
-0.22206898033618927,
-0.07195046544075012,
-0.011535984463989735,
0.06476934999227524,
0.2257479727268219,
0.3142949640750885,
-0.08829779922962189,
0.029770854860544205,
-0.12477388232946396,
0.08746431022882462,
0.023892991244792938,
0.12249797582626343,
-0.21890807151794434,
0.3386088013648987,
-0.09103548526763916,
0.017195280641317368,
-0.05990385636687279,
-0.10027472674846649,
-0.11955036967992783,
-0.11782272160053253,
-0.28293007612228394,
0.06000186502933502,
-0.16870076954364777,
-0.20918907225131989,
0.31669723987579346,
-0.05554205924272537,
0.023520514369010925,
0.042720213532447815,
0.15643484890460968,
0.1253843605518341,
-0.14585761725902557,
0.18111148476600647,
-0.06804147362709045,
0.3054145872592926,
-0.07446721941232681,
-0.22191409766674042,
0.20017686486244202,
0.16827410459518433,
-0.15968205034732819,
0.04592204466462135,
-0.011913232505321503,
-0.21671687066555023,
0.31651148200035095,
-0.05009981244802475,
0.10307255387306213,
0.1397707611322403,
-0.07614002376794815,
0.18703138828277588,
0.31505900621414185,
0.03737679123878479,
-0.1458345204591751,
0.314561665058136,
-0.08057031780481339,
-0.014965090900659561,
-0.05778961256146431,
0.1910301297903061,
-0.29221001267433167,
0.0687212198972702,
-0.21113190054893494,
0.26347237825393677,
0.0540609173476696,
-0.14674274623394012,
-0.09722994267940521,
-0.02309880033135414,
0.49466273188591003,
0.14083009958267212,
-0.24629054963588715,
-0.15469294786453247,
0.029621174558997154,
0.01553826592862606,
0.1938656121492386,
0.2728927731513977,
0.06081089749932289,
0.2143445461988449,
0.14542296528816223,
-0.24070797860622406,
0.0007221624255180359,
-0.013349488377571106,
-0.43753862380981445,
-0.33780375123023987,
-0.5317656993865967,
0.3395082950592041,
-0.01683097891509533,
0.027242962270975113,
0.19747675955295563,
0.13817371428012848,
0.5045561194419861,
-0.2562766373157501,
0.13821600377559662,
-0.05607122927904129,
-0.25861087441444397,
-0.1258736103773117,
0.14325103163719177,
0.41772425174713135,
-0.3364108204841614,
-0.030773144215345383,
-0.12045338749885559,
0.03705473244190216,
0.22082087397575378,
-0.042336445301771164,
-0.07828149944543839,
-0.07183743268251419,
-0.1747620403766632,
0.2981664538383484,
0.14897143840789795,
-0.15472349524497986,
-0.47073855996131897,
-0.10703729093074799,
-0.15939337015151978,
0.11407006531953812,
0.15658949315547943,
0.15022222697734833,
0.2855539321899414,
-0.004087383858859539,
0.13407215476036072,
0.28786522150039673,
0.12492208927869797,
0.17252379655838013,
-0.5078421235084534,
-0.3517095148563385,
-0.15001223981380463,
-0.1455731987953186,
0.07396852970123291,
-0.07236713916063309,
0.16386684775352478,
0.03375488147139549,
0.1892860382795334,
0.026687487959861755,
-0.045603178441524506,
-0.04730571061372757,
0.02071397565305233,
-0.07345806062221527,
0.13953246176242828,
-0.05730798840522766,
-0.013099521398544312,
0.21314185857772827,
0.4854757487773895,
0.31927359104156494,
-0.08897948265075684,
-0.1556706726551056,
-0.10858699679374695,
-0.11024732142686844,
-0.35316306352615356,
-0.24475029110908508,
0.25999411940574646,
0.21308530867099762,
-0.05381760746240616,
0.1960826814174652,
-0.030079681426286697,
-0.35380107164382935,
0.0591849759221077,
-0.15070883929729462,
-0.10653835535049438,
0.11735880374908447,
-0.12760184705257416,
-0.022045422345399857,
-0.1514989137649536,
0.10012036561965942,
0.01356496661901474,
0.12473004311323166,
-0.2276831865310669,
0.2184816300868988,
-0.14824262261390686,
0.4246782064437866,
-0.09860248118638992,
-0.22193275392055511,
0.15917958319187164,
0.029891785234212875,
0.06197869032621384,
0.1253819614648819,
0.06660450994968414,
-0.01698216050863266,
0.16468679904937744,
0.4277077317237854,
0.3770754337310791,
0.10822056233882904,
-0.022603219375014305,
0.21100977063179016,
0.20462913811206818,
0.027830805629491806,
0.19032447040081024,
-0.4856310486793518,
-0.08231410384178162,
-0.05266634002327919,
-0.2023036926984787,
-0.09402391314506531,
-0.18850469589233398,
0.5502774715423584,
0.7330446839332581,
0.1219671219587326,
0.27803805470466614,
-0.058012597262859344,
-0.14855346083641052,
-0.09116774052381516,
0.1488383561372757,
0.5148152709007263,
0.17676398158073425,
0.2093600481748581,
-0.05920090153813362,
-0.24854710698127747,
0.03333362936973572,
-0.2580622136592865,
0.3193987309932709,
0.20269668102264404,
0.2062171846628189,
0.357862651348114,
0.3114629089832306,
0.09418817609548569,
-0.4008297026157379,
-0.03307114169001579,
-0.1267743855714798,
0.0859016478061676,
-0.07829223573207855,
0.07101643085479736,
-0.10626319795846939,
0.21011224389076233,
0.018213791772723198,
-0.1323622614145279,
-0.033439751714468,
-0.2020367681980133,
0.34711503982543945,
-0.014684680849313736,
-0.31266987323760986,
0.30233123898506165,
0.06547491252422333,
-0.00900152325630188,
-0.011536195874214172,
-0.0940355733036995,
-0.4192047715187073,
-0.3149334490299225,
-0.08980847150087357,
0.06484824419021606,
0.165073424577713,
-0.17334617674350739,
0.3634183406829834,
-0.0468071773648262,
-0.21153225004673004,
-0.18827730417251587,
-0.4674341380596161,
0.11617524176836014,
-0.016731593757867813,
0.31012827157974243,
0.07145091891288757,
0.18140122294425964,
-0.05246638506650925,
-0.3490624725818634,
0.2035827934741974,
-0.012087369337677956,
-0.15972177684307098,
0.21226897835731506,
0.08200976997613907,
-0.10524802654981613,
-0.2953498363494873,
-0.4323243796825409,
-0.100264772772789,
-0.3670354187488556,
-0.27303779125213623,
0.20489707589149475,
0.22122494876384735,
-0.02740742266178131,
0.3493446111679077,
-0.0393165722489357,
0.07254902273416519,
0.10675649344921112,
-0.13678018748760223,
-0.2495598942041397,
0.5068500638008118,
-0.32369938492774963,
-0.3541509509086609,
-0.038664888590574265,
-0.24560673534870148,
0.391724169254303,
-0.16426803171634674,
-0.38442474603652954,
-0.053809382021427155,
-0.10167133808135986,
0.05268348380923271,
0.16725879907608032,
-0.12821157276630402,
0.144290030002594,
0.20711089670658112,
-0.2650366723537445,
-0.1645529866218567,
0.20103402435779572,
-0.023960724472999573,
-0.11957951635122299,
-0.1271735429763794,
-0.021250829100608826,
0.3986443877220154,
-0.03167107701301575,
0.7439637184143066,
-0.08988012373447418,
-0.029071133583784103,
0.2985660433769226,
-0.20516817271709442,
0.14404112100601196,
-0.2538488507270813,
-0.2986951470375061,
-0.12352709472179413,
-0.09001991152763367,
0.017456907778978348,
0.255368709564209,
-0.023374110460281372,
-0.19590525329113007,
-0.02462697960436344,
0.051806848496198654,
-0.5353285670280457,
-0.3577952980995178,
-0.21319051086902618,
0.0603301115334034,
-0.07064355164766312,
0.12189401686191559,
0.330626517534256,
-0.122669517993927,
-0.1159651130437851,
0.21439164876937866,
0.19256898760795593,
-0.06369011849164963,
-0.16530801355838776,
-0.0668097734451294,
0.17198669910430908,
-0.4675302505493164,
0.1009795069694519,
-0.06318598985671997,
-0.12108403444290161,
0.025388922542333603,
-0.16732648015022278,
0.1392975151538849,
-0.2782610356807709,
0.3021124005317688,
-0.16182564198970795,
0.26511603593826294,
0.09662523865699768,
-0.13593730330467224,
-0.10122726857662201,
-0.13812188804149628,
-0.05467468500137329,
-0.2223973274230957,
0.3570302724838257,
0.4032679796218872,
-0.0001817569136619568,
-0.05260761082172394,
0.3525593876838684,
0.012492231093347073,
-0.16860325634479523,
-0.07281829416751862,
-0.21408617496490479,
-0.3344394564628601,
-0.39346668124198914,
-0.003411531448364258,
-0.17115415632724762,
0.3308514952659607,
-0.2467225342988968,
-0.29140353202819824,
-0.15958571434020996,
0.09452232718467712,
-0.08723215758800507,
0.1656852513551712,
0.32637545466423035,
-0.02846480719745159,
0.2792617082595825,
-0.21507760882377625,
-0.20698681473731995,
0.05782654881477356,
0.15381449460983276,
0.054322998970746994,
0.017920739948749542,
-0.2104175090789795,
-0.24357916414737701,
-0.06779692322015762,
0.2339928299188614,
-0.1961129754781723,
0.11313243210315704,
-0.25656870007514954,
0.3437701463699341,
0.007902960292994976,
-0.07704905420541763,
0.3279895484447479,
-0.04477175697684288,
-0.005365098360925913,
-0.3324660360813141,
0.4623365104198456,
-0.17107510566711426,
0.011193811893463135,
0.14542751014232635,
0.06448802351951599,
-0.18922875821590424,
0.5419318675994873,
0.14007902145385742,
0.7988923192024231,
0.28450077772140503,
0.19949433207511902,
0.4518373906612396,
0.18439632654190063,
0.4956328272819519,
-0.2964443564414978,
0.1979726105928421,
-0.5014528036117554,
0.15449158847332,
-0.011382320895791054,
0.12380969524383545,
-0.0957421138882637,
0.044643256813287735,
-0.15418511629104614,
0.016668852418661118,
-0.33916234970092773,
0.16193559765815735,
-0.22670122981071472,
-0.07170004397630692,
-0.3052423596382141,
-0.16060835123062134,
0.09454930573701859,
0.1747460514307022,
0.29473239183425903,
0.2048204392194748,
0.04755883291363716,
-0.1662503182888031,
0.20739781856536865,
-0.32909727096557617,
-0.23013320565223694,
0.2553898096084595,
0.06281990557909012,
0.1760869026184082,
-0.24489831924438477,
-0.4098685383796692,
-0.05242842063307762,
0.40921902656555176,
-0.06366878747940063,
0.10126179456710815,
-0.022895781323313713,
0.2765994369983673,
0.21972507238388062,
0.06700829416513443,
-0.014231163077056408,
0.013107712380588055,
0.37213611602783203,
-0.23085379600524902,
-0.24956804513931274,
-0.0022513195872306824,
-0.14784181118011475,
0.22229929268360138,
-0.22448372840881348,
0.22069969773292542,
0.2941857576370239,
0.015507984906435013,
-0.289719820022583,
0.06629719585180283,
-0.2585965692996979,
-0.486510694026947,
0.2759113907814026,
-0.23300595581531525,
-0.2051355093717575,
0.054380714893341064,
-0.20036545395851135,
-0.21720799803733826,
-0.12863625586032867,
0.3384062945842743,
0.0782475620508194,
0.14481447637081146,
0.3300706744194031,
0.0017000921070575714,
-0.28752750158309937,
-0.33436575531959534,
-0.1211073249578476,
0.09208047389984131,
-0.6184704899787903,
0.14439110457897186,
0.006913222372531891,
-0.051142483949661255,
-0.09680523723363876,
-0.08955295383930206,
-0.1966579556465149,
0.022591441869735718,
-0.239046111702919,
-0.40673959255218506,
0.08549883216619492,
0.027581870555877686,
0.07106228917837143,
0.2387336939573288,
0.029187612235546112,
-0.4032132625579834,
-0.12184854596853256,
0.11805806308984756,
-0.389984667301178,
0.16642117500305176,
-0.054811108857393265,
0.15195557475090027,
-0.25367841124534607,
0.24517685174942017,
0.07561179250478745,
0.10334853827953339,
0.2626621723175049,
0.1665097028017044,
-0.167806938290596,
-0.3601534962654114,
-0.28456878662109375,
0.1074286624789238,
-0.0013398472219705582,
-0.04780343919992447,
0.2853239178657532,
0.030134785920381546,
-0.19205091893672943,
-0.2141665369272232,
0.3930340111255646,
-0.04772880673408508,
-0.1344655603170395,
0.16660062968730927,
0.0779053196310997,
0.23717451095581055,
0.10685388743877411,
0.014832781627774239,
-0.06192876398563385,
0.642121434211731,
-0.06950885057449341,
0.09891930222511292,
0.07523474097251892,
-0.04244508221745491,
0.025370735675096512,
0.08107132464647293,
-0.18747158348560333,
0.3042633533477783,
0.2601737976074219,
-0.21726711094379425,
0.10368740558624268,
0.03787415102124214,
0.13245506584644318,
0.16182579100131989,
-0.27762651443481445,
-0.18813149631023407,
0.13873937726020813,
0.4102507531642914,
-0.3026036024093628,
-0.31009024381637573,
0.06223016977310181,
-0.14993515610694885,
0.2022458016872406,
-0.0244050994515419,
-0.037998784333467484,
-0.31667056679725647,
-0.24275635182857513,
0.24063819646835327,
0.2542457580566406,
-0.5270772576332092,
0.02953384444117546,
0.44990643858909607,
-0.13762366771697998,
0.206437349319458,
-0.08681968599557877,
-0.2415561079978943,
0.09310003370046616,
0.5315912365913391,
0.11782173067331314,
0.4310862123966217,
0.17664793133735657,
-0.08652512729167938,
-0.09069564193487167,
-0.3072262108325958,
0.3053937554359436,
0.0976213663816452,
-0.17441722750663757,
0.284537672996521,
0.2675817012786865,
0.15822744369506836,
0.24541963636875153,
-0.04844803735613823,
-0.38698893785476685,
0.22608868777751923,
-0.23187246918678284,
0.02801491692662239,
-0.08843779563903809,
-0.1724095642566681,
-0.060044899582862854,
0.47082778811454773,
0.0550532266497612,
0.2545154094696045,
0.09565769135951996,
0.12176281213760376,
-0.14268216490745544,
-0.24853281676769257,
0.16066309809684753,
-0.028246648609638214,
0.07460982352495193,
-0.2810758054256439,
0.06868020445108414,
0.38801199197769165,
0.027944207191467285,
-0.18532131612300873,
0.12518475949764252,
0.44440609216690063,
0.29973554611206055,
0.1832658350467682,
-0.2225385159254074,
-0.0825747698545456,
-0.08074717968702316,
-0.11892996728420258,
0.1267658770084381,
0.10003301501274109,
0.11775374412536621,
0.14025521278381348,
0.24047213792800903,
-0.3610631227493286,
-0.07615654170513153,
0.3780953586101532,
-0.04828339442610741,
-0.15165482461452484,
0.1728823482990265,
-0.21593981981277466,
-0.2740248143672943,
-0.1674831211566925,
0.0023212283849716187,
-0.3260318636894226,
-0.04433279484510422,
0.4911673367023468,
0.2987097203731537,
0.10183963924646378,
-0.25068730115890503,
0.13391649723052979,
-0.09141932427883148,
0.2199973464012146,
-0.09975859522819519,
-0.1078505590558052,
-0.15995748341083527,
-0.033930324018001556,
-0.502448558807373,
0.22591789066791534,
0.20844398438930511,
0.1441226303577423,
-0.1239396184682846,
0.17265291512012482,
-0.16092517971992493,
0.03964502364397049,
0.28521716594696045,
-0.29481497406959534,
0.20978137850761414,
0.2723448574542999,
-0.30191946029663086,
0.11155390739440918,
-0.18309099972248077,
-0.1350097805261612,
0.012066993862390518,
-0.5142561197280884,
0.0652615949511528,
-0.6222754716873169,
0.15443938970565796,
0.012096872553229332,
0.01568867266178131,
0.11798298358917236,
-0.3300043046474457,
0.6879630088806152,
-0.030488481745123863,
0.08927333354949951,
-0.3238643407821655,
0.07019335776567459,
-0.11653043329715729,
-0.12631458044052124,
-0.03545735776424408,
0.21259886026382446,
0.11701001226902008,
0.4363550543785095,
0.18684841692447662,
0.017002977430820465,
-0.13045749068260193,
0.16578954458236694,
-0.0357641838490963,
0.08965115249156952,
-0.06389279663562775,
0.07154246419668198,
0.02667997032403946,
0.1353255659341812,
0.1439731866121292,
0.2228507399559021,
-0.02796284854412079,
0.1447974145412445,
-0.19603866338729858,
-0.5424208641052246,
0.3385098874568939,
-0.28928717970848083,
-0.35592371225357056,
-0.17975389957427979,
0.29828548431396484,
0.2000325322151184,
-0.006408926099538803,
-0.4808538556098938,
-0.012663990259170532,
0.2559331953525543,
0.11588793247938156,
-0.17204557359218597,
0.2057778537273407,
0.2289728820323944,
0.04885916784405708,
-0.028367936611175537,
0.18097811937332153,
0.1486263871192932,
-0.18799376487731934,
0.2086602747440338,
-0.25266093015670776
] |
https://github.com/huggingface/datasets/issues/4381 | Bug in caching 2 datasets both with the same builder class name | Hi @NouamaneTazi, thanks for reporting.
Please note that both datasets are cached in the same directory because their loading builder classes have the same name: `class MTOP(datasets.GeneratorBasedBuilder)`.
You should name their builder classes differently, e.g.:
- `MtopDomain`
- `MtopIntent` | ## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datasets , you will get the opposite datasets loaded (difference is here in terms of the label and label_text).
## Steps to reproduce the bug
```python
import datasets
dataset = datasets.load_dataset("mteb/mtop_intent", "en")
print(dataset['train'][0])
dataset = datasets.load_dataset("mteb/mtop_domain", "en")
print(dataset['train'][0])
```
## Expected results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_intent/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_domain/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 0, 'label_text': 'messaging'}
```
## Actual results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.1
- Platform: macOS-12.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 39 | Bug in caching 2 datasets both with the same builder class name
## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datasets , you will get the opposite datasets loaded (difference is here in terms of the label and label_text).
## Steps to reproduce the bug
```python
import datasets
dataset = datasets.load_dataset("mteb/mtop_intent", "en")
print(dataset['train'][0])
dataset = datasets.load_dataset("mteb/mtop_domain", "en")
print(dataset['train'][0])
```
## Expected results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_intent/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_domain/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 0, 'label_text': 'messaging'}
```
## Actual results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.1
- Platform: macOS-12.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Hi @NouamaneTazi, thanks for reporting.
Please note that both datasets are cached in the same directory because their loading builder classes have the same name: `class MTOP(datasets.GeneratorBasedBuilder)`.
You should name their builder classes differently, e.g.:
- `MtopDomain`
- `MtopIntent` | [
-0.08650732040405273,
0.0836787074804306,
-0.05894135311245918,
0.678613543510437,
0.3177180290222168,
0.10972481220960617,
0.288614958524704,
0.12417106330394745,
-0.026603013277053833,
0.21588879823684692,
-0.18446184694766998,
0.07770781219005585,
-0.019409462809562683,
-0.14339837431907654,
-0.03437679633498192,
-0.08632376790046692,
0.012010037899017334,
-0.025559574365615845,
0.007203906774520874,
0.05780794471502304,
0.06369272619485855,
0.18577207624912262,
0.03391809016466141,
-0.10374210774898529,
-0.4546586573123932,
0.3139326274394989,
-0.06412093341350555,
0.0658423975110054,
0.24079973995685577,
-0.31609636545181274,
0.5563620328903198,
0.07740932703018188,
-0.22601185739040375,
0.7476652264595032,
-0.00011496594379423186,
0.06783042848110199,
0.236871138215065,
0.18130509555339813,
-0.24887214601039886,
-0.20855365693569183,
-0.14162710309028625,
-0.014960551634430885,
-0.04056571424007416,
-0.14342613518238068,
-0.29163461923599243,
0.13010993599891663,
0.016076236963272095,
-0.5358856320381165,
0.3626410961151123,
0.19791831076145172,
0.2352859526872635,
0.13248419761657715,
-0.34420090913772583,
-0.004631913732737303,
0.33600181341171265,
-0.11281444132328033,
-0.03142852708697319,
0.12076441943645477,
0.15285170078277588,
0.33375948667526245,
-0.041898615658283234,
0.4732626676559448,
-0.2568715512752533,
0.1182645708322525,
0.37452974915504456,
0.2877703011035919,
0.11112242192029953,
-0.1468978226184845,
0.2440672218799591,
0.10986889153718948,
0.7151800990104675,
-0.1459241509437561,
-0.21391619741916656,
-0.3972592055797577,
-0.021123915910720825,
-0.05633481591939926,
0.4242595136165619,
0.06977414339780807,
0.07321584224700928,
0.12050347030162811,
-0.3795925974845886,
0.03704919293522835,
0.12961705029010773,
-0.006630167365074158,
-0.13332009315490723,
-0.09910033643245697,
-0.19050650298595428,
0.15434229373931885,
-0.1945858895778656,
0.022493962198495865,
0.5375409722328186,
-0.41602084040641785,
-0.09142781794071198,
0.22672222554683685,
-0.17796452343463898,
-0.03677404299378395,
0.08525968343019485,
0.379203200340271,
-0.19257038831710815,
0.20860101282596588,
-0.1006983071565628,
-0.04938461631536484,
-0.1262034922838211,
-0.06025531142950058,
0.014716201461851597,
0.49308863282203674,
0.14501094818115234,
0.16869568824768066,
0.03469231724739075,
0.03266046941280365,
-0.6281253695487976,
0.009208662435412407,
0.04525108262896538,
-0.3204234540462494,
0.41453033685684204,
-0.013458527624607086,
0.18675380945205688,
-0.29180777072906494,
-0.2847149968147278,
0.10819154977798462,
-0.016479121521115303,
-0.15392693877220154,
0.17414166033267975,
0.35914626717567444,
-0.29430854320526123,
0.07656608521938324,
-0.11202476918697357,
0.18896374106407166,
-0.14529761672019958,
-0.08384213596582413,
-0.3682209849357605,
-0.23215804994106293,
-0.2795264720916748,
0.12973274290561676,
0.12497638165950775,
-0.2478102147579193,
0.2427690029144287,
0.3134775161743164,
0.006947673857212067,
-0.28035682439804077,
0.19264952838420868,
-0.056231893599033356,
0.022874467074871063,
0.011297143995761871,
-0.026637643575668335,
0.4759511947631836,
0.16812783479690552,
-0.11819711327552795,
-0.012528926134109497,
0.0999940037727356,
-0.5714156031608582,
-0.20395512878894806,
0.12859083712100983,
0.20400391519069672,
-0.1290307343006134,
0.12671902775764465,
0.000567220151424408,
0.10521829128265381,
0.4523720443248749,
-0.26159143447875977,
0.09895171225070953,
0.1721859723329544,
-0.5354605317115784,
-0.16766111552715302,
0.07950880378484726,
0.46281492710113525,
0.089230477809906,
-0.3265517055988312,
-0.14325666427612305,
0.17969463765621185,
-0.016544610261917114,
0.2142309993505478,
-0.3303886950016022,
0.1286678910255432,
-0.4154239594936371,
-0.28867730498313904,
0.25407013297080994,
-0.49209219217300415,
-0.674101710319519,
0.09783613681793213,
-0.20163317024707794,
0.27882304787635803,
0.21528507769107819,
0.11119295656681061,
-0.2850309908390045,
-0.2635963261127472,
0.2661403715610504,
0.11512596905231476,
-0.12035907804965973,
0.10311893373727798,
-0.2421841323375702,
-0.2390015721321106,
0.16099077463150024,
-0.035902850329875946,
0.17454297840595245,
0.1915789246559143,
-0.003330409526824951,
0.2644219994544983,
0.17028264701366425,
-0.04978414252400398,
0.0015769719611853361,
0.2959810495376587,
-0.12680312991142273,
-0.02721412479877472,
-0.10035591572523117,
-0.2642103433609009,
-0.455676794052124,
0.4737628996372223,
-0.285766065120697,
-0.1686750054359436,
0.022817611694335938,
-0.15578481554985046,
-0.07690390944480896,
-0.33514440059661865,
-0.37040528655052185,
-0.2263633906841278,
0.09160863608121872,
0.2806461453437805,
0.14491674304008484,
-0.07620567083358765,
0.08968867361545563,
0.4047017991542816,
0.16833427548408508,
0.048571620136499405,
-0.1646488904953003,
0.231343612074852,
0.12330519407987595,
-0.02373383939266205,
-0.3490389585494995,
0.0755772739648819,
0.34273761510849,
0.025796711444854736,
-0.17382416129112244,
0.20624107122421265,
-0.12883658707141876,
0.40645402669906616,
-0.12148790806531906,
0.019944339990615845,
0.1989722102880478,
-0.16314291954040527,
0.0711013674736023,
0.160684734582901,
0.08132953941822052,
-0.19420480728149414,
-0.09501995891332626,
0.3714045286178589,
0.07126300036907196,
0.18148383498191833,
0.0394153818488121,
-0.33054667711257935,
-0.17453689873218536,
-0.12645785510540009,
0.09499629586935043,
-0.3491690754890442,
0.3111180365085602,
0.009318911470472813,
0.45434242486953735,
0.3903522193431854,
-0.08582207560539246,
0.26574406027793884,
0.351836234331131,
0.254710853099823,
-0.05707984417676926,
-0.22179043292999268,
-0.3509525954723358,
0.07217930257320404,
-0.1322818249464035,
0.25418391823768616,
0.5292608141899109,
0.14381662011146545,
0.32207930088043213,
0.22159695625305176,
0.00012268219143152237,
-0.10841956734657288,
0.21227958798408508,
0.05714236944913864,
0.0664992555975914,
0.21521008014678955,
0.3265747129917145,
0.1170002743601799,
-0.2197733223438263,
0.08343060314655304,
0.1304580122232437,
-0.1811974197626114,
-0.23291057348251343,
0.19260236620903015,
-0.24380968511104584,
-0.22625061869621277,
-0.5473935604095459,
-0.3193071186542511,
-0.25278276205062866,
-0.29880350828170776,
-0.19967502355575562,
0.29982951283454895,
-0.05618145316839218,
0.01886378601193428,
-0.12572938203811646,
0.13110186159610748,
-0.14195670187473297,
-0.04099222272634506,
-0.1019914448261261,
0.04265722259879112,
-0.17232808470726013,
-0.018323980271816254,
0.3206963837146759,
-0.34743255376815796,
0.15499669313430786,
-0.36891409754753113,
-0.19031156599521637,
-0.25038865208625793,
-0.3043367564678192,
0.10065155476331711,
0.17480605840682983,
0.35008496046066284,
-0.1931491196155548,
-0.10963787138462067,
0.09903848171234131,
-0.10909217596054077,
0.25987204909324646,
-0.12902438640594482,
-0.07721814513206482,
-0.19086386263370514,
0.09456951171159744,
0.1363961547613144,
-0.10193033516407013,
-0.209745854139328,
-0.1544092446565628,
-0.12997283041477203,
-0.22335265576839447,
-0.04173285514116287,
-0.045434385538101196,
0.28995367884635925,
-0.21949851512908936,
0.10252125561237335,
-0.08430328965187073,
0.34606146812438965,
-0.373576819896698,
-0.6214452981948853,
0.20341500639915466,
-0.22606593370437622,
-0.08290891349315643,
-0.08140946924686432,
-0.004220956936478615,
0.25808951258659363,
-0.2520133852958679,
-0.5211543440818787,
-0.0831933319568634,
-0.306776762008667,
0.13428997993469238,
-0.011664610356092453,
0.03798583149909973,
-0.10481341183185577,
0.08793629705905914,
-0.015842754393815994,
-0.16179624199867249,
-0.11924746632575989,
-0.1640007495880127,
-0.20110127329826355,
0.29814448952674866,
-0.24743571877479553,
-0.03376513719558716,
-0.1159675270318985,
0.6535545587539673,
0.28955215215682983,
0.15094327926635742,
0.2942337095737457,
0.06968293339014053,
0.36530807614326477,
-0.2485305368900299,
-0.33515459299087524,
0.20244811475276947,
0.04855761677026749,
-0.23728066682815552,
0.3607085943222046,
0.12414655089378357,
-0.011823169887065887,
-0.11536281555891037,
0.07066501677036285,
0.020493626594543457,
-0.2650817036628723,
-0.1536468118429184,
-0.3435324728488922,
-0.1915193796157837,
0.26153531670570374,
-0.03146553784608841,
-0.33590826392173767,
-0.2166651487350464,
0.055230531841516495,
-0.041792213916778564,
-0.13964605331420898,
0.07150503247976303,
-0.1445128321647644,
-0.04791177064180374,
-0.28815335035324097,
0.14990152418613434,
0.15116706490516663,
-0.13966593146324158,
-0.02032330632209778,
0.0626281276345253,
0.08028388023376465,
0.07017119228839874,
0.6242516040802002,
-0.025078458711504936,
0.3104034662246704,
-0.037346240133047104,
-0.008787564933300018,
-0.18533313274383545,
-0.2350977510213852,
0.13039986789226532,
0.20674706995487213,
0.08689694106578827,
0.3454832136631012,
0.030664563179016113,
-0.09261654317378998,
-0.06787598133087158,
0.1857292503118515,
-0.23605936765670776,
-0.31501445174217224,
-0.16328227519989014,
0.19135811924934387,
-0.042924150824546814,
-0.08705661445856094,
0.10134998708963394,
0.3163772523403168,
-0.1895231306552887,
-0.1252335011959076,
-0.11671796441078186,
0.1864212155342102,
0.09873896092176437,
-0.13051475584506989,
0.43573686480522156,
-0.005067729856818914,
0.24901357293128967,
0.2334306538105011,
0.31018349528312683,
-0.12224368751049042,
0.9285032749176025,
-0.18075746297836304,
-0.19651395082473755,
0.08274488896131516,
0.014779754914343357,
-0.12128046900033951,
0.49445509910583496,
-0.15169376134872437,
0.04701235890388489,
0.19398346543312073,
0.11570996046066284,
-0.1393841654062271,
0.10281267017126083,
0.20754307508468628,
0.22253364324569702,
-0.3880935609340668,
-0.413776695728302,
0.4506726861000061,
0.29568272829055786,
-0.17067323625087738,
0.23691411316394806,
-0.00434643030166626,
-0.430265873670578,
0.0044260174036026,
-0.22061395645141602,
0.9077836275100708,
0.21896378695964813,
0.4348812699317932,
0.02620951272547245,
-0.07390283793210983,
0.5337448716163635,
0.058972254395484924,
0.058856114745140076,
-0.17002244293689728,
-0.44162771105766296,
-0.011209027841687202,
-0.15375174582004547,
-0.1963820457458496,
0.16134272515773773,
-0.03615926206111908,
0.39071643352508545,
-0.24074117839336395,
0.43993881344795227,
-0.12871715426445007,
0.0003792904317378998,
-0.008646566420793533,
0.057106129825115204,
-0.29340076446533203,
0.17314496636390686,
0.009399011731147766,
0.2290857434272766,
-0.10836141556501389,
0.07443571090698242,
-0.032073281705379486,
0.03692225366830826,
-0.1405116766691208,
0.33904793858528137,
-0.297367125749588,
0.19358600676059723,
0.12280264496803284,
-0.16352996230125427,
0.03749605268239975,
0.20557443797588348,
0.4934008717536926,
-0.02315874770283699,
-0.15557073056697845,
0.31722456216812134,
0.10696099698543549,
0.4407719373703003,
-0.09401381015777588,
-0.3481101095676422,
0.48396772146224976,
0.03903228044509888,
-0.030374765396118164,
0.0931953489780426,
-0.11473605036735535,
-0.0842980295419693,
-0.02926747500896454,
0.13754640519618988,
0.019564740359783173,
-0.1707637906074524,
-0.27226772904396057,
0.13138797879219055,
0.42325082421302795,
-0.25504037737846375,
0.13171133399009705,
0.02652110904455185,
-0.2296072393655777,
-0.2589994966983795,
-0.16294340789318085,
-0.440420001745224,
-0.026134230196475983,
0.5958476066589355,
0.41995668411254883,
-0.20051313936710358,
0.4517550766468048,
-0.022926531732082367,
-0.02247781679034233,
-0.019877223297953606,
-0.05455565080046654,
0.2772987186908722,
-0.4430423974990845,
0.1450941115617752,
-0.20031127333641052,
0.012759312987327576,
0.1407957375049591,
0.154144749045372,
0.20622816681861877,
0.177670419216156,
-0.058541763573884964,
-0.10962037742137909,
-0.37020057439804077,
-0.2544347643852234,
0.0036111250519752502,
0.21762412786483765,
-0.0084800124168396,
-0.04951022192835808,
-0.021297141909599304,
0.16748811304569244,
-0.30149218440055847,
0.05460161715745926,
-0.04318613559007645,
0.10745751112699509,
-0.09123978018760681,
0.033841900527477264,
0.21730093657970428,
0.00198264978826046,
0.05134265124797821,
-0.09028907865285873,
-0.2829873263835907,
-0.2234831154346466,
-0.3292430639266968,
0.09154471009969711,
0.05937735736370087,
0.010065463371574879,
-0.013605363667011261,
-0.1543315201997757,
0.36099687218666077,
-0.23478592932224274,
0.4893221855163574,
0.2898891568183899,
0.20491592586040497,
-0.14258639514446259,
-0.0075056292116642,
-0.007553406059741974,
-0.1442076563835144,
0.14955782890319824,
0.011860303580760956,
-0.05195969343185425,
0.11090127378702164,
0.16180822253227234,
-0.13731007277965546,
0.09680004417896271,
0.06901007145643234,
-0.15099838376045227,
-0.031350813806056976,
0.2058052122592926,
-0.024678006768226624,
-0.4877890348434448,
-0.1810293346643448,
0.3634659945964813,
0.15654461085796356,
0.08645465970039368,
-0.14294341206550598,
-0.1824641078710556,
-0.06056618690490723,
0.2356371134519577,
-0.09628051519393921,
-0.20043669641017914,
0.17409849166870117,
0.07065492868423462,
-0.033730268478393555,
0.10677242279052734,
0.04510815069079399,
0.13515208661556244,
0.11007098853588104,
0.20886152982711792,
0.5389688014984131,
-0.3255133628845215,
0.4057605266571045,
0.014988858252763748,
0.16887632012367249,
0.1305389106273651,
0.5353819131851196,
0.09905371069908142,
0.03615204989910126,
0.3879019021987915,
-0.0670020654797554,
0.2742215096950531,
-0.06698966771364212,
-0.12234604358673096,
0.1350678950548172,
-0.09926213324069977,
0.09196586906909943,
0.3396904766559601,
-0.40490514039993286,
0.1836104691028595,
-0.05602385103702545,
0.0843299850821495,
-0.34659358859062195,
-0.3523794114589691,
-0.1818179488182068,
0.22892895340919495,
-0.2465050220489502,
-0.40445536375045776,
0.12879838049411774,
-0.3074580132961273,
0.11708822846412659,
0.23841476440429688,
-0.1380968987941742,
0.04996844753623009,
0.2363576591014862,
0.12471667677164078,
-0.29592978954315186,
-0.40315696597099304,
-0.26556912064552307,
0.3013252913951874,
0.1051449403166771,
-0.18935245275497437,
0.47415462136268616,
0.1052476316690445,
-0.3711164593696594,
0.10728292167186737,
0.3105243146419525,
0.316495805978775,
0.12861019372940063,
0.16905727982521057,
-0.235887810587883,
0.27528613805770874,
0.009699864313006401,
-0.2928973138332367,
0.11173149198293686,
-0.07736232876777649,
-0.2959579527378082,
0.1292179971933365,
0.20085576176643372,
-0.2578676640987396,
0.273090124130249,
0.03556465730071068,
0.3555915355682373,
-0.5123641490936279,
0.2378586232662201,
-0.44233763217926025,
0.18576952815055847,
-0.23189157247543335,
0.24886587262153625,
-0.3999871015548706,
0.008966507390141487,
0.40027403831481934,
-0.1104731336236,
0.22360917925834656,
-0.12793810665607452,
0.06689970195293427,
0.21526768803596497,
0.3720863461494446,
0.3111588954925537,
0.06707654893398285,
-0.29291924834251404,
0.003603436052799225,
-0.6772423982620239,
0.4773150682449341,
0.16922861337661743,
0.32657262682914734,
-0.1947835385799408,
0.10956965386867523,
-0.29731643199920654,
-0.10351163148880005,
0.31859469413757324,
0.13074557483196259,
0.19732099771499634,
-0.1669432371854782,
-0.5288143157958984,
-0.11950962245464325,
0.10579890012741089,
-0.17186212539672852,
0.11452710628509521,
-0.35442593693733215,
0.15234149992465973,
-0.23939146101474762,
0.03962012380361557,
-0.017536859959363937,
0.02178216725587845,
0.09381759166717529,
-0.03552652895450592,
0.3913334608078003,
0.14876733720302582,
0.24360594153404236,
0.08287232369184494,
-0.12510351836681366,
-0.28881633281707764,
-0.17001064121723175,
-0.2538089454174042,
-0.15330848097801208,
0.0021835975348949432,
0.4014943540096283,
-0.475790798664093,
0.2191242128610611,
-0.22517260909080505,
0.06205286085605621,
0.2402811199426651,
-0.13433727622032166,
-0.19164599478244781,
0.06934073567390442,
-0.22766220569610596,
0.3493711054325104,
0.1216064989566803,
0.3488348424434662,
0.03474906086921692,
0.37853479385375977,
-0.09663937985897064,
-0.28670644760131836,
0.5188449621200562,
-0.35570472478866577,
-0.3146909475326538,
-0.21292369067668915,
0.24205946922302246,
-0.004494518041610718,
-0.17788398265838623,
-0.45796579122543335,
0.014306269586086273,
0.24418960511684418,
-0.09020356088876724,
-0.260891318321228,
0.1568114012479782,
-0.04345828667283058,
0.23505248129367828,
-0.04674020782113075,
0.2153809666633606,
0.288478285074234,
-0.28475719690322876,
0.1258891075849533,
-0.20079253613948822
] |
https://github.com/huggingface/datasets/issues/4381 | Bug in caching 2 datasets both with the same builder class name | Hi @NouamaneTazi, please note that after our fix:
- #4388
we do not consider the class name anymore, but the name of the file where the loading builder class is implemented. | ## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datasets , you will get the opposite datasets loaded (difference is here in terms of the label and label_text).
## Steps to reproduce the bug
```python
import datasets
dataset = datasets.load_dataset("mteb/mtop_intent", "en")
print(dataset['train'][0])
dataset = datasets.load_dataset("mteb/mtop_domain", "en")
print(dataset['train'][0])
```
## Expected results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_intent/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_domain/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 0, 'label_text': 'messaging'}
```
## Actual results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.1
- Platform: macOS-12.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 31 | Bug in caching 2 datasets both with the same builder class name
## Describe the bug
The two datasets `mteb/mtop_intent` and `mteb/mtop_domain `use both the same cache folder `.cache/huggingface/datasets/mteb___mtop`. So if you first load `mteb/mtop_intent` then datasets will not load `mteb/mtop_domain`.
If you delete this cache folder and flip the order how you load the two datasets , you will get the opposite datasets loaded (difference is here in terms of the label and label_text).
## Steps to reproduce the bug
```python
import datasets
dataset = datasets.load_dataset("mteb/mtop_intent", "en")
print(dataset['train'][0])
dataset = datasets.load_dataset("mteb/mtop_domain", "en")
print(dataset['train'][0])
```
## Expected results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_intent/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop_domain/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 0, 'label_text': 'messaging'}
```
## Actual results
```
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 920.14it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
Reusing dataset mtop (/home/nouamane/.cache/huggingface/datasets/mteb___mtop/en/0.0.0/f930e32a294fed424f70263d8802390e350fff17862266e5fc156175c07d9c35)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1307.59it/s]
{'id': 3232343436343136, 'text': 'Has Angelika Kratzer video messaged me?', 'label': 1, 'label_text': 'GET_MESSAGE'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.1
- Platform: macOS-12.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Hi @NouamaneTazi, please note that after our fix:
- #4388
we do not consider the class name anymore, but the name of the file where the loading builder class is implemented. | [
-0.08650732040405273,
0.0836787074804306,
-0.05894135311245918,
0.678613543510437,
0.3177180290222168,
0.10972481220960617,
0.288614958524704,
0.12417106330394745,
-0.026603013277053833,
0.21588879823684692,
-0.18446184694766998,
0.07770781219005585,
-0.019409462809562683,
-0.14339837431907654,
-0.03437679633498192,
-0.08632376790046692,
0.012010037899017334,
-0.025559574365615845,
0.007203906774520874,
0.05780794471502304,
0.06369272619485855,
0.18577207624912262,
0.03391809016466141,
-0.10374210774898529,
-0.4546586573123932,
0.3139326274394989,
-0.06412093341350555,
0.0658423975110054,
0.24079973995685577,
-0.31609636545181274,
0.5563620328903198,
0.07740932703018188,
-0.22601185739040375,
0.7476652264595032,
-0.00011496594379423186,
0.06783042848110199,
0.236871138215065,
0.18130509555339813,
-0.24887214601039886,
-0.20855365693569183,
-0.14162710309028625,
-0.014960551634430885,
-0.04056571424007416,
-0.14342613518238068,
-0.29163461923599243,
0.13010993599891663,
0.016076236963272095,
-0.5358856320381165,
0.3626410961151123,
0.19791831076145172,
0.2352859526872635,
0.13248419761657715,
-0.34420090913772583,
-0.004631913732737303,
0.33600181341171265,
-0.11281444132328033,
-0.03142852708697319,
0.12076441943645477,
0.15285170078277588,
0.33375948667526245,
-0.041898615658283234,
0.4732626676559448,
-0.2568715512752533,
0.1182645708322525,
0.37452974915504456,
0.2877703011035919,
0.11112242192029953,
-0.1468978226184845,
0.2440672218799591,
0.10986889153718948,
0.7151800990104675,
-0.1459241509437561,
-0.21391619741916656,
-0.3972592055797577,
-0.021123915910720825,
-0.05633481591939926,
0.4242595136165619,
0.06977414339780807,
0.07321584224700928,
0.12050347030162811,
-0.3795925974845886,
0.03704919293522835,
0.12961705029010773,
-0.006630167365074158,
-0.13332009315490723,
-0.09910033643245697,
-0.19050650298595428,
0.15434229373931885,
-0.1945858895778656,
0.022493962198495865,
0.5375409722328186,
-0.41602084040641785,
-0.09142781794071198,
0.22672222554683685,
-0.17796452343463898,
-0.03677404299378395,
0.08525968343019485,
0.379203200340271,
-0.19257038831710815,
0.20860101282596588,
-0.1006983071565628,
-0.04938461631536484,
-0.1262034922838211,
-0.06025531142950058,
0.014716201461851597,
0.49308863282203674,
0.14501094818115234,
0.16869568824768066,
0.03469231724739075,
0.03266046941280365,
-0.6281253695487976,
0.009208662435412407,
0.04525108262896538,
-0.3204234540462494,
0.41453033685684204,
-0.013458527624607086,
0.18675380945205688,
-0.29180777072906494,
-0.2847149968147278,
0.10819154977798462,
-0.016479121521115303,
-0.15392693877220154,
0.17414166033267975,
0.35914626717567444,
-0.29430854320526123,
0.07656608521938324,
-0.11202476918697357,
0.18896374106407166,
-0.14529761672019958,
-0.08384213596582413,
-0.3682209849357605,
-0.23215804994106293,
-0.2795264720916748,
0.12973274290561676,
0.12497638165950775,
-0.2478102147579193,
0.2427690029144287,
0.3134775161743164,
0.006947673857212067,
-0.28035682439804077,
0.19264952838420868,
-0.056231893599033356,
0.022874467074871063,
0.011297143995761871,
-0.026637643575668335,
0.4759511947631836,
0.16812783479690552,
-0.11819711327552795,
-0.012528926134109497,
0.0999940037727356,
-0.5714156031608582,
-0.20395512878894806,
0.12859083712100983,
0.20400391519069672,
-0.1290307343006134,
0.12671902775764465,
0.000567220151424408,
0.10521829128265381,
0.4523720443248749,
-0.26159143447875977,
0.09895171225070953,
0.1721859723329544,
-0.5354605317115784,
-0.16766111552715302,
0.07950880378484726,
0.46281492710113525,
0.089230477809906,
-0.3265517055988312,
-0.14325666427612305,
0.17969463765621185,
-0.016544610261917114,
0.2142309993505478,
-0.3303886950016022,
0.1286678910255432,
-0.4154239594936371,
-0.28867730498313904,
0.25407013297080994,
-0.49209219217300415,
-0.674101710319519,
0.09783613681793213,
-0.20163317024707794,
0.27882304787635803,
0.21528507769107819,
0.11119295656681061,
-0.2850309908390045,
-0.2635963261127472,
0.2661403715610504,
0.11512596905231476,
-0.12035907804965973,
0.10311893373727798,
-0.2421841323375702,
-0.2390015721321106,
0.16099077463150024,
-0.035902850329875946,
0.17454297840595245,
0.1915789246559143,
-0.003330409526824951,
0.2644219994544983,
0.17028264701366425,
-0.04978414252400398,
0.0015769719611853361,
0.2959810495376587,
-0.12680312991142273,
-0.02721412479877472,
-0.10035591572523117,
-0.2642103433609009,
-0.455676794052124,
0.4737628996372223,
-0.285766065120697,
-0.1686750054359436,
0.022817611694335938,
-0.15578481554985046,
-0.07690390944480896,
-0.33514440059661865,
-0.37040528655052185,
-0.2263633906841278,
0.09160863608121872,
0.2806461453437805,
0.14491674304008484,
-0.07620567083358765,
0.08968867361545563,
0.4047017991542816,
0.16833427548408508,
0.048571620136499405,
-0.1646488904953003,
0.231343612074852,
0.12330519407987595,
-0.02373383939266205,
-0.3490389585494995,
0.0755772739648819,
0.34273761510849,
0.025796711444854736,
-0.17382416129112244,
0.20624107122421265,
-0.12883658707141876,
0.40645402669906616,
-0.12148790806531906,
0.019944339990615845,
0.1989722102880478,
-0.16314291954040527,
0.0711013674736023,
0.160684734582901,
0.08132953941822052,
-0.19420480728149414,
-0.09501995891332626,
0.3714045286178589,
0.07126300036907196,
0.18148383498191833,
0.0394153818488121,
-0.33054667711257935,
-0.17453689873218536,
-0.12645785510540009,
0.09499629586935043,
-0.3491690754890442,
0.3111180365085602,
0.009318911470472813,
0.45434242486953735,
0.3903522193431854,
-0.08582207560539246,
0.26574406027793884,
0.351836234331131,
0.254710853099823,
-0.05707984417676926,
-0.22179043292999268,
-0.3509525954723358,
0.07217930257320404,
-0.1322818249464035,
0.25418391823768616,
0.5292608141899109,
0.14381662011146545,
0.32207930088043213,
0.22159695625305176,
0.00012268219143152237,
-0.10841956734657288,
0.21227958798408508,
0.05714236944913864,
0.0664992555975914,
0.21521008014678955,
0.3265747129917145,
0.1170002743601799,
-0.2197733223438263,
0.08343060314655304,
0.1304580122232437,
-0.1811974197626114,
-0.23291057348251343,
0.19260236620903015,
-0.24380968511104584,
-0.22625061869621277,
-0.5473935604095459,
-0.3193071186542511,
-0.25278276205062866,
-0.29880350828170776,
-0.19967502355575562,
0.29982951283454895,
-0.05618145316839218,
0.01886378601193428,
-0.12572938203811646,
0.13110186159610748,
-0.14195670187473297,
-0.04099222272634506,
-0.1019914448261261,
0.04265722259879112,
-0.17232808470726013,
-0.018323980271816254,
0.3206963837146759,
-0.34743255376815796,
0.15499669313430786,
-0.36891409754753113,
-0.19031156599521637,
-0.25038865208625793,
-0.3043367564678192,
0.10065155476331711,
0.17480605840682983,
0.35008496046066284,
-0.1931491196155548,
-0.10963787138462067,
0.09903848171234131,
-0.10909217596054077,
0.25987204909324646,
-0.12902438640594482,
-0.07721814513206482,
-0.19086386263370514,
0.09456951171159744,
0.1363961547613144,
-0.10193033516407013,
-0.209745854139328,
-0.1544092446565628,
-0.12997283041477203,
-0.22335265576839447,
-0.04173285514116287,
-0.045434385538101196,
0.28995367884635925,
-0.21949851512908936,
0.10252125561237335,
-0.08430328965187073,
0.34606146812438965,
-0.373576819896698,
-0.6214452981948853,
0.20341500639915466,
-0.22606593370437622,
-0.08290891349315643,
-0.08140946924686432,
-0.004220956936478615,
0.25808951258659363,
-0.2520133852958679,
-0.5211543440818787,
-0.0831933319568634,
-0.306776762008667,
0.13428997993469238,
-0.011664610356092453,
0.03798583149909973,
-0.10481341183185577,
0.08793629705905914,
-0.015842754393815994,
-0.16179624199867249,
-0.11924746632575989,
-0.1640007495880127,
-0.20110127329826355,
0.29814448952674866,
-0.24743571877479553,
-0.03376513719558716,
-0.1159675270318985,
0.6535545587539673,
0.28955215215682983,
0.15094327926635742,
0.2942337095737457,
0.06968293339014053,
0.36530807614326477,
-0.2485305368900299,
-0.33515459299087524,
0.20244811475276947,
0.04855761677026749,
-0.23728066682815552,
0.3607085943222046,
0.12414655089378357,
-0.011823169887065887,
-0.11536281555891037,
0.07066501677036285,
0.020493626594543457,
-0.2650817036628723,
-0.1536468118429184,
-0.3435324728488922,
-0.1915193796157837,
0.26153531670570374,
-0.03146553784608841,
-0.33590826392173767,
-0.2166651487350464,
0.055230531841516495,
-0.041792213916778564,
-0.13964605331420898,
0.07150503247976303,
-0.1445128321647644,
-0.04791177064180374,
-0.28815335035324097,
0.14990152418613434,
0.15116706490516663,
-0.13966593146324158,
-0.02032330632209778,
0.0626281276345253,
0.08028388023376465,
0.07017119228839874,
0.6242516040802002,
-0.025078458711504936,
0.3104034662246704,
-0.037346240133047104,
-0.008787564933300018,
-0.18533313274383545,
-0.2350977510213852,
0.13039986789226532,
0.20674706995487213,
0.08689694106578827,
0.3454832136631012,
0.030664563179016113,
-0.09261654317378998,
-0.06787598133087158,
0.1857292503118515,
-0.23605936765670776,
-0.31501445174217224,
-0.16328227519989014,
0.19135811924934387,
-0.042924150824546814,
-0.08705661445856094,
0.10134998708963394,
0.3163772523403168,
-0.1895231306552887,
-0.1252335011959076,
-0.11671796441078186,
0.1864212155342102,
0.09873896092176437,
-0.13051475584506989,
0.43573686480522156,
-0.005067729856818914,
0.24901357293128967,
0.2334306538105011,
0.31018349528312683,
-0.12224368751049042,
0.9285032749176025,
-0.18075746297836304,
-0.19651395082473755,
0.08274488896131516,
0.014779754914343357,
-0.12128046900033951,
0.49445509910583496,
-0.15169376134872437,
0.04701235890388489,
0.19398346543312073,
0.11570996046066284,
-0.1393841654062271,
0.10281267017126083,
0.20754307508468628,
0.22253364324569702,
-0.3880935609340668,
-0.413776695728302,
0.4506726861000061,
0.29568272829055786,
-0.17067323625087738,
0.23691411316394806,
-0.00434643030166626,
-0.430265873670578,
0.0044260174036026,
-0.22061395645141602,
0.9077836275100708,
0.21896378695964813,
0.4348812699317932,
0.02620951272547245,
-0.07390283793210983,
0.5337448716163635,
0.058972254395484924,
0.058856114745140076,
-0.17002244293689728,
-0.44162771105766296,
-0.011209027841687202,
-0.15375174582004547,
-0.1963820457458496,
0.16134272515773773,
-0.03615926206111908,
0.39071643352508545,
-0.24074117839336395,
0.43993881344795227,
-0.12871715426445007,
0.0003792904317378998,
-0.008646566420793533,
0.057106129825115204,
-0.29340076446533203,
0.17314496636390686,
0.009399011731147766,
0.2290857434272766,
-0.10836141556501389,
0.07443571090698242,
-0.032073281705379486,
0.03692225366830826,
-0.1405116766691208,
0.33904793858528137,
-0.297367125749588,
0.19358600676059723,
0.12280264496803284,
-0.16352996230125427,
0.03749605268239975,
0.20557443797588348,
0.4934008717536926,
-0.02315874770283699,
-0.15557073056697845,
0.31722456216812134,
0.10696099698543549,
0.4407719373703003,
-0.09401381015777588,
-0.3481101095676422,
0.48396772146224976,
0.03903228044509888,
-0.030374765396118164,
0.0931953489780426,
-0.11473605036735535,
-0.0842980295419693,
-0.02926747500896454,
0.13754640519618988,
0.019564740359783173,
-0.1707637906074524,
-0.27226772904396057,
0.13138797879219055,
0.42325082421302795,
-0.25504037737846375,
0.13171133399009705,
0.02652110904455185,
-0.2296072393655777,
-0.2589994966983795,
-0.16294340789318085,
-0.440420001745224,
-0.026134230196475983,
0.5958476066589355,
0.41995668411254883,
-0.20051313936710358,
0.4517550766468048,
-0.022926531732082367,
-0.02247781679034233,
-0.019877223297953606,
-0.05455565080046654,
0.2772987186908722,
-0.4430423974990845,
0.1450941115617752,
-0.20031127333641052,
0.012759312987327576,
0.1407957375049591,
0.154144749045372,
0.20622816681861877,
0.177670419216156,
-0.058541763573884964,
-0.10962037742137909,
-0.37020057439804077,
-0.2544347643852234,
0.0036111250519752502,
0.21762412786483765,
-0.0084800124168396,
-0.04951022192835808,
-0.021297141909599304,
0.16748811304569244,
-0.30149218440055847,
0.05460161715745926,
-0.04318613559007645,
0.10745751112699509,
-0.09123978018760681,
0.033841900527477264,
0.21730093657970428,
0.00198264978826046,
0.05134265124797821,
-0.09028907865285873,
-0.2829873263835907,
-0.2234831154346466,
-0.3292430639266968,
0.09154471009969711,
0.05937735736370087,
0.010065463371574879,
-0.013605363667011261,
-0.1543315201997757,
0.36099687218666077,
-0.23478592932224274,
0.4893221855163574,
0.2898891568183899,
0.20491592586040497,
-0.14258639514446259,
-0.0075056292116642,
-0.007553406059741974,
-0.1442076563835144,
0.14955782890319824,
0.011860303580760956,
-0.05195969343185425,
0.11090127378702164,
0.16180822253227234,
-0.13731007277965546,
0.09680004417896271,
0.06901007145643234,
-0.15099838376045227,
-0.031350813806056976,
0.2058052122592926,
-0.024678006768226624,
-0.4877890348434448,
-0.1810293346643448,
0.3634659945964813,
0.15654461085796356,
0.08645465970039368,
-0.14294341206550598,
-0.1824641078710556,
-0.06056618690490723,
0.2356371134519577,
-0.09628051519393921,
-0.20043669641017914,
0.17409849166870117,
0.07065492868423462,
-0.033730268478393555,
0.10677242279052734,
0.04510815069079399,
0.13515208661556244,
0.11007098853588104,
0.20886152982711792,
0.5389688014984131,
-0.3255133628845215,
0.4057605266571045,
0.014988858252763748,
0.16887632012367249,
0.1305389106273651,
0.5353819131851196,
0.09905371069908142,
0.03615204989910126,
0.3879019021987915,
-0.0670020654797554,
0.2742215096950531,
-0.06698966771364212,
-0.12234604358673096,
0.1350678950548172,
-0.09926213324069977,
0.09196586906909943,
0.3396904766559601,
-0.40490514039993286,
0.1836104691028595,
-0.05602385103702545,
0.0843299850821495,
-0.34659358859062195,
-0.3523794114589691,
-0.1818179488182068,
0.22892895340919495,
-0.2465050220489502,
-0.40445536375045776,
0.12879838049411774,
-0.3074580132961273,
0.11708822846412659,
0.23841476440429688,
-0.1380968987941742,
0.04996844753623009,
0.2363576591014862,
0.12471667677164078,
-0.29592978954315186,
-0.40315696597099304,
-0.26556912064552307,
0.3013252913951874,
0.1051449403166771,
-0.18935245275497437,
0.47415462136268616,
0.1052476316690445,
-0.3711164593696594,
0.10728292167186737,
0.3105243146419525,
0.316495805978775,
0.12861019372940063,
0.16905727982521057,
-0.235887810587883,
0.27528613805770874,
0.009699864313006401,
-0.2928973138332367,
0.11173149198293686,
-0.07736232876777649,
-0.2959579527378082,
0.1292179971933365,
0.20085576176643372,
-0.2578676640987396,
0.273090124130249,
0.03556465730071068,
0.3555915355682373,
-0.5123641490936279,
0.2378586232662201,
-0.44233763217926025,
0.18576952815055847,
-0.23189157247543335,
0.24886587262153625,
-0.3999871015548706,
0.008966507390141487,
0.40027403831481934,
-0.1104731336236,
0.22360917925834656,
-0.12793810665607452,
0.06689970195293427,
0.21526768803596497,
0.3720863461494446,
0.3111588954925537,
0.06707654893398285,
-0.29291924834251404,
0.003603436052799225,
-0.6772423982620239,
0.4773150682449341,
0.16922861337661743,
0.32657262682914734,
-0.1947835385799408,
0.10956965386867523,
-0.29731643199920654,
-0.10351163148880005,
0.31859469413757324,
0.13074557483196259,
0.19732099771499634,
-0.1669432371854782,
-0.5288143157958984,
-0.11950962245464325,
0.10579890012741089,
-0.17186212539672852,
0.11452710628509521,
-0.35442593693733215,
0.15234149992465973,
-0.23939146101474762,
0.03962012380361557,
-0.017536859959363937,
0.02178216725587845,
0.09381759166717529,
-0.03552652895450592,
0.3913334608078003,
0.14876733720302582,
0.24360594153404236,
0.08287232369184494,
-0.12510351836681366,
-0.28881633281707764,
-0.17001064121723175,
-0.2538089454174042,
-0.15330848097801208,
0.0021835975348949432,
0.4014943540096283,
-0.475790798664093,
0.2191242128610611,
-0.22517260909080505,
0.06205286085605621,
0.2402811199426651,
-0.13433727622032166,
-0.19164599478244781,
0.06934073567390442,
-0.22766220569610596,
0.3493711054325104,
0.1216064989566803,
0.3488348424434662,
0.03474906086921692,
0.37853479385375977,
-0.09663937985897064,
-0.28670644760131836,
0.5188449621200562,
-0.35570472478866577,
-0.3146909475326538,
-0.21292369067668915,
0.24205946922302246,
-0.004494518041610718,
-0.17788398265838623,
-0.45796579122543335,
0.014306269586086273,
0.24418960511684418,
-0.09020356088876724,
-0.260891318321228,
0.1568114012479782,
-0.04345828667283058,
0.23505248129367828,
-0.04674020782113075,
0.2153809666633606,
0.288478285074234,
-0.28475719690322876,
0.1258891075849533,
-0.20079253613948822
] |
https://github.com/huggingface/datasets/issues/4379 | Latest dill release raises exception | Just an additional insight, the latest dill (either 0.3.5 or 0.3.5.1) also broke the hashing/fingerprinting of any mapping function.
For example:
```
from datasets import load_dataset
d = load_dataset("rotten_tomatoes")
d.map(lambda x: x)
```
Returns the standard non-dillable error:
```
Parameter 'function'=<function <lambda> at 0x7fe7d18c9560> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly....
``` | ## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
| 53 | Latest dill release raises exception
## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
Just an additional insight, the latest dill (either 0.3.5 or 0.3.5.1) also broke the hashing/fingerprinting of any mapping function.
For example:
```
from datasets import load_dataset
d = load_dataset("rotten_tomatoes")
d.map(lambda x: x)
```
Returns the standard non-dillable error:
```
Parameter 'function'=<function <lambda> at 0x7fe7d18c9560> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly....
``` | [
-0.35179403424263,
0.12885886430740356,
-0.04145246744155884,
-0.16158153116703033,
0.011071417480707169,
-0.09084830433130264,
0.5198795795440674,
0.42701780796051025,
-0.2461729794740677,
0.14921286702156067,
-0.2600415349006653,
0.4605540931224823,
-0.31963297724723816,
-0.3636213541030884,
-0.03632645308971405,
-0.19102676212787628,
0.06758154183626175,
-0.004538394510746002,
-0.41327741742134094,
-0.022069163620471954,
-0.378634512424469,
0.039025481790304184,
-0.3822593688964844,
0.06251273304224014,
-0.2314763367176056,
-0.06885875016450882,
-0.002325916662812233,
-0.01768995076417923,
-0.11827405542135239,
-0.42100203037261963,
-0.04403045028448105,
0.07925625145435333,
0.374147891998291,
0.4155668318271637,
-0.00011513364006532356,
0.11211277544498444,
0.40071946382522583,
-0.09982192516326904,
-0.17106233537197113,
-0.5713447332382202,
0.11272446066141129,
-0.006637992337346077,
0.12497319281101227,
-0.04338585212826729,
-0.01737796887755394,
-0.01927771046757698,
0.07057493925094604,
-0.28684142231941223,
0.2396373748779297,
0.36090415716171265,
0.19718237221240997,
0.07618498802185059,
0.12478899955749512,
0.03642771393060684,
0.2963053286075592,
-0.1836392730474472,
-0.08765099942684174,
0.22392037510871887,
0.31903743743896484,
-0.1669284552335739,
-0.15497568249702454,
0.38986244797706604,
0.06297855824232101,
-0.18428660929203033,
0.026331324130296707,
0.062160298228263855,
0.24209055304527283,
-0.33884042501449585,
0.07165244221687317,
0.3926800787448883,
0.3194642961025238,
-0.46647098660469055,
-0.7200166583061218,
0.01976408064365387,
0.016416730359196663,
-0.29721522331237793,
0.2578616738319397,
-0.14697104692459106,
0.05861249938607216,
0.206962451338768,
-0.08196277171373367,
-0.15083423256874084,
-0.09878341853618622,
0.18131515383720398,
-0.25158819556236267,
0.3386557698249817,
0.14819173514842987,
-0.025967858731746674,
0.09083212912082672,
-0.32921522855758667,
0.0911259651184082,
0.2386106252670288,
-0.029510941356420517,
0.025124441832304,
-0.36894896626472473,
-0.2264930158853531,
0.11200109124183655,
-0.5141904950141907,
0.048967041075229645,
-0.0009857527911663055,
-0.08345457911491394,
-0.043061308562755585,
-0.13996364176273346,
0.08539003133773804,
0.2526393532752991,
0.08614619076251984,
0.20801028609275818,
0.3673778474330902,
0.4138839840888977,
-0.09985597431659698,
0.14866697788238525,
0.19605553150177002,
0.013069230131804943,
-0.24681083858013153,
-0.0597391277551651,
0.02958325482904911,
0.5020894408226013,
-0.10015596449375153,
-0.21060046553611755,
0.12562626600265503,
-0.49487173557281494,
-0.04724475368857384,
0.01505227666348219,
0.29448238015174866,
0.19736088812351227,
0.4022209048271179,
0.1290348768234253,
0.31635063886642456,
-0.06481851637363434,
0.06633443385362625,
-0.07723333686590195,
0.1984969824552536,
0.0023428909480571747,
-0.09662270545959473,
0.0730258971452713,
0.09364211559295654,
-0.034511737525463104,
0.03219610080122948,
0.010776553303003311,
0.19538544118404388,
0.05924674868583679,
-0.12732429802417755,
0.21279579401016235,
0.12790827453136444,
-0.24065950512886047,
0.07592418044805527,
-0.15301594138145447,
-0.29611194133758545,
-0.24724668264389038,
0.3381023705005646,
-0.021001331508159637,
-0.10207927227020264,
-0.2652903199195862,
0.20288388431072235,
0.007225329056382179,
0.003243163228034973,
0.3298988938331604,
0.3722866475582123,
-0.02674844115972519,
-0.47980666160583496,
0.2489924430847168,
-0.45642828941345215,
-0.18040579557418823,
-0.0547214038670063,
0.17388132214546204,
0.3093041181564331,
-0.6780575513839722,
-0.1242544949054718,
-0.36672574281692505,
-0.011563986539840698,
0.08475087583065033,
-0.005437012761831284,
0.0035849902778863907,
-0.3891907036304474,
0.07373443245887756,
0.30460453033447266,
0.3278975486755371,
-0.4606180489063263,
-0.5066475868225098,
0.1477382928133011,
0.005451373755931854,
-0.01722313091158867,
-0.13644614815711975,
-0.14752492308616638,
0.42461034655570984,
-0.0034189498983323574,
0.1621093600988388,
0.15999895334243774,
-0.07330570369958878,
-0.1425691545009613,
-0.4018944203853607,
-0.17776358127593994,
0.2860851287841797,
0.0874740481376648,
0.20883819460868835,
-0.05494613200426102,
0.02395603060722351,
0.234117791056633,
0.18524625897407532,
0.07410165667533875,
0.10151775926351547,
0.01427319087088108,
0.2534806728363037,
-0.27256613969802856,
0.05011503025889397,
-0.46270567178726196,
-0.4081750810146332,
0.1916595995426178,
0.09963949024677277,
0.09396351873874664,
-0.12809346616268158,
0.002111446112394333,
-0.0021673766896128654,
0.18105065822601318,
0.08252768218517303,
-0.10543297231197357,
0.06028994172811508,
0.09747375547885895,
-0.10506738722324371,
0.2663707435131073,
-0.11038434505462646,
-0.28889793157577515,
0.1364212930202484,
0.004995954222977161,
-0.05919147655367851,
0.18693111836910248,
-0.2998378574848175,
-0.33518239855766296,
-0.07216145098209381,
0.19442901015281677,
-0.045284420251846313,
-0.1280578076839447,
-0.16227242350578308,
0.45059120655059814,
0.07998087257146835,
-0.06442117691040039,
-0.07889079302549362,
0.12507355213165283,
0.22787705063819885,
-0.39222463965415955,
0.14180098474025726,
0.15154466032981873,
0.10197591781616211,
0.035270847380161285,
0.18365910649299622,
0.3199598491191864,
0.1534680873155594,
0.1108887791633606,
0.021223150193691254,
0.3399447202682495,
0.18974758684635162,
-0.01552063599228859,
-0.2499113529920578,
-0.26601874828338623,
-0.08131302893161774,
-0.03062816709280014,
0.5172560214996338,
-0.15718910098075867,
-0.1652621626853943,
0.1275807023048401,
0.33821696043014526,
-0.1659931242465973,
0.395404577255249,
0.16438445448875427,
-0.1303638219833374,
-0.07803988456726074,
0.14398404955863953,
0.02879169210791588,
0.03789547085762024,
0.04361102730035782,
0.15725475549697876,
-0.0423712432384491,
-0.13877590000629425,
-0.09516511857509613,
0.10933960974216461,
-0.13653236627578735,
0.0897761732339859,
0.25180110335350037,
0.21973185241222382,
0.1505679488182068,
0.011253993958234787,
-0.23295965790748596,
-0.050575003027915955,
0.273716539144516,
-0.23766906559467316,
-0.06871357560157776,
-0.4555470943450928,
0.28556644916534424,
0.02556462585926056,
-0.025360867381095886,
-0.4863296151161194,
-0.24499356746673584,
0.21123738586902618,
-0.09386549890041351,
-0.22144033014774323,
0.5056401491165161,
-0.09794431924819946,
0.1212092787027359,
0.20029105246067047,
-0.1454804241657257,
-0.20254921913146973,
-0.18344447016716003,
-0.15765687823295593,
0.10921578109264374,
0.2289091944694519,
-0.2586315870285034,
0.08661211282014847,
0.2293674647808075,
-0.1859981119632721,
-0.13970370590686798,
-0.37132737040519714,
0.04356817156076431,
-0.1132260262966156,
0.3799070715904236,
0.21640253067016602,
-0.2336704581975937,
-0.06577891856431961,
-0.09544909745454788,
0.043771807104349136,
-0.4436332583427429,
-0.25318291783332825,
-0.11386270076036453,
0.08208486437797546,
0.23914076387882233,
-0.3923637270927429,
-0.5205127000808716,
-0.237641379237175,
-0.37982073426246643,
0.11147866398096085,
-0.1822487860918045,
0.1914246380329132,
0.06189947575330734,
0.016090217977762222,
0.312581330537796,
0.21884317696094513,
0.12425483018159866,
-0.03970605134963989,
0.2566547393798828,
0.15653164684772491,
-0.22812208533287048,
-0.30704572796821594,
-0.1122511476278305,
-0.17927147448062897,
0.011080756783485413,
0.16492576897144318,
-0.20047739148139954,
-0.1519698053598404,
-0.186217799782753,
0.3541041910648346,
-0.016531366854906082,
-0.20240962505340576,
0.4274009168148041,
0.25580865144729614,
-0.045985087752342224,
-0.23575684428215027,
-0.2774770259857178,
0.07032293826341629,
0.2711651027202606,
0.1224045529961586,
0.2207764983177185,
0.22086909413337708,
0.026409205049276352,
1.1111946105957031,
-0.16889986395835876,
-0.2091296762228012,
0.24885194003582,
0.026131033897399902,
0.2198743373155594,
0.010720513761043549,
-0.18342889845371246,
0.06291861832141876,
0.27181798219680786,
0.12117427587509155,
0.14287836849689484,
-0.18330645561218262,
-0.5578868389129639,
-0.10574275255203247,
0.0885200947523117,
-0.45118728280067444,
-0.137192502617836,
0.17143882811069489,
-0.5887240767478943,
-0.14157259464263916,
-0.007327677682042122,
0.297917902469635,
0.14144249260425568,
-0.08253268152475357,
0.03390490263700485,
0.005624599754810333,
0.2145642638206482,
-0.23624016344547272,
-0.024395601823925972,
-0.10046014934778214,
-0.4032284915447235,
0.32796335220336914,
0.20784512162208557,
0.519001841545105,
-0.19784602522850037,
-0.38515523076057434,
-0.11673346161842346,
-0.05427078157663345,
0.5306857824325562,
-0.6118026375770569,
-0.07414423674345016,
0.4190404713153839,
-0.24069656431674957,
-0.4366528391838074,
0.020685072988271713,
-0.4532538056373596,
-0.029977893456816673,
0.4526556134223938,
-0.14656004309654236,
-0.12328053265810013,
-0.04739881306886673,
0.27634602785110474,
-0.21315354108810425,
0.10526145994663239,
0.0357135571539402,
-0.05639589577913284,
-0.14354923367500305,
-0.12169909477233887,
-0.07540277391672134,
-0.06717300415039062,
0.19073323905467987,
-0.42144298553466797,
-0.04096602275967598,
-0.08847063034772873,
-0.12476766854524612,
0.12668348848819733,
0.08833852410316467,
0.19997277855873108,
-0.007753461599349976,
0.15071645379066467,
0.19456049799919128,
0.5487186312675476,
0.3540317714214325,
0.016636919230222702,
-0.31248152256011963,
-0.18999230861663818,
0.38513827323913574,
0.05337970331311226,
0.020225800573825836,
0.4950506389141083,
-0.02185530588030815,
0.023037604987621307,
-0.008894521743059158,
-0.10171455144882202,
-0.02614358440041542,
0.020884370431303978,
0.30848443508148193,
0.25193068385124207,
-0.26570114493370056,
-0.25062721967697144,
0.13184693455696106,
0.32612720131874084,
-0.18237368762493134,
0.20025379955768585,
-0.10444919764995575,
-0.3629339635372162,
0.5428228974342346,
0.08534976840019226,
0.9785947203636169,
-0.11563454568386078,
0.006813552230596542,
0.21012833714485168,
0.2327321320772171,
0.24803315103054047,
0.05726223438978195,
0.20901159942150116,
-0.27612948417663574,
-0.33191531896591187,
-0.09223438054323196,
-0.1013442724943161,
0.2789425253868103,
-0.0175834521651268,
-0.5414875149726868,
0.16458262503147125,
-0.14716622233390808,
-0.031667377799749374,
-0.05414235591888428,
0.11707063019275665,
-0.23437246680259705,
0.06525430083274841,
0.07250608503818512,
0.12948855757713318,
0.18415063619613647,
0.00459882989525795,
-0.14908120036125183,
-0.0009123655036091805,
-0.37808525562286377,
-0.3918670415878296,
-0.46992695331573486,
0.14796534180641174,
0.030195515602827072,
0.12575677037239075,
0.051143545657396317,
-0.2179991453886032,
0.2904913127422333,
0.5123190879821777,
0.139337420463562,
0.07136467099189758,
-0.2684529423713684,
0.08520788699388504,
-0.14724281430244446,
0.21995604038238525,
0.34427139163017273,
-0.031759340316057205,
0.5121351480484009,
-0.012286843731999397,
-0.36892420053482056,
0.12845183908939362,
0.07924050837755203,
-0.08812808245420456,
-0.12560956180095673,
0.1816554218530655,
-0.022647619247436523,
-0.15630915760993958,
0.0647270530462265,
-0.1294952780008316,
-0.17290502786636353,
-0.17785920202732086,
0.14636904001235962,
0.01161724328994751,
-0.2113090306520462,
0.12201319634914398,
-0.07314462959766388,
-0.24265529215335846,
-0.005490981042385101,
0.48910999298095703,
0.05667468160390854,
0.24178996682167053,
0.4476337432861328,
0.21002040803432465,
-0.14665143191814423,
-0.2479831576347351,
0.054698556661605835,
0.1532754749059677,
-0.14521439373493195,
0.2718971371650696,
-0.3046627342700958,
-0.19936180114746094,
-0.10260529071092606,
0.03252772241830826,
-0.07112614065408707,
0.22240516543388367,
-0.2123039811849594,
-0.2106972187757492,
0.08828499913215637,
0.4353727698326111,
-0.19008685648441315,
0.24183177947998047,
-0.32066282629966736,
0.15430188179016113,
-0.010863079689443111,
0.05928567796945572,
-0.33720970153808594,
0.11410216242074966,
-0.13206462562084198,
0.22842803597450256,
-0.2657376229763031,
-0.2388812005519867,
0.24231864511966705,
-0.1881944239139557,
0.17971479892730713,
0.23360224068164825,
-0.17929257452487946,
-0.13620345294475555,
-0.1794535368680954,
0.11424711346626282,
-0.045241549611091614,
-0.2290552705526352,
-0.131866917014122,
-0.014435069635510445,
-0.17933179438114166,
-0.026350151747465134,
-0.006928234361112118,
0.07793426513671875,
0.06893792003393173,
0.5486087203025818,
0.24790546298027039,
0.2121191918849945,
0.2539718747138977,
0.231855571269989,
-0.24777376651763916,
0.5405263304710388,
-0.03142804652452469,
0.5104783177375793,
0.17714405059814453,
-0.12368018180131912,
-0.2889856994152069,
0.08678517490625381,
-0.21272744238376617,
0.1055159717798233,
0.2769564092159271,
0.03924870491027832,
-0.22310709953308105,
0.14603537321090698,
0.615202784538269,
0.33942630887031555,
-0.39513862133026123,
-0.2125893384218216,
0.3740951418876648,
0.23061290383338928,
-0.13361920416355133,
0.15535834431648254,
0.3886689841747284,
-0.06788232177495956,
0.32825329899787903,
0.24358299374580383,
-0.13652127981185913,
0.07271929085254669,
-0.14007283747196198,
0.19029617309570312,
-0.06266745924949646,
-0.19576510787010193,
0.1484544575214386,
0.4260247051715851,
-0.06435450166463852,
0.26369673013687134,
0.2918577492237091,
-0.013233009725809097,
0.3271182179450989,
0.20698881149291992,
-0.32006388902664185,
0.3229285180568695,
-0.13149526715278625,
0.18622325360774994,
0.5178779363632202,
-0.5040247440338135,
0.4136960804462433,
0.2061351239681244,
-0.16232618689537048,
0.09078425168991089,
-0.007621951401233673,
0.31669852137565613,
-0.21342413127422333,
-0.1879592090845108,
-0.08945272862911224,
0.18217861652374268,
-0.24845871329307556,
-0.23630717396736145,
0.09588098526000977,
-0.1621669977903366,
-0.1071087196469307,
-0.042653270065784454,
0.009500663727521896,
0.016390003263950348,
0.5092410445213318,
0.2964897155761719,
-0.01155737042427063,
-0.46693938970565796,
0.14907172322273254,
-0.1393357515335083,
0.1044219508767128,
-0.15481343865394592,
0.09772608429193497,
0.1024639755487442,
-0.060076162219047546,
0.2078455090522766,
0.4449213147163391,
0.3532256782054901,
0.3601427972316742,
-0.36607658863067627,
0.09760094434022903,
-0.07491160929203033,
-0.07331791520118713,
-0.06024451181292534,
0.43122977018356323,
0.11977076530456543,
0.2686214745044708,
0.37152159214019775,
0.16406826674938202,
-0.10976001620292664,
-0.022187713533639908,
0.15867359936237335,
0.41317903995513916,
-0.1564345508813858,
0.4963136613368988,
-0.023998327553272247,
0.07433872669935226,
0.014381201937794685,
-0.06851022690534592,
-0.4067073464393616,
-0.1866561472415924,
0.3042314946651459,
-0.13582246005535126,
0.1724664568901062,
-0.2981632351875305,
0.08126885443925858,
-0.027129419147968292,
0.12962672114372253,
0.5501777529716492,
0.2446850836277008,
0.03450898453593254,
0.2279590517282486,
-0.3161000907421112,
0.1858794093132019,
0.13305452466011047,
0.17137114703655243,
-0.2269911915063858,
0.4324135184288025,
-0.021098457276821136,
0.20108851790428162,
0.16794292628765106,
-0.22370700538158417,
-0.059593524783849716,
0.27992817759513855,
-0.37904903292655945,
0.07450994104146957,
-0.30943453311920166,
-0.05177607387304306,
-0.05112754553556442,
-0.3930560350418091,
0.16473810374736786,
-0.26897960901260376,
-0.051582589745521545,
-0.19652815163135529,
-0.1557004749774933,
0.10024003684520721,
0.20361922681331635,
0.4292072653770447,
0.45820990204811096,
0.37927210330963135,
-0.24068471789360046,
-0.04252709075808525,
-0.21556487679481506,
-0.28267574310302734,
-0.31384530663490295,
-0.09823382645845413,
-0.09922447800636292,
0.38483262062072754,
-0.23869802057743073,
-0.28024017810821533,
-0.11023843288421631,
0.4867561161518097,
-0.1787910759449005,
-0.0760597437620163,
-0.3430896997451782,
0.04733450710773468,
-0.061005644500255585,
-0.22001565992832184,
-0.1910204142332077,
0.23422816395759583,
0.10082113742828369,
0.2375478595495224,
-0.2590019106864929,
-0.45757776498794556,
0.5630297660827637,
-0.2596628665924072,
-0.07361085712909698,
-0.39555639028549194,
0.10474461317062378,
0.0010489299893379211,
-0.0954134538769722,
-0.6165012717247009,
-0.2032841145992279,
0.3704012334346771,
0.2985217273235321,
-0.28336694836616516,
-0.000809691846370697,
0.07813076674938202,
0.06989216804504395,
-0.22482331097126007,
0.18401867151260376,
0.036674484610557556,
-0.03597574308514595,
0.24582943320274353,
-0.18375393748283386
] |
https://github.com/huggingface/datasets/issues/4379 | Latest dill release raises exception | Thanks a lot @gugarosa for the insight: we will incorporate it in our CI as regression testing for future dill releases. | ## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
| 21 | Latest dill release raises exception
## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
Thanks a lot @gugarosa for the insight: we will incorporate it in our CI as regression testing for future dill releases. | [
-0.35840699076652527,
-0.09504207968711853,
-0.03661257401108742,
-0.04726046323776245,
0.001321062445640564,
-0.11222042143344879,
0.43339866399765015,
0.3822139501571655,
-0.2754596173763275,
0.17402991652488708,
-0.2334345281124115,
0.324017733335495,
-0.24538327753543854,
-0.24278604984283447,
-0.0949917733669281,
-0.3989420533180237,
0.06771218776702881,
0.07372008264064789,
-0.2790762782096863,
0.05304061621427536,
-0.3705196976661682,
-0.013728959485888481,
-0.463722288608551,
0.13356056809425354,
-0.12583407759666443,
-0.14374616742134094,
-0.11674347519874573,
-0.06706098467111588,
-0.06567268073558807,
-0.47422105073928833,
0.01950381137430668,
0.08989301323890686,
0.39260777831077576,
0.5553696751594543,
-0.00012209927081130445,
0.07607080042362213,
0.40691471099853516,
-0.11196431517601013,
-0.10823971033096313,
-0.4727684259414673,
0.18977296352386475,
0.02776711992919445,
0.10218482464551926,
-0.13810764253139496,
-0.20132845640182495,
0.13850630819797516,
0.0009235795587301254,
-0.149647057056427,
0.2616475820541382,
0.3730846643447876,
0.1594589203596115,
0.21821245551109314,
0.07457993924617767,
-0.011912998743355274,
0.13836771249771118,
-0.22573412954807281,
-0.05551233887672424,
0.10556615889072418,
0.4666055738925934,
-0.05867914855480194,
-0.0439649298787117,
0.2717593014240265,
0.049784377217292786,
-0.16023136675357819,
-0.12165627628564835,
0.10130064934492111,
0.19718006253242493,
-0.3395393490791321,
0.04432310536503792,
0.5196206569671631,
0.5169086456298828,
-0.29940950870513916,
-0.5829734206199646,
0.10260004550218582,
0.04839102923870087,
-0.3461840748786926,
0.26502683758735657,
0.013478342443704605,
0.0011431872844696045,
0.2646252512931824,
-0.04132691025733948,
-0.2101561427116394,
-0.29649221897125244,
0.13054397702217102,
-0.28496599197387695,
0.41455477476119995,
0.14849978685379028,
0.0770576074719429,
0.0017358623445034027,
-0.305988609790802,
0.08917898684740067,
0.16244938969612122,
0.01897161267697811,
-0.05678771808743477,
-0.36974701285362244,
-0.36946094036102295,
-0.11379659920930862,
-0.43243226408958435,
0.10776161402463913,
-0.0873793512582779,
-0.1121559888124466,
-0.11509651690721512,
-0.13616259396076202,
0.10625555366277695,
0.35430431365966797,
0.06635598838329315,
0.20481887459754944,
0.26632359623908997,
0.5416278839111328,
-0.005132324527949095,
0.07894256711006165,
0.17051377892494202,
0.042721886187791824,
-0.22133606672286987,
-0.07790374010801315,
0.01932038553059101,
0.5191816687583923,
-0.15952736139297485,
-0.36036136746406555,
0.21190771460533142,
-0.5333346724510193,
0.03917570784687996,
0.07608754187822342,
0.34469103813171387,
0.13389776647090912,
0.5286577939987183,
0.2438446432352066,
0.4103618264198303,
-0.0347956046462059,
-0.164097398519516,
-0.02230781316757202,
0.2744840085506439,
0.14136020839214325,
-0.17475885152816772,
-0.022327059879899025,
0.14644283056259155,
-0.1079222783446312,
0.19855841994285583,
-0.0167972594499588,
0.049749359488487244,
0.10310597717761993,
-0.29808828234672546,
0.05763525888323784,
0.17336823046207428,
-0.26902851462364197,
-0.1090436652302742,
-0.14608971774578094,
-0.4124649167060852,
-0.2761479318141937,
0.457660436630249,
0.035316504538059235,
-0.11666738986968994,
-0.2246280163526535,
0.1307283341884613,
0.09948842972517014,
-0.010068811476230621,
0.36095407605171204,
0.46203184127807617,
0.022043369710445404,
-0.44441086053848267,
0.23501425981521606,
-0.43086445331573486,
-0.24767710268497467,
0.00991639494895935,
0.062146835029125214,
0.29305893182754517,
-0.7914229035377502,
-0.021382302045822144,
-0.25866788625717163,
-0.04825679585337639,
0.16510798037052155,
0.0023837313055992126,
0.06056308001279831,
-0.2430996596813202,
0.036369502544403076,
0.14459702372550964,
0.2940331697463989,
-0.4418155252933502,
-0.353105753660202,
0.10013294965028763,
0.04884565621614456,
-0.0895870253443718,
-0.027015112340450287,
-0.15025122463703156,
0.3845122754573822,
-0.05855249986052513,
0.23241879045963287,
0.18646076321601868,
-0.12170091271400452,
-0.18536652624607086,
-0.34439322352409363,
-0.17298918962478638,
0.26753586530685425,
0.09349454939365387,
0.2008356899023056,
0.02073991298675537,
-0.008038252592086792,
0.23135356605052948,
0.16577038168907166,
0.020983513444662094,
-0.003925371915102005,
-0.017988506704568863,
0.45619773864746094,
-0.1986481100320816,
-0.031539205461740494,
-0.5228906869888306,
-0.3450378179550171,
0.17132803797721863,
0.1625361442565918,
0.20021952688694,
0.1058650016784668,
-0.09436589479446411,
-0.15388557314872742,
0.20203138887882233,
0.10603848099708557,
-0.11099588871002197,
0.018000833690166473,
0.17476126551628113,
-0.10925815999507904,
0.3253931403160095,
0.08059346675872803,
-0.31760373711586,
0.12654763460159302,
-0.025552699342370033,
0.045580849051475525,
0.3014920949935913,
-0.29962095618247986,
-0.26676681637763977,
-0.07651683688163757,
0.1953798532485962,
-0.029153145849704742,
-0.15435288846492767,
-0.1906546950340271,
0.46440309286117554,
0.06460833549499512,
-0.03381344676017761,
-0.1569167971611023,
-0.0830591470003128,
0.293607622385025,
-0.34685027599334717,
0.11699344962835312,
0.24789699912071228,
0.12285205721855164,
0.015517376363277435,
0.26002320647239685,
0.40178751945495605,
0.2922050356864929,
0.055810004472732544,
-0.015419337898492813,
0.33850768208503723,
0.27711617946624756,
-0.016728658229112625,
-0.12803423404693604,
-0.1796414852142334,
0.02013968676328659,
0.02668055146932602,
0.28802716732025146,
-0.22586463391780853,
-0.5215986967086792,
0.11522045731544495,
0.22696807980537415,
-0.20464691519737244,
0.469621479511261,
0.1235179603099823,
-0.01017087697982788,
0.0011338908225297928,
0.19232194125652313,
-0.02382420003414154,
0.21852514147758484,
0.01977355405688286,
0.02643946185708046,
-0.025771578773856163,
-0.09262904524803162,
-0.07489554584026337,
0.14390841126441956,
-0.09880675375461578,
0.12412139028310776,
0.34028035402297974,
0.32722580432891846,
0.15879637002944946,
0.034979015588760376,
-0.12412446737289429,
-0.04689355194568634,
0.3096994161605835,
-0.22614847123622894,
0.05113641917705536,
-0.35481658577919006,
0.2548177242279053,
-0.05960569530725479,
0.12009495496749878,
-0.4034093916416168,
-0.049384795129299164,
0.2429073303937912,
-0.06544503569602966,
-0.21578563749790192,
0.4131159484386444,
-0.11125752329826355,
0.35204362869262695,
0.303949773311615,
-0.06804495304822922,
-0.13801243901252747,
-0.08247948437929153,
-0.1887301504611969,
0.08739377558231354,
0.2144223004579544,
-0.18059417605400085,
0.22445684671401978,
0.2902226150035858,
-0.21061907708644867,
-0.10331770777702332,
-0.5010938048362732,
0.0902814120054245,
-0.08114470541477203,
0.5525187253952026,
0.19852477312088013,
-0.1452709287405014,
0.04072137922048569,
-0.0884004458785057,
0.11877884715795517,
-0.5006475448608398,
-0.2706288695335388,
-0.14793749153614044,
0.05113764852285385,
0.28877490758895874,
-0.352804958820343,
-0.5413399934768677,
-0.3400508463382721,
-0.3258577585220337,
-0.027291633188724518,
-0.21678012609481812,
0.1849392056465149,
0.03861309587955475,
-0.12094239890575409,
0.30618560314178467,
0.3317376971244812,
0.08273845165967941,
-0.05990754812955856,
0.34676554799079895,
0.08958013355731964,
-0.22056986391544342,
-0.3544682562351227,
-0.10842911899089813,
-0.35007989406585693,
0.033888861536979675,
0.026864169165492058,
-0.25723356008529663,
-0.28692013025283813,
-0.20768795907497406,
0.35371431708335876,
-0.1929238736629486,
-0.32435211539268494,
0.3716927170753479,
0.07818102836608887,
0.004298778250813484,
-0.21815672516822815,
-0.2590932548046112,
0.17537376284599304,
0.34234991669654846,
0.042480193078517914,
0.2902018427848816,
0.37318122386932373,
-0.03499491140246391,
0.986370325088501,
-0.22148548066616058,
-0.13172441720962524,
0.2707439064979553,
0.0021405164152383804,
0.14157330989837646,
-0.012434877455234528,
-0.13446910679340363,
0.13975219428539276,
0.334966778755188,
0.03914903104305267,
0.1718764305114746,
-0.15234267711639404,
-0.5245866179466248,
-0.08266256004571915,
0.05002528056502342,
-0.3365669846534729,
-0.09666842222213745,
0.12712883949279785,
-0.25977081060409546,
-0.012761861085891724,
-0.023017410188913345,
0.10627590864896774,
0.17995098233222961,
-0.10230091214179993,
-0.12326663732528687,
0.13265776634216309,
0.1022668331861496,
-0.24850018322467804,
-0.19725701212882996,
-0.2566307485103607,
-0.3814135491847992,
0.39812201261520386,
0.267518013715744,
0.5982694625854492,
-0.1979452520608902,
-0.21986371278762817,
0.0497225821018219,
-0.025322262197732925,
0.5520434975624084,
-0.5591738224029541,
-0.028364382684230804,
0.3955826759338379,
-0.2585000991821289,
-0.3831619322299957,
-0.02100832760334015,
-0.5009768009185791,
0.006278195884078741,
0.5381322503089905,
-0.1818748116493225,
-0.2074624001979828,
-0.10728896409273148,
0.3112501800060272,
-0.17563442885875702,
0.052384596318006516,
-0.12103661149740219,
-0.12832695245742798,
-0.1177593544125557,
-0.09965185075998306,
0.015666797757148743,
0.05499766767024994,
0.3363817036151886,
-0.6397592425346375,
-0.10798533260822296,
-0.04217931628227234,
-0.039146166294813156,
-0.0005287677049636841,
0.00031033530831336975,
0.31159672141075134,
-0.09327249228954315,
0.11045043170452118,
0.004659067839384079,
0.49076664447784424,
0.377206951379776,
-0.027823202311992645,
-0.3391834795475006,
-0.030335932970046997,
0.47216764092445374,
-0.04080984741449356,
0.08792287856340408,
0.44615963101387024,
0.028044402599334717,
0.20034156739711761,
-0.0760287195444107,
-0.027872353792190552,
-0.06882081180810928,
-0.07539867609739304,
0.2557898163795471,
0.22491803765296936,
-0.21228212118148804,
-0.18206904828548431,
0.06564437597990036,
0.22444456815719604,
-0.13573239743709564,
-0.06774072349071503,
0.06876833736896515,
-0.3876427412033081,
0.4655079245567322,
0.08948685228824615,
0.9988524913787842,
-0.18985961377620697,
-0.010989483445882797,
0.3145911991596222,
0.3427344560623169,
0.3936153054237366,
0.06466824561357498,
0.283939003944397,
-0.34422555565834045,
-0.15447507798671722,
-0.1680549830198288,
-0.14788860082626343,
0.3762999176979065,
-0.13911154866218567,
-0.8128479719161987,
0.18529242277145386,
-0.16873276233673096,
-0.0987756997346878,
-0.060568541288375854,
0.09915930032730103,
-0.3731080889701843,
0.28653836250305176,
0.003285866230726242,
0.05636768043041229,
0.07220553606748581,
0.06209874153137207,
-0.2169923484325409,
0.02980639412999153,
-0.3274632394313812,
-0.29662907123565674,
-0.5041140913963318,
0.031096503138542175,
0.05831525847315788,
0.11805054545402527,
0.12753675878047943,
-0.3493856191635132,
0.45094212889671326,
0.5855867266654968,
0.2603558897972107,
0.07745163142681122,
-0.3113324046134949,
0.03528759628534317,
-0.3198893964290619,
0.10576824843883514,
0.28843584656715393,
-0.027253109961748123,
0.4046827554702759,
-0.09475669264793396,
-0.5357598662376404,
0.1442890763282776,
0.0030019544064998627,
-0.11152898520231247,
-0.05082843452692032,
0.2176017016172409,
0.04859188199043274,
-0.1974267214536667,
-0.05822201073169708,
-0.16436119377613068,
-0.1421908140182495,
-0.20531897246837616,
0.10035984218120575,
0.05952362343668938,
-0.27807843685150146,
0.02293459326028824,
-0.035494398325681686,
-0.27590394020080566,
0.025209903717041016,
0.26785808801651,
0.20137286186218262,
0.43421104550361633,
0.5482825040817261,
0.23483608663082123,
-0.03095409832894802,
-0.2888735234737396,
0.18269053101539612,
0.06728849560022354,
-0.1453058421611786,
0.289622038602829,
-0.2273903340101242,
-0.21027010679244995,
-0.1411820650100708,
0.1630152463912964,
-0.10203865170478821,
0.16600441932678223,
-0.1813495010137558,
-0.29811084270477295,
0.08767365664243698,
0.2600023150444031,
-0.24965573847293854,
0.12014749646186829,
-0.2407652735710144,
0.22209197282791138,
0.038732439279556274,
0.0018815509974956512,
-0.2775377035140991,
0.04062141478061676,
-0.25245401263237,
0.24636539816856384,
-0.3247407376766205,
-0.26102718710899353,
0.07409113645553589,
-0.0934673547744751,
0.09791779518127441,
0.1697528064250946,
-0.1725652515888214,
-0.09360869228839874,
-0.15746231377124786,
0.15234915912151337,
-0.0671987235546112,
-0.275587260723114,
-0.21158093214035034,
-0.055457472801208496,
-0.17149755358695984,
0.08718722313642502,
-0.0025293193757534027,
-0.06991149485111237,
0.07038703560829163,
0.46899381279945374,
0.27460092306137085,
0.24062389135360718,
0.16456058621406555,
0.3321390151977539,
-0.1195555180311203,
0.5015791058540344,
-0.011295333504676819,
0.4295673966407776,
0.1959231197834015,
-0.15538537502288818,
-0.27013859152793884,
0.11992910504341125,
-0.1624375730752945,
0.1527249664068222,
0.22728559374809265,
-0.01593734323978424,
-0.2197059988975525,
0.1325855404138565,
0.5082229375839233,
0.4205816090106964,
-0.4126615524291992,
0.023012908175587654,
0.3300758898258209,
0.17939326167106628,
-0.1254127323627472,
0.19297851622104645,
0.37644538283348083,
-0.1282232105731964,
0.282962441444397,
0.3203831613063812,
-0.037133924663066864,
0.06516508758068085,
0.013853035867214203,
0.2761911451816559,
-0.029779136180877686,
-0.11069008708000183,
0.09181615710258484,
0.3788849115371704,
-0.03156145662069321,
0.2988988757133484,
0.17570017278194427,
-0.03337325528264046,
0.2961466312408447,
-0.09099407494068146,
-0.033804893493652344,
0.2347733974456787,
-0.2124553620815277,
0.09373936802148819,
0.5821318626403809,
-0.5478891134262085,
0.44269222021102905,
0.20406250655651093,
-0.2551068961620331,
-0.012492246925830841,
0.013358637690544128,
0.3419255018234253,
-0.38020431995391846,
-0.2767289876937866,
-0.182112917304039,
-0.005191829055547714,
-0.2885493040084839,
-0.1654057651758194,
0.17294836044311523,
-0.05848776549100876,
-0.04772572964429855,
-0.057083889842033386,
0.11609524488449097,
0.09879578649997711,
0.19410458207130432,
0.2643069624900818,
0.027458399534225464,
-0.5158172845840454,
0.1408475786447525,
0.008840996772050858,
-0.0738280639052391,
-0.12337319552898407,
0.20180614292621613,
0.22247621417045593,
-0.05021312087774277,
0.2972378432750702,
0.5017245411872864,
0.27868935465812683,
0.43943318724632263,
-0.3980526328086853,
0.027071692049503326,
-0.1670435518026352,
-0.0537126362323761,
-0.004035002551972866,
0.2694540023803711,
0.21400058269500732,
0.18691177666187286,
0.3638717830181122,
0.09120971709489822,
-0.06478655338287354,
0.09324756264686584,
0.2498401254415512,
0.3233388662338257,
-0.415725439786911,
0.5092519521713257,
-0.01219157874584198,
0.06538135558366776,
0.01980716921389103,
-0.09817212074995041,
-0.47584885358810425,
0.08363569527864456,
0.16831183433532715,
-0.22245487570762634,
0.13819053769111633,
-0.24458320438861847,
0.030102744698524475,
-0.10003335773944855,
0.028517508879303932,
0.4956335127353668,
0.27130332589149475,
0.04852498695254326,
0.1798427253961563,
-0.35238438844680786,
0.19597980380058289,
0.12372799217700958,
0.14028611779212952,
-0.09522250294685364,
0.43158790469169617,
-0.0487426295876503,
0.137984499335289,
0.297495037317276,
-0.3195742070674896,
0.03578810393810272,
0.07054242491722107,
-0.5330213308334351,
-0.06621012091636658,
-0.21837978065013885,
-0.08508193492889404,
-0.06692811846733093,
-0.3499487638473511,
0.23863814771175385,
-0.15484514832496643,
-0.10050410032272339,
-0.14051443338394165,
-0.018992412835359573,
0.044776927679777145,
0.22128698229789734,
0.23635955154895782,
0.47905591130256653,
0.42099782824516296,
-0.14481757581233978,
0.03747737407684326,
-0.09605303406715393,
-0.31525054574012756,
-0.3899896442890167,
-0.18646758794784546,
-0.012570932507514954,
0.5104130506515503,
-0.3076786398887634,
-0.25978195667266846,
0.02311672270298004,
0.518841028213501,
-0.1476649045944214,
-0.26364991068840027,
-0.2566915452480316,
0.09784996509552002,
-0.12343734502792358,
-0.16776253283023834,
-0.10069411993026733,
0.136386901140213,
0.10730955004692078,
0.2532268166542053,
-0.22550015151500702,
-0.37535932660102844,
0.5681205987930298,
-0.15522035956382751,
-0.1659298688173294,
-0.4628719985485077,
0.1418565958738327,
0.01587706059217453,
-0.11855552345514297,
-0.5991407632827759,
-0.27310964465141296,
0.3810966908931732,
0.3341086804866791,
-0.21436652541160583,
0.03674981743097305,
0.12864470481872559,
0.02582491561770439,
-0.13167579472064972,
0.3301210105419159,
0.020425088703632355,
-0.028560850769281387,
0.257581502199173,
-0.2110404670238495
] |
https://github.com/huggingface/datasets/issues/4379 | Latest dill release raises exception | @albertvillanova
I did a deep dive into @gugarosa's problem and found the issue and it might be related to the one @sgugger discovered. In dill 0.3.5(.1), I created a new `save_function` that fixes a bug in dill that prevented the pickling of recursive inner functions. It was a more complete solution to the problem that `dill._dill.stack` tried to solve in the internal API of dill. Since `dill._dill.stack` was no longer needed, I removed it. Since datasets copies the `save_function` directly from the dill API, it stops working with the new dill version since `dill._dill.stack` is no longer present and the `save_function` has been updated with new code.
https://github.com/huggingface/datasets/blob/95193ae61e92aa537d0c65d37a1fd9d2393aae89/src/datasets/utils/py_utils.py#L607-L678
~If the dill version is below 0.3.5, you should keep this function. If it is after, you would need to update your copy of `save_function` to use the code I introduced, or manually add a `stack` variable to `dill._dill` if it doesn't exist. Fortunately, in any version of Python 3.7+, dictionaries are always in insertion order and dill no longer supports Python 3.6 or older. So, any globals dictionary saved by dill 0.3.5+ will be deterministic given that the version of dill is held constant and this save_function is unnecessary for newer versions of dill.~
Ah. I see what is happening. I guess a different copy of the function code is needed that sorts the global variables by name.
```py
if dill.__version__.split('.') < ['0', '3', '5']:
# current save_function code inside here
else:
# new save_function code inside here with the following line inserted after creating the globals
globs = {k: globs[k] for k in sorted(globs.keys())}
```
Will look into the test case @sgugger pointed out after that and verify if this is causing the problem.
I am actually looking into rewriting the global variables code in uqfoundation/dill#466 and will keep this in mind and will try to create an easy way to modify the global variables in dill 0.3.6 (for example, sort them by key like datasets does). | ## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
| 327 | Latest dill release raises exception
## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
@albertvillanova
I did a deep dive into @gugarosa's problem and found the issue and it might be related to the one @sgugger discovered. In dill 0.3.5(.1), I created a new `save_function` that fixes a bug in dill that prevented the pickling of recursive inner functions. It was a more complete solution to the problem that `dill._dill.stack` tried to solve in the internal API of dill. Since `dill._dill.stack` was no longer needed, I removed it. Since datasets copies the `save_function` directly from the dill API, it stops working with the new dill version since `dill._dill.stack` is no longer present and the `save_function` has been updated with new code.
https://github.com/huggingface/datasets/blob/95193ae61e92aa537d0c65d37a1fd9d2393aae89/src/datasets/utils/py_utils.py#L607-L678
~If the dill version is below 0.3.5, you should keep this function. If it is after, you would need to update your copy of `save_function` to use the code I introduced, or manually add a `stack` variable to `dill._dill` if it doesn't exist. Fortunately, in any version of Python 3.7+, dictionaries are always in insertion order and dill no longer supports Python 3.6 or older. So, any globals dictionary saved by dill 0.3.5+ will be deterministic given that the version of dill is held constant and this save_function is unnecessary for newer versions of dill.~
Ah. I see what is happening. I guess a different copy of the function code is needed that sorts the global variables by name.
```py
if dill.__version__.split('.') < ['0', '3', '5']:
# current save_function code inside here
else:
# new save_function code inside here with the following line inserted after creating the globals
globs = {k: globs[k] for k in sorted(globs.keys())}
```
Will look into the test case @sgugger pointed out after that and verify if this is causing the problem.
I am actually looking into rewriting the global variables code in uqfoundation/dill#466 and will keep this in mind and will try to create an easy way to modify the global variables in dill 0.3.6 (for example, sort them by key like datasets does). | [
-0.32201477885246277,
0.1365460455417633,
-0.0019814148545265198,
-0.03622337430715561,
0.02259327843785286,
-0.14882439374923706,
0.4146614968776703,
0.4490567445755005,
-0.2709957957267761,
0.17140552401542664,
-0.3026237189769745,
0.363631010055542,
-0.22713924944400787,
-0.21680676937103271,
-0.04952208697795868,
-0.2923244535923004,
0.05195213109254837,
0.026317529380321503,
-0.19535887241363525,
0.0771590918302536,
-0.4631023705005646,
0.027319427579641342,
-0.4320957660675049,
0.11829806864261627,
-0.03985345736145973,
-0.058558180928230286,
-0.09010547399520874,
0.1447090357542038,
0.028490696102380753,
-0.519648015499115,
0.08135783672332764,
0.054790791124105453,
0.4063494801521301,
0.5111410617828369,
-0.00011738450120901689,
0.07823444902896881,
0.3975555896759033,
-0.13525044918060303,
-0.2530674338340759,
-0.5282238125801086,
0.2042446732521057,
0.0190946776419878,
0.08523902297019958,
-0.09393610805273056,
-0.044834550470113754,
-0.08248069137334824,
0.11606456339359283,
-0.21089619398117065,
0.18848876655101776,
0.33550167083740234,
0.18291684985160828,
0.25153613090515137,
0.2782553434371948,
-0.04535640776157379,
0.2216235101222992,
-0.06983637809753418,
-0.11535000056028366,
0.1402505785226822,
0.3066492974758148,
-0.1909356415271759,
-0.046987198293209076,
0.24322131276130676,
-0.03777420148253441,
-0.20202215015888214,
0.07455544173717499,
0.01067410223186016,
0.11360128223896027,
-0.20331557095050812,
0.02595401369035244,
0.421967476606369,
0.3988673985004425,
-0.42585423588752747,
-0.6395233273506165,
-0.17689159512519836,
0.04662023484706879,
-0.3740115463733673,
0.277626097202301,
-0.0878031775355339,
-0.04654543101787567,
0.19220590591430664,
0.10024698078632355,
-0.18340538442134857,
-0.1826973408460617,
0.16156017780303955,
-0.061226483434438705,
0.24449197947978973,
0.044094156473875046,
0.08381408452987671,
0.2661518156528473,
-0.25103235244750977,
0.20256473124027252,
0.14177876710891724,
0.10412091016769409,
-0.07473388314247131,
-0.5198741555213928,
-0.17019438743591309,
0.2038758099079132,
-0.4647079408168793,
0.19697263836860657,
0.033412571996450424,
-0.11993750929832458,
-0.08748380839824677,
-0.11641614884138107,
0.14311784505844116,
0.30215203762054443,
-0.08889007568359375,
0.2613232731819153,
0.2568221390247345,
0.453823983669281,
0.10467471182346344,
0.2377818524837494,
0.13627898693084717,
0.0657292827963829,
-0.1363731026649475,
-0.03213433548808098,
0.04060865193605423,
0.5710242986679077,
-0.06867522746324539,
-0.24406443536281586,
0.19564931094646454,
-0.47355836629867554,
0.00885782577097416,
0.09949859976768494,
0.3015943467617035,
0.20433971285820007,
0.591184675693512,
0.24241550266742706,
0.2765541076660156,
-0.07572153210639954,
-0.05948880314826965,
-0.1074974313378334,
0.20899739861488342,
0.1746712625026703,
-0.10109871625900269,
-0.06743443012237549,
-0.1172957718372345,
-0.03415096178650856,
0.11353210359811783,
-0.09561008214950562,
0.1115746945142746,
0.01667671464383602,
-0.2725330591201782,
0.1604018658399582,
0.10474307090044022,
-0.2977728247642517,
-0.08799084275960922,
-0.09303900599479675,
-0.28026339411735535,
-0.19315382838249207,
0.36149144172668457,
0.1179940402507782,
-0.2369532287120819,
-0.30543282628059387,
0.12152181565761566,
0.07280881702899933,
0.03949642553925514,
0.19666315615177155,
0.3950417935848236,
0.036878131330013275,
-0.39976346492767334,
0.248920738697052,
-0.46006882190704346,
-0.3584342300891876,
-0.11869081854820251,
0.17263177037239075,
0.39979737997055054,
-0.7880679368972778,
-0.009655099362134933,
-0.4439891278743744,
-0.08804987370967865,
0.026565492153167725,
-0.11900286376476288,
0.029458854347467422,
-0.16100451350212097,
-0.15788745880126953,
0.25084245204925537,
0.27785056829452515,
-0.45170363783836365,
-0.389116495847702,
-0.028559477999806404,
0.04344051331281662,
-0.04343701899051666,
-0.1809668242931366,
-0.217194601893425,
0.3527540862560272,
-0.0712619498372078,
0.093043752014637,
0.14296290278434753,
-0.08527354896068573,
-0.23222170770168304,
-0.33846038579940796,
-0.17735503613948822,
0.25413593649864197,
0.09329567849636078,
0.10170996934175491,
0.0004194527864456177,
-0.06989677995443344,
0.0465887151658535,
0.20493754744529724,
-0.08644159138202667,
0.03728807717561722,
0.03180370107293129,
0.5334927439689636,
-0.0428328812122345,
0.05216667801141739,
-0.533756673336029,
-0.5157362818717957,
0.3055724799633026,
0.10740882158279419,
-0.008488636463880539,
-0.06757035851478577,
-0.024446096271276474,
-0.07204917073249817,
0.28528863191604614,
0.08263041079044342,
0.008822666481137276,
0.02747812494635582,
0.2890157103538513,
-0.11207827925682068,
0.30874934792518616,
-0.010014280676841736,
-0.261667400598526,
0.007184213027358055,
0.06427676975727081,
-0.08601638674736023,
0.26370638608932495,
-0.2324398010969162,
-0.3147311508655548,
-0.0490107536315918,
0.12032090872526169,
0.015194419771432877,
-0.08145757019519806,
-0.18296995759010315,
0.5124937891960144,
0.07558553665876389,
-0.1488601565361023,
-0.36376360058784485,
-0.16846789419651031,
0.04359050095081329,
-0.15795812010765076,
0.12246373295783997,
0.18181143701076508,
0.18604853749275208,
0.0540509968996048,
0.2356220781803131,
0.26178598403930664,
0.26661020517349243,
0.15344396233558655,
0.011450223624706268,
0.27999529242515564,
0.12353935837745667,
0.07208207249641418,
-0.06190786510705948,
-0.18386656045913696,
-0.058945950120687485,
-0.015767574310302734,
0.45884203910827637,
-0.26859745383262634,
-0.5682805776596069,
0.20252637565135956,
0.3854541778564453,
-0.1392572671175003,
0.4146187901496887,
0.20692548155784607,
0.002585388720035553,
0.004713606089353561,
0.26720917224884033,
0.05945515260100365,
0.17055882513523102,
0.017077703028917313,
0.02101876586675644,
0.008283471688628197,
-0.09755273163318634,
-0.0735846757888794,
0.15425407886505127,
-0.03202739357948303,
0.14656181633472443,
0.2585197687149048,
0.2674088478088379,
0.14014063775539398,
-0.03949499875307083,
-0.15241937339305878,
-0.11494199186563492,
0.2589581608772278,
-0.2510222792625427,
0.0277437511831522,
-0.45159390568733215,
0.1383909285068512,
-0.020857591181993484,
0.07418796420097351,
-0.3820212483406067,
-0.10975281149148941,
0.04689360409975052,
0.12236484885215759,
-0.300020694732666,
0.38456034660339355,
-0.06391143798828125,
0.26499176025390625,
0.2999890148639679,
-0.14285340905189514,
-0.08202376216650009,
-0.021055573597550392,
-0.21507638692855835,
0.051981810480356216,
0.2264629751443863,
-0.20060065388679504,
0.2029390037059784,
0.30434390902519226,
-0.21155036985874176,
-0.12950806319713593,
-0.32922104001045227,
0.06637898087501526,
-0.14425110816955566,
0.41806522011756897,
0.3435954451560974,
-0.13902106881141663,
-0.016159644350409508,
-0.15136003494262695,
0.15558554232120514,
-0.41364383697509766,
-0.23954971134662628,
-0.1768348217010498,
0.17920511960983276,
0.3661145567893982,
-0.41578686237335205,
-0.4508456885814667,
-0.22800663113594055,
-0.4654204547405243,
0.1554807424545288,
-0.3066403269767761,
0.25662940740585327,
0.11231189966201782,
-0.07869066298007965,
0.49092698097229004,
0.3147145211696625,
0.10169761627912521,
-0.11347969621419907,
0.339357852935791,
0.05606314539909363,
-0.21616864204406738,
-0.30852821469306946,
-0.13495111465454102,
-0.29818880558013916,
0.0023468732833862305,
0.07336680591106415,
-0.3040316700935364,
-0.37346187233924866,
-0.16163231432437897,
0.31327685713768005,
-0.19453389942646027,
-0.14612381160259247,
0.3884035348892212,
0.12230496108531952,
0.02474440075457096,
-0.22185096144676208,
-0.41653314232826233,
0.19883540272712708,
0.2212793529033661,
0.06114064157009125,
0.3317187428474426,
0.31899207830429077,
-0.02402487024664879,
0.8334495425224304,
-0.13660471141338348,
-0.06073491647839546,
0.32475483417510986,
0.11738784611225128,
0.2868756353855133,
-0.0858980193734169,
-0.1957995891571045,
0.236700177192688,
0.251709520816803,
0.16490545868873596,
0.025285333395004272,
-0.21419158577919006,
-0.44199326634407043,
-0.04675551876425743,
-0.04070350527763367,
-0.2547537684440613,
-0.22841347754001617,
0.1058204174041748,
-0.26635366678237915,
-0.049044035375118256,
-0.010803007520735264,
0.24417579174041748,
0.055970270186662674,
0.0619179829955101,
-0.11214245855808258,
0.03988011181354523,
0.2114643156528473,
-0.2437693327665329,
-0.1536337435245514,
-0.0745573565363884,
-0.45162808895111084,
0.43039900064468384,
0.3345254361629486,
0.5105153918266296,
-0.042892903089523315,
-0.34331920742988586,
-0.08715970814228058,
-0.11248274147510529,
0.6434212923049927,
-0.4946117401123047,
-0.10634742677211761,
0.39492979645729065,
-0.30106690526008606,
-0.5722818970680237,
-0.024037448689341545,
-0.28199705481529236,
-0.054461997002363205,
0.36177730560302734,
-0.31949350237846375,
-0.2736070454120636,
-0.0660722404718399,
0.26794207096099854,
-0.08287448436021805,
0.16923625767230988,
-0.13317276537418365,
-0.0457368828356266,
-0.22518157958984375,
-0.103928342461586,
0.03275088593363762,
0.05030014365911484,
0.3113853335380554,
-0.4955447316169739,
-0.08407928794622421,
-0.0734514594078064,
-0.1710999310016632,
-0.09937262535095215,
-0.15119153261184692,
0.2835603952407837,
-0.06597313284873962,
0.14019392430782318,
0.1591469943523407,
0.5141928791999817,
0.39913246035575867,
0.0481155663728714,
-0.33413374423980713,
-0.12828612327575684,
0.41861552000045776,
0.14009585976600647,
-0.05637610703706741,
0.47066059708595276,
-0.0774385929107666,
0.15213844180107117,
-0.08787360042333603,
-0.027607865631580353,
-0.08134741336107254,
-0.10109320282936096,
0.18603789806365967,
0.2031988948583603,
-0.15686975419521332,
-0.2570952773094177,
0.14629387855529785,
0.223984494805336,
-0.08192791789770126,
0.05826272815465927,
0.12027610838413239,
-0.2632790803909302,
0.35871583223342896,
-0.03560637682676315,
0.8746209740638733,
-0.05126107484102249,
-0.11553609371185303,
0.48359668254852295,
0.16241131722927094,
0.518260657787323,
0.14769117534160614,
0.22398710250854492,
-0.2735658586025238,
-0.22726775705814362,
-0.11853902786970139,
-0.13089674711227417,
0.17479023337364197,
-0.12342219054698944,
-0.5530976057052612,
0.2395065277814865,
-0.04616189002990723,
-0.0961495041847229,
0.0024197669699788094,
0.15059207379817963,
-0.3024763762950897,
0.0959395170211792,
0.008153614588081837,
0.07794902473688126,
0.07306285202503204,
-0.027727339416742325,
-0.1371990442276001,
0.0364961139857769,
-0.23139648139476776,
-0.3007417321205139,
-0.5023702383041382,
0.16466650366783142,
-0.1343146562576294,
0.1297430694103241,
0.151865616440773,
-0.3068035840988159,
0.4563867747783661,
0.43805134296417236,
0.26140910387039185,
0.04409010335803032,
-0.24415317177772522,
-0.005223795771598816,
-0.209030419588089,
0.21394705772399902,
0.24357272684574127,
-0.12178682535886765,
0.473951518535614,
0.008318658918142319,
-0.4303266406059265,
0.05850459635257721,
0.027184829115867615,
-0.13367944955825806,
-0.048891037702560425,
0.23530378937721252,
-0.060145922005176544,
-0.1985682100057602,
-0.032914478331804276,
-0.13864080607891083,
0.017404694110155106,
-0.21355214715003967,
0.09730072319507599,
0.052790120244026184,
-0.15005779266357422,
0.030310682952404022,
-0.2157983034849167,
-0.15622973442077637,
-0.026592712849378586,
0.35421085357666016,
0.12031412869691849,
0.4395406246185303,
0.5585836172103882,
0.2896116375923157,
-0.03611002862453461,
-0.15594643354415894,
-0.010565023869276047,
0.10938030481338501,
-0.0977911502122879,
0.3685048818588257,
-0.257285475730896,
-0.18696552515029907,
-0.07774559408426285,
-0.02443469688296318,
-0.17698846757411957,
0.13166934251785278,
-0.20842541754245758,
-0.18807794153690338,
0.033115506172180176,
0.2700376510620117,
-0.2844823896884918,
0.11190488934516907,
-0.16804349422454834,
0.2899952530860901,
-0.022130310535430908,
-0.0646788701415062,
-0.2787100374698639,
0.043030135333538055,
-0.2021646797657013,
0.1519215703010559,
-0.08114559948444366,
-0.2900821268558502,
0.21264499425888062,
-0.16303355991840363,
0.07234495878219604,
0.33601564168930054,
-0.25939711928367615,
-0.08075256645679474,
-0.17216622829437256,
0.12641790509223938,
-0.017393015325069427,
-0.2628929913043976,
-0.1602638214826584,
-0.13675737380981445,
-0.2047385573387146,
0.015464460477232933,
-0.008432801812887192,
-0.03477911651134491,
-0.004306599497795105,
0.4732048213481903,
0.13083182275295258,
0.24918821454048157,
0.2474958747625351,
0.3754603862762451,
-0.06992363929748535,
0.39909589290618896,
-0.02637302130460739,
0.4639897048473358,
0.03374923765659332,
-0.16365459561347961,
-0.34885215759277344,
0.07558190822601318,
-0.22465653717517853,
0.13167567551136017,
0.22963926196098328,
0.012768380343914032,
-0.46859011054039,
-0.005163631401956081,
0.586695671081543,
0.433939665555954,
-0.28349626064300537,
-0.09600471705198288,
0.4238540232181549,
0.15768368542194366,
-0.09751785546541214,
0.21866363286972046,
0.38141322135925293,
-0.06149052083492279,
0.29982995986938477,
0.3260861337184906,
-0.12138374149799347,
0.04400831460952759,
-0.14155980944633484,
0.23783966898918152,
0.029081039130687714,
-0.07057201117277145,
0.201259046792984,
0.34573429822921753,
-0.006249245256185532,
0.1846262812614441,
0.28366413712501526,
-0.005977313965559006,
0.48548364639282227,
0.09804736077785492,
-0.16060039401054382,
0.18347100913524628,
-0.20214971899986267,
0.2016899138689041,
0.5950283408164978,
-0.6754389405250549,
0.4258187711238861,
0.3471181392669678,
-0.15881776809692383,
0.004740182310342789,
-0.1293047070503235,
0.44599592685699463,
-0.3975834548473358,
-0.36124297976493835,
-0.055210910737514496,
0.21288511157035828,
-0.28337225317955017,
-0.12665127217769623,
0.06096481531858444,
-0.07766201347112656,
-0.03885190188884735,
-0.032012663781642914,
0.06805630773305893,
-0.05605398863554001,
0.28965750336647034,
0.12809553742408752,
0.002967149019241333,
-0.49690788984298706,
0.004397707059979439,
-0.00816420465707779,
0.008106164634227753,
-0.13608352839946747,
0.10656628757715225,
0.34277451038360596,
-0.17768841981887817,
0.12416097521781921,
0.42261502146720886,
0.35264506936073303,
0.39668595790863037,
-0.33046647906303406,
0.04770710691809654,
-0.10361188650131226,
0.03512784093618393,
-0.04482085257768631,
0.1581319272518158,
-0.02821160852909088,
0.13866987824440002,
0.40830710530281067,
0.08073190599679947,
-0.06320449709892273,
0.07101689279079437,
0.19718435406684875,
0.5416702628135681,
-0.4404744505882263,
0.39960986375808716,
-0.04067547619342804,
0.1556565761566162,
-0.011480912566184998,
-0.05999407917261124,
-0.35880178213119507,
0.023979227989912033,
0.338400274515152,
-0.14878100156784058,
0.15414199233055115,
-0.25010445713996887,
0.06739597022533417,
-0.11946873366832733,
-0.0047028400003910065,
0.5561543703079224,
0.14287132024765015,
0.15134058892726898,
0.19768588244915009,
-0.3109935224056244,
0.17704689502716064,
0.13586241006851196,
0.14506635069847107,
-0.007137047126889229,
0.41877228021621704,
-0.051863960921764374,
0.03683881834149361,
0.13945181667804718,
-0.20944815874099731,
-0.022311558946967125,
0.04386189207434654,
-0.45330339670181274,
-0.12317714095115662,
-0.3026631474494934,
-0.18351806700229645,
0.09565234184265137,
-0.39616501331329346,
0.1648508459329605,
-0.16449736058712006,
-0.10663118213415146,
-0.154470756649971,
-0.008248943835496902,
0.00105234794318676,
0.1612391322851181,
0.2842026948928833,
0.4765661954879761,
0.211155503988266,
-0.16970902681350708,
-0.04967823624610901,
-0.12007097899913788,
-0.2137724757194519,
-0.41119062900543213,
-0.09816587716341019,
-0.07199540734291077,
0.600540041923523,
-0.33249419927597046,
-0.22553707659244537,
-0.08269602060317993,
0.5917221903800964,
-0.09498703479766846,
-0.12053148448467255,
-0.2700731158256531,
0.1863083392381668,
-0.17305268347263336,
-0.13883453607559204,
-0.10536494851112366,
0.14822256565093994,
0.04518860951066017,
0.41980376839637756,
-0.36070722341537476,
-0.5044764280319214,
0.6681561470031738,
-0.021967176347970963,
-0.07474999129772186,
-0.3419921398162842,
0.1413220316171646,
0.026027098298072815,
-0.2149609625339508,
-0.7175385355949402,
-0.20522236824035645,
0.33349519968032837,
0.31925252079963684,
-0.26894569396972656,
-0.030294112861156464,
-0.07098346948623657,
0.08873097598552704,
-0.19702479243278503,
0.33232367038726807,
0.03531859442591667,
-0.09526333212852478,
0.4754932224750519,
-0.18950480222702026
] |
https://github.com/huggingface/datasets/issues/4379 | Latest dill release raises exception | Thanks a lot for your investigation @anivegesana.
Yes, we copied-pasted the old `save_function` function from `dill`, just adding a line to make deterministic the order of global variables `globs`.
However, this function has changed a lot from version 0.3.5, after your PR (thank you for the fix in recursiveness, indeed):
- uqfoundation/dill#443
We have to address this change.
If finally your PR to sort global variables is merged into dill 0.3.6, that will make our life easier, as the tweak will no longer be necessary. ;)
I have included a regression test so that we are sure future releases of dill do not break `datasets`:
- #4385 | ## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
| 107 | Latest dill release raises exception
## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
Thanks a lot for your investigation @anivegesana.
Yes, we copied-pasted the old `save_function` function from `dill`, just adding a line to make deterministic the order of global variables `globs`.
However, this function has changed a lot from version 0.3.5, after your PR (thank you for the fix in recursiveness, indeed):
- uqfoundation/dill#443
We have to address this change.
If finally your PR to sort global variables is merged into dill 0.3.6, that will make our life easier, as the tweak will no longer be necessary. ;)
I have included a regression test so that we are sure future releases of dill do not break `datasets`:
- #4385 | [
-0.17359383404254913,
0.12260954082012177,
0.021940436214208603,
-0.025648310780525208,
0.15239310264587402,
-0.2003442645072937,
0.20380818843841553,
0.2261894792318344,
-0.24980275332927704,
0.2139284312725067,
-0.25263747572898865,
0.1603202074766159,
-0.26054254174232483,
-0.26930713653564453,
0.0930812656879425,
-0.26281294226646423,
0.004310838878154755,
0.004208847880363464,
-0.366952121257782,
-0.06940937042236328,
-0.5532305836677551,
0.02420470118522644,
-0.4646220803260803,
0.056000128388404846,
-0.06124771758913994,
-0.1455499529838562,
-0.19499006867408752,
0.20904123783111572,
0.007502265274524689,
-0.37541380524635315,
-0.2408391684293747,
0.25735679268836975,
0.30308473110198975,
0.3478688597679138,
-0.00011767829710152,
-0.049147166311740875,
0.26927003264427185,
-0.2437029778957367,
-0.12431803345680237,
-0.4849306344985962,
0.04468422383069992,
0.16164357960224152,
-0.01716841384768486,
-0.03198152035474777,
-0.0048946477472782135,
0.009560697712004185,
0.07616952806711197,
-0.219674751162529,
0.17463470995426178,
0.38125184178352356,
0.20244166254997253,
0.08451320230960846,
0.17056865990161896,
-0.060356006026268005,
0.23015841841697693,
-0.2086239606142044,
-0.009835615754127502,
0.17279843986034393,
0.16379567980766296,
-0.15142378211021423,
-0.07657798379659653,
0.2227160930633545,
-0.028868842869997025,
-0.37084048986434937,
-0.02809274196624756,
0.020332518965005875,
0.11005112528800964,
-0.3164467513561249,
-0.042237214744091034,
0.2940996289253235,
0.5296851992607117,
-0.4083569049835205,
-0.6468347311019897,
0.08115560561418533,
0.14706872403621674,
-0.4606800079345703,
0.17512747645378113,
-0.04651325196027756,
0.03552183508872986,
0.14948982000350952,
0.06598218530416489,
-0.06989522278308868,
-0.18736720085144043,
0.18155795335769653,
-0.24005037546157837,
0.39922070503234863,
0.10232958942651749,
-0.003733120858669281,
0.14832501113414764,
-0.2008712887763977,
0.004338618367910385,
0.2004554271697998,
0.1175200343132019,
-0.11917272210121155,
-0.5217862725257874,
-0.15723155438899994,
0.11107784509658813,
-0.17069295048713684,
0.16314777731895447,
0.14624857902526855,
-0.1883305460214615,
-0.13126978278160095,
0.03201812505722046,
0.07507305592298508,
0.2544648349285126,
0.3655821681022644,
0.07991120219230652,
0.2880975008010864,
0.4738779067993164,
-0.1970881074666977,
0.010160926729440689,
0.18241006135940552,
0.021936148405075073,
-0.28633296489715576,
0.0526379831135273,
0.14600950479507446,
0.39582061767578125,
-0.030757030472159386,
-0.30615293979644775,
0.25653159618377686,
-0.41766026616096497,
0.09817835688591003,
0.19500520825386047,
0.4194798767566681,
0.10523494333028793,
0.4760122001171112,
0.24410273134708405,
0.2615537643432617,
-0.025238340720534325,
0.0023592310026288033,
-0.10721069574356079,
0.0688251256942749,
0.1272052377462387,
0.037937507033348083,
-0.201930433511734,
0.21083463728427887,
-0.007030420005321503,
0.06741826981306076,
0.15290336310863495,
0.2017958164215088,
0.12847374379634857,
-0.31116628646850586,
0.24564769864082336,
0.1616835594177246,
-0.16524362564086914,
-0.06937197595834732,
-0.11649380624294281,
-0.2759689688682556,
-0.20936180651187897,
0.37238261103630066,
0.004680521786212921,
-0.38212350010871887,
-0.2417035549879074,
0.14482666552066803,
0.23080192506313324,
0.09239454567432404,
0.42545369267463684,
0.354743093252182,
0.086342453956604,
-0.467140257358551,
0.13921310007572174,
-0.4305117130279541,
-0.247627854347229,
-0.09742186218500137,
0.07002666592597961,
0.4226186275482178,
-0.7502982020378113,
0.003980740904808044,
-0.3946739137172699,
0.1495966911315918,
0.11872534453868866,
0.05707060918211937,
0.07028702646493912,
-0.0951245054602623,
-0.11600708961486816,
0.21740902960300446,
0.35202524065971375,
-0.3532966077327728,
-0.41522443294525146,
-0.01088063232600689,
-0.09830528497695923,
-0.12350478023290634,
-0.1626349687576294,
-0.1514493077993393,
0.47777971625328064,
-0.10230965167284012,
0.258905827999115,
0.1752467155456543,
0.010960817337036133,
-0.12975914776325226,
-0.38412371277809143,
-0.10538460314273834,
0.20583170652389526,
-0.03778837248682976,
0.09431508183479309,
0.08274784684181213,
-0.0286702960729599,
0.09833759814500809,
0.1539170742034912,
-0.12410089373588562,
-0.04325753450393677,
0.18639138340950012,
0.6619921326637268,
0.09177497029304504,
0.19687683880329132,
-0.32593753933906555,
-0.45803046226501465,
0.1406320035457611,
-0.03625263273715973,
0.0024089254438877106,
-0.03547215461730957,
-0.06965357810258865,
0.013654414564371109,
0.12862837314605713,
0.061562079936265945,
0.045641954988241196,
0.04291078448295593,
0.3521242141723633,
-0.05181291326880455,
0.3939523994922638,
0.07685801386833191,
-0.10580524057149887,
0.06827374547719955,
-0.024034908041357994,
0.04079810157418251,
0.2369033545255661,
-0.37036311626434326,
-0.2664754092693329,
0.18394747376441956,
0.16931450366973877,
0.0663101077079773,
0.04211532697081566,
-0.17629176378250122,
0.5453141331672668,
0.030317585915327072,
-0.2391660064458847,
-0.23241612315177917,
-0.11701224744319916,
0.036661237478256226,
-0.1959788054227829,
0.07505759596824646,
0.21374620497226715,
0.15747703611850739,
0.10752653330564499,
0.16843745112419128,
0.4838467240333557,
0.2573009133338928,
0.10652332007884979,
0.06321115791797638,
0.23018884658813477,
0.16914162039756775,
0.053150493651628494,
-0.1194375678896904,
-0.26573461294174194,
0.02159965969622135,
0.03464236110448837,
0.6014344096183777,
-0.1940501183271408,
-0.5775521397590637,
0.23134633898735046,
0.37274253368377686,
-0.15523101389408112,
0.5413237810134888,
0.08289125561714172,
0.09798086434602737,
-0.017999891191720963,
0.15341873466968536,
-0.1269751340150833,
0.29742878675460815,
0.08624971657991409,
-0.030378449708223343,
-0.018116215243935585,
-0.12502433359622955,
-0.15931056439876556,
0.13613812625408173,
-0.12374977767467499,
0.10836296528577805,
0.43993282318115234,
0.3890860974788666,
0.14209140837192535,
-0.08025448024272919,
-0.07242725789546967,
-0.09688515216112137,
0.2136887162923813,
-0.3265620470046997,
0.07367496937513351,
-0.524822473526001,
0.19499796628952026,
-0.001166636124253273,
0.052621107548475266,
-0.5095446109771729,
-0.15083543956279755,
0.19101637601852417,
-0.17029178142547607,
-0.36864209175109863,
0.43195414543151855,
0.1069566160440445,
0.3589556813240051,
0.3632603883743286,
-0.17165352404117584,
-0.11834405362606049,
-0.09333405643701553,
-0.1096021756529808,
-0.02185836061835289,
0.13460662961006165,
-0.17253810167312622,
0.28634631633758545,
0.28959715366363525,
-0.12814117968082428,
-0.07653595507144928,
-0.5168654918670654,
0.050555795431137085,
-0.01388053223490715,
0.4558100402355194,
0.20628398656845093,
-0.3504485487937927,
-0.034215956926345825,
-0.20906737446784973,
0.11113446950912476,
-0.357851505279541,
-0.24866099655628204,
-0.09301427751779556,
0.08773989230394363,
0.2382485419511795,
-0.341366708278656,
-0.44663193821907043,
-0.3071754276752472,
-0.4274311363697052,
0.03508082777261734,
-0.1949278712272644,
0.224543035030365,
-0.09419699758291245,
-0.2013349086046219,
0.25696414709091187,
0.24170978367328644,
0.07611719518899918,
-0.07192259281873703,
0.2743050754070282,
0.26984429359436035,
-0.3178303837776184,
-0.21682186424732208,
-0.18645918369293213,
-0.38220858573913574,
0.0029640719294548035,
0.06915365159511566,
-0.18361584842205048,
-0.32214444875717163,
-0.12645871937274933,
0.2520427703857422,
-0.06873112171888351,
-0.1648164987564087,
0.47993430495262146,
-0.022804655134677887,
0.054861366748809814,
-0.18175604939460754,
-0.39987680315971375,
0.1490943431854248,
0.47035157680511475,
0.18352702260017395,
0.07890424132347107,
0.3354245126247406,
0.00009483844041824341,
0.9182562232017517,
-0.2393198013305664,
0.17169703543186188,
0.13396213948726654,
0.2023726999759674,
0.27554547786712646,
-0.16251090168952942,
-0.10632560402154922,
0.2985561192035675,
0.27807319164276123,
-0.0019192341715097427,
0.21574033796787262,
-0.1920665204524994,
-0.4159278869628906,
-0.006471242755651474,
0.1038193553686142,
-0.3528733551502228,
-0.23870588839054108,
0.08134686201810837,
-0.20374657213687897,
-0.044619977474212646,
0.0007224138826131821,
0.04086299240589142,
0.10584530234336853,
0.07821962237358093,
-0.12993909418582916,
0.11557123064994812,
0.13489431142807007,
-0.12505382299423218,
-0.06043568253517151,
-0.050246767699718475,
-0.3283982574939728,
0.3548576533794403,
0.1790747344493866,
0.3242301642894745,
-0.040027037262916565,
-0.3495864272117615,
-0.006855271756649017,
-0.1907595694065094,
0.49207955598831177,
-0.4016658365726471,
-0.1776474118232727,
0.3846572935581207,
-0.41386979818344116,
-0.278766393661499,
-0.03527047485113144,
-0.3160237967967987,
-0.2168605774641037,
0.4535692632198334,
-0.344406396150589,
-0.42893218994140625,
-0.02665282040834427,
0.14923925697803497,
-0.20535938441753387,
-0.04322691261768341,
-0.20033445954322815,
-0.2945517599582672,
-0.20822098851203918,
-0.16970767080783844,
0.10597705841064453,
-0.006557080894708633,
0.2183150351047516,
-0.6802581548690796,
-0.007424075156450272,
-0.13216805458068848,
-0.25624290108680725,
-0.023764267563819885,
-0.2205754816532135,
0.4032098352909088,
-0.08349709957838058,
-0.006149452179670334,
0.1296325922012329,
0.60383141040802,
0.26491469144821167,
-0.019045308232307434,
-0.31264686584472656,
-0.15039438009262085,
0.4444925785064697,
0.028923876583576202,
0.07658874988555908,
0.44339340925216675,
-0.08990064263343811,
-0.026041947305202484,
-0.037040695548057556,
0.1254654973745346,
-0.08162743598222733,
-0.10848557949066162,
0.23315496742725372,
-0.02102273888885975,
-0.26434099674224854,
-0.26672235131263733,
0.08374886214733124,
0.19892485439777374,
-0.1232965961098671,
0.1060827374458313,
0.06580173224210739,
-0.3234082758426666,
0.4638640880584717,
0.2707197070121765,
1.0796910524368286,
-0.17911478877067566,
0.059859953820705414,
0.513618528842926,
0.1794595718383789,
0.37425220012664795,
0.10202746093273163,
0.4514184594154358,
-0.4793544113636017,
-0.07740501314401627,
-0.07011466473340988,
-0.0856478363275528,
0.22438615560531616,
-0.07415135204792023,
-0.83510822057724,
0.20482070744037628,
-0.21705271303653717,
-0.023821484297513962,
-0.057877324521541595,
0.006956525146961212,
-0.24046015739440918,
0.14250150322914124,
0.09675321727991104,
0.04834415018558502,
0.2890653610229492,
-0.026282865554094315,
-0.2884422540664673,
-0.06115211546421051,
-0.07450801879167557,
-0.21825355291366577,
-0.2865217328071594,
0.10913436859846115,
-0.2850652039051056,
0.09379935264587402,
-0.08014558255672455,
-0.2731866240501404,
0.22853894531726837,
0.6628915667533875,
0.2290060669183731,
0.16450738906860352,
-0.21911561489105225,
0.01932726986706257,
-0.08555293828248978,
0.26498523354530334,
0.24983477592468262,
-0.2385239452123642,
0.39363911747932434,
-0.017518049106001854,
-0.3644157350063324,
0.096520334482193,
0.0946488082408905,
-0.20346200466156006,
-0.43172621726989746,
0.20785687863826752,
-0.05660960078239441,
-0.08077351748943329,
0.05260980874300003,
0.03307679668068886,
-0.014171915128827095,
-0.3140861988067627,
0.11708179116249084,
0.03466368839144707,
-0.1249079555273056,
0.0998457744717598,
-0.33359894156455994,
-0.18093657493591309,
-0.019983433187007904,
0.3460887372493744,
0.19430622458457947,
0.5549908876419067,
0.44960635900497437,
0.1402147114276886,
-0.14798960089683533,
-0.2756354510784149,
0.012748658657073975,
-0.07085082679986954,
-0.2148900032043457,
0.4484085440635681,
-0.1441487967967987,
-0.26616454124450684,
-0.03907253220677376,
-0.034243326634168625,
-0.23591072857379913,
0.05381910502910614,
-0.18857425451278687,
-0.13781771063804626,
0.09427844732999802,
0.1382865309715271,
-0.17564277350902557,
0.05832282826304436,
-0.19350984692573547,
0.20744989812374115,
-0.07019079476594925,
0.19834548234939575,
-0.308500736951828,
-0.19806289672851562,
-0.37025347352027893,
0.19288018345832825,
-0.35386672616004944,
-0.24871239066123962,
0.11981163918972015,
0.04847138002514839,
0.05341722071170807,
0.2851850986480713,
-0.06590262800455093,
-0.08190663903951645,
-0.14382077753543854,
0.14659816026687622,
-0.039707064628601074,
-0.05389908701181412,
-0.0648876205086708,
-0.13658976554870605,
-0.1179957240819931,
-0.004661938175559044,
0.1611839085817337,
0.06264610588550568,
0.13470354676246643,
0.49792808294296265,
0.17932982742786407,
0.11538368463516235,
0.2968100905418396,
0.3992171585559845,
-0.025445088744163513,
0.3715498447418213,
-0.02894141897559166,
0.4477604329586029,
0.024350056424736977,
-0.1556445062160492,
-0.09202241152524948,
0.08162189275026321,
-0.08625778555870056,
0.15454444289207458,
0.26055964827537537,
-0.12084905803203583,
-0.505365252494812,
-0.04111171141266823,
0.5250504016876221,
0.3886388838291168,
-0.32557055354118347,
-0.1889384537935257,
0.3716532588005066,
0.13049623370170593,
-0.12021934241056442,
0.09336785972118378,
0.11427448689937592,
-0.0885198563337326,
0.15951190888881683,
0.25820866227149963,
-0.14945589005947113,
-0.08104344457387924,
-0.03308960050344467,
0.1686335802078247,
-0.11140920966863632,
-0.013102464377880096,
0.15129323303699493,
0.3096438944339752,
0.11888882517814636,
0.2741348147392273,
0.21687766909599304,
-0.04790899530053139,
0.3736402094364166,
0.03368557244539261,
-0.03075336664915085,
0.15412135422229767,
-0.34708455204963684,
0.11478999257087708,
0.4929983913898468,
-0.6006647348403931,
0.42738309502601624,
0.3248929977416992,
-0.22990775108337402,
-0.041211120784282684,
-0.18617236614227295,
0.2096271812915802,
-0.16370926797389984,
-0.29969289898872375,
-0.2131035476922989,
0.2686515152454376,
-0.33512255549430847,
-0.12327209115028381,
-0.011539343744516373,
-0.1017695814371109,
-0.03208543360233307,
0.020931940525770187,
0.022592702880501747,
-0.05420958250761032,
0.12020695209503174,
0.21712082624435425,
0.0728834867477417,
-0.552318811416626,
0.07080183178186417,
-0.10065696388483047,
-0.14812901616096497,
-0.14068329334259033,
0.18867482244968414,
0.3546397089958191,
-0.06083756685256958,
0.153900146484375,
0.3975788652896881,
0.3183651268482208,
0.6312414407730103,
-0.33240365982055664,
-0.007019961252808571,
-0.02143726497888565,
0.014077680185437202,
-0.201727032661438,
0.24551092088222504,
0.06186063587665558,
0.16834604740142822,
0.4808725118637085,
0.08841617405414581,
-0.0843995064496994,
0.11491185426712036,
0.283923864364624,
0.4814344346523285,
-0.23943226039409637,
0.5918744802474976,
-0.015492137521505356,
0.20149126648902893,
0.08406220376491547,
-0.055640943348407745,
-0.49620291590690613,
0.18225359916687012,
0.2844412922859192,
-0.22315330803394318,
0.14893263578414917,
-0.28187382221221924,
0.04926670342683792,
-0.03919760137796402,
0.0873088389635086,
0.49916696548461914,
0.17068207263946533,
0.0038336440920829773,
0.10410046577453613,
-0.3668558597564697,
0.28537383675575256,
0.25116997957229614,
0.3138986825942993,
-0.09733813256025314,
0.5432717204093933,
-0.047647468745708466,
0.012916460633277893,
0.0025371164083480835,
-0.2375568300485611,
-0.07329859584569931,
0.025851648300886154,
-0.5789084434509277,
-0.0013578645884990692,
-0.42671310901641846,
-0.06428799778223038,
-0.01879437267780304,
-0.35025790333747864,
0.15102937817573547,
-0.11438068747520447,
-0.03050430305302143,
-0.10812883079051971,
0.10978707671165466,
-0.10198172926902771,
0.22364985942840576,
0.3072601556777954,
0.5596099495887756,
0.16277030110359192,
-0.15016230940818787,
0.06749158352613449,
0.06382188946008682,
-0.20088988542556763,
-0.38635098934173584,
-0.2382868230342865,
-0.052340272814035416,
0.4829132854938507,
-0.30870407819747925,
-0.3581940233707428,
-0.15252026915550232,
0.46816155314445496,
0.017642617225646973,
-0.09546587616205215,
-0.2249215543270111,
0.1331426352262497,
-0.049050796777009964,
-0.12057090550661087,
-0.1261831521987915,
0.2034754753112793,
0.09990829229354858,
0.33578652143478394,
-0.29041409492492676,
-0.31474706530570984,
0.6651113033294678,
0.01916387677192688,
-0.036337077617645264,
-0.40147876739501953,
0.33338844776153564,
0.130601704120636,
-0.12333434075117111,
-0.42151519656181335,
-0.18218135833740234,
0.3314225673675537,
0.4937220811843872,
-0.18257704377174377,
0.08807338774204254,
0.1618257761001587,
0.10664677619934082,
-0.2504851520061493,
0.06886209547519684,
0.12375901639461517,
-0.20251594483852386,
0.34003129601478577,
-0.16898199915885925
] |
https://github.com/huggingface/datasets/issues/4379 | Latest dill release raises exception | I should note that because Python 3.6 and older are now deprecated and Python 3.7 has insertion order dictionaries, the globals in dill will have a deterministic order, just not sorted. I would still keep it sorted like you have it to help with stability (for example, if someone reorders variables in a file, then sorting the globals would not invalidate the cache.)
It seems that the order is not quite deterministic in IPython. Huggingface datasets seems to do well in Jupyter regardless, so it is not a good idea to remove the sorting. uqfoundation/dill#19 | ## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
| 95 | Latest dill release raises exception
## Describe the bug
As reported by @sgugger, latest dill release is breaking things with Datasets.
```
______________ ExamplesTests.test_run_speech_recognition_seq2seq _______________
self = <multiprocess.pool.ApplyResult object at 0x7fa5981a1cd0>, timeout = None
def get(self, timeout=None):
self.wait(timeout)
if not self.ready():
raise TimeoutError
if self._success:
return self._value
else:
> raise self._value
E TypeError: '>' not supported between instances of 'NoneType' and 'float'
```
I should note that because Python 3.6 and older are now deprecated and Python 3.7 has insertion order dictionaries, the globals in dill will have a deterministic order, just not sorted. I would still keep it sorted like you have it to help with stability (for example, if someone reorders variables in a file, then sorting the globals would not invalidate the cache.)
It seems that the order is not quite deterministic in IPython. Huggingface datasets seems to do well in Jupyter regardless, so it is not a good idea to remove the sorting. uqfoundation/dill#19 | [
0.0327274464070797,
-0.10583002865314484,
0.04006921127438545,
-0.009317107498645782,
-0.027755007147789,
-0.17819906771183014,
0.4407166540622711,
0.12387189269065857,
-0.04374244436621666,
0.17859674990177155,
-0.3917998969554901,
0.05517860874533653,
-0.16992920637130737,
-0.2064780294895172,
0.04109730198979378,
-0.3437439501285553,
-0.02269599586725235,
0.022366128861904144,
-0.37865471839904785,
0.005675412714481354,
-0.42494097352027893,
0.020102715119719505,
-0.5501355528831482,
0.02249421924352646,
-0.08624973893165588,
-0.16525401175022125,
-0.13227280974388123,
0.21717309951782227,
-0.038425564765930176,
-0.4703986346721649,
-0.09737998247146606,
0.35147976875305176,
0.24526271224021912,
0.35529711842536926,
-0.00011718868336174637,
0.06534485518932343,
0.3114837408065796,
-0.06915406137704849,
-0.1689029037952423,
-0.4273313879966736,
0.2730216383934021,
0.1088428720831871,
0.057063087821006775,
-0.1388145089149475,
-0.18241149187088013,
0.15365394949913025,
0.0826936811208725,
-0.09473642706871033,
0.2558367848396301,
0.269481897354126,
0.1873355209827423,
0.5224927663803101,
0.15019643306732178,
0.12814705073833466,
0.113599993288517,
-0.059906005859375,
0.01072644628584385,
0.28839999437332153,
0.1720353364944458,
0.008761433884501457,
-0.17957806587219238,
0.2678494155406952,
-0.0646955668926239,
-0.13624799251556396,
0.03188294917345047,
0.1427289843559265,
0.04787616431713104,
-0.28592512011528015,
-0.1410144567489624,
0.3615624010562897,
0.37541672587394714,
-0.36451733112335205,
-0.697505533695221,
-0.12284879386425018,
0.16645990312099457,
-0.3912624418735504,
0.2627187669277191,
-0.038685142993927,
0.043469544500112534,
0.2059730440378189,
0.08524984121322632,
-0.05248144641518593,
-0.18966397643089294,
0.18625408411026,
-0.40387362241744995,
0.5240300297737122,
0.059248246252536774,
-0.018654145300388336,
0.10764773190021515,
-0.28109729290008545,
-0.05049676075577736,
0.06859792768955231,
0.15697836875915527,
-0.006567399017512798,
-0.35355088114738464,
-0.2885385751724243,
0.12767629325389862,
-0.16347134113311768,
0.07465662807226181,
-0.04731138050556183,
-0.2418375164270401,
-0.1761094629764557,
-0.09587941318750381,
0.11370766162872314,
0.26563432812690735,
0.24958153069019318,
0.14050965011119843,
0.3546503484249115,
0.6129055619239807,
0.08415868133306503,
0.17578013241291046,
0.24230527877807617,
0.15492132306098938,
-0.2612342834472656,
-0.018582917749881744,
-0.0288640558719635,
0.44134652614593506,
-0.056103676557540894,
-0.42712798714637756,
0.10972319543361664,
-0.29920101165771484,
0.03728802129626274,
0.17338740825653076,
0.2414293885231018,
0.029252517968416214,
0.34719598293304443,
0.27931904792785645,
0.2500259280204773,
-0.25348955392837524,
0.05366891250014305,
-0.045919254422187805,
0.1212661862373352,
0.15502671897411346,
-0.0029960907995700836,
-0.1392660140991211,
0.19787584245204926,
0.005302548408508301,
0.14137889444828033,
0.10325386375188828,
0.28308016061782837,
0.13889050483703613,
-0.1393456906080246,
0.05529322847723961,
0.30885031819343567,
-0.268706351518631,
-0.0834871232509613,
-0.15183047950267792,
-0.27718180418014526,
-0.34232035279273987,
0.27619463205337524,
-0.03763724863529205,
-0.20956894755363464,
-0.2504254877567291,
0.14683429896831512,
0.08295021951198578,
0.03288879990577698,
0.230465829372406,
0.16976964473724365,
0.047779522836208344,
-0.47824132442474365,
0.13442568480968475,
-0.435207724571228,
-0.3000067472457886,
-0.018058570101857185,
0.019478430971503258,
0.43725156784057617,
-0.6102367043495178,
-0.1584719866514206,
-0.27328333258628845,
0.025106679648160934,
0.06953819841146469,
0.3184119462966919,
0.037740036845207214,
-0.13001587986946106,
-0.046061478555202484,
0.039192356169223785,
0.18803098797798157,
-0.36609017848968506,
-0.4030802845954895,
-0.06985527276992798,
-0.07602449506521225,
0.12968407571315765,
-0.16439324617385864,
0.05364995449781418,
0.48149174451828003,
-0.06568284332752228,
0.3890308141708374,
0.30135709047317505,
0.04236593842506409,
-0.11958187818527222,
-0.32893747091293335,
-0.06283082813024521,
0.221934512257576,
0.022712379693984985,
0.005774710327386856,
0.04432442784309387,
-0.1642020344734192,
0.02423032745718956,
0.07494558393955231,
-0.09846562147140503,
-0.051763132214546204,
0.09989824891090393,
0.37861502170562744,
0.17328819632530212,
0.17368924617767334,
-0.3649422526359558,
-0.5435569286346436,
0.2133115828037262,
-0.026362450793385506,
0.1978299766778946,
-0.16152317821979523,
-0.1840362548828125,
0.031252671033144,
0.06354068219661713,
-0.02637898549437523,
-0.06978932023048401,
0.010174509137868881,
0.18492037057876587,
0.05036569759249687,
0.32372429966926575,
-0.040887344628572464,
-0.07406670600175858,
0.11751732230186462,
0.17002765834331512,
-0.2734758257865906,
0.2791971266269684,
-0.33063313364982605,
-0.18425431847572327,
0.06999556720256805,
0.28878381848335266,
-0.14617446064949036,
-0.06303980946540833,
-0.08061106503009796,
0.43735015392303467,
0.14318862557411194,
-0.2955760359764099,
-0.16922670602798462,
-0.04009470343589783,
0.2764695882797241,
-0.06780151277780533,
0.10832199454307556,
0.32252949476242065,
0.04968934878706932,
0.077529676258564,
0.10615754127502441,
0.7213366031646729,
0.16796240210533142,
0.1681380718946457,
-0.0567573606967926,
0.1889912188053131,
0.15035663545131683,
0.13266001641750336,
-0.3320299983024597,
-0.2156575620174408,
0.16586712002754211,
0.10963205993175507,
0.5000087022781372,
-0.013298345729708672,
-0.6203835010528564,
0.050262562930583954,
0.3629235625267029,
-0.21017825603485107,
0.3212449252605438,
0.14896239340305328,
0.13795559108257294,
0.1323462724685669,
0.22961466014385223,
-0.2748197019100189,
0.18233706057071686,
0.10543172806501389,
-0.006571132689714432,
0.026000073179602623,
-0.10462405532598495,
-0.09577533602714539,
-0.08072792738676071,
-0.09197773039340973,
-0.008426728658378124,
0.23510956764221191,
0.4068031311035156,
0.2649838626384735,
-0.20335447788238525,
-0.10619185864925385,
-0.2880179286003113,
0.1390150934457779,
-0.304138720035553,
0.16569024324417114,
-0.38731110095977783,
0.02826068550348282,
0.04535084590315819,
-0.006819623522460461,
-0.7037410140037537,
-0.07533805072307587,
0.21109499037265778,
0.0168449766933918,
-0.35429537296295166,
0.42904359102249146,
0.15513941645622253,
0.3137105703353882,
0.3310270607471466,
-0.1257275491952896,
-0.10345953702926636,
-0.04456312581896782,
-0.04783397912979126,
0.0024992208927869797,
0.1723099946975708,
-0.13548116385936737,
0.4451412558555603,
0.21606452763080597,
-0.28930532932281494,
-0.05814091116189957,
-0.5592382550239563,
-0.04872811585664749,
-0.08132598549127579,
0.4757189452648163,
0.20853275060653687,
-0.10255081951618195,
0.03604135662317276,
-0.17674177885055542,
0.1734311878681183,
-0.25798603892326355,
-0.3364863097667694,
-0.06353402137756348,
0.06419797241687775,
0.16447526216506958,
-0.29879000782966614,
-0.3477570116519928,
-0.35966575145721436,
-0.3157804608345032,
0.1743282973766327,
-0.10449768602848053,
0.22812864184379578,
-0.102793388068676,
-0.31979063153266907,
0.1978324055671692,
0.15017001330852509,
0.1666862815618515,
0.002756391651928425,
0.14738184213638306,
0.22058779001235962,
-0.2409147024154663,
-0.21918921172618866,
-0.2599619925022125,
-0.4833390712738037,
-0.007018931210041046,
-0.11738735437393188,
-0.17896702885627747,
-0.2878999412059784,
-0.3629162907600403,
0.5754033923149109,
-0.015794571489095688,
-0.10802288353443146,
0.5319805145263672,
-0.052839528769254684,
0.09005919843912125,
-0.06286298483610153,
-0.36925384402275085,
0.06926386058330536,
0.3547617495059967,
0.030888758599758148,
0.2390470802783966,
0.41421255469322205,
-0.04064875841140747,
0.928062915802002,
-0.25428104400634766,
0.02873731404542923,
0.10659867525100708,
0.19905458390712738,
0.2708396315574646,
-0.26306551694869995,
-0.1352960616350174,
0.16408675909042358,
0.33975282311439514,
0.023197729140520096,
0.21682047843933105,
-0.1394995152950287,
-0.24681375920772552,
-0.11277128010988235,
0.13580192625522614,
-0.31237107515335083,
-0.26388105750083923,
0.07102362811565399,
-0.17516835033893585,
-0.08437728136777878,
-0.01954454369843006,
0.01827021688222885,
0.12924595177173615,
0.005673379637300968,
-0.18955601751804352,
0.18315240740776062,
0.1315806657075882,
-0.08366028219461441,
0.03272809460759163,
-0.17293517291545868,
-0.45632344484329224,
0.2669147253036499,
0.23081018030643463,
0.3104270100593567,
0.015254925936460495,
-0.22525975108146667,
0.18969078361988068,
-0.08938334137201309,
0.5831915140151978,
-0.15835782885551453,
-0.2128249555826187,
0.2252219021320343,
-0.395971417427063,
-0.39802587032318115,
-0.015252800658345222,
-0.3239993751049042,
-0.11351203173398972,
0.5820851922035217,
-0.05467917025089264,
-0.47926604747772217,
-0.030489346012473106,
0.34096401929855347,
-0.11902059614658356,
-0.03540746867656708,
-0.39202725887298584,
-0.4475553035736084,
-0.17868682742118835,
-0.21793203055858612,
0.128072589635849,
0.07541200518608093,
0.19019632041454315,
-0.5491834282875061,
0.012499213218688965,
0.03500181809067726,
-0.17054852843284607,
0.01666361838579178,
-0.05062161758542061,
0.25216400623321533,
-0.15444009006023407,
0.06469348073005676,
0.3162548542022705,
0.4590223431587219,
0.21621066331863403,
0.15441745519638062,
-0.23282089829444885,
-0.33078572154045105,
0.24556732177734375,
0.11070750653743744,
-0.028916381299495697,
0.43217554688453674,
0.051714248955249786,
0.1608542799949646,
0.06739464402198792,
0.11876551806926727,
-0.05165700241923332,
-0.0732571929693222,
0.38891366124153137,
0.16122359037399292,
-0.3949779272079468,
-0.2850668132305145,
0.08509892970323563,
0.10983306169509888,
-0.028727523982524872,
0.2022045999765396,
0.27775144577026367,
-0.31892120838165283,
0.3438712954521179,
0.07456351816654205,
1.0042154788970947,
-0.2645983099937439,
0.26411011815071106,
0.6043698787689209,
0.1976831704378128,
0.49161168932914734,
0.30548757314682007,
0.39057016372680664,
-0.4636364281177521,
0.01782090775668621,
-0.1001804769039154,
-0.11092344671487808,
0.30439668893814087,
-0.18315084278583527,
-0.5934236645698547,
0.2804296016693115,
-0.15337547659873962,
-0.015110272914171219,
-0.12296940386295319,
0.1387319266796112,
-0.19846495985984802,
0.06628481298685074,
-0.121799036860466,
0.028465934097766876,
0.10101139545440674,
0.1779087781906128,
-0.2201346755027771,
0.08202383667230606,
-0.11593586206436157,
-0.18778131902217865,
-0.23855619132518768,
-0.06777460873126984,
-0.046092502772808075,
0.22088326513767242,
0.2331746369600296,
-0.17445504665374756,
0.09968297183513641,
0.46025341749191284,
0.1652401089668274,
0.13400745391845703,
-0.13678233325481415,
-0.025065358728170395,
-0.07338578253984451,
0.18011173605918884,
0.1633782982826233,
-0.14499735832214355,
0.4193654954433441,
-0.009241141378879547,
-0.4071943759918213,
-0.01669200509786606,
0.09780333191156387,
-0.25173115730285645,
-0.21552491188049316,
0.3101838231086731,
0.04786252975463867,
-0.08477409929037094,
0.012509128078818321,
-0.029001109302043915,
0.0160038061439991,
-0.21443501114845276,
0.1190711259841919,
0.0900733470916748,
-0.17198152840137482,
0.004602447152137756,
-0.2751120328903198,
-0.23740176856517792,
-0.11664105951786041,
0.4485766291618347,
0.15150833129882812,
0.4501384496688843,
0.3857744038105011,
0.17031827569007874,
-0.2819063663482666,
-0.11860845237970352,
0.1889002025127411,
-0.07956086099147797,
-0.07859977334737778,
0.47535035014152527,
0.0584479384124279,
-0.18493573367595673,
-0.23914065957069397,
0.006809476763010025,
-0.028137095272541046,
-0.13035956025123596,
-0.19074635207653046,
-0.09770411252975464,
0.09575655311346054,
0.22434177994728088,
-0.08814030885696411,
0.07099084556102753,
-0.0524868443608284,
0.32676663994789124,
-0.13708646595478058,
-0.014317160472273827,
-0.30587685108184814,
-0.18119069933891296,
-0.26858577132225037,
0.22606730461120605,
-0.13027434051036835,
-0.2341488003730774,
0.054592277854681015,
0.06777961552143097,
0.10089053213596344,
0.08572864532470703,
-0.030786700546741486,
-0.13408178091049194,
-0.1935519427061081,
0.11306235939264297,
-0.10441809147596359,
-0.19203026592731476,
0.08107956498861313,
-0.0633997768163681,
-0.13381049036979675,
-0.03596973046660423,
0.18366676568984985,
0.1879993975162506,
0.15723255276679993,
0.5216798186302185,
0.25822728872299194,
0.11601203680038452,
0.30364394187927246,
0.5067872405052185,
-0.17073756456375122,
0.15312975645065308,
0.052055723965168,
0.4606247842311859,
-0.08639126271009445,
-0.03876971825957298,
-0.07792864739894867,
0.14414352178573608,
-0.11238197982311249,
0.05360731482505798,
0.16377761960029602,
-0.20201386511325836,
-0.39694902300834656,
-0.041948314756155014,
0.6490195989608765,
0.4401189684867859,
-0.29386427998542786,
-0.3074664771556854,
0.33951032161712646,
0.1552445888519287,
-0.1818002462387085,
0.11356427520513535,
0.2336912900209427,
0.043686989694833755,
0.2432262897491455,
0.26649320125579834,
-0.2657957375049591,
0.1572195142507553,
0.01891590654850006,
0.1361115574836731,
-0.1393255591392517,
-0.10792581737041473,
0.1984815150499344,
0.21664457023143768,
0.1177302747964859,
0.20008642971515656,
0.3358846604824066,
-0.13025648891925812,
0.2657287120819092,
0.014721628278493881,
-0.03429805487394333,
0.05637639760971069,
-0.4130443334579468,
0.1628727912902832,
0.3892558217048645,
-0.5889914631843567,
0.3076041042804718,
0.1337779015302658,
-0.16866737604141235,
-0.11488852649927139,
0.08392383903265,
0.31200313568115234,
-0.34848636388778687,
-0.3684142231941223,
-0.20335060358047485,
0.22222302854061127,
-0.379209965467453,
-0.13712608814239502,
-0.016297562047839165,
-0.06955046206712723,
0.08856022357940674,
0.055269207805395126,
-0.00962117314338684,
-0.014281563460826874,
0.11493301391601562,
0.22251468896865845,
0.035604994744062424,
-0.816083550453186,
0.17301753163337708,
-0.21567577123641968,
0.04150404408574104,
0.010044414550065994,
0.19222810864448547,
0.3469775915145874,
-0.04896342009305954,
0.1239711195230484,
0.31688612699508667,
0.2123800367116928,
0.4125995635986328,
-0.3370319604873657,
0.011473946273326874,
-0.281720370054245,
-0.035986870527267456,
-0.1312796026468277,
0.17348560690879822,
-0.12869873642921448,
0.13981981575489044,
0.3352276384830475,
0.09708163142204285,
-0.14934931695461273,
0.13286112248897552,
0.2051810771226883,
0.30351728200912476,
-0.3250814378261566,
0.5242567658424377,
-0.20202697813510895,
0.09686533361673355,
0.017678897827863693,
-0.06535094231367111,
-0.5219683647155762,
0.16849815845489502,
0.09673839807510376,
-0.20263144373893738,
-0.0023707859218120575,
-0.2859082818031311,
0.03892822936177254,
-0.018059343099594116,
0.13588298857212067,
0.6057762503623962,
0.3473210632801056,
-0.018977362662553787,
0.23137734830379486,
-0.5176515579223633,
0.1839175522327423,
0.0212633665651083,
0.11995081603527069,
-0.052915558218955994,
0.3990582525730133,
-0.18909725546836853,
0.07311154901981354,
0.03367793560028076,
-0.28544580936431885,
-0.15662333369255066,
-0.17091307044029236,
-0.4925924837589264,
-0.03978152945637703,
-0.34985774755477905,
-0.23779326677322388,
-0.07867951691150665,
-0.3350837826728821,
0.13075606524944305,
-0.22109676897525787,
-0.0626433715224266,
-0.09124340862035751,
0.19397762417793274,
-0.10047043859958649,
0.44203200936317444,
-0.11697566509246826,
0.6136506199836731,
0.2686760723590851,
-0.022768817842006683,
-0.023335175588726997,
0.03956388309597969,
-0.26979154348373413,
-0.5141991376876831,
-0.11093349009752274,
-0.1646070033311844,
0.6247438192367554,
-0.22266921401023865,
-0.5164217352867126,
-0.11648547649383545,
0.7093299627304077,
-0.016379209235310555,
-0.23830881714820862,
-0.23807735741138458,
0.1977095752954483,
-0.07844286412000656,
-0.011195543222129345,
-0.18740196526050568,
0.2446637749671936,
0.19883829355239868,
0.27518707513809204,
-0.2142373025417328,
-0.28509780764579773,
0.6926562190055847,
-0.18792413175106049,
-0.03938913717865944,
-0.29969045519828796,
0.17357994616031647,
0.11956331133842468,
-0.2384367287158966,
-0.33606985211372375,
-0.13202926516532898,
0.34353941679000854,
0.2414141297340393,
-0.18358179926872253,
0.2554742693901062,
0.056472692638635635,
0.05347283557057381,
-0.28705379366874695,
0.27690964937210083,
0.09625379741191864,
-0.24349506199359894,
0.3067326843738556,
-0.2083309143781662
] |
https://github.com/huggingface/datasets/issues/4376 | irc_disentagle viewer error | DUPLICATED comment from https://github.com/huggingface/datasets/issues/3807:
my code:
```
from datasets import load_dataset
dataset = load_dataset("irc_disentangle", download_mode="force_redownload")
```
however, it produces the same error
```
[38](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=37) if len(bad_urls) > 0:
[39](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=38) error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> [40](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=39) raise NonMatchingChecksumError(error_msg + str(bad_urls))
[41](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=40) logger.info("All the checksums matched successfully" + for_verification_name)
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://github.com/jkkummerfeld/irc-disentanglement/tarball/master']
```
I attempted to use the `ignore_verifications' as such:
```
ds = datasets.load_dataset('irc_disentangle', download_mode="force_redownload", ignore_verifications=True)
Downloading builder script: 12.0kB [00:00, 5.92MB/s]
Downloading metadata: 7.58kB [00:00, 3.48MB/s]
No config specified, defaulting to: irc_disentangle/ubuntu
Downloading and preparing dataset irc_disentangle/ubuntu (download: 112.98 MiB, generated: 60.05 MiB, post-processed: Unknown size, total: 173.03 MiB) to /Users/laylabouzoubaa/.cache/huggingface/datasets/irc_disentangle/ubuntu/1.0.0/0f24ab262a21d8c1d989fa53ed20caa928f5880be26c162bfbc02445dbade7e5...
Downloading data: 118MB [00:09, 12.1MB/s]
Dataset irc_disentangle downloaded and prepared to /Users/laylabouzoubaa/.cache/huggingface/datasets/irc_disentangle/ubuntu/1.0.0/0f24ab262a21d8c1d989fa53ed20caa928f5880be26c162bfbc02445dbade7e5. Subsequent calls will reuse this data.
100%|██████████| 3/3 [00:00<00:00, 675.38it/s]
```
but, this returns an empty set?
```
DatasetDict({
train: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
test: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
})
```
not sure what else to try at this point?
Thanks in advanced🤗 | the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807 | 193 | irc_disentagle viewer error
the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807
DUPLICATED comment from https://github.com/huggingface/datasets/issues/3807:
my code:
```
from datasets import load_dataset
dataset = load_dataset("irc_disentangle", download_mode="force_redownload")
```
however, it produces the same error
```
[38](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=37) if len(bad_urls) > 0:
[39](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=38) error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> [40](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=39) raise NonMatchingChecksumError(error_msg + str(bad_urls))
[41](file:///Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/datasets/utils/info_utils.py?line=40) logger.info("All the checksums matched successfully" + for_verification_name)
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://github.com/jkkummerfeld/irc-disentanglement/tarball/master']
```
I attempted to use the `ignore_verifications' as such:
```
ds = datasets.load_dataset('irc_disentangle', download_mode="force_redownload", ignore_verifications=True)
Downloading builder script: 12.0kB [00:00, 5.92MB/s]
Downloading metadata: 7.58kB [00:00, 3.48MB/s]
No config specified, defaulting to: irc_disentangle/ubuntu
Downloading and preparing dataset irc_disentangle/ubuntu (download: 112.98 MiB, generated: 60.05 MiB, post-processed: Unknown size, total: 173.03 MiB) to /Users/laylabouzoubaa/.cache/huggingface/datasets/irc_disentangle/ubuntu/1.0.0/0f24ab262a21d8c1d989fa53ed20caa928f5880be26c162bfbc02445dbade7e5...
Downloading data: 118MB [00:09, 12.1MB/s]
Dataset irc_disentangle downloaded and prepared to /Users/laylabouzoubaa/.cache/huggingface/datasets/irc_disentangle/ubuntu/1.0.0/0f24ab262a21d8c1d989fa53ed20caa928f5880be26c162bfbc02445dbade7e5. Subsequent calls will reuse this data.
100%|██████████| 3/3 [00:00<00:00, 675.38it/s]
```
but, this returns an empty set?
```
DatasetDict({
train: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
test: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'raw', 'ascii', 'tokenized', 'date', 'connections'],
num_rows: 0
})
})
```
not sure what else to try at this point?
Thanks in advanced🤗 | [
-0.2918833792209625,
0.04244507849216461,
0.05369214341044426,
0.45641523599624634,
0.28749120235443115,
0.01188051700592041,
0.27155640721321106,
0.1925608366727829,
0.28398793935775757,
0.046803392469882965,
-0.40107521414756775,
0.06242414936423302,
0.042877186089754105,
0.21176040172576904,
-0.36794763803482056,
0.06937827914953232,
-0.1375872790813446,
0.23046602308750153,
-0.18185469508171082,
0.10637618601322174,
0.12577059864997864,
0.13247337937355042,
-0.10801823437213898,
-0.2343377321958542,
-0.25674229860305786,
-0.006183980032801628,
0.06383827328681946,
0.24223393201828003,
-0.1470174789428711,
-0.6049035787582397,
0.49896466732025146,
0.27446475625038147,
0.06427905708551407,
0.46146532893180847,
-0.00012838885595556349,
0.18399225175380707,
0.2943595051765442,
-0.12044408172369003,
-0.2571159601211548,
-0.12937866151332855,
-0.17490434646606445,
0.01652146875858307,
0.27887070178985596,
-0.1644841879606247,
-0.07578811049461365,
0.03110155463218689,
-0.12728342413902283,
-0.13742946088314056,
0.40976160764694214,
0.35292088985443115,
0.015548065304756165,
0.4461229145526886,
0.13937178254127502,
0.16674120724201202,
0.17400947213172913,
0.022960983216762543,
0.09414459019899368,
0.36160045862197876,
-0.2840944230556488,
0.24354225397109985,
-0.05846173316240311,
0.24513711035251617,
-0.11546950787305832,
0.12915536761283875,
0.06556914001703262,
-0.08654071390628815,
-0.4055944085121155,
-0.362200528383255,
0.10255082696676254,
0.30239757895469666,
0.3991799056529999,
-0.19176730513572693,
-0.38367727398872375,
-0.13935522735118866,
0.07887659966945648,
-0.23164775967597961,
0.29292434453964233,
0.09541013836860657,
-0.019159194082021713,
0.17251652479171753,
-0.4445994198322296,
-0.10873212665319443,
-0.3278704285621643,
0.09304285049438477,
-0.4661305844783783,
0.03318639472126961,
-0.10878758877515793,
0.1872059404850006,
0.18152427673339844,
0.15455614030361176,
-0.15624751150608063,
0.030007973313331604,
-0.26924067735671997,
-0.06237814947962761,
-0.4796646237373352,
-0.1169922724366188,
-0.09422389417886734,
0.09538571536540985,
-0.060452431440353394,
0.423350989818573,
-0.13228464126586914,
-0.20266377925872803,
-0.03668360039591789,
0.16987544298171997,
0.29167667031288147,
0.016811050474643707,
0.09558436274528503,
0.048835720866918564,
0.24925290048122406,
0.34419941902160645,
0.005140960216522217,
-0.16919085383415222,
0.03343081846833229,
-0.17484362423419952,
-0.04719310626387596,
-0.024318765848875046,
0.17078004777431488,
-0.29511892795562744,
-0.3821885287761688,
0.15939658880233765,
-0.24610868096351624,
-0.10580535978078842,
0.11087341606616974,
0.3212329149246216,
-0.09051817655563354,
0.5172040462493896,
-0.14423951506614685,
0.23404327034950256,
-0.044121429324150085,
-0.48538219928741455,
-0.05876489728689194,
0.06584499776363373,
-0.18772771954536438,
-0.0624162033200264,
0.2705351710319519,
-0.3332051932811737,
0.20703858137130737,
0.00843085814267397,
0.5642387270927429,
-0.06164712458848953,
-0.11534685641527176,
-0.2518516778945923,
0.05990598350763321,
0.5153494477272034,
0.06956949830055237,
0.18822452425956726,
0.30297359824180603,
-0.31684809923171997,
-0.015362642705440521,
-0.1529722511768341,
-0.07349992543458939,
-0.278824120759964,
0.1532049924135208,
-0.024843715131282806,
-0.20978735387325287,
-0.011807285249233246,
-0.1354990303516388,
-0.21863852441310883,
-0.007055357098579407,
-0.33629077672958374,
0.0372733399271965,
-0.20544208586215973,
-0.021458636969327927,
-0.1649552434682846,
0.142177015542984,
0.6779772043228149,
-0.25777146220207214,
-0.09707500785589218,
-0.05327620357275009,
-0.10570190846920013,
0.23176494240760803,
0.5208841562271118,
-0.08281180262565613,
-0.07955934852361679,
-0.22833381593227386,
0.2813608646392822,
0.27132487297058105,
-0.31617146730422974,
-0.6483909487724304,
0.69691401720047,
0.016475513577461243,
0.17862515151500702,
0.4459795355796814,
0.01402458269149065,
0.5009937286376953,
-0.07241824269294739,
-0.10208465158939362,
0.09277550876140594,
-0.1584073007106781,
-0.00039579905569553375,
-0.16377216577529907,
-0.25993612408638,
0.342637300491333,
0.10159003734588623,
0.12332326173782349,
0.04124723747372627,
0.33294105529785156,
-0.31535640358924866,
0.6180503964424133,
-0.17268387973308563,
0.06406792253255844,
-0.04753857105970383,
0.39797982573509216,
-0.021298468112945557,
-0.061717964708805084,
-0.14158287644386292,
-0.30360904335975647,
0.2692950963973999,
0.023608673363924026,
-0.028984971344470978,
-0.09973673522472382,
-0.032852478325366974,
-0.5087925791740417,
-0.14162223041057587,
-0.3043348491191864,
-0.28702425956726074,
-0.15243402123451233,
0.26358842849731445,
0.047754134982824326,
0.08585557341575623,
-0.393389493227005,
0.65739506483078,
-0.28866952657699585,
0.27128836512565613,
-0.22928455471992493,
0.5726605653762817,
0.01146775670349598,
-0.12604238092899323,
0.013745561242103577,
-0.04198615252971649,
0.042044974863529205,
-0.11103485524654388,
-0.1551463007926941,
0.450848788022995,
0.4781598448753357,
0.23220303654670715,
0.245710551738739,
0.04616832733154297,
0.39011260867118835,
-0.5309624075889587,
-0.16590775549411774,
0.419055700302124,
0.19135937094688416,
0.19450023770332336,
0.1399174928665161,
0.4280036687850952,
-0.3151600658893585,
0.15372461080551147,
0.1490841656923294,
0.20740656554698944,
0.34164369106292725,
0.0862874686717987,
-0.1472402960062027,
-0.23853763937950134,
0.23476877808570862,
-0.1345699280500412,
0.15516114234924316,
-0.13671092689037323,
-0.1940639466047287,
0.006496414542198181,
0.17906057834625244,
0.2654162645339966,
-0.21154755353927612,
0.03956691920757294,
0.13103987276554108,
-0.03761265426874161,
0.2030937224626541,
0.444090336561203,
0.3289809823036194,
0.12442543357610703,
-0.1158192902803421,
0.28601446747779846,
-0.17378589510917664,
-0.12451542913913727,
0.12817861139774323,
-0.10331392288208008,
0.11413081735372543,
0.3274771571159363,
0.04491472616791725,
-0.0038614748045802116,
-0.39378416538238525,
-0.2832152247428894,
0.03434388339519501,
0.15761078894138336,
-0.5075472593307495,
0.033601634204387665,
-0.3182138204574585,
-0.31456896662712097,
-0.06077119708061218,
-0.20766949653625488,
-0.3044928014278412,
-0.3134254217147827,
-0.16643239557743073,
0.31090298295021057,
-0.10459592938423157,
0.11732952296733856,
-0.5763149857521057,
0.15007588267326355,
0.09446127712726593,
-0.013501891866326332,
-0.06716422736644745,
-0.18801452219486237,
-0.16557419300079346,
-0.0951748639345169,
0.07684741914272308,
0.06682614237070084,
0.24391648173332214,
-0.28597578406333923,
0.051689513027668,
-0.2547270357608795,
-0.27974388003349304,
0.17373768985271454,
0.0057790204882621765,
0.14586445689201355,
0.03232802450656891,
0.377113938331604,
0.016981393098831177,
-0.04833322763442993,
0.12839680910110474,
-0.17318961024284363,
-0.19797730445861816,
0.3193454444408417,
-0.022378962486982346,
0.02061169035732746,
0.054925281554460526,
-0.36382877826690674,
-0.14221526682376862,
-0.38872137665748596,
0.1386483609676361,
-0.20466740429401398,
-0.013858914375305176,
0.08878958225250244,
0.13924837112426758,
0.05913049355149269,
-0.2156604677438736,
0.0556570440530777,
-0.1028875857591629,
-0.36066704988479614,
0.2816120982170105,
0.04957916587591171,
-0.2867750823497772,
0.15600568056106567,
0.19817303121089935,
0.12110498547554016,
0.5769394636154175,
-0.5537179708480835,
-0.03833639621734619,
-0.26247358322143555,
0.19777537882328033,
0.012840133160352707,
-0.0785718634724617,
0.23755648732185364,
-0.08200525492429733,
0.07276875525712967,
-0.04674909636378288,
-0.03531338647007942,
0.045283056795597076,
0.08807294070720673,
0.17641344666481018,
-0.21172082424163818,
0.39109551906585693,
0.0915473997592926,
0.4017608165740967,
0.6224677562713623,
0.14665155112743378,
0.45559725165367126,
-0.030642250552773476,
0.5192158818244934,
0.061281830072402954,
-0.4152401387691498,
0.17962691187858582,
-0.17441752552986145,
-0.16263367235660553,
0.24004025757312775,
-0.1220223531126976,
-0.1844799816608429,
-0.503594160079956,
-0.17719437181949615,
-0.312100350856781,
-0.2706150710582733,
-0.05032361298799515,
-0.09408518671989441,
0.2626510262489319,
-0.15862658619880676,
0.1838085651397705,
0.4092385768890381,
-0.21036162972450256,
-0.022447295486927032,
0.6734497547149658,
0.04684029519557953,
-0.02989770844578743,
-0.14864031970500946,
-0.19269461929798126,
-0.2403966188430786,
0.30580997467041016,
0.25985029339790344,
0.4509366750717163,
-0.11021766811609268,
-0.0506909117102623,
0.0449790395796299,
-0.09020556509494781,
0.45808273553848267,
-0.16425170004367828,
0.03892522305250168,
-0.10360740125179291,
-0.04865117371082306,
-0.29284733533859253,
-0.1487313210964203,
-0.24977923929691315,
-0.20867326855659485,
0.06057406961917877,
-0.12046931684017181,
-0.4515530467033386,
0.08693421632051468,
0.20999649167060852,
0.05824632570147514,
-0.008595254272222519,
-0.11335916072130203,
-0.3640078902244568,
0.008667051792144775,
-0.36227965354919434,
0.10493432730436325,
-0.1441769301891327,
-0.05844646319746971,
-0.1328301727771759,
0.2853897511959076,
0.06916210800409317,
-0.20023933053016663,
0.21699124574661255,
0.15599481761455536,
0.19569489359855652,
-0.17689110338687897,
0.04772387072443962,
0.23016829788684845,
0.04566037654876709,
0.3592911958694458,
0.8077102303504944,
-0.07879528403282166,
-0.7968977093696594,
0.017780132591724396,
0.05726766958832741,
0.135783851146698,
0.48768842220306396,
-0.029329877346754074,
0.046212125569581985,
0.34992271661758423,
0.09511546790599823,
-0.0492112897336483,
0.20816852152347565,
0.33001261949539185,
-0.2599288821220398,
-0.06119036301970482,
-0.33417221903800964,
0.046731557697057724,
-0.20910020172595978,
0.19914735853672028,
0.37007850408554077,
0.4880375862121582,
0.02466808632016182,
0.053288962692022324,
-0.10913761705160141,
0.989966630935669,
0.4363846778869629,
0.1769925206899643,
0.44692814350128174,
-0.6500808596611023,
0.1711304485797882,
-0.09887540340423584,
0.1759747862815857,
-0.20787371695041656,
0.03310028463602066,
-0.2174953669309616,
-0.17713062465190887,
0.30031073093414307,
0.10626383125782013,
-0.17102104425430298,
0.37242457270622253,
-0.295257568359375,
0.31697580218315125,
-0.09621771425008774,
-0.020436065271496773,
-0.49349433183670044,
0.045864179730415344,
-0.41045406460762024,
-0.059557050466537476,
-0.17642563581466675,
0.14282847940921783,
0.00850721262395382,
-0.019409578293561935,
-0.10162429511547089,
-0.11401451379060745,
-0.479229211807251,
0.2297198474407196,
0.08211006969213486,
0.2786208391189575,
-0.04187292978167534,
-0.07694946974515915,
-0.11090245842933655,
0.21851150691509247,
0.22634649276733398,
-0.1060488373041153,
-0.3035125434398651,
0.17189255356788635,
-0.2213188111782074,
0.019945045933127403,
-0.0068695442751049995,
-0.06097608432173729,
0.4384745955467224,
-0.04265715926885605,
-0.2797544300556183,
0.2129811942577362,
-0.00009448360651731491,
-0.06383803486824036,
0.30908718705177307,
0.2641195058822632,
-0.02638355642557144,
-0.3696136474609375,
0.4380670487880707,
0.005421347916126251,
-0.062440454959869385,
-0.26991337537765503,
-0.08662605285644531,
0.01798601821064949,
-0.11120034754276276,
-0.04989973455667496,
0.0852985829114914,
-0.2945689558982849,
-0.1786845177412033,
0.4472024738788605,
-0.12734222412109375,
-0.10804931819438934,
0.38735708594322205,
-0.036475855857133865,
-0.37852340936660767,
-0.1477305293083191,
0.019884072244167328,
-0.04258749634027481,
-0.716805636882782,
0.18477971851825714,
-0.09552404284477234,
0.14794857800006866,
-0.14387838542461395,
-0.15383997559547424,
0.28646332025527954,
0.02721555531024933,
0.04398456588387489,
-0.5935027599334717,
-0.22920522093772888,
0.09380624443292618,
-0.10422301292419434,
0.12995709478855133,
-0.0081406868994236,
0.22164954245090485,
-0.05126572772860527,
-0.19548775255680084,
-0.11540797352790833,
0.03910352289676666,
-0.13914945721626282,
-0.17923963069915771,
0.034070391207933426,
-0.13749969005584717,
0.328340619802475,
-0.06570978462696075,
-0.03221968188881874,
0.0035746730864048004,
-0.29199719429016113,
0.12196021527051926,
-0.21697771549224854,
0.29096147418022156,
0.1370786875486374,
-0.12581031024456024,
0.0452544130384922,
-0.08190198242664337,
-0.3147802948951721,
-0.14229705929756165,
0.13894331455230713,
0.2718154489994049,
-0.05371095985174179,
0.018188606947660446,
0.2417273372411728,
-0.19079247117042542,
-0.4929395318031311,
0.1620684117078781,
-0.0869712233543396,
0.331434965133667,
0.15295013785362244,
0.11324618011713028,
-0.17463752627372742,
-0.024498771876096725,
0.12697699666023254,
0.28580376505851746,
0.29125314950942993,
-0.18200019001960754,
0.3668963611125946,
-0.30613815784454346,
0.2667594850063324,
-0.284528911113739,
0.6371268033981323,
0.4589746296405792,
0.02232477441430092,
-0.20898306369781494,
0.15788063406944275,
-0.02704348973929882,
-0.2579600214958191,
0.08388379961252213,
0.28488799929618835,
0.144632026553154,
0.0633746087551117,
0.22855250537395477,
0.06862887740135193,
-0.06596022099256516,
0.07426077872514725,
0.12283115833997726,
0.2427276074886322,
-0.18256300687789917,
0.21032947301864624,
0.2233404666185379,
0.06920698285102844,
0.15769222378730774,
0.10641974210739136,
0.05065832659602165,
0.1962207555770874,
0.02261362224817276,
-0.2827489674091339,
0.3420693576335907,
-0.30033254623413086,
0.039228957146406174,
0.04461074247956276,
-0.5288049578666687,
-0.04242633655667305,
0.08530722558498383,
-0.2477271556854248,
0.060911715030670166,
0.08306349068880081,
0.5344512462615967,
-0.15827612578868866,
0.0762031078338623,
-0.4430079758167267,
0.26437094807624817,
0.11361751705408096,
0.25713440775871277,
0.05268316715955734,
-0.3874478340148926,
-0.4640623927116394,
0.27179622650146484,
0.03362923488020897,
0.13064175844192505,
0.17162851989269257,
0.25492483377456665,
-0.22425960004329681,
-0.7075886726379395,
-0.0510159507393837,
0.05766693130135536,
0.19233548641204834,
-0.15595567226409912,
0.1558554470539093,
0.5409754514694214,
-0.13293801248073578,
0.3592086136341095,
0.19777405261993408,
0.4918678104877472,
0.06252797693014145,
0.18185512721538544,
-0.12061812728643417,
0.2697031497955322,
-0.11668054014444351,
0.0676209032535553,
0.31571319699287415,
0.09342379122972488,
0.07164862751960754,
0.3015035390853882,
-0.026244238018989563,
-0.028645139187574387,
0.15089207887649536,
-0.32028818130493164,
0.08904869854450226,
-0.39239877462387085,
0.3170592784881592,
-0.038922421634197235,
0.16663134098052979,
-0.0703272670507431,
-0.13588625192642212,
-0.7610207796096802,
0.06506740301847458,
0.22957275807857513,
-0.1435600072145462,
0.05299534648656845,
-0.007097098045051098,
-0.05525338649749756,
0.1428970843553543,
0.4323955178260803,
0.5165072083473206,
0.13235796988010406,
-0.044209979474544525,
-0.23521307110786438,
-0.5174893736839294,
0.07594434916973114,
0.07720152288675308,
-0.01079900935292244,
-0.08299552649259567,
0.1758791208267212,
0.07940537482500076,
0.22446215152740479,
0.46718353033065796,
-0.13831131160259247,
0.2913518249988556,
-0.12057173252105713,
-0.12268175184726715,
-0.05477060005068779,
0.21361929178237915,
-0.006697084754705429,
-0.17012152075767517,
-0.2295234203338623,
0.11535011231899261,
0.11944083869457245,
-0.1019558385014534,
0.3274771571159363,
-0.06802461296319962,
0.0988755077123642,
-0.38352763652801514,
-0.036091409623622894,
0.20795772969722748,
0.7574172019958496,
0.0294959619641304,
-0.27076292037963867,
0.026670347899198532,
-0.20647555589675903,
-0.10160940140485764,
0.048383891582489014,
0.01435980387032032,
0.6324734687805176,
-0.24485167860984802,
-0.20691855251789093,
-0.2742369472980499,
0.26620784401893616,
0.13231347501277924,
-0.10694264620542526,
-0.23445403575897217,
-0.01468783337622881,
-0.2861686050891876,
0.13482628762722015,
0.005719217471778393,
0.05181083455681801,
0.025326520204544067,
0.06424122303724289,
-0.15546301007270813,
-0.34614741802215576,
0.7261603474617004,
-0.15633195638656616,
-0.0704510360956192,
-0.1873745322227478,
0.2595083713531494,
0.07854261249303818,
0.14644527435302734,
-0.6455990076065063,
0.22362294793128967,
0.20247554779052734,
-0.07069049775600433,
-0.23110246658325195,
0.1339375525712967,
0.05620580539107323,
0.010636720806360245,
0.047992315143346786,
0.20140093564987183,
0.2837640047073364,
-0.24864889681339264,
0.13248370587825775,
-0.052900880575180054
] |
https://github.com/huggingface/datasets/issues/4376 | irc_disentagle viewer error | The issue with checksum and empty dataset has been fixed by:
- #4377
To load the dataset, you should force the re-generation of the dataset from the downloaded file by passing `download_mode="reuse_cache_if_exists"` to `load_dataset`.
In relation with the issue with the dataset viewer, first the dataset should be refactored to support streaming. | the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807 | 52 | irc_disentagle viewer error
the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807
The issue with checksum and empty dataset has been fixed by:
- #4377
To load the dataset, you should force the re-generation of the dataset from the downloaded file by passing `download_mode="reuse_cache_if_exists"` to `load_dataset`.
In relation with the issue with the dataset viewer, first the dataset should be refactored to support streaming. | [
-0.37143126130104065,
-0.03094790130853653,
0.07901294529438019,
0.48607736825942993,
0.23520153760910034,
0.04047311097383499,
0.18943235278129578,
0.17435985803604126,
0.3126189708709717,
0.037785567343235016,
-0.3659549057483673,
0.03791516646742821,
-0.053368233144283295,
0.24364037811756134,
-0.2312517911195755,
-0.08582112193107605,
-0.1147383376955986,
0.2541294991970062,
-0.18079087138175964,
0.07821445167064667,
0.17389243841171265,
0.06499838829040527,
-0.2525608539581299,
-0.18599654734134674,
-0.12311401963233948,
-0.09112793207168579,
0.03869403898715973,
0.274357408285141,
-0.3039369285106659,
-0.5946937799453735,
0.43772462010383606,
0.2951555848121643,
0.06302379816770554,
0.40590983629226685,
-0.00011528758477652445,
0.09533241391181946,
0.3141986131668091,
-0.12443044781684875,
-0.24982160329818726,
-0.23057837784290314,
-0.11978337168693542,
0.08010654896497726,
0.31136998534202576,
-0.04637162387371063,
-0.2447051703929901,
-0.0905458927154541,
0.03188099339604378,
-0.04249682277441025,
0.6178227066993713,
0.2493598461151123,
0.12799349427223206,
0.3397827446460724,
0.06918923556804657,
0.10743775963783264,
0.1593100130558014,
0.09870126843452454,
-0.02931821718811989,
0.28985708951950073,
-0.13226619362831116,
0.3460220396518707,
-0.12554329633712769,
0.35801833868026733,
-0.05545910820364952,
0.09596748650074005,
0.13157454133033752,
-0.12831440567970276,
-0.4664798974990845,
-0.43445175886154175,
0.1323815882205963,
0.38499578833580017,
0.5360212326049805,
-0.11846812814474106,
-0.27974268794059753,
-0.030821114778518677,
0.2052004337310791,
-0.34868159890174866,
0.2830568850040436,
0.04007788002490997,
-0.10458949208259583,
0.2375044971704483,
-0.38620176911354065,
-0.19047363102436066,
-0.30475205183029175,
-0.0019671767950057983,
-0.44199007749557495,
0.09717144072055817,
-0.11533255130052567,
0.1382431536912918,
0.19745950400829315,
0.1296665221452713,
-0.25782158970832825,
0.03169519081711769,
-0.31093260645866394,
-0.030655909329652786,
-0.41088956594467163,
-0.09384971857070923,
-0.11328960210084915,
-0.02796955406665802,
-0.03035859391093254,
0.38783299922943115,
-0.1995370239019394,
0.03210663050413132,
0.011028553359210491,
0.17932993173599243,
0.3190441429615021,
-0.014247721992433071,
0.15694156289100647,
-0.03567337617278099,
0.23439574241638184,
0.2932935953140259,
0.0780474841594696,
-0.17425188422203064,
-0.18638485670089722,
0.04597435146570206,
-0.14271926879882812,
-0.01291915774345398,
0.08348503708839417,
-0.3477074205875397,
-0.2024310678243637,
0.09533051401376724,
-0.08501307666301727,
-0.09263528883457184,
0.07564159482717514,
0.38835838437080383,
-0.15133842825889587,
0.37801459431648254,
-0.2738006114959717,
0.18559403717517853,
0.010356200858950615,
-0.6125139594078064,
-0.14558523893356323,
-0.11833593249320984,
-0.2287938892841339,
-0.129751518368721,
0.2901882529258728,
-0.3942970037460327,
0.14544086158275604,
-0.04360232874751091,
0.5192415714263916,
0.0008957162499427795,
-0.020163200795650482,
-0.3023722767829895,
0.09403258562088013,
0.43995431065559387,
0.04574360325932503,
0.2190100997686386,
0.2795349955558777,
-0.2554348111152649,
0.06528756767511368,
-0.05828418582677841,
-0.04577904939651489,
-0.32220369577407837,
0.12290096282958984,
0.10675132274627686,
-0.14393246173858643,
0.09800922870635986,
-0.34765422344207764,
-0.007163017988204956,
-0.14920607209205627,
-0.44558918476104736,
-0.13902980089187622,
-0.1819472312927246,
-0.08608697354793549,
-0.15627875924110413,
0.27766916155815125,
0.5962548851966858,
-0.2518109381198883,
-0.23393170535564423,
0.016112102195620537,
-0.26526179909706116,
0.2535436749458313,
0.4839705526828766,
-0.10912609845399857,
-0.1980019211769104,
-0.15686263144016266,
0.28852248191833496,
0.2815329134464264,
-0.15848658978939056,
-0.6119941473007202,
0.6345307230949402,
0.057857781648635864,
0.21481427550315857,
0.25451651215553284,
-0.05113706737756729,
0.7548807859420776,
0.015962790697813034,
-0.22560888528823853,
0.17023669183254242,
-0.18287654221057892,
-0.05098341405391693,
-0.28743240237236023,
-0.3432646691799164,
0.24034740030765533,
0.1760605424642563,
0.19249117374420166,
0.09566182643175125,
0.1938459277153015,
-0.20119532942771912,
0.559856653213501,
-0.1049124002456665,
0.20643919706344604,
-0.03206484019756317,
0.43534454703330994,
-0.037235915660858154,
-0.08582620322704315,
-0.06261938065290451,
-0.38064420223236084,
0.2475014626979828,
0.134044349193573,
0.024596525356173515,
-0.010932192206382751,
-0.04903870448470116,
-0.36184749007225037,
-0.11478112637996674,
-0.32824063301086426,
-0.29477307200431824,
-0.018262464553117752,
0.1892162561416626,
-0.019391093403100967,
0.09780167043209076,
-0.5116681456565857,
0.5232724547386169,
-0.2410106062889099,
0.3649977147579193,
-0.17179594933986664,
0.42299145460128784,
-0.02849639765918255,
-0.11824141442775726,
-0.03530579432845116,
-0.13595610857009888,
-0.014536663889884949,
-0.20163604617118835,
-0.05180874466896057,
0.3397095799446106,
0.32522156834602356,
0.24496474862098694,
0.24750053882598877,
0.0008055567741394043,
0.4244299530982971,
-0.5974618196487427,
-0.11617106944322586,
0.4103788435459137,
0.17275677621364594,
0.09908848255872726,
-0.07837115973234177,
0.2845271825790405,
-0.34254592657089233,
0.024636834859848022,
0.0958474725484848,
0.23313239216804504,
0.4631635248661041,
0.07539510726928711,
-0.07606756687164307,
-0.1099555641412735,
0.15005573630332947,
-0.18325214087963104,
0.1489495187997818,
-0.2085927128791809,
-0.4026299715042114,
-0.02844422310590744,
0.0655660331249237,
0.2789655923843384,
-0.2338467836380005,
0.04379892349243164,
-0.12398134917020798,
-0.1325841099023819,
0.20334455370903015,
0.2924165725708008,
0.18825501203536987,
0.18690362572669983,
0.0073023587465286255,
0.25335460901260376,
-0.009449352510273457,
-0.17902295291423798,
0.11154401302337646,
-0.2864146828651428,
0.07712873071432114,
0.37347015738487244,
-0.07995035499334335,
-0.003210590220987797,
-0.4544459879398346,
-0.2319646030664444,
0.13982582092285156,
0.19492194056510925,
-0.3404642343521118,
-0.04327046498656273,
-0.18313242495059967,
-0.39271900057792664,
0.06060735508799553,
-0.13862073421478271,
-0.3291679620742798,
-0.2309195101261139,
-0.00957164540886879,
0.27351972460746765,
-0.18856315314769745,
0.1477210968732834,
-0.40984997153282166,
0.2071400135755539,
0.12330631911754608,
0.2098347693681717,
-0.1665618121623993,
-0.2605859339237213,
-0.1773591935634613,
0.04806555435061455,
0.15158532559871674,
0.004203845281153917,
0.2854275107383728,
-0.2784881293773651,
0.10126861184835434,
-0.15011832118034363,
-0.19294901192188263,
0.30210500955581665,
-0.03592267632484436,
0.16868630051612854,
-0.09011565148830414,
0.45596277713775635,
-0.03470698744058609,
0.02856869250535965,
0.09796939045190811,
-0.3685891032218933,
-0.16268089413642883,
0.26272833347320557,
0.0381014347076416,
0.02392742410302162,
-0.09752672165632248,
-0.4922347366809845,
-0.19136370718479156,
-0.4310851991176605,
0.13129779696464539,
-0.2525599002838135,
0.027330152690410614,
0.04416568949818611,
0.11183879524469376,
0.08069855719804764,
-0.18918654322624207,
-0.045100994408130646,
-0.1127595528960228,
-0.4128170609474182,
0.2612702548503876,
-0.032683178782463074,
-0.3681116998195648,
0.3378744423389435,
0.3137001395225525,
0.09096291661262512,
0.4344395399093628,
-0.6281705498695374,
0.0646824911236763,
0.03349003195762634,
0.1704491674900055,
0.07742030173540115,
-0.24641938507556915,
0.20522770285606384,
-0.09571955353021622,
0.0036646220833063126,
-0.007801800966262817,
-0.02662617526948452,
-0.04242680221796036,
0.01874236762523651,
0.13340865075588226,
-0.15834182500839233,
0.38230425119400024,
0.14238210022449493,
0.6194385290145874,
0.42504453659057617,
0.156520277261734,
0.27354925870895386,
0.038534533232450485,
0.42177677154541016,
0.07838048040866852,
-0.29670968651771545,
0.2651890516281128,
-0.14037099480628967,
-0.19474315643310547,
0.40341389179229736,
-0.037417490035295486,
-0.23663710057735443,
-0.48637792468070984,
-0.017728298902511597,
-0.20089760422706604,
-0.21052566170692444,
0.0691780224442482,
-0.204574316740036,
0.09646029025316238,
-0.10245081782341003,
0.21271944046020508,
0.4289415776729584,
-0.28460586071014404,
-0.0326969139277935,
0.6420106887817383,
0.10284750163555145,
-0.03826862573623657,
-0.16316337883472443,
-0.0780615285038948,
-0.28473618626594543,
0.2465715855360031,
0.09581351280212402,
0.24311380088329315,
-0.18251852691173553,
0.01189485564827919,
0.1405569463968277,
-0.07250556349754333,
0.4017137289047241,
-0.2211136668920517,
-0.08204278349876404,
0.0037126094102859497,
0.06416984647512436,
-0.0698477029800415,
-0.13634736835956573,
-0.31127938628196716,
-0.1828109323978424,
0.11518722772598267,
-0.10690921545028687,
-0.5300756096839905,
0.01524263247847557,
0.13664299249649048,
-0.06171634793281555,
-0.12509554624557495,
-0.047832563519477844,
-0.25948452949523926,
0.08646131306886673,
-0.2378615438938141,
0.1330023854970932,
-0.27396494150161743,
-0.10348973423242569,
-0.21296536922454834,
0.27080053091049194,
0.05745716392993927,
0.02438243478536606,
0.19625285267829895,
0.2091807723045349,
0.28985950350761414,
-0.21057628095149994,
0.052191946655511856,
0.33528760075569153,
0.2739507555961609,
0.3510792553424835,
0.7492411136627197,
0.045616790652275085,
-0.7197043895721436,
0.14196306467056274,
-0.058107443153858185,
0.09391249716281891,
0.37338322401046753,
0.02426905184984207,
0.09655267000198364,
0.4427063763141632,
0.22084800899028778,
-0.1264861673116684,
0.20361098647117615,
0.3821392357349396,
-0.2570998966693878,
-0.16384710371494293,
-0.3708776533603668,
0.016285769641399384,
-0.2233966886997223,
0.0934237688779831,
0.37317803502082825,
0.3859386444091797,
0.010955007746815681,
0.21874196827411652,
-0.13225668668746948,
1.0488210916519165,
0.18358050286769867,
0.017394833266735077,
0.4236021935939789,
-0.6420972943305969,
0.21569642424583435,
-0.26590588688850403,
0.22149693965911865,
-0.23938244581222534,
0.0024481741711497307,
-0.18902161717414856,
0.012335855513811111,
0.27591538429260254,
0.09047891199588776,
-0.2941998243331909,
0.26255935430526733,
-0.10818352550268173,
0.4867934584617615,
-0.1508880853652954,
-0.01466485857963562,
-0.3011374771595001,
0.00030152685940265656,
-0.36100614070892334,
0.0566951259970665,
-0.2629510760307312,
0.048892147839069366,
-0.0518333725631237,
-0.09245546907186508,
0.09115172922611237,
-0.0313509926199913,
-0.4449552297592163,
0.2237379550933838,
0.10263893008232117,
0.1499144732952118,
0.02467093989253044,
-0.05196958780288696,
-0.0856553167104721,
0.1564333289861679,
0.210300475358963,
-0.06046055629849434,
-0.37192022800445557,
0.22635765373706818,
-0.17438611388206482,
-0.0417451411485672,
-0.1524912416934967,
-0.0399341806769371,
0.44996747374534607,
-0.11625479906797409,
-0.27503663301467896,
0.3228479325771332,
-0.12559203803539276,
-0.01648654043674469,
0.25981491804122925,
0.17200346291065216,
0.05757111310958862,
-0.33879974484443665,
0.4009109437465668,
0.06707660853862762,
-0.01008211076259613,
-0.25953587889671326,
0.03205462545156479,
0.07734706252813339,
-0.26067036390304565,
-0.04457803815603256,
0.18920865654945374,
-0.16825994849205017,
-0.20439475774765015,
0.3183273375034332,
-0.02589753270149231,
-0.19979284703731537,
0.3844469487667084,
0.09546926617622375,
-0.34686362743377686,
-0.2732175588607788,
-0.05740634724497795,
0.08834101259708405,
-0.7237520813941956,
0.07500914484262466,
-0.1351519674062729,
0.08568714559078217,
-0.07486401498317719,
-0.09098035097122192,
0.2468484342098236,
-0.05963214486837387,
-0.019375160336494446,
-0.3947315812110901,
-0.14944608509540558,
0.20746013522148132,
-0.21088863909244537,
0.1603955775499344,
0.06473217904567719,
0.024550508707761765,
0.07899492979049683,
-0.046409666538238525,
-0.25573432445526123,
0.14445510506629944,
-0.17456486821174622,
-0.08623172342777252,
-0.0009551104158163071,
-0.12072449177503586,
0.3472931683063507,
-0.18176762759685516,
0.00895112194120884,
-0.016744811087846756,
-0.3685323894023895,
0.0022064894437789917,
-0.09384037554264069,
0.21232181787490845,
0.0880637839436531,
-0.17739328742027283,
-0.12463576346635818,
0.11518979072570801,
-0.3516375422477722,
-0.06854476779699326,
0.27325505018234253,
0.1266607940196991,
-0.04449762403964996,
-0.0031717726960778236,
0.2599557042121887,
0.021406348794698715,
-0.5581085085868835,
0.19896787405014038,
0.09908221662044525,
0.3102235794067383,
0.024762962013483047,
0.013355521485209465,
-0.19126982986927032,
-0.07374753057956696,
0.1525339037179947,
0.32074877619743347,
0.3154059648513794,
-0.20465296506881714,
0.5595619082450867,
-0.38254547119140625,
0.3699985444545746,
-0.21247848868370056,
0.7106674909591675,
0.4156392812728882,
0.07602789998054504,
-0.1902519166469574,
0.2009430229663849,
0.1164945662021637,
-0.1886870265007019,
0.10331140458583832,
0.28241318464279175,
0.17204783856868744,
-0.015949297696352005,
0.11781057715415955,
0.14052101969718933,
-0.04906492680311203,
0.037710510194301605,
0.19241547584533691,
0.28229820728302,
-0.27665627002716064,
0.20303885638713837,
0.18138259649276733,
-0.020643386989831924,
0.15581293404102325,
-0.006495339795947075,
-0.003925655037164688,
0.1420007199048996,
0.09512080252170563,
-0.2659902572631836,
0.3729483485221863,
-0.02508709207177162,
0.11625805497169495,
0.06738200783729553,
-0.6265352964401245,
-0.028895992785692215,
0.14520905911922455,
-0.32197141647338867,
0.07150234282016754,
-0.008006416261196136,
0.5293168425559998,
-0.11663112789392471,
-0.1989753693342209,
-0.3925948441028595,
0.2680644690990448,
-0.023082762956619263,
0.2063346952199936,
-0.13758264482021332,
-0.35347649455070496,
-0.3879006803035736,
0.22393253445625305,
0.005922134965658188,
0.119557686150074,
0.0842677652835846,
0.22833213210105896,
-0.17759133875370026,
-0.5398527979850769,
-0.09743637591600418,
0.08496638387441635,
0.141045480966568,
-0.15382631123065948,
0.1836915761232376,
0.5158344507217407,
-0.0414077490568161,
0.4044558107852936,
0.27447736263275146,
0.42365381121635437,
-0.017152469605207443,
0.1035173088312149,
0.07488274574279785,
0.2896251678466797,
-0.18714629113674164,
0.018578778952360153,
0.3832399249076843,
0.18964877724647522,
0.08752312511205673,
0.21060529351234436,
0.07742392271757126,
-0.10330859571695328,
0.2068215310573578,
-0.3606879711151123,
0.23497340083122253,
-0.257914662361145,
0.016481950879096985,
-0.02275048941373825,
0.09700050204992294,
-0.06592683494091034,
-0.3503662645816803,
-0.7454395890235901,
0.19951362907886505,
0.23676958680152893,
-0.12887324392795563,
0.117882139980793,
-0.09312556684017181,
0.020872250199317932,
0.21057389676570892,
0.4737270772457123,
0.5173110961914062,
0.09824246168136597,
-0.005967914126813412,
-0.24065935611724854,
-0.5549796223640442,
0.20050585269927979,
0.17023132741451263,
-0.013918230310082436,
-0.13836826384067535,
0.1928069293498993,
0.21026822924613953,
0.236545592546463,
0.18198540806770325,
-0.2344869077205658,
0.31863370537757874,
-0.012839749455451965,
-0.2166724056005478,
0.05554050952196121,
0.2455737292766571,
0.06423994898796082,
-0.22121351957321167,
-0.15847036242485046,
0.2444310039281845,
0.15236841142177582,
-0.04893675446510315,
0.4513282775878906,
-0.05604393407702446,
-0.027845118194818497,
-0.3948323130607605,
-0.04733595997095108,
0.1327620893716812,
0.5815756320953369,
0.10219354182481766,
-0.19839124381542206,
-0.038504708558321,
-0.18398559093475342,
-0.03906514495611191,
-0.008975513279438019,
0.13996124267578125,
0.6451658010482788,
-0.10080108046531677,
-0.15831626951694489,
-0.305323988199234,
0.22866542637348175,
0.1013556718826294,
-0.07118478417396545,
-0.35345786809921265,
-0.08948160707950592,
-0.23164865374565125,
0.06513383984565735,
0.13054095208644867,
0.08714178204536438,
0.06777927279472351,
-0.21132321655750275,
-0.23109959065914154,
-0.1948297768831253,
0.5772757530212402,
-0.22666241228580475,
-0.10585081577301025,
-0.2954103946685791,
0.1489698737859726,
0.23047271370887756,
0.05966252088546753,
-0.8186829090118408,
0.2837422788143158,
0.10680657625198364,
-0.1953507959842682,
-0.15229196846485138,
0.05894555523991585,
0.06016940250992775,
0.04664038494229317,
0.017489943653345108,
0.2542044222354889,
0.25209948420524597,
-0.31715479493141174,
0.011120736598968506,
-0.10697469115257263
] |
https://github.com/huggingface/datasets/issues/4376 | irc_disentagle viewer error | Hi there,
I see this issue is closed, but I am wondering if there is any chance the source files have been moved since this fix? I am stumbling into the same NonMatchingChecksumError noted by lebouz's second post once 118MB of data has been downloaded, and have tried the solutions noted in the various fix checksum posts linked here and in other posts regarding passing in "reuse_cache_if_exists" to download_mode. Any suggestions? Thank you!
| the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807 | 73 | irc_disentagle viewer error
the dataviewer shows this message for "ubuntu" - "train", "test", and "validation" splits:
```
Server error
Status code: 400
Exception: ValueError
Message: Cannot seek streaming HTTP file
```
it appears to give the same message for the "channel_two" data as well.
I get a Checksums error when using `load_data()` with this dataset. Even with the `download_mode` and `ignore_verifications` options set. i referenced the issue here: https://github.com/huggingface/datasets/issues/3807
Hi there,
I see this issue is closed, but I am wondering if there is any chance the source files have been moved since this fix? I am stumbling into the same NonMatchingChecksumError noted by lebouz's second post once 118MB of data has been downloaded, and have tried the solutions noted in the various fix checksum posts linked here and in other posts regarding passing in "reuse_cache_if_exists" to download_mode. Any suggestions? Thank you!
| [
-0.25073912739753723,
0.2382431924343109,
0.0645456612110138,
0.48070067167282104,
0.28595519065856934,
-0.07441199570894241,
0.16612842679023743,
0.3082883656024933,
0.3526760935783386,
-0.01935216784477234,
-0.3463916778564453,
-0.008276406675577164,
-0.008960011415183544,
0.08361002057790756,
-0.22554831206798553,
0.19344860315322876,
-0.06071919947862625,
0.16318559646606445,
-0.1531800627708435,
0.028138205409049988,
0.13589057326316833,
0.2355087846517563,
-0.14145638048648834,
-0.3383063077926636,
-0.0816352441906929,
0.09465918689966202,
-0.09600405395030975,
0.33682122826576233,
-0.08925814181566238,
-0.467873215675354,
0.4738558232784271,
0.3414476811885834,
-0.07034489512443542,
0.39069461822509766,
-0.00013049112749285996,
0.08591878414154053,
0.1366802453994751,
-0.22853972017765045,
-0.2339298278093338,
-0.02097199857234955,
-0.22546687722206116,
-0.13871696591377258,
0.06362676620483398,
-0.039066437631845474,
-0.11029843240976334,
0.13968798518180847,
0.011808307841420174,
-0.07376893609762192,
0.4424751400947571,
0.3024704158306122,
0.01915961131453514,
0.21923552453517914,
0.3278532028198242,
0.1432051956653595,
0.3876056373119354,
0.041378434747457504,
-0.04543433338403702,
0.39085569977760315,
0.023424550890922546,
0.29712602496147156,
-0.2202000617980957,
0.35803869366645813,
-0.03831235319375992,
0.06552162766456604,
0.08877842873334885,
-0.2456357330083847,
-0.27610084414482117,
-0.2072353959083557,
0.12184055149555206,
0.3452972173690796,
0.5095723271369934,
-0.06708930432796478,
-0.43262022733688354,
-0.19152823090553284,
-0.01685822382569313,
-0.1843143254518509,
0.42044681310653687,
-0.06323648989200592,
-0.18145950138568878,
0.1072569340467453,
-0.39531204104423523,
-0.22082534432411194,
-0.20580659806728363,
-0.101874440908432,
-0.3966437578201294,
0.06620330363512039,
-0.030154407024383545,
-0.03990456461906433,
0.21521113812923431,
0.12037088721990585,
-0.05119628086686134,
0.08033996820449829,
-0.15711812674999237,
0.029061783105134964,
-0.34824082255363464,
-0.1614493727684021,
-0.044625721871852875,
0.02308071404695511,
-0.11843999475240707,
0.501738965511322,
-0.11994080245494843,
-0.006029888987541199,
-0.10715076327323914,
0.03711770847439766,
0.33160728216171265,
0.18080885708332062,
-0.093027763068676,
-0.07983198761940002,
0.21083250641822815,
0.4190675914287567,
-0.051833558827638626,
-0.07016704976558685,
-0.22055716812610626,
-0.2543640434741974,
-0.10244399309158325,
0.08241480588912964,
0.03734007477760315,
-0.3967892825603485,
-0.20620955526828766,
0.2764778733253479,
-0.11306591331958771,
-0.09607753902673721,
-0.03922399505972862,
0.23820438981056213,
-0.08903071284294128,
0.6391400694847107,
-0.21430452167987823,
0.027424406260252,
0.004071284085512161,
-0.5206410884857178,
-0.09189300239086151,
-0.026548460125923157,
-0.2982352375984192,
-0.15423765778541565,
0.21499837934970856,
-0.2920125722885132,
0.041478052735328674,
-0.16075780987739563,
0.5581737160682678,
0.038229987025260925,
-0.032497063279151917,
-0.13883760571479797,
0.24017921090126038,
0.5827778577804565,
-0.17619450390338898,
0.24832482635974884,
0.14067235589027405,
-0.20911149680614471,
-0.08357924222946167,
0.036839164793491364,
-0.1809486746788025,
-0.34951239824295044,
0.12956732511520386,
-0.01898300275206566,
-0.24604712426662445,
-0.030609339475631714,
-0.16738060116767883,
-0.22644291818141937,
0.11117541790008545,
-0.5304831266403198,
0.01591845601797104,
-0.3203219175338745,
-0.16848371922969818,
-0.17590411007404327,
0.05016718804836273,
0.5578937530517578,
-0.34336578845977783,
-0.1702803075313568,
-0.016163993626832962,
-0.035983022302389145,
0.26827478408813477,
0.4967857599258423,
-0.0023566382005810738,
-0.23506596684455872,
-0.27411481738090515,
0.34602588415145874,
0.13181033730506897,
-0.2377997636795044,
-0.7628943920135498,
0.49670514464378357,
0.06909295916557312,
0.4080808758735657,
0.42828524112701416,
0.003368116682395339,
0.5383495092391968,
-0.23566877841949463,
-0.05203276872634888,
-0.06507772207260132,
-0.10862773656845093,
0.02297612465918064,
-0.3613782227039337,
-0.46283018589019775,
0.29314857721328735,
0.1053941547870636,
0.2745498716831207,
0.06995568424463272,
0.23061856627464294,
-0.24988403916358948,
0.5260819792747498,
-0.16486461460590363,
0.16566208004951477,
0.043653957545757294,
0.5207085609436035,
-0.008188910782337189,
-0.04269317910075188,
-0.12598688900470734,
-0.33426105976104736,
0.27772143483161926,
0.009743284434080124,
-0.0959509015083313,
0.09735087305307388,
-0.0708465501666069,
-0.3229348063468933,
-0.19877110421657562,
-0.20365925133228302,
-0.2081712931394577,
-0.1682768017053604,
0.2609446942806244,
0.05378485843539238,
-0.06058207154273987,
-0.46016985177993774,
0.5902740359306335,
-0.20370110869407654,
0.23854121565818787,
-0.2855757176876068,
0.4517490863800049,
-0.019888365641236305,
-0.14330418407917023,
-0.04016346484422684,
-0.03153371065855026,
0.04604441672563553,
-0.200140118598938,
-0.1772838532924652,
0.28763124346733093,
0.3582502603530884,
0.27340203523635864,
0.362568736076355,
0.1534615308046341,
0.3540923595428467,
-0.36968761682510376,
-0.04730314761400223,
0.5030728578567505,
-0.005404909141361713,
0.08454249054193497,
0.020312853157520294,
0.38834601640701294,
-0.3583681285381317,
0.072987861931324,
0.19028513133525848,
0.16455519199371338,
0.44790101051330566,
0.03729623928666115,
-0.08234633505344391,
-0.002956680953502655,
0.2895181179046631,
-0.05732044205069542,
0.05837322399020195,
0.08545782417058945,
-0.19364547729492188,
0.14888113737106323,
0.24887891113758087,
0.28513962030410767,
-0.19870135188102722,
0.15932920575141907,
0.12380301207304001,
-0.20497781038284302,
0.15597370266914368,
0.45049867033958435,
0.27894312143325806,
0.08389613032341003,
0.09541957080364227,
0.18226273357868195,
0.019770216196775436,
-0.21384388208389282,
0.10854252427816391,
-0.20364288985729218,
0.1039344072341919,
0.6357960104942322,
0.007253618445247412,
0.04370200261473656,
-0.4607645571231842,
-0.08123154938220978,
0.08082135766744614,
0.17654795944690704,
-0.46111786365509033,
-0.0515640452504158,
-0.26726034283638,
-0.27469292283058167,
-0.21689389646053314,
-0.15046793222427368,
-0.3867422342300415,
-0.3576914966106415,
0.024754120036959648,
0.36676499247550964,
-0.24160350859165192,
0.12379483133554459,
-0.5348851680755615,
0.3217849135398865,
-0.061846774071455,
0.16219371557235718,
-0.2625124454498291,
-0.22112032771110535,
-0.03438962250947952,
-0.045195937156677246,
0.23312504589557648,
-0.2039841264486313,
0.1112288385629654,
-0.355059415102005,
0.1218508630990982,
-0.2637733221054077,
-0.3481900990009308,
0.10351543128490448,
0.1320396363735199,
0.0878639966249466,
0.07572115212678909,
0.36555159091949463,
-0.07869517803192139,
-0.07628783583641052,
0.08608364313840866,
-0.2967570126056671,
-0.3341749310493469,
0.24810177087783813,
0.026881849393248558,
0.20536188781261444,
0.07194380462169647,
-0.3470238447189331,
-0.11923838406801224,
-0.34405437111854553,
0.22075453400611877,
-0.18870742619037628,
0.10467475652694702,
0.025810815393924713,
0.0922209694981575,
-0.033972326666116714,
-0.1345275491476059,
0.09181179106235504,
-0.12149756401777267,
-0.503061056137085,
0.34231820702552795,
0.05666520819067955,
-0.22458668053150177,
0.23522847890853882,
0.22409072518348694,
0.17583097517490387,
0.4990590214729309,
-0.5826758146286011,
-0.023081539198756218,
-0.024909844622015953,
0.07438886165618896,
0.155422642827034,
-0.18294267356395721,
0.39150699973106384,
-0.13130243122577667,
0.02793983928859234,
0.011207550764083862,
-0.07369089126586914,
0.002572886645793915,
0.12298616021871567,
0.20296713709831238,
-0.23640307784080505,
0.28988030552864075,
0.08164982497692108,
0.6426661014556885,
0.4116579592227936,
0.33532482385635376,
0.20012831687927246,
0.22818216681480408,
0.4357873499393463,
0.048849426209926605,
-0.2206743061542511,
0.3881738781929016,
-0.25021836161613464,
-0.32978492975234985,
0.24799741804599762,
0.060403741896152496,
-0.2113068848848343,
-0.38600072264671326,
-0.08860397338867188,
-0.22458353638648987,
-0.2137618213891983,
0.030056707561016083,
-0.025920890271663666,
0.15558181703090668,
-0.014419307000935078,
0.17216327786445618,
0.2477205991744995,
-0.33224061131477356,
0.013456873595714569,
0.5674243569374084,
0.07436924427747726,
-0.03298461064696312,
-0.11795689165592194,
-0.14702139794826508,
-0.11828797310590744,
0.2929214835166931,
0.2891335189342499,
0.2952766716480255,
-0.15415433049201965,
-0.16296744346618652,
0.11247894167900085,
-0.22083760797977448,
0.36790770292282104,
-0.22580452263355255,
-0.060337454080581665,
-0.00276792049407959,
-0.054861702024936676,
0.1328027844429016,
-0.3116934299468994,
-0.03368661552667618,
-0.2652261257171631,
0.23802994191646576,
-0.16146543622016907,
-0.39031699299812317,
0.10579883307218552,
0.2000700980424881,
0.019318362697958946,
-0.06784655153751373,
0.1123950183391571,
-0.3458123207092285,
-0.008741088211536407,
-0.3384626507759094,
0.08354994654655457,
-0.20718543231487274,
-0.13608667254447937,
-0.18515945971012115,
0.2994086444377899,
0.029024643823504448,
-0.07937632501125336,
0.17062100768089294,
-0.03364534676074982,
0.28428465127944946,
-0.03844514116644859,
0.12358669936656952,
0.30321964621543884,
0.22464965283870697,
0.3947741389274597,
0.7153987288475037,
-0.08339206874370575,
-0.61457759141922,
0.1012444794178009,
-0.14746929705142975,
-0.04547082632780075,
0.620101809501648,
0.0012260125949978828,
-0.1120983436703682,
0.5743832588195801,
0.03158961236476898,
-0.026030831038951874,
0.04794521629810333,
0.3432898223400116,
-0.2169523686170578,
-0.03514064848423004,
-0.29436352849006653,
-0.13366952538490295,
-0.09915967285633087,
0.07101897895336151,
0.41813457012176514,
0.216776043176651,
0.06369718909263611,
-0.0650293231010437,
-0.062264420092105865,
1.2296619415283203,
0.19837859272956848,
0.25586697459220886,
0.22545620799064636,
-0.7079947590827942,
0.04531889408826828,
-0.32646608352661133,
0.225837841629982,
-0.2903887629508972,
-0.04659920930862427,
-0.2035236954689026,
-0.16363675892353058,
0.13258635997772217,
0.06684435904026031,
-0.08405280113220215,
0.24588321149349213,
-0.06782567501068115,
0.6483272314071655,
-0.1389448642730713,
-0.2155853807926178,
-0.3040841817855835,
0.09918321669101715,
-0.2606496214866638,
-0.06406496465206146,
-0.23373644053936005,
0.26053911447525024,
-0.059385184198617935,
-0.06380990147590637,
-0.0020530372858047485,
0.08754275739192963,
-0.5432228446006775,
0.2585676610469818,
0.20854510366916656,
0.12631872296333313,
0.20020291209220886,
-0.17352767288684845,
-0.2179756909608841,
0.025623522698879242,
0.2552759647369385,
-0.15667659044265747,
-0.3125169575214386,
0.2777616083621979,
0.09118665754795074,
0.11866716295480728,
0.17241919040679932,
-0.07311102747917175,
0.4919413626194,
-0.04071527719497681,
-0.04688049852848053,
0.2772858738899231,
-0.06842543929815292,
-0.36116015911102295,
0.17517343163490295,
0.0529254674911499,
0.041627321392297745,
-0.36945340037345886,
0.392556369304657,
0.13891452550888062,
0.018505774438381195,
-0.3482256531715393,
-0.03335890918970108,
0.15701070427894592,
-0.1292501837015152,
0.028453148901462555,
-0.055099841207265854,
-0.22613303363323212,
-0.20779778063297272,
0.5704342126846313,
0.08992011845111847,
-0.39521580934524536,
0.3650730848312378,
0.0370049811899662,
-0.4777640700340271,
-0.14229901134967804,
-0.11516768485307693,
-0.07122869044542313,
-0.9036526083946228,
0.1909724920988083,
-0.24279144406318665,
0.02949044108390808,
-0.20117691159248352,
-0.0032831095159053802,
0.252251535654068,
0.10945886373519897,
-0.037182342261075974,
-0.499273419380188,
-0.22807767987251282,
0.13839805126190186,
0.04911760240793228,
0.28743600845336914,
-0.10562266409397125,
-0.11810469627380371,
0.016358288004994392,
-0.2765483260154724,
-0.15406545996665955,
0.16150476038455963,
-0.0850328803062439,
-0.23860210180282593,
-0.17527319490909576,
-0.06603488326072693,
0.18016302585601807,
-0.22988854348659515,
-0.08225296437740326,
0.04465091973543167,
-0.24702394008636475,
0.10500798374414444,
-0.14847354590892792,
0.2663795053958893,
0.09574855864048004,
-0.17177924513816833,
0.08971279114484787,
-0.11444421112537384,
-0.3101898431777954,
-0.0956924557685852,
-0.03991742804646492,
0.23550760746002197,
0.028036348521709442,
-0.04109422490000725,
0.19459185004234314,
-0.1687503457069397,
-0.3091212511062622,
0.36580541729927063,
0.12252132594585419,
0.4373853802680969,
0.02774777263402939,
0.042308464646339417,
-0.20235635340213776,
-0.0044242218136787415,
0.25536826252937317,
0.3131765127182007,
0.0989447608590126,
-0.17171907424926758,
0.5292665362358093,
-0.40270131826400757,
0.14058104157447815,
-0.03382209315896034,
0.6639150381088257,
0.47192785143852234,
0.0006237219786271453,
-0.2861506938934326,
0.1684020459651947,
-0.022346964105963707,
-0.33461102843284607,
0.013934338465332985,
0.398836612701416,
0.12724150717258453,
-0.16277392208576202,
0.08696775883436203,
0.2490682303905487,
-0.3240765929222107,
0.5313661098480225,
0.28706616163253784,
0.07617941498756409,
-0.2793954014778137,
0.16846011579036713,
0.3649003505706787,
0.20040903985500336,
0.21141161024570465,
0.042780935764312744,
0.024176839739084244,
0.11480744928121567,
0.08927038311958313,
-0.16404029726982117,
0.19060750305652618,
-0.054375700652599335,
0.21517051756381989,
-0.1485370695590973,
-0.5561773777008057,
0.05583224445581436,
0.3523749113082886,
-0.2436145544052124,
0.1357143372297287,
0.07888958603143692,
0.4880369305610657,
-0.08939600735902786,
-0.04336708411574364,
-0.49616482853889465,
0.33769679069519043,
-0.10107076913118362,
0.18782716989517212,
0.0035099051892757416,
-0.39009931683540344,
-0.34710684418678284,
0.46111005544662476,
-0.1432400345802307,
0.3811630606651306,
0.20314669609069824,
0.17396609485149384,
-0.14092132449150085,
-0.5306442379951477,
-0.00388234481215477,
-0.18595066666603088,
0.21202747523784637,
-0.13997535407543182,
0.2687167823314667,
0.5182943344116211,
-0.08913792669773102,
0.4038183093070984,
0.3293018341064453,
0.4082053601741791,
0.028122298419475555,
0.08898596465587616,
0.001785570289939642,
0.2914559543132782,
0.02221321500837803,
-0.09621328860521317,
0.523139476776123,
0.10429088771343231,
0.10468554496765137,
0.12475146353244781,
-0.05611342936754227,
-0.054031793028116226,
0.21122904121875763,
-0.30583590269088745,
0.07379955053329468,
-0.2185330092906952,
0.2785869538784027,
-0.04369508475065231,
0.061007820069789886,
-0.06611472368240356,
-0.2083597481250763,
-0.4936401844024658,
0.022388800978660583,
0.12740793824195862,
-0.04512092471122742,
0.06789657473564148,
0.05371556431055069,
-0.02390902116894722,
0.1687571406364441,
0.29730433225631714,
0.6229326725006104,
-0.0007630996406078339,
-0.09678880125284195,
-0.3425672650337219,
-0.6894523501396179,
0.2626749873161316,
0.13235948979854584,
0.06547808647155762,
-0.11515543609857559,
0.2648032307624817,
0.24025991559028625,
0.16811688244342804,
0.37046101689338684,
-0.36016422510147095,
0.3132157325744629,
-0.02939869463443756,
-0.17355431616306305,
0.0789819061756134,
0.2600835859775543,
-0.028135130181908607,
-0.17694617807865143,
-0.22182977199554443,
0.2881374657154083,
0.2894992232322693,
-0.1458938717842102,
0.3527493476867676,
-0.17437675595283508,
-0.06192873418331146,
-0.08594371378421783,
-0.1693580597639084,
0.008913428522646427,
0.49616777896881104,
0.18881171941757202,
-0.22961437702178955,
-0.020408157259225845,
-0.25617167353630066,
-0.05742550641298294,
0.05817433446645737,
-0.16273516416549683,
0.5346463918685913,
-0.13052377104759216,
0.02043212577700615,
-0.341724157333374,
0.08606493473052979,
0.17489859461784363,
0.04575056955218315,
-0.40513715147972107,
-0.07619079202413559,
-0.27895304560661316,
0.16368547081947327,
0.21903927624225616,
0.11893431842327118,
0.060818735510110855,
-0.06053517758846283,
-0.35115325450897217,
-0.23991012573242188,
0.538327693939209,
-0.16974608600139618,
-0.035540275275707245,
-0.33448779582977295,
0.15735268592834473,
0.031239032745361328,
0.045153193175792694,
-0.7253831028938293,
0.2489849328994751,
0.14941798150539398,
0.04967101663351059,
-0.08340940624475479,
0.03399050235748291,
-0.14910230040550232,
0.08799445629119873,
-0.013077490031719208,
0.32016903162002563,
0.24201026558876038,
-0.21416500210762024,
-0.07096254080533981,
-0.022503484040498734
] |
https://github.com/huggingface/datasets/issues/4374 | extremely slow processing when using a custom dataset | Hi !
My guess is that some examples in your dataset are bigger than your RAM, and therefore loading them in RAM to pass them to `remove_non_indic_sentences` takes forever because it might use SWAP memory.
Maybe several examples in your dataset are grouped together, can you check `len(lang_dataset["train"])` and `lang_dataset["train"].data.nbytes` of both datasets please ? It can also be helpful to check the distribution of lengths of each examples in your dataset. | ## processing a custom dataset loaded as .txt file is extremely slow, compared to a dataset of similar volume from the hub
I have a large .txt file of 22 GB which i load into HF dataset
`lang_dataset = datasets.load_dataset("text", data_files="hi.txt")`
further i use a pre-processing function to clean the dataset
`lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)`
the following processing takes astronomical time to process, while hoging all the ram.
similar dataset of same size that's available in the huggingface hub works completely fine. which runs the same processing function and has the same amount of data.
`lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", use_auth_token=True)`
the hours predicted to preprocess are as follows:
huggingface hub dataset: 6.5 hrs
custom loaded dataset: 7000 hrs
note: both the datasets are almost actually same, just provided by different sources with has +/- some samples, only one is hosted on the HF hub and the other is downloaded in a text format.
## Steps to reproduce the bug
```
import datasets
import psutil
import sys
import glob
from fastcore.utils import listify
import re
import gc
def remove_non_indic_sentences(example):
tmp_ls = []
eng_regex = r'[. a-zA-Z0-9ÖÄÅöäå _.,!"\'\/$]*'
for e in listify(example['text']):
matches = re.findall(eng_regex, e)
for match in (str(match).strip() for match in matches if match not in [""," ", " ", ",", " ,", ", ", " , "]):
if len(list(match.split(" "))) > 2:
e = re.sub(match," ",e,count=1)
tmp_ls.append(e)
gc.collect()
example['clean_text'] = tmp_ls
return example
lang_dataset = datasets.load_dataset("text", data_files="hi.txt")
lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)
## same thing work much faster when loading similar dataset from hub
lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", split="train", use_auth_token=True)
lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)
```
## Actual results
similar dataset of same size that's available in the huggingface hub works completely fine. which runs the same processing function and has the same amount of data.
`lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", use_auth_token=True)
**the hours predicted to preprocess are as follows:**
huggingface hub dataset: 6.5 hrs
custom loaded dataset: 7000 hrs
**i even tried the following:**
- sharding the large 22gb text files into smaller files and loading
- saving the file to disk and then loading
- using lesser num_proc
- using smaller batch size
- processing without batches ie : without `batched=True`
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2.dev0
- Platform: Ubuntu 20.04 LTS
- Python version: 3.9.7
- PyArrow version:8.0.0
| 72 | extremely slow processing when using a custom dataset
## processing a custom dataset loaded as .txt file is extremely slow, compared to a dataset of similar volume from the hub
I have a large .txt file of 22 GB which i load into HF dataset
`lang_dataset = datasets.load_dataset("text", data_files="hi.txt")`
further i use a pre-processing function to clean the dataset
`lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)`
the following processing takes astronomical time to process, while hoging all the ram.
similar dataset of same size that's available in the huggingface hub works completely fine. which runs the same processing function and has the same amount of data.
`lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", use_auth_token=True)`
the hours predicted to preprocess are as follows:
huggingface hub dataset: 6.5 hrs
custom loaded dataset: 7000 hrs
note: both the datasets are almost actually same, just provided by different sources with has +/- some samples, only one is hosted on the HF hub and the other is downloaded in a text format.
## Steps to reproduce the bug
```
import datasets
import psutil
import sys
import glob
from fastcore.utils import listify
import re
import gc
def remove_non_indic_sentences(example):
tmp_ls = []
eng_regex = r'[. a-zA-Z0-9ÖÄÅöäå _.,!"\'\/$]*'
for e in listify(example['text']):
matches = re.findall(eng_regex, e)
for match in (str(match).strip() for match in matches if match not in [""," ", " ", ",", " ,", ", ", " , "]):
if len(list(match.split(" "))) > 2:
e = re.sub(match," ",e,count=1)
tmp_ls.append(e)
gc.collect()
example['clean_text'] = tmp_ls
return example
lang_dataset = datasets.load_dataset("text", data_files="hi.txt")
lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)
## same thing work much faster when loading similar dataset from hub
lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", split="train", use_auth_token=True)
lang_dataset["train"] = lang_dataset["train"].map(
remove_non_indic_sentences, num_proc=12, batched=True, remove_columns=lang_dataset['train'].column_names), batch_size=64)
```
## Actual results
similar dataset of same size that's available in the huggingface hub works completely fine. which runs the same processing function and has the same amount of data.
`lang_dataset = datasets.load_dataset("oscar-corpus/OSCAR-2109", "hi", use_auth_token=True)
**the hours predicted to preprocess are as follows:**
huggingface hub dataset: 6.5 hrs
custom loaded dataset: 7000 hrs
**i even tried the following:**
- sharding the large 22gb text files into smaller files and loading
- saving the file to disk and then loading
- using lesser num_proc
- using smaller batch size
- processing without batches ie : without `batched=True`
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.2.dev0
- Platform: Ubuntu 20.04 LTS
- Python version: 3.9.7
- PyArrow version:8.0.0
Hi !
My guess is that some examples in your dataset are bigger than your RAM, and therefore loading them in RAM to pass them to `remove_non_indic_sentences` takes forever because it might use SWAP memory.
Maybe several examples in your dataset are grouped together, can you check `len(lang_dataset["train"])` and `lang_dataset["train"].data.nbytes` of both datasets please ? It can also be helpful to check the distribution of lengths of each examples in your dataset. | [
-0.12999439239501953,
-0.27353811264038086,
-0.021806228905916214,
0.2799502909183502,
-0.11924721300601959,
0.15719640254974365,
0.11953797191381454,
0.3305011987686157,
0.19995634257793427,
-0.06200392544269562,
-0.3777610659599304,
0.033846285194158554,
-0.040937360376119614,
0.23231570422649384,
-0.0996946394443512,
0.027270812541246414,
0.05737301707267761,
0.08837059140205383,
0.17486080527305603,
-0.2571519911289215,
-0.13174818456172943,
0.1979055106639862,
-0.05619443207979202,
-0.04058282822370529,
-0.4079958498477936,
-0.19478771090507507,
0.21428583562374115,
0.4596954584121704,
0.037911929190158844,
-0.2773805260658264,
0.20017829537391663,
0.48355817794799805,
0.010011862963438034,
0.5890102982521057,
-0.00011812431330326945,
0.07992257177829742,
-0.02933388203382492,
0.147306427359581,
-0.1902017742395401,
0.31621867418289185,
0.24717265367507935,
-0.09753286838531494,
-0.16177017986774445,
0.0014508292078971863,
-0.30890440940856934,
0.004212260711938143,
-0.24281282722949982,
-0.2730751037597656,
0.06222157180309296,
0.15888813138008118,
0.060838326811790466,
0.3796205520629883,
-0.574022650718689,
-0.012877238914370537,
0.08622477948665619,
0.3833906054496765,
-0.21408380568027496,
-0.06180037185549736,
0.17313766479492188,
-0.0705261081457138,
-0.23598727583885193,
0.2959027588367462,
-0.0767875462770462,
0.2048918604850769,
0.38837721943855286,
0.11991941928863525,
-0.3954622149467468,
-0.06381701678037643,
0.16327320039272308,
0.574202835559845,
-0.10989538580179214,
-0.23202461004257202,
-0.17736856639385223,
-0.5682032704353333,
-0.19379882514476776,
-0.44698402285575867,
0.13217604160308838,
0.0015332167968153954,
-0.14041770994663239,
0.1865403652191162,
-0.1351098269224167,
-0.03610217571258545,
-0.06537188589572906,
-0.31779587268829346,
0.22595134377479553,
-0.1538526862859726,
-0.045260585844516754,
-0.13641229271888733,
0.10869760811328888,
-0.07942317426204681,
-0.04148334264755249,
-0.4290147125720978,
0.12373775243759155,
0.15668752789497375,
-0.4681791067123413,
-0.02471202425658703,
0.048490144312381744,
0.19342848658561707,
0.14682641625404358,
-0.1206306666135788,
-0.18812449276447296,
0.37638601660728455,
-0.20617708563804626,
-0.2487737536430359,
0.0924149602651596,
0.1954621523618698,
-0.11621443182229996,
-0.0022676330991089344,
0.21928951144218445,
0.09090076386928558,
-0.3238850235939026,
0.1168435662984848,
0.02004585787653923,
0.07660425454378128,
-0.21719063818454742,
-0.22818699479103088,
-0.12711197137832642,
-0.23130276799201965,
-0.4166332185268402,
0.14446890354156494,
0.07144219428300858,
0.00025218119844794273,
0.0024051321670413017,
0.1396535336971283,
-0.2424442321062088,
0.21915501356124878,
-0.1838870793581009,
-0.07791576534509659,
-0.5098425149917603,
-0.06514966487884521,
-0.20384350419044495,
-0.044935982674360275,
0.04261473938822746,
0.32440218329429626,
0.21978344023227692,
-0.16565382480621338,
0.01859212853014469,
0.19323965907096863,
0.11176200211048126,
-0.03162571042776108,
0.00302916020154953,
-0.46906885504722595,
0.07304555922746658,
-0.019474845379590988,
-0.04405633360147476,
0.29643166065216064,
0.10529276728630066,
-0.07101850211620331,
-0.2681284248828888,
-0.09526167064905167,
-0.33284226059913635,
-0.34578007459640503,
0.05805278569459915,
0.04119117558002472,
-0.4723876118659973,
-0.20599646866321564,
-0.4507755935192108,
0.3060360550880432,
-0.1735781729221344,
0.39347580075263977,
-0.24563035368919373,
-0.05959121882915497,
-0.5024898052215576,
0.10450959950685501,
-0.040374837815761566,
0.40971308946609497,
-0.3854343295097351,
0.10861161351203918,
-0.11540123075246811,
0.07870945334434509,
0.264326810836792,
0.6545842885971069,
-0.0821271613240242,
0.683822512626648,
-0.3118763566017151,
0.2606263756752014,
-0.10594093054533005,
-0.37313804030418396,
-0.3989964723587036,
0.46882253885269165,
-0.08541881293058395,
0.608502984046936,
0.04676397889852524,
0.10145135223865509,
0.3513043522834778,
-0.16389568150043488,
0.10203352570533752,
0.4412164092063904,
0.24625264108181,
0.10905509442090988,
-0.31070297956466675,
-0.294551819562912,
-0.10135643184185028,
0.31128033995628357,
0.07048018276691437,
0.045869454741477966,
-0.09810485690832138,
-0.11239635199308395,
0.38462570309638977,
-0.2103375494480133,
0.050373658537864685,
0.33217060565948486,
0.022604230791330338,
0.4527174234390259,
0.03720317408442497,
-0.13131430745124817,
-0.2305416762828827,
0.3895772397518158,
-0.09896194934844971,
0.3734284043312073,
0.1601099669933319,
-0.2925713062286377,
-0.18412473797798157,
-0.27771493792533875,
-0.267408549785614,
-0.04620567336678505,
0.05063987523317337,
0.10591396689414978,
0.05184357985854149,
0.042509812861680984,
-0.0876593142747879,
0.7814539074897766,
-0.316418319940567,
-0.025476492941379547,
-0.040306806564331055,
-0.006860801950097084,
0.39783167839050293,
-0.0010220613330602646,
0.06912337243556976,
0.2106068730354309,
-0.14597412943840027,
0.024989692494273186,
-0.14512088894844055,
0.06108049303293228,
0.1126939058303833,
0.3455883860588074,
0.21766558289527893,
0.14668934047222137,
0.20173896849155426,
0.02989235892891884,
0.17357848584651947,
-0.04277368262410164,
0.225204735994339,
-0.24551478028297424,
-0.2795182168483734,
0.5961178541183472,
-0.12894272804260254,
0.29826149344444275,
0.1892411857843399,
-0.46153342723846436,
0.08042440563440323,
0.031085733324289322,
0.3359498679637909,
0.05144155025482178,
0.5026665329933167,
0.059078872203826904,
0.40536320209503174,
0.18983885645866394,
-0.14862468838691711,
0.10097745060920715,
0.7523719072341919,
0.09424038231372833,
-0.18214267492294312,
0.3064733147621155,
-0.28121376037597656,
-0.12516093254089355,
-0.039613477885723114,
-0.02258744090795517,
0.28766193985939026,
0.20182888209819794,
-0.05629802867770195,
0.2828892767429352,
0.04889574274420738,
-0.0765659511089325,
0.061716850847005844,
0.0902915894985199,
0.17736299335956573,
0.15027813613414764,
0.14312002062797546,
0.13590192794799805,
-0.486223965883255,
-0.21107050776481628,
-0.10293489694595337,
0.2334752231836319,
-0.30060678720474243,
-0.12219719588756561,
-0.258925199508667,
0.051013074815273285,
-0.03732054680585861,
-0.021083958446979523,
-0.17453059554100037,
-0.21372845768928528,
-0.0009871944785118103,
0.13514041900634766,
0.1412951648235321,
-0.20602640509605408,
0.08625470101833344,
0.19014441967010498,
-0.1363929659128189,
-0.5774124264717102,
-0.14069493114948273,
-0.20162644982337952,
-0.254050612449646,
-0.007237978279590607,
0.239564448595047,
0.3959795832633972,
0.2636773884296417,
-0.15218409895896912,
-0.10217295587062836,
-0.07709281146526337,
-0.07616237550973892,
0.16932684183120728,
-0.17096877098083496,
0.2453325092792511,
-0.03042306751012802,
0.15653984248638153,
-0.17653176188468933,
0.18923276662826538,
0.1456635445356369,
-0.059138908982276917,
-0.07032433897256851,
-0.07504656910896301,
-0.20822972059249878,
0.008798636496067047,
0.14703574776649475,
-0.15814319252967834,
-0.19543980062007904,
-0.20013447105884552,
0.3003166615962982,
-0.158485546708107,
0.13313743472099304,
0.08936617523431778,
-0.2600528299808502,
0.23476655781269073,
-0.02440827712416649,
-0.03510492295026779,
-0.15527810156345367,
-0.5535473823547363,
0.20760805904865265,
-0.10846782475709915,
-0.15531381964683533,
-0.2879985272884369,
0.04293649643659592,
-0.034268226474523544,
0.011785895563662052,
-0.6735396981239319,
0.10179492831230164,
-0.6670738458633423,
0.3080408573150635,
-0.08071745932102203,
-0.08402778208255768,
0.23963026702404022,
-0.19666241109371185,
-0.008760528638958931,
-0.14354252815246582,
-0.30879682302474976,
0.09196694195270538,
-0.03504161536693573,
-0.16132879257202148,
0.05902343988418579,
0.33101391792297363,
0.19746428728103638,
0.5210098624229431,
0.3503211736679077,
0.06332912296056747,
0.4736920893192291,
-0.03501276671886444,
0.14190325140953064,
-0.3929285407066345,
-0.10184285789728165,
-0.06523485481739044,
-0.14570081233978271,
0.07377629727125168,
0.5249453186988831,
0.07626745104789734,
0.2406352013349533,
0.057604290544986725,
-0.23569077253341675,
-0.0318228118121624,
-0.2610394060611725,
0.14635658264160156,
0.2602551579475403,
0.14100366830825806,
0.14343062043190002,
0.08722641319036484,
-0.2997366786003113,
-0.5175631046295166,
0.3142910599708557,
0.252961128950119,
0.049193695187568665,
0.04562920704483986,
-0.37903591990470886,
0.11853105574846268,
-0.5410260558128357,
0.11937594413757324,
0.027712609618902206,
0.2708560526371002,
-0.050496552139520645,
0.04869969189167023,
0.18134227395057678,
-0.03968075290322304,
0.3144974112510681,
-0.193694069981575,
0.1248503178358078,
0.09609870612621307,
-0.4188058376312256,
-0.3880350589752197,
0.057898249477148056,
-0.15974555909633636,
0.04436883330345154,
0.2155875712633133,
0.7687432169914246,
-0.04498501121997833,
-0.4573234021663666,
-0.018396683037281036,
0.14894737303256989,
-0.05583506077528,
-0.26341113448143005,
-0.16911175847053528,
-0.320955753326416,
-0.16023793816566467,
0.19630539417266846,
0.05075494945049286,
0.22184747457504272,
-0.08355086296796799,
0.11730217933654785,
0.06268292665481567,
0.08085667341947556,
0.5825034379959106,
0.12197619676589966,
0.06705436110496521,
0.04038538038730621,
0.31319648027420044,
0.05069156363606453,
0.06720142811536789,
0.07834251970052719,
0.6902977824211121,
0.04120629280805588,
-0.29215648770332336,
-0.13398543000221252,
-0.11520097404718399,
0.19628465175628662,
0.5356541872024536,
0.12387621402740479,
0.3597722053527832,
0.048793625086545944,
0.2419692575931549,
-0.5905649662017822,
0.19321085512638092,
0.3161625862121582,
-0.01101925503462553,
-0.3840324580669403,
-0.22491605579853058,
0.3637346923351288,
0.20611867308616638,
-0.0870068371295929,
0.002667270600795746,
0.466106116771698,
-0.17938683927059174,
0.4344874620437622,
-0.18513202667236328,
0.7321153283119202,
-0.29048287868499756,
0.17737416923046112,
-0.1441650390625,
-0.24684575200080872,
0.237334206700325,
-0.40540164709091187,
-0.009047864004969597,
-0.2000342756509781,
-0.2540555000305176,
0.13474451005458832,
0.07843536138534546,
0.3089093267917633,
0.18424567580223083,
0.228753000497818,
0.33760666847229004,
0.1416749507188797,
0.34183359146118164,
-0.1670866459608078,
0.5193418264389038,
-0.1465977430343628,
-0.5047094225883484,
-0.2868632376194,
0.10852982103824615,
-0.11385418474674225,
0.16185948252677917,
0.014393124729394913,
-0.07077018916606903,
-0.34036314487457275,
0.12397561967372894,
-0.28896427154541016,
-0.13776424527168274,
-0.15004736185073853,
-0.1393624097108841,
-0.26764458417892456,
-0.07246393710374832,
0.28739845752716064,
-0.2012099325656891,
0.3996606469154358,
0.1271524280309677,
-0.18432213366031647,
0.21767757833003998,
-0.17010241746902466,
0.422926664352417,
0.41455623507499695,
-0.3000434637069702,
0.008190860971808434,
-0.10384738445281982,
-0.17689397931098938,
-0.37479132413864136,
0.03385825827717781,
-0.3262408971786499,
-0.12123070657253265,
-0.2503080368041992,
0.17117784917354584,
-0.13442350924015045,
-0.1453130543231964,
0.047873832285404205,
-0.045065414160490036,
-0.06587131321430206,
0.05812141299247742,
-0.055853307247161865,
-0.003557800082489848,
0.4876595139503479,
-0.07111918926239014,
-0.4253762364387512,
-0.19118672609329224,
0.2174535095691681,
0.168596088886261,
-0.10198800265789032,
0.3815278708934784,
0.30624955892562866,
-0.2941485643386841,
-0.198917955160141,
0.17527946829795837,
0.2663818597793579,
-0.417573481798172,
0.2151438444852829,
-0.031906913965940475,
-0.19062359631061554,
0.1203293576836586,
0.09108255058526993,
0.016783785074949265,
-0.43928688764572144,
-0.13956652581691742,
-0.21746213734149933,
-0.23505662381649017,
-0.20425011217594147,
-0.11725291609764099,
0.18149518966674805,
-0.042415473610162735,
0.29085204005241394,
-0.167514830827713,
0.22002631425857544,
-0.2340722382068634,
0.21895168721675873,
0.10508612543344498,
0.019943825900554657,
-0.22257378697395325,
-0.059961944818496704,
0.3458729684352875,
0.008440231904387474,
0.024465909227728844,
0.26771122217178345,
-0.07027627527713776,
-0.19226756691932678,
-0.2965809106826782,
0.1833086460828781,
-0.19735071063041687,
-0.25694739818573,
0.2110210806131363,
0.037399932742118835,
-0.17847134172916412,
-0.32873204350471497,
0.4526488482952118,
0.37856143712997437,
0.0017854124307632446,
0.17520813643932343,
0.24256744980812073,
-0.1032830998301506,
-0.037791211158037186,
0.08997055888175964,
0.06392650306224823,
0.3796164393424988,
0.01602535881102085,
-0.04261056333780289,
0.10113054513931274,
0.006392285227775574,
0.08696750551462173,
0.08454982191324234,
0.45652472972869873,
0.05274657905101776,
0.11338848620653152,
-0.32605862617492676,
0.00011557713150978088,
0.23311956226825714,
0.24875134229660034,
0.25079649686813354,
0.07609298080205917,
-0.4878959357738495,
0.12583094835281372,
0.09627227485179901,
-0.11623597145080566,
-0.13700439035892487,
0.5604658722877502,
-0.20096229016780853,
0.0754886120557785,
0.2911957800388336,
0.5396943092346191,
0.46899551153182983,
-0.25443363189697266,
-0.1504780352115631,
0.4451788663864136,
-0.10702303051948547,
-0.07118873298168182,
0.12022100389003754,
0.25711512565612793,
-0.03586726263165474,
0.11742474138736725,
0.14450569450855255,
-0.0045794472098350525,
0.8345643877983093,
0.29553210735321045,
0.16490766406059265,
0.13133102655410767,
0.5793465375900269,
0.00478672981262207,
-0.41818925738334656,
0.06360974907875061,
0.4637727737426758,
-0.14632448554039001,
0.2126038372516632,
-0.15545448660850525,
0.12265479564666748,
0.013755714520812035,
-0.23143497109413147,
-0.2366134524345398,
0.06403548270463943,
-0.1869434118270874,
-0.16864801943302155,
0.2703823149204254,
-0.0331629142165184,
-0.1600572019815445,
0.1992483288049698,
-0.1787317842245102,
0.061688270419836044,
-0.09649384021759033,
0.03172072395682335,
0.07748252153396606,
-0.01101764477789402,
-0.29973265528678894,
-0.16343951225280762,
0.36710479855537415,
-0.02911650948226452,
0.049502771347761154,
0.03491058200597763,
0.04899439960718155,
0.2033919095993042,
0.3183891773223877,
0.13937851786613464,
0.11971834301948547,
-0.19665350019931793,
0.06236708536744118,
-0.23222309350967407,
0.1659068763256073,
0.0640983134508133,
0.256396621465683,
-0.1691608428955078,
0.21909268200397491,
0.14921307563781738,
-0.044277373701334,
-0.139647975564003,
-0.4502950608730316,
-0.2380761057138443,
0.15759964287281036,
-0.2985815107822418,
0.39087551832199097,
0.05253788083791733,
0.006656169891357422,
-0.2618952691555023,
0.08592984080314636,
-0.10436909645795822,
-0.058476753532886505,
0.6192135214805603,
-0.12777064740657806,
0.12022417038679123,
-0.008866805583238602,
0.04286481440067291,
-0.2853739857673645,
0.5990984439849854,
0.374225378036499,
-0.052922822535037994,
-0.1826571822166443,
-0.0990467220544815,
-0.4186212420463562,
-0.06251107901334763,
-0.37370583415031433,
-0.06846249103546143,
0.26739203929901123,
0.10031767189502716,
-0.028073951601982117,
0.15261760354042053,
0.03478044271469116,
-0.22491756081581116,
-0.18670019507408142,
0.040088094770908356,
-0.2379187047481537,
0.08041898906230927,
-0.31910061836242676,
-0.09106172621250153,
0.0809054747223854,
-0.4266532063484192,
0.20321711897850037,
0.33157703280448914,
-0.08927842974662781,
-0.09653999656438828,
0.15388427674770355,
0.21919117867946625,
-0.11115725338459015,
0.24502019584178925,
0.20071056485176086,
0.20583601295948029,
-0.044857025146484375,
-0.23066985607147217,
-0.25501134991645813,
0.19347013533115387,
-0.37565818428993225,
0.10429362207651138,
-0.07644973695278168,
0.3236490488052368,
-0.06965166330337524,
-0.23290036618709564,
-0.06839213520288467,
0.24476422369480133,
0.05334028601646423,
0.07273711264133453,
-0.23146195709705353,
0.035085611045360565,
-0.15409304201602936,
0.30684417486190796,
0.05167516693472862,
0.6133279204368591,
0.13606205582618713,
0.24612458050251007,
-0.2994588613510132,
-0.24156850576400757,
0.5019366145133972,
-0.339495986700058,
-0.34268584847450256,
-0.0089194281026721,
0.25321143865585327,
0.2119843065738678,
-0.20912563800811768,
-0.36481475830078125,
0.0404968187212944,
0.217376247048378,
0.09404702484607697,
0.06389141082763672,
0.43770793080329895,
-0.14433419704437256,
-0.06727757304906845,
0.10176044702529907,
-0.02606719732284546,
-0.05115579068660736,
-0.160888209939003,
-0.08581885695457458,
-0.23648080229759216
] |
https://github.com/huggingface/datasets/issues/4363 | The dataset preview is not available for this split. | Hi! A dataset has to be streamable to work with the viewer. I did a quick test, and yours is, so this might be a bug in the viewer. cc @severo
| I have uploaded the corpus developed by our lab in the speech domain to huggingface [datasets](https://huggingface.co/datasets/Roh/ryanspeech). You can read about the companion paper accepted in interspeech 2021 [here](https://arxiv.org/abs/2106.08468). The dataset works fine but I can't make the dataset preview work. It gives me the following error that I don't understand. Can you help me to begin debugging it?
```
Status code: 400
Exception: AttributeError
Message: 'NoneType' object has no attribute 'split'
``` | 31 | The dataset preview is not available for this split.
I have uploaded the corpus developed by our lab in the speech domain to huggingface [datasets](https://huggingface.co/datasets/Roh/ryanspeech). You can read about the companion paper accepted in interspeech 2021 [here](https://arxiv.org/abs/2106.08468). The dataset works fine but I can't make the dataset preview work. It gives me the following error that I don't understand. Can you help me to begin debugging it?
```
Status code: 400
Exception: AttributeError
Message: 'NoneType' object has no attribute 'split'
```
Hi! A dataset has to be streamable to work with the viewer. I did a quick test, and yours is, so this might be a bug in the viewer. cc @severo
| [
-0.4143206477165222,
-0.4605674147605896,
0.1031513661146164,
0.23723074793815613,
0.0689290463924408,
0.057130180299282074,
0.1891789734363556,
0.3036695122718811,
-0.2036113142967224,
0.07950679957866669,
-0.531731367111206,
0.09344525635242462,
-0.13939310610294342,
0.3211729824542999,
-0.27261775732040405,
-0.6880080699920654,
-0.11035051196813583,
0.15609994530677795,
0.023174021393060684,
-0.04394413158297539,
-0.04900212585926056,
0.2417251020669937,
-0.5196484923362732,
-0.2070600539445877,
-0.1694786250591278,
-0.2362792193889618,
-0.1331615298986435,
0.05066699534654617,
-0.271273136138916,
-0.019795039668679237,
0.04900031536817551,
-0.08778177201747894,
0.2730085551738739,
0.43967050313949585,
-0.00012138285092078149,
0.03599904477596283,
0.4382464289665222,
-0.19942189753055573,
-0.01768966019153595,
-0.3171611428260803,
0.003723878413438797,
0.29886940121650696,
0.11991257220506668,
0.008015401661396027,
-0.3118930459022522,
-0.030187051743268967,
0.09783635288476944,
-0.24132655560970306,
0.7023134231567383,
0.26679345965385437,
0.07821273803710938,
0.24541547894477844,
0.09757919609546661,
-0.2896392345428467,
0.06137284263968468,
0.3987513780593872,
-0.36805692315101624,
-0.2541990876197815,
0.020457662642002106,
0.24822905659675598,
-0.11347147077322006,
0.1985357701778412,
0.10732941329479218,
-0.004898359999060631,
-0.033349670469760895,
-0.1444617211818695,
-0.5842570662498474,
-0.44107213616371155,
0.1183289960026741,
0.4263803958892822,
0.5998317003250122,
0.06330329179763794,
-0.27263888716697693,
-0.04601637274026871,
-0.03331180661916733,
0.08774242550134659,
0.11348893493413925,
0.29911547899246216,
-0.07155431807041168,
0.16246777772903442,
-0.2981569170951843,
-0.21789471805095673,
-0.2836011052131653,
0.11250707507133484,
-0.18685683608055115,
0.36947566270828247,
-0.29230257868766785,
0.20756185054779053,
0.1791176199913025,
0.01309950277209282,
-0.007463307119905949,
0.18944120407104492,
-0.21205642819404602,
-0.03170377388596535,
-0.16049347817897797,
-0.20908938348293304,
-0.21943166851997375,
0.010801643133163452,
-0.1348474621772766,
0.32114630937576294,
-0.01432951632887125,
0.01545142661780119,
0.16332116723060608,
-0.0670509859919548,
0.6370416879653931,
-0.10662694275379181,
0.1998458206653595,
0.3255716562271118,
0.15937665104866028,
0.17698495090007782,
0.10202223062515259,
-0.1382376253604889,
-0.12654878199100494,
0.1019837036728859,
-0.4039967656135559,
-0.145706444978714,
0.341841459274292,
-0.24454811215400696,
-0.2000451683998108,
-0.32977867126464844,
-0.1440269649028778,
0.0037287254817783833,
0.11431354284286499,
0.31707242131233215,
-0.09593908488750458,
-0.1902790665626526,
-0.089075967669487,
0.368710458278656,
-0.21118873357772827,
-0.5418338775634766,
-0.1323748677968979,
0.08052736520767212,
-0.26712048053741455,
-0.1286839097738266,
0.011646546423435211,
-0.005276652052998543,
0.014175737276673317,
-0.07327236235141754,
0.34725362062454224,
-0.012447979301214218,
-0.16949528455734253,
-0.19790422916412354,
0.07297298312187195,
0.27046695351600647,
0.29960259795188904,
0.21649768948554993,
0.24364079535007477,
-0.10363852977752686,
-0.12356114387512207,
-0.15636712312698364,
0.020056992769241333,
-0.277900367975235,
-0.2506851851940155,
-0.02024058625102043,
-0.2883210778236389,
0.0394451729953289,
-0.23793679475784302,
0.514284610748291,
0.08857003599405289,
-0.2152356207370758,
-0.004550464451313019,
0.10794949531555176,
-0.4395538568496704,
-0.049943115562200546,
0.2400602102279663,
0.46534597873687744,
-0.4313397705554962,
-0.27383071184158325,
-0.4503887891769409,
-0.24491795897483826,
0.4805026054382324,
0.3063541054725647,
0.056983716785907745,
-0.1568918228149414,
-0.21505409479141235,
0.6931729912757874,
0.2568631172180176,
-0.29769715666770935,
-0.3612815737724304,
0.5128375887870789,
-0.09579011052846909,
-0.09597088396549225,
0.15620027482509613,
-0.25618165731430054,
0.7892082929611206,
-0.17393767833709717,
-0.029854662716388702,
0.20769891142845154,
-0.06844625622034073,
-0.17974542081356049,
-0.1280854195356369,
-0.14031489193439484,
0.0972236692905426,
0.1324882209300995,
0.07406860589981079,
-0.02051962912082672,
0.15606892108917236,
0.2292853593826294,
0.25434601306915283,
0.15228168666362762,
0.31334173679351807,
-0.07252933830022812,
0.17918124794960022,
0.10138173401355743,
0.045021697878837585,
-0.32814058661460876,
-0.14159759879112244,
0.04412079602479935,
-0.03907807171344757,
0.20563116669654846,
-0.05689343810081482,
-0.19865837693214417,
-0.3331736922264099,
-0.0919964537024498,
-0.14639164507389069,
-0.25993749499320984,
0.027272693812847137,
-0.08140607178211212,
0.19770939648151398,
0.040090423077344894,
-0.15958364307880402,
0.11328595876693726,
0.054346755146980286,
0.0619996152818203,
-0.3317739963531494,
0.4176671504974365,
-0.03173689544200897,
-0.21440215408802032,
0.19453828036785126,
0.12527070939540863,
0.11968505382537842,
-0.0918600782752037,
-0.04751443862915039,
0.4889708161354065,
0.15193656086921692,
0.3466370701789856,
-0.018995068967342377,
-0.2440005987882614,
0.2235872447490692,
-0.7839369773864746,
0.11937082558870316,
-0.00867004506289959,
0.005013646557927132,
-0.09276072680950165,
-0.10000643879175186,
0.09779895842075348,
0.10907810926437378,
0.17823582887649536,
0.05416165292263031,
0.3916536271572113,
0.12093603610992432,
-0.08818630874156952,
-0.3091622591018677,
-0.2562432289123535,
0.18591167032718658,
-0.5001491904258728,
0.076282799243927,
-0.21261751651763916,
-0.4292066991329193,
0.17669622600078583,
0.29186776280403137,
-0.0028139278292655945,
0.010089121758937836,
0.05345764383673668,
-0.5198431611061096,
-0.0946442261338234,
0.13519929349422455,
0.14204198122024536,
0.1724109947681427,
0.1779901534318924,
0.20116710662841797,
0.07860898971557617,
0.10634555667638779,
-0.01263126078993082,
0.09635987132787704,
0.13352954387664795,
0.15826420485973358,
0.1503276824951172,
-0.1835687756538391,
0.03881937637925148,
-0.3846183121204376,
0.14466778934001923,
0.005620431154966354,
0.09865741431713104,
-0.21400214731693268,
-0.10793083161115646,
-0.11800596117973328,
-0.3100752830505371,
-0.05693800002336502,
-0.17144769430160522,
-0.06548203527927399,
-0.1477934569120407,
0.13192501664161682,
0.18974237143993378,
0.07847893238067627,
0.1285434514284134,
0.08115464448928833,
0.24723264575004578,
0.016823189333081245,
0.29963284730911255,
-0.21168814599514008,
0.0025887885130941868,
-0.07532299309968948,
0.10278429090976715,
0.18205299973487854,
0.3446744978427887,
0.1345067024230957,
-0.023099636659026146,
0.08622278273105621,
-0.0010463465005159378,
-0.23969751596450806,
0.2757856249809265,
-0.21023055911064148,
0.2709130346775055,
0.2421257048845291,
0.03900822997093201,
-0.046594031155109406,
-0.1701633781194687,
0.18517932295799255,
-0.39440014958381653,
-0.22445477545261383,
0.07472506910562515,
-0.08336608856916428,
-0.08522558957338333,
-0.01673661172389984,
-0.37227845191955566,
-0.29952943325042725,
-0.4690724313259125,
0.3032471537590027,
-0.14032793045043945,
-0.13908155262470245,
0.007007238455116749,
-0.04799017310142517,
0.09433693438768387,
-0.21589867770671844,
-0.10163409262895584,
-0.1895962655544281,
-0.016013234853744507,
0.3490877151489258,
-0.43077173829078674,
-0.3970581293106079,
0.20372822880744934,
0.0925600677728653,
0.16168540716171265,
-0.038052402436733246,
-0.32951223850250244,
0.4054259955883026,
-0.2840619683265686,
-0.2804565727710724,
0.053491100668907166,
-0.19661828875541687,
0.33664071559906006,
-0.13820776343345642,
0.02799575962126255,
-0.19470542669296265,
0.14268821477890015,
-0.02575017511844635,
-0.010419804602861404,
0.17573267221450806,
-0.15971726179122925,
0.0740140825510025,
0.0510130412876606,
0.8160977363586426,
0.6660619378089905,
0.18723149597644806,
0.08920209109783173,
-0.14280271530151367,
0.06622378528118134,
-0.0669485554099083,
-0.36395421624183655,
0.32302162051200867,
-0.10241389274597168,
-0.019414985552430153,
0.570228099822998,
0.08852212131023407,
-0.45781517028808594,
-0.29605811834335327,
-0.2627752125263214,
-0.21818900108337402,
-0.2662627398967743,
-0.0351182296872139,
0.11203109472990036,
0.03000640869140625,
-0.16328471899032593,
0.08743564039468765,
0.3056788742542267,
-0.14957574009895325,
-0.041119903326034546,
0.1434905081987381,
0.20199093222618103,
-0.06354863941669464,
-0.07327546179294586,
0.1460116058588028,
-0.39656853675842285,
0.10059496760368347,
0.0372469499707222,
0.14181262254714966,
-0.3276687264442444,
-0.14462527632713318,
0.19050559401512146,
0.19259025156497955,
0.7648097276687622,
-0.17026516795158386,
0.08185987919569016,
-0.005769666284322739,
-0.024219684302806854,
-0.15143898129463196,
0.21550776064395905,
-0.17054903507232666,
0.3912881910800934,
0.20006200671195984,
0.18027612566947937,
-0.15660697221755981,
0.09033998101949692,
0.43826550245285034,
-0.1078232079744339,
-0.15561500191688538,
-0.03684113547205925,
-0.01370309293270111,
0.053568534553050995,
-0.17616532742977142,
-0.04072228819131851,
0.205908864736557,
-0.0425899438560009,
0.04397550970315933,
-0.11843825876712799,
-0.031565792858600616,
-0.31128212809562683,
0.19311967492103577,
0.12970763444900513,
0.20192798972129822,
-0.010235536843538284,
0.21926018595695496,
0.5897426605224609,
-0.03228267282247543,
0.07397441565990448,
0.6227598190307617,
0.22142140567302704,
-0.48854905366897583,
0.24396175146102905,
-0.050477806478738785,
0.27717363834381104,
0.2735403776168823,
-0.14158879220485687,
-0.07278241962194443,
0.23126815259456635,
0.30082350969314575,
-0.4074232876300812,
0.046067193150520325,
0.27448055148124695,
-0.12090446799993515,
-0.6794283390045166,
-0.2899288833141327,
0.2715325355529785,
0.0920410007238388,
0.15112389624118805,
0.1430678367614746,
0.4150790572166443,
-0.09217989444732666,
0.19718559086322784,
-0.14728161692619324,
0.9824724793434143,
0.05592845007777214,
-0.12029656767845154,
0.09591936320066452,
0.08180616796016693,
0.29349491000175476,
-0.1987929344177246,
0.055383920669555664,
0.004087265580892563,
-0.3482227921485901,
-0.24625881016254425,
0.01683301106095314,
0.33370140194892883,
0.01665446162223816,
-0.5525394678115845,
-0.13601738214492798,
0.04126346856355667,
0.13332466781139374,
-0.12485453486442566,
-0.08194059133529663,
-0.13553109765052795,
-0.068780317902565,
0.012673160061240196,
0.018279865384101868,
-0.037091709673404694,
0.36147379875183105,
0.3411659002304077,
-0.10123808681964874,
-0.12029676139354706,
-0.06195397302508354,
-0.6169087886810303,
0.20492124557495117,
0.059890348464250565,
-0.20424924790859222,
-0.05457736924290657,
-0.2245406210422516,
0.6780266761779785,
0.39269599318504333,
0.03926441818475723,
0.04668764770030975,
-0.44481971859931946,
0.2845892310142517,
-0.009427227079868317,
-0.4976380467414856,
-0.10068004578351974,
0.04396107420325279,
0.3490910530090332,
-0.1048692837357521,
-0.1564740091562271,
0.12856149673461914,
0.04517531767487526,
0.10197895765304565,
0.01333048939704895,
-0.10135149955749512,
0.08146768063306808,
-0.5648378133773804,
0.02673102542757988,
0.07012981176376343,
0.013811327517032623,
-0.21010152995586395,
0.00500138383358717,
-0.08108113706111908,
-0.33923691511154175,
-0.02199934422969818,
0.10609012097120285,
-0.13929110765457153,
-0.11627751588821411,
0.38227781653404236,
0.11878562718629837,
0.07456930726766586,
0.2883898913860321,
0.5266870260238647,
-0.1714649647474289,
-0.24467018246650696,
0.06481906026601791,
0.15848679840564728,
-0.729701042175293,
0.29235172271728516,
-0.10371474921703339,
0.20066528022289276,
-0.020006706938147545,
0.41818347573280334,
-0.008903782814741135,
-0.1750982403755188,
-0.25719141960144043,
-0.3664284646511078,
-0.11232150346040726,
0.20416195690631866,
-0.1885068118572235,
0.1142108142375946,
-0.035542525351047516,
0.26872900128364563,
0.2979157567024231,
0.21949701011180878,
-0.2038768231868744,
0.038005053997039795,
-0.060236360877752304,
-0.00020857900381088257,
0.06620535999536514,
-0.1527026891708374,
0.31468456983566284,
-0.15054412186145782,
-0.03059888631105423,
0.21854642033576965,
-0.08080993592739105,
-0.023658031597733498,
-0.13573797047138214,
0.19917654991149902,
0.07545202970504761,
-0.10707766562700272,
0.019825104624032974,
-0.0048890020698308945,
-0.42474061250686646,
0.041057102382183075,
0.12563073635101318,
0.2745153307914734,
0.14298033714294434,
0.11825229227542877,
0.4008568823337555,
-0.023834161460399628,
-0.3748903274536133,
0.1198316141963005,
0.18519127368927002,
0.409135103225708,
-0.10001582652330399,
0.09830877184867859,
-0.02035297267138958,
-0.06676854938268661,
-0.015998007729649544,
0.15213680267333984,
0.36542290449142456,
-0.10165224224328995,
0.25178295373916626,
-0.06831052899360657,
0.20768383145332336,
-0.028429394587874413,
0.5831540822982788,
0.19784504175186157,
0.07028745859861374,
0.05617748200893402,
0.08658114075660706,
0.02646469883620739,
-0.2729209065437317,
0.23086823523044586,
0.12469407916069031,
0.0033431542105972767,
0.25641709566116333,
0.2743659019470215,
-0.13036604225635529,
0.391733855009079,
-0.23065777122974396,
0.10457416623830795,
0.22822798788547516,
0.014151894487440586,
0.636612057685852,
0.6190529465675354,
-0.10119663178920746,
0.10165458917617798,
0.04799994081258774,
0.07107553631067276,
0.15570710599422455,
0.3990161418914795,
-0.15435829758644104,
0.4386719763278961,
-0.07202836871147156,
0.3413317799568176,
0.33869093656539917,
-0.34500062465667725,
0.03638335317373276,
0.16336767375469208,
0.06222580373287201,
0.20043537020683289,
-0.03140793740749359,
0.7186009287834167,
-0.3206164538860321,
-0.061495091766119,
-0.21578314900398254,
0.3010622262954712,
0.057051531970500946,
-0.00835117232054472,
-0.031201064586639404,
-0.1701779067516327,
-0.4268973767757416,
0.025945309549570084,
0.14399762451648712,
-0.020178474485874176,
0.11631117761135101,
0.08711408078670502,
0.12399792671203613,
-0.19493673741817474,
0.03475130349397659,
-0.04285257309675217,
0.30022600293159485,
-0.20254434645175934,
0.16149383783340454,
0.06835231184959412,
0.10397946834564209,
0.3788268268108368,
0.3085530996322632,
0.37494879961013794,
-0.12120987474918365,
-0.15442900359630585,
0.04705623537302017,
0.1916254609823227,
-0.33381181955337524,
0.263702929019928,
0.46260327100753784,
0.10398634523153305,
0.28360888361930847,
0.27337270975112915,
0.024333028122782707,
-0.12796449661254883,
0.17102237045764923,
-0.047010112553834915,
0.14649726450443268,
-0.20712099969387054,
0.48448020219802856,
-0.5640718936920166,
0.05978895723819733,
-0.16646252572536469,
-0.3783465325832367,
-0.5487294793128967,
-0.03422452136874199,
0.049492694437503815,
-0.4214153587818146,
0.0171823650598526,
-0.23265668749809265,
0.00528707355260849,
0.14092980325222015,
0.33422574400901794,
0.30987781286239624,
0.3514379858970642,
0.0978795737028122,
-0.3408902883529663,
-0.2328414022922516,
0.14273717999458313,
0.05360518768429756,
-0.1479426920413971,
-0.12400268018245697,
0.13649912178516388,
0.1409120410680771,
0.3213765025138855,
0.08838862180709839,
0.022903194651007652,
0.055419594049453735,
0.25121527910232544,
0.11104917526245117,
0.0015872828662395477,
-0.15378080308437347,
0.121701180934906,
-0.08376267552375793,
-0.09326194226741791,
0.03757059574127197,
0.26040759682655334,
-0.191135436296463,
-0.08159112185239792,
-0.1968907117843628,
0.017088495194911957,
-0.5717837810516357,
-0.1966652274131775,
0.10411572456359863,
0.399974524974823,
-0.11346060037612915,
0.0580158457159996,
-0.10077914595603943,
-0.15693864226341248,
-0.41927486658096313,
0.11626173555850983,
0.3183418810367584,
0.5795183181762695,
-0.3308408260345459,
0.10633325576782227,
-0.14256665110588074,
-0.22152897715568542,
0.14360181987285614,
0.30393436551094055,
-0.519740879535675,
0.3119693398475647,
-0.44574588537216187,
-0.013213174417614937,
0.27928656339645386,
0.36975494027137756,
-0.09309473633766174,
-0.23948216438293457,
-0.061309270560741425,
-0.5003304481506348,
0.5065990686416626,
-0.27501380443573,
-0.1830988973379135,
-0.002919516758993268,
-0.14706215262413025,
0.12460881471633911,
-0.24073821306228638,
-0.8493812680244446,
-0.05542469769716263,
0.10678651928901672,
-0.14730846881866455,
0.37628209590911865,
0.1457916498184204,
0.07314303517341614,
-0.1878241002559662,
-0.13693302869796753,
0.7545512914657593,
0.3644566237926483,
-0.1335477977991104,
0.4394322335720062,
-0.1447780728340149
] |
https://github.com/huggingface/datasets/issues/4363 | The dataset preview is not available for this split. | Looking at it. The message is now:
```
Message: cannot cache function '__shear_dense': no locator available for file '/src/services/worker/.venv/lib/python3.9/site-packages/librosa/util/utils.py'
```
so possibly it's related to the libraries versions?
| I have uploaded the corpus developed by our lab in the speech domain to huggingface [datasets](https://huggingface.co/datasets/Roh/ryanspeech). You can read about the companion paper accepted in interspeech 2021 [here](https://arxiv.org/abs/2106.08468). The dataset works fine but I can't make the dataset preview work. It gives me the following error that I don't understand. Can you help me to begin debugging it?
```
Status code: 400
Exception: AttributeError
Message: 'NoneType' object has no attribute 'split'
``` | 28 | The dataset preview is not available for this split.
I have uploaded the corpus developed by our lab in the speech domain to huggingface [datasets](https://huggingface.co/datasets/Roh/ryanspeech). You can read about the companion paper accepted in interspeech 2021 [here](https://arxiv.org/abs/2106.08468). The dataset works fine but I can't make the dataset preview work. It gives me the following error that I don't understand. Can you help me to begin debugging it?
```
Status code: 400
Exception: AttributeError
Message: 'NoneType' object has no attribute 'split'
```
Looking at it. The message is now:
```
Message: cannot cache function '__shear_dense': no locator available for file '/src/services/worker/.venv/lib/python3.9/site-packages/librosa/util/utils.py'
```
so possibly it's related to the libraries versions?
| [
-0.22673609852790833,
-0.43739211559295654,
0.07581894099712372,
0.25833985209465027,
0.06573119759559631,
0.06564351171255112,
0.23253124952316284,
0.4521056115627289,
-0.1967177540063858,
0.11934724450111389,
-0.5796419382095337,
0.06568598002195358,
-0.1469109058380127,
0.19747188687324524,
-0.3251664936542511,
-0.5425829887390137,
-0.06778401881456375,
0.1501093953847885,
-0.020820632576942444,
-0.15472309291362762,
-0.2221805304288864,
0.3200114667415619,
-0.4488637447357178,
-0.0972704291343689,
-0.3516429364681244,
-0.2587111294269562,
-0.18941593170166016,
0.20235958695411682,
-0.3149031400680542,
-0.010079200379550457,
0.2060403823852539,
-0.1588175892829895,
0.21012775599956512,
0.4048462212085724,
-0.00012590498954523355,
-0.013596519827842712,
0.4201405644416809,
-0.1932765692472458,
0.007458066567778587,
-0.3698657751083374,
-0.1510547697544098,
0.1228102594614029,
0.07648420333862305,
-0.13451799750328064,
-0.2293509542942047,
0.02951490879058838,
-0.005765574052929878,
-0.3353135883808136,
0.7072445750236511,
0.22526653110980988,
0.04787609726190567,
0.20002427697181702,
0.07485207915306091,
-0.29173436760902405,
0.11205381155014038,
0.25464871525764465,
-0.41858404874801636,
-0.274057000875473,
0.04495644196867943,
0.17531029880046844,
-0.028027497231960297,
0.210718035697937,
0.15582440793514252,
0.03504550829529762,
-0.012337259948253632,
0.014730213209986687,
-0.522136390209198,
-0.4954911768436432,
0.12392115592956543,
0.4437028765678406,
0.4565129578113556,
0.04470115154981613,
-0.3672710955142975,
-0.04507178068161011,
-0.14204302430152893,
-0.026953009888529778,
0.1747850626707077,
0.19992190599441528,
0.018817462027072906,
0.12940900027751923,
-0.2875572443008423,
-0.20244120061397552,
-0.1951659470796585,
0.1571938693523407,
-0.18557235598564148,
0.43406838178634644,
-0.31314322352409363,
0.18897736072540283,
0.2310977280139923,
-0.042337141931056976,
-0.07610258460044861,
0.23936304450035095,
-0.10982510447502136,
0.20010416209697723,
-0.2266095131635666,
-0.2400345355272293,
-0.12230893224477768,
-0.07214952260255814,
-0.07657207548618317,
0.32958030700683594,
-0.13682007789611816,
-0.013158019632101059,
0.0183844193816185,
-0.04524698853492737,
0.5933731198310852,
-0.028831293806433678,
0.28821825981140137,
0.29271596670150757,
0.20615604519844055,
0.1740582138299942,
0.16599486768245697,
-0.10318658500909805,
-0.07888703793287277,
-0.01622280478477478,
-0.39040836691856384,
0.02200997807085514,
0.31020766496658325,
-0.3284161686897278,
-0.07928469777107239,
-0.3016541302204132,
-0.19859111309051514,
-0.006912120617926121,
-0.00024702027440071106,
0.3224715292453766,
-0.12293597310781479,
-0.2268505096435547,
-0.0651421993970871,
0.3418468236923218,
-0.2064143419265747,
-0.31884169578552246,
-0.13850045204162598,
0.16300076246261597,
-0.26348841190338135,
-0.12391584366559982,
0.02973472699522972,
0.08952058851718903,
0.08652752637863159,
-0.14868605136871338,
0.2996926009654999,
-0.09221086651086807,
-0.26560190320014954,
-0.2841956913471222,
0.15987823903560638,
0.26708438992500305,
0.17063309252262115,
0.2094351351261139,
0.1952519565820694,
-0.04909522086381912,
-0.27857527136802673,
-0.14737868309020996,
-0.16564956307411194,
-0.4201621413230896,
-0.2722647786140442,
-0.07108280062675476,
-0.276175320148468,
0.10642163455486298,
-0.057921089231967926,
0.43480217456817627,
0.13408803939819336,
-0.1603640764951706,
-0.0261014923453331,
0.10322847217321396,
-0.5995209813117981,
-0.16611462831497192,
0.3161848485469818,
0.4671795964241028,
-0.40136000514030457,
-0.29094964265823364,
-0.40229737758636475,
-0.11540524661540985,
0.4659288227558136,
0.4044402837753296,
0.04236061871051788,
-0.14080581068992615,
-0.21581709384918213,
0.8069849610328674,
0.34944021701812744,
-0.3288685977458954,
-0.3458693027496338,
0.337755411863327,
-0.048593953251838684,
-0.14679060876369476,
0.11439089477062225,
-0.28965967893600464,
0.6064562797546387,
-0.22631686925888062,
-0.05044926702976227,
0.3704543113708496,
0.009666170924901962,
-0.24864645302295685,
-0.1898110806941986,
-0.24281099438667297,
0.04277179017663002,
0.12508121132850647,
0.11057312786579132,
-0.060899220407009125,
0.11651301383972168,
0.18749825656414032,
0.2720749080181122,
0.14940419793128967,
0.2818526029586792,
0.05970487371087074,
0.20103967189788818,
0.07384336739778519,
0.17740999162197113,
-0.3448423743247986,
-0.11001270264387131,
0.06451050192117691,
-0.13008999824523926,
0.23579826951026917,
-0.1674291044473648,
-0.11564773321151733,
-0.366501122713089,
-0.14580635726451874,
-0.19539658725261688,
-0.32315298914909363,
-0.02405369095504284,
-0.20435881614685059,
0.45072758197784424,
0.08817234635353088,
-0.1358071118593216,
0.0487242117524147,
0.06019708514213562,
0.0578518770635128,
-0.43191033601760864,
0.3468230068683624,
-0.0974515900015831,
-0.22874952852725983,
0.061660341918468475,
0.34124279022216797,
0.10868585109710693,
-0.10400626063346863,
-0.05901180952787399,
0.43084949254989624,
0.18914002180099487,
0.12454763054847717,
-0.05848181992769241,
-0.10399870574474335,
0.1396862119436264,
-0.4698795676231384,
0.11570760607719421,
-0.1327389031648636,
-0.0554770790040493,
-0.06160707771778107,
-0.06178853660821915,
0.17667701840400696,
0.12726998329162598,
0.29562339186668396,
0.08155713975429535,
0.2967049479484558,
0.13710960745811462,
-0.1521250605583191,
-0.07823659479618073,
-0.2986346483230591,
0.11597290635108948,
-0.41627058386802673,
0.2127256542444229,
-0.234017476439476,
-0.24865810573101044,
0.09347504377365112,
0.44044414162635803,
-0.026365937665104866,
0.09689714759588242,
0.046524859964847565,
-0.3598472774028778,
-0.1066969782114029,
0.04194847494363785,
0.23528502881526947,
0.2857480049133301,
0.07192565500736237,
0.20478996634483337,
-0.011885019019246101,
0.11259996891021729,
-0.010792318731546402,
0.10153315216302872,
0.1336713284254074,
0.19267898797988892,
0.09050747752189636,
-0.15389448404312134,
0.05352051183581352,
-0.24963146448135376,
0.08562381565570831,
-0.021174024790525436,
0.07402726262807846,
-0.10639536380767822,
-0.13891060650348663,
-0.20555968582630157,
-0.1516282558441162,
-0.043077174574136734,
-0.1559443175792694,
-0.1559825837612152,
-0.20366188883781433,
0.2071646749973297,
-0.01459747925400734,
0.08932456374168396,
0.250618577003479,
0.25588905811309814,
0.18398906290531158,
-0.011068236082792282,
0.22682525217533112,
-0.22476300597190857,
0.0004579983651638031,
-0.13565516471862793,
0.02998150885105133,
0.10421840101480484,
0.33274295926094055,
0.0012392643839120865,
-0.06881365180015564,
-0.011990071274340153,
-0.01573498733341694,
-0.29609164595603943,
0.30695387721061707,
-0.2127719670534134,
0.2574343681335449,
0.40421897172927856,
-0.04599986970424652,
-0.013232510536909103,
-0.17185194790363312,
0.32239657640457153,
-0.4599458873271942,
-0.24612528085708618,
-0.0028872303664684296,
-0.053961895406246185,
0.02297719568014145,
0.025384720414876938,
-0.3903317451477051,
-0.45144617557525635,
-0.45857736468315125,
0.3067479729652405,
-0.1528276801109314,
-0.09212656319141388,
0.07167701423168182,
-0.061182957142591476,
0.05918059125542641,
-0.2961282432079315,
-0.03315330296754837,
-0.25799649953842163,
-0.12169260531663895,
0.38129228353500366,
-0.3863079249858856,
-0.32356032729148865,
0.08821047842502594,
-0.01824490912258625,
0.26069551706314087,
-0.018262486904859543,
-0.2577490210533142,
0.3014904856681824,
-0.3482511341571808,
-0.13918523490428925,
0.06879045069217682,
0.01047106646001339,
0.4317699670791626,
-0.1433723419904709,
0.05465491861104965,
-0.21689414978027344,
0.13587144017219543,
0.020584717392921448,
0.04822172969579697,
0.2823222577571869,
-0.02307819202542305,
0.02899649553000927,
0.09358114004135132,
0.9541075229644775,
0.5129377245903015,
0.13411357998847961,
0.13546022772789001,
-0.17082946002483368,
0.009432308375835419,
-0.059107355773448944,
-0.38486403226852417,
0.2221061736345291,
-0.0606754869222641,
-0.014430259354412556,
0.4114185571670532,
0.20767781138420105,
-0.4560733139514923,
-0.3296626806259155,
-0.28266531229019165,
-0.2578907608985901,
-0.2742662727832794,
0.010337374173104763,
0.3791413903236389,
0.09859049320220947,
-0.1267526000738144,
0.13530132174491882,
0.16972438991069794,
-0.13997367024421692,
0.057774681597948074,
0.07239724695682526,
0.22796711325645447,
-0.04711327701807022,
0.03870270028710365,
-0.03470650687813759,
-0.43162256479263306,
0.1455180048942566,
0.21490825712680817,
0.15631194412708282,
-0.27169227600097656,
-0.17879053950309753,
0.19936291873455048,
0.2367073893547058,
0.7434358596801758,
-0.1442365199327469,
0.04501817375421524,
0.012007735669612885,
-0.20986422896385193,
-0.05858258157968521,
0.20198093354701996,
-0.13213147222995758,
0.4069043695926666,
0.3242247998714447,
0.15178926289081573,
-0.1592407524585724,
-0.015021179802715778,
0.5066012144088745,
-0.04381866753101349,
-0.16643813252449036,
0.04407245293259621,
-0.07400720566511154,
-0.0023336857557296753,
-0.2039089947938919,
-0.18903014063835144,
0.14209911227226257,
0.06431888043880463,
0.11114049702882767,
-0.09611327946186066,
-0.017941737547516823,
-0.41456612944602966,
0.09013663232326508,
0.17509369552135468,
0.24676188826560974,
-0.04957739636301994,
0.18656684458255768,
0.5202044248580933,
-0.11849488317966461,
0.018354609608650208,
0.6923296451568604,
0.006807999685406685,
-0.4135786294937134,
0.22474053502082825,
-0.062321461737155914,
0.29197829961776733,
0.3033101558685303,
-0.18275588750839233,
-0.06638307124376297,
-0.07744832336902618,
0.29748523235321045,
-0.3062650263309479,
-0.038556501269340515,
0.35600021481513977,
-0.06543726474046707,
-0.5626710057258606,
-0.25892001390457153,
0.4035172760486603,
0.258223295211792,
0.13958115875720978,
0.15040792524814606,
0.39931535720825195,
-0.000927378423511982,
0.20302537083625793,
-0.1991649866104126,
1.0442067384719849,
0.001965593546628952,
-0.034884002059698105,
0.06810128688812256,
0.2794235348701477,
0.4108429551124573,
-0.26533743739128113,
0.14091044664382935,
-0.08160746097564697,
-0.34100183844566345,
-0.2037263810634613,
-0.02308899164199829,
0.281480997800827,
0.00018648803234100342,
-0.41646215319633484,
-0.0011784497182816267,
0.002669297158718109,
-0.004609785974025726,
-0.1945618838071823,
-0.11469341814517975,
-0.14901666343212128,
-0.0982857495546341,
-0.07773181051015854,
-0.016696710139513016,
0.11645106971263885,
0.41017061471939087,
0.28650712966918945,
-0.0047743357717990875,
-0.2711024284362793,
-0.05802246928215027,
-0.5391919612884521,
0.22558540105819702,
0.15819546580314636,
0.02256862260401249,
0.06787525117397308,
-0.3351481258869171,
0.5796363949775696,
0.4164179563522339,
0.09650950133800507,
0.07724887132644653,
-0.3653393089771271,
0.23244160413742065,
0.00891214981675148,
-0.47213855385780334,
-0.031443580985069275,
0.16611267626285553,
0.3365541696548462,
-0.05942922830581665,
-0.1771717369556427,
0.03315280005335808,
-0.06823993474245071,
0.016966350376605988,
-0.1865440458059311,
-0.013858482241630554,
-0.11199170351028442,
-0.551196813583374,
-0.0032311740797013044,
0.14601342380046844,
0.07355095446109772,
-0.17264579236507416,
-0.003997789695858955,
0.07535868138074875,
-0.3546903729438782,
0.056054823100566864,
-0.0075507499277591705,
-0.1993066370487213,
-0.08234292268753052,
0.4066867530345917,
0.15100908279418945,
0.20010723173618317,
0.4069855213165283,
0.4610108733177185,
-0.08677080273628235,
-0.16227447986602783,
-0.029394127428531647,
0.27973195910453796,
-0.7135763168334961,
0.3714500963687897,
-0.10014770179986954,
0.07087314128875732,
-0.08508092910051346,
0.516200065612793,
0.04586531221866608,
-0.13962805271148682,
-0.2905882000923157,
-0.36937209963798523,
-0.06597671657800674,
0.3292996883392334,
-0.20132878422737122,
0.1347498744726181,
-0.05440155044198036,
0.32670995593070984,
0.19822148978710175,
0.22327987849712372,
-0.15634286403656006,
0.16233234107494354,
-0.20695950090885162,
0.036502182483673096,
0.0005860980600118637,
-0.13874205946922302,
0.3438339829444885,
-0.032776154577732086,
-0.09356001019477844,
0.24922208487987518,
-0.1230422854423523,
0.012912999838590622,
-0.15721403062343597,
0.22365425527095795,
-0.026208940893411636,
-0.12107885628938675,
0.08977807313203812,
-0.07081589102745056,
-0.4572983682155609,
-0.009101418778300285,
0.13073214888572693,
0.27940186858177185,
0.1862015277147293,
0.15838883817195892,
0.3380316495895386,
-0.12381596118211746,
-0.3678050637245178,
0.18371734023094177,
0.08976232260465622,
0.4198530316352844,
-0.11293940991163254,
0.1557880938053131,
-0.03555198758840561,
-0.05524309724569321,
0.11625183373689651,
-0.009719312191009521,
0.22428438067436218,
-0.1493363380432129,
0.27675706148147583,
-0.10948172211647034,
0.12643684446811676,
-0.007201548665761948,
0.5869830846786499,
0.30638206005096436,
0.10134506970643997,
0.14477062225341797,
0.11207137256860733,
-0.0034993141889572144,
-0.3161458373069763,
0.09679610282182693,
0.09754617512226105,
0.019406311213970184,
0.23415714502334595,
0.3592272698879242,
-0.10052500665187836,
0.4173097014427185,
0.023378673940896988,
0.09636411815881729,
0.21415086090564728,
-0.06930511444807053,
0.56087327003479,
0.5554974675178528,
-0.0924391895532608,
0.08475542813539505,
0.18106041848659515,
-0.013058330863714218,
0.14569565653800964,
0.36799436807632446,
-0.1638902723789215,
0.5823110342025757,
-0.11323655396699905,
0.31130102276802063,
0.3680863380432129,
-0.41585108637809753,
0.06713686883449554,
0.16874168813228607,
0.1078801080584526,
0.20444157719612122,
-0.14671316742897034,
0.7930958271026611,
-0.4483865797519684,
-0.00817670114338398,
-0.1452026516199112,
0.34625306725502014,
0.03485114872455597,
-0.003640247043222189,
0.15231500566005707,
-0.19058027863502502,
-0.47123220562934875,
-0.02979828231036663,
0.08522693067789078,
-0.09045164287090302,
0.3430466651916504,
0.052876006811857224,
0.08345285803079605,
-0.1534900665283203,
-0.05436071753501892,
-0.06721284985542297,
0.38883525133132935,
-0.2195802479982376,
0.21944601833820343,
0.07741011679172516,
-0.02814609557390213,
0.32314661145210266,
0.3409055173397064,
0.4257369637489319,
-0.03296130150556564,
-0.1660805642604828,
-0.022285837680101395,
0.19764238595962524,
-0.2996002435684204,
0.2429407835006714,
0.48584431409835815,
0.15366365015506744,
0.31004926562309265,
0.22567036747932434,
-0.02496630698442459,
-0.08596033602952957,
0.12835104763507843,
-0.009916972368955612,
0.2822456657886505,
-0.1985340565443039,
0.5375612378120422,
-0.5325765609741211,
0.015178583562374115,
-0.18576586246490479,
-0.3147302567958832,
-0.6314931511878967,
0.019654911011457443,
0.009170716628432274,
-0.3293898403644562,
0.06670315563678741,
-0.17340967059135437,
-0.018306078389286995,
0.1115696132183075,
0.29023846983909607,
0.37745752930641174,
0.2712732255458832,
0.015224065631628036,
-0.32951778173446655,
-0.1573069989681244,
0.16162161529064178,
0.007204506546258926,
-0.26776671409606934,
-0.22314748167991638,
0.18822939693927765,
0.14192625880241394,
0.26370546221733093,
0.2288317233324051,
-0.042720574885606766,
0.1499687284231186,
0.1373119354248047,
-0.1032455712556839,
-0.05850544199347496,
-0.2724153399467468,
-0.002397991716861725,
-0.020253904163837433,
-0.13617202639579773,
-0.030060794204473495,
0.2772044539451599,
-0.26266932487487793,
-0.13734117150306702,
-0.2985949218273163,
0.06573568284511566,
-0.4898146092891693,
-0.19033709168434143,
0.17410717904567719,
0.31855154037475586,
-0.11498545855283737,
-0.014042097143828869,
-0.14736461639404297,
-0.17423361539840698,
-0.26583167910575867,
0.16479569673538208,
0.3844927251338959,
0.5133180618286133,
-0.371254026889801,
0.17225956916809082,
-0.24302107095718384,
-0.14831772446632385,
0.09112311899662018,
0.3990398645401001,
-0.4153047502040863,
0.31336820125579834,
-0.3784651756286621,
-0.03563764691352844,
0.3679724931716919,
0.5109173059463501,
-0.1318952739238739,
-0.1433606892824173,
-0.14836281538009644,
-0.5263067483901978,
0.5126914978027344,
-0.2535504698753357,
-0.22328923642635345,
-0.07769089937210083,
-0.17134985327720642,
0.08363232016563416,
-0.2643296718597412,
-0.8942328095436096,
-0.09747058898210526,
0.05679637938737869,
0.024405773729085922,
0.24799621105194092,
0.1337175816297531,
0.21714970469474792,
-0.24014052748680115,
-0.08481188863515854,
0.7544474601745605,
0.37917834520339966,
-0.13202418386936188,
0.4320448637008667,
-0.14100562036037445
] |
https://github.com/huggingface/datasets/issues/4358 | Missing dataset tags and sections in some dataset cards | @lhoestq I can take this issue. Please can you point out to me where I can find the other positional arguments? | Summary of CircleCI errors for different dataset metadata:
- **BoolQ**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **Conllpp**: expected some content in section `Citation Information` but it is empty.
- **GLUE**: 'annotations_creators', 'language_creators', 'source_datasets' :['unknown'] are not registered tags
- **ConLL2003**: field 'task_ids': ['part-of-speech-tagging'] are not registered tags for 'task_ids'
- **Hate_speech18:** Expected some content in section `Data Instances` but it is empty, Expected some content in section `Data Splits` but it is empty
- **Jjigsaw_toxicity_pred**: `Citation Information` but it is empty.
- **LIAR** : `Data Instances`,`Data Fields`, `Data Splits`, `Citation Information` are empty.
- **MSRA NER** : Dataset Summary`, `Data Instances`, `Data Fields`, `Data Splits`, `Citation Information` are empty.
- **sem_eval_2010_task_8**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sms_spam**: `Data Instances` and`Data Splits` are empty.
- **Quora** : Expected some content in section `Citation Information` but it is empty, missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sentiment140**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids' | 21 | Missing dataset tags and sections in some dataset cards
Summary of CircleCI errors for different dataset metadata:
- **BoolQ**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **Conllpp**: expected some content in section `Citation Information` but it is empty.
- **GLUE**: 'annotations_creators', 'language_creators', 'source_datasets' :['unknown'] are not registered tags
- **ConLL2003**: field 'task_ids': ['part-of-speech-tagging'] are not registered tags for 'task_ids'
- **Hate_speech18:** Expected some content in section `Data Instances` but it is empty, Expected some content in section `Data Splits` but it is empty
- **Jjigsaw_toxicity_pred**: `Citation Information` but it is empty.
- **LIAR** : `Data Instances`,`Data Fields`, `Data Splits`, `Citation Information` are empty.
- **MSRA NER** : Dataset Summary`, `Data Instances`, `Data Fields`, `Data Splits`, `Citation Information` are empty.
- **sem_eval_2010_task_8**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sms_spam**: `Data Instances` and`Data Splits` are empty.
- **Quora** : Expected some content in section `Citation Information` but it is empty, missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sentiment140**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
@lhoestq I can take this issue. Please can you point out to me where I can find the other positional arguments? | [
-0.21198584139347076,
0.04630735516548157,
-0.18291079998016357,
0.3745988607406616,
-0.03782837837934494,
0.3396456241607666,
0.26515209674835205,
0.29197463393211365,
-0.018360253423452377,
0.07831576466560364,
0.20011664927005768,
0.4552749693393707,
0.05990941822528839,
0.4089476764202118,
-0.19057568907737732,
-0.05356267839670181,
0.10399173945188522,
0.13621953129768372,
0.10804381966590881,
-0.1382923424243927,
-0.13642984628677368,
0.2884673774242401,
-0.27727511525154114,
0.079914391040802,
-0.4522334337234497,
-0.29721716046333313,
-0.04969070851802826,
0.01133035123348236,
-0.2272566556930542,
-0.5709039568901062,
0.2756475806236267,
0.12683387100696564,
-0.19906994700431824,
0.21778003871440887,
-0.00010476919123902917,
-0.15785560011863708,
0.34846872091293335,
0.01051374338567257,
-0.4228750765323639,
-0.22760312259197235,
-0.17939281463623047,
-0.32336822152137756,
-0.028868163004517555,
-0.15730898082256317,
0.016159772872924805,
0.06379503011703491,
-0.36705493927001953,
0.0010949857532978058,
0.10939843207597733,
0.2971136271953583,
0.2544768154621124,
0.16887551546096802,
0.15547922253608704,
-0.3857136070728302,
0.23070445656776428,
0.4238296151161194,
-0.01786096766591072,
0.1629665195941925,
0.4041830897331238,
0.08973713219165802,
0.06614430993795395,
0.517324686050415,
-0.0790325477719307,
-0.01668393984436989,
0.07135871797800064,
-0.2886243760585785,
-0.14122498035430908,
-0.4819572865962982,
0.42357316613197327,
0.16563765704631805,
0.47571125626564026,
-0.26088935136795044,
-0.3562069535255432,
-0.12027643620967865,
-0.08777809888124466,
-0.29319053888320923,
0.2729448080062866,
0.24059180915355682,
-0.04101802408695221,
0.024298131465911865,
0.06350213289260864,
0.1288156807422638,
0.01467043161392212,
-0.13274408876895905,
-0.11576361209154129,
0.29934215545654297,
0.062315598130226135,
-0.1332402229309082,
-0.33019962906837463,
-0.29790598154067993,
0.03894515335559845,
0.05875198915600777,
-0.18744759261608124,
0.07311543822288513,
-0.28179535269737244,
-0.1588549166917801,
0.10026092827320099,
0.11171375215053558,
0.08239784091711044,
0.26272743940353394,
0.05108514055609703,
0.17805153131484985,
-0.030898630619049072,
0.24449768662452698,
0.1539015918970108,
-0.1563744693994522,
0.0563548281788826,
0.5824376940727234,
0.10910401493310928,
-0.2608826160430908,
0.2605258524417877,
0.09160344302654266,
0.04637337848544121,
0.021900299936532974,
-0.2902088761329651,
0.2145640254020691,
-0.14921173453330994,
-0.23952345550060272,
-0.5081314444541931,
0.23659852147102356,
0.10604652017354965,
0.05005975067615509,
0.07977239042520523,
0.1107761487364769,
-0.1035517081618309,
0.12154148519039154,
-0.19908909499645233,
0.173406183719635,
0.09321583062410355,
-0.06831769645214081,
-0.1799057126045227,
0.02894858829677105,
-0.03432437404990196,
0.10779932141304016,
0.402847021818161,
-0.13673849403858185,
0.4715940058231354,
0.14229092001914978,
-0.22788117825984955,
0.1481090635061264,
-0.007883721962571144,
-0.4552009701728821,
0.08908292651176453,
0.2944166660308838,
0.19519078731536865,
0.24531643092632294,
0.0758017897605896,
0.027658671140670776,
-0.03624659404158592,
0.17515233159065247,
-0.35574010014533997,
-0.08738500624895096,
-0.30057191848754883,
0.3071623742580414,
-0.0240118820220232,
-0.10321880877017975,
-0.2010350525379181,
0.10735766589641571,
0.034038811922073364,
-0.1652110517024994,
-0.08548956364393234,
-0.14527516067028046,
-0.15351058542728424,
0.02946954406797886,
0.14392590522766113,
0.49222332239151,
-0.2738513946533203,
-0.3213866651058197,
-0.10198264569044113,
0.018022771924734116,
0.133118137717247,
0.31441813707351685,
-0.05137854069471359,
0.514355480670929,
-0.4051545560359955,
0.132923886179924,
0.15096601843833923,
-0.38713333010673523,
-0.19425806403160095,
-0.10289827734231949,
0.1823628693819046,
-0.056406170129776,
-0.0699622854590416,
-0.1564488559961319,
0.45486530661582947,
-0.15636837482452393,
0.215392604470253,
-0.2549409866333008,
-0.14686749875545502,
0.12436548620462418,
-0.2564034163951874,
-0.03990910202264786,
0.46096646785736084,
0.14655737578868866,
0.21204550564289093,
-0.08801008015871048,
0.1356268674135208,
-0.47491252422332764,
0.14446920156478882,
0.037789538502693176,
0.018654871731996536,
0.4526493549346924,
0.1514725685119629,
-0.1599738895893097,
0.06222498416900635,
-0.051439423114061356,
-0.34292906522750854,
0.05441322177648544,
-0.055362801998853683,
0.3749730885028839,
-0.14865633845329285,
-0.04317228123545647,
-0.42152372002601624,
-0.05097193643450737,
-0.02432311698794365,
0.08129319548606873,
0.21290017664432526,
0.11242882907390594,
0.2112956941127777,
0.03671274706721306,
-0.3555578887462616,
0.1292429119348526,
-0.35047948360443115,
0.19856403768062592,
0.29692956805229187,
0.12206067144870758,
-0.2715097963809967,
-0.2726817727088928,
0.4120236337184906,
0.117741659283638,
0.3696479797363281,
0.12025454640388489,
-0.05136297643184662,
0.18731412291526794,
0.2353479415178299,
-0.11651590466499329,
0.060631297528743744,
0.1350061297416687,
0.4436222314834595,
-0.34259161353111267,
-0.13621191680431366,
0.05632292851805687,
0.0779491662979126,
-0.07964149117469788,
-0.08600416034460068,
0.2363404482603073,
-0.03290250524878502,
0.1366593837738037,
0.23037485778331757,
0.13783396780490875,
0.4130244553089142,
0.2105540633201599,
0.09244317561388016,
-0.39481300115585327,
0.2963342070579529,
0.22195042669773102,
0.3702442944049835,
-0.014967268332839012,
-0.05597072094678879,
0.15782633423805237,
0.4347285032272339,
0.07317829132080078,
0.14644992351531982,
0.07366714626550674,
-0.06476738303899765,
0.045239098370075226,
0.15116767585277557,
0.10153576731681824,
0.2222396433353424,
0.1972038447856903,
-0.09977313876152039,
-0.026409922167658806,
-0.00020257849246263504,
-0.31975454092025757,
0.22946247458457947,
0.13181854784488678,
-0.3076821267604828,
0.308399498462677,
0.0032465895637869835,
0.23479421436786652,
-0.06252104043960571,
-0.20066764950752258,
0.2055569589138031,
0.2201998084783554,
-0.26918163895606995,
-0.23116882145404816,
-0.4355863630771637,
-0.4079517722129822,
0.296941339969635,
-0.11922449618577957,
-0.13066695630550385,
-0.3613610565662384,
0.23879460990428925,
-0.21665030717849731,
-0.30375543236732483,
0.33045196533203125,
-0.06706173717975616,
0.3017878234386444,
-0.1678985059261322,
0.3778107762336731,
-0.5512654185295105,
-0.37144601345062256,
-0.15932485461235046,
0.15126021206378937,
0.19971446692943573,
-0.07071302831172943,
0.35624024271965027,
-0.4992586374282837,
0.16337087750434875,
-0.4292694926261902,
-0.3653920888900757,
0.3423973321914673,
-0.04016822576522827,
-0.05802859365940094,
-0.028219640254974365,
-0.005022712051868439,
-0.214069202542305,
-0.3109094798564911,
0.14907421171665192,
-0.029419023543596268,
-0.051329344511032104,
0.09132814407348633,
-0.3158324360847473,
-0.35065481066703796,
-0.21864989399909973,
-0.24468618631362915,
-0.45367705821990967,
-0.3296844959259033,
-0.016620084643363953,
0.016705557703971863,
0.27805304527282715,
0.46307864785194397,
-0.1405191421508789,
0.03342360258102417,
-0.055536799132823944,
0.21199527382850647,
-0.1827920824289322,
-0.4307076334953308,
0.2708791196346283,
-0.2978031635284424,
-0.4520493447780609,
0.20233535766601562,
0.10697893798351288,
0.5070987939834595,
0.1628449559211731,
-0.30824601650238037,
0.2896553575992584,
0.013613328337669373,
-0.012649957090616226,
-0.10225960612297058,
-0.14323332905769348,
0.09840977936983109,
0.29267632961273193,
-0.12456730008125305,
0.022127963602542877,
-0.20199447870254517,
-0.12341535836458206,
-0.15702679753303528,
0.029394619166851044,
-0.37402504682540894,
0.013266099616885185,
0.04140545800328255,
0.4250381588935852,
0.20085376501083374,
0.14167694747447968,
0.2418343722820282,
0.08540525287389755,
0.33215096592903137,
-0.08309442549943924,
-0.1754397451877594,
0.22474530339241028,
-0.08504149317741394,
0.04936555027961731,
0.22015561163425446,
-0.10549291223287582,
-0.24892662465572357,
-0.2844219207763672,
0.07674703001976013,
-0.48449063301086426,
-0.23576681315898895,
-0.09035460650920868,
-0.18981792032718658,
0.6341032385826111,
0.19451642036437988,
0.17473077774047852,
-0.27898141741752625,
-0.13738352060317993,
0.3455565273761749,
0.25533583760261536,
0.16627296805381775,
-0.11144980788230896,
-0.5595066547393799,
-0.47075048089027405,
-0.03652287274599075,
0.10595496743917465,
0.1655970811843872,
0.02904108539223671,
-0.2759421467781067,
0.06503521651029587,
-0.35780322551727295,
0.17575277388095856,
-0.040339067578315735,
-0.24890007078647614,
0.07301659882068634,
0.4745585322380066,
0.1598043441772461,
-0.15124958753585815,
-0.04795059561729431,
-0.322547048330307,
0.11120017617940903,
0.10102929174900055,
0.36758339405059814,
-0.22302904725074768,
-0.147237628698349,
0.050271034240722656,
-0.1010470762848854,
-0.0016319639980793,
0.16027098894119263,
0.1439954936504364,
-0.25210192799568176,
-0.3456383943557739,
-0.04975476115942001,
0.21165286004543304,
-0.019228752702474594,
-0.15602698922157288,
-0.21715697646141052,
0.00914018228650093,
-0.04811237007379532,
0.037877753376960754,
0.2668292224407196,
0.4063207805156708,
-0.03803528472781181,
0.13529779016971588,
-0.09904910624027252,
-0.06412150710821152,
0.6948734521865845,
0.4090227782726288,
0.01723606325685978,
-0.19284752011299133,
0.3637361526489258,
-0.46742215752601624,
0.2423853874206543,
0.10715573281049728,
0.09219576418399811,
0.20399121940135956,
-0.1661844700574875,
0.08930721133947372,
-0.1473495364189148,
0.03425629064440727,
-0.043998733162879944,
-0.09108329564332962,
-0.13633912801742554,
-0.11789039522409439,
-0.279535174369812,
0.3754180669784546,
-0.027304761111736298,
0.3581816554069519,
0.015507571399211884,
-0.09380185604095459,
0.2315005362033844,
0.1309722661972046,
0.7563799619674683,
0.2519911527633667,
-0.21263369917869568,
-0.02966359630227089,
-0.20319105684757233,
0.2633476257324219,
0.004801422357559204,
0.023755192756652832,
-0.14583095908164978,
-0.11808359622955322,
0.01814919151365757,
0.020728666335344315,
0.10715610533952713,
0.20529916882514954,
-0.26494887471199036,
0.2828288972377777,
-0.06138172745704651,
0.15984058380126953,
-0.0204144436866045,
0.1423976719379425,
-0.23377898335456848,
-0.32000553607940674,
-0.20323219895362854,
0.26212722063064575,
-0.18024149537086487,
0.11344507336616516,
-0.3377476632595062,
0.11470872908830643,
-0.0676002949476242,
-0.36178767681121826,
-0.5348173975944519,
0.08333674818277359,
-0.41863974928855896,
0.15578436851501465,
0.12615559995174408,
-0.21956686675548553,
0.17986102402210236,
-0.08716470003128052,
0.19397605955600739,
0.1852935254573822,
-0.02216227911412716,
0.13793544471263885,
-0.08325652033090591,
0.13295258581638336,
0.06471654772758484,
0.02849942073225975,
0.3914940059185028,
-0.22496849298477173,
-0.026752568781375885,
0.2218228280544281,
-0.23389065265655518,
0.0973939448595047,
-0.1698501706123352,
-0.024539299309253693,
-0.07539235055446625,
0.11895659565925598,
0.3269001245498657,
-0.21695765852928162,
-0.07728511095046997,
-0.3114657700061798,
0.2219797968864441,
-0.024989768862724304,
0.1264684945344925,
0.20611321926116943,
-0.09939514100551605,
-0.006843797862529755,
-0.24683545529842377,
-0.028830021619796753,
0.0050200726836919785,
-0.220071941614151,
0.40463703870773315,
0.16844871640205383,
-0.1606525182723999,
-0.36330124735832214,
-0.003150094300508499,
-0.1280851513147354,
-0.15890124440193176,
0.06038063019514084,
-0.24890445172786713,
-0.1596764624118805,
-0.06255651265382767,
0.5778699517250061,
0.19317762553691864,
0.0713198110461235,
-0.030010735616087914,
-0.4915684163570404,
-0.3135127127170563,
0.3507269620895386,
0.11750639975070953,
-0.1295313984155655,
-0.33362165093421936,
-0.005824146792292595,
0.10980391502380371,
0.03754853457212448,
-0.4085923135280609,
-0.16033488512039185,
-0.4536878764629364,
0.2304082214832306,
-0.035946715623140335,
-0.060373999178409576,
0.012208867818117142,
-0.15124377608299255,
0.14321072399616241,
0.11363781988620758,
0.07605277746915817,
-0.29320254921913147,
-0.10711939632892609,
0.04628700017929077,
0.2539602816104889,
-0.02510955184698105,
0.07104746252298355,
0.036508508026599884,
0.08220233023166656,
-0.07150258868932724,
0.013821940869092941,
-0.06275944411754608,
-0.010043315589427948,
0.18697530031204224,
-0.2862611413002014,
0.2414996325969696,
-0.07209295779466629,
0.11053462326526642,
0.21270357072353363,
0.19357621669769287,
0.1686582863330841,
0.058056607842445374,
0.058316417038440704,
-0.045656293630599976,
0.2204505056142807,
0.2603696882724762,
0.11130927503108978,
-0.020474545657634735,
0.37677469849586487,
-0.32581859827041626,
0.07547011971473694,
0.495103120803833,
0.04316883906722069,
0.058200519531965256,
-0.12767446041107178,
0.01754148118197918,
0.11350654065608978,
0.35076403617858887,
-0.23769062757492065,
-0.21086432039737701,
-0.0658324807882309,
0.14950479567050934,
0.1154615581035614,
-0.05262959748506546,
0.236813485622406,
-0.41839897632598877,
0.19423127174377441,
0.09424284845590591,
0.6600061655044556,
-0.28456687927246094,
0.29141002893447876,
-0.007642921060323715,
0.08407913148403168,
0.2320270538330078,
-0.10183829814195633,
0.17194709181785583,
0.06794595718383789,
0.13998249173164368,
0.29178565740585327,
0.3365597724914551,
0.20525789260864258,
0.22952581942081451,
0.3339184820652008,
-0.26545724272727966,
0.09358599036931992,
0.006526008248329163,
-0.010208778083324432,
0.12179702520370483,
0.035592660307884216,
-0.13602501153945923,
0.04370228201150894,
-0.3288439214229584,
-0.249886155128479,
-0.0844709724187851,
-0.2793196439743042,
0.2109895944595337,
-0.4519095718860626,
-0.11923713982105255,
-0.16715583205223083,
-0.14648358523845673,
-0.0007640793919563293,
0.11164745688438416,
0.1515907198190689,
-0.04410461336374283,
-0.258459210395813,
-0.14041444659233093,
-0.21491676568984985,
0.3679918944835663,
0.13413535058498383,
-0.15251432359218597,
0.32940804958343506,
0.14817741513252258,
-0.1806480586528778,
-0.10156966745853424,
0.4986151158809662,
0.5042206048965454,
0.29309481382369995,
0.09734733402729034,
-0.07253444939851761,
-0.15916641056537628,
-0.21491990983486176,
0.05691180378198624,
0.3167853057384491,
0.14935430884361267,
0.003845175728201866,
0.15403111279010773,
0.22059118747711182,
-0.2768976390361786,
-0.2113439291715622,
0.16137807071208954,
0.2980653643608093,
-0.019171496853232384,
0.043215587735176086,
-0.275228887796402,
-0.33001887798309326,
0.026711566373705864,
-0.04177660495042801,
-0.38167017698287964,
-0.015981879085302353,
0.4262166917324066,
0.1892881542444229,
0.12223563343286514,
-0.017058327794075012,
0.15261101722717285,
0.08037543296813965,
0.4750944674015045,
0.3749445974826813,
-0.031067848205566406,
-0.35027068853378296,
-0.4035657048225403,
-0.23769895732402802,
0.0538906492292881,
0.04515000432729721,
0.3372964560985565,
0.03857692331075668,
-0.0026790816336870193,
0.17258518934249878,
0.13728947937488556,
0.22598426043987274,
0.05995160713791847,
0.0427180640399456,
-0.0543457567691803,
-0.5215979218482971,
0.02893836423754692,
-0.1965709775686264,
-0.12461161613464355,
-0.07016802579164505,
-0.07843558490276337,
0.17429764568805695,
0.023600853979587555,
0.11232306808233261,
-0.11354854702949524,
-0.4727685749530792,
0.11593551933765411,
0.037783194333314896,
0.40325987339019775,
0.1437585949897766,
0.5097940564155579,
-0.080063596367836,
-0.19183005392551422,
-0.00446825847029686,
-0.3014739453792572,
0.06681951880455017,
0.5337585806846619,
0.000404898077249527,
0.16047808527946472,
0.041664011776447296,
-0.24427048861980438,
-0.04173923656344414,
-0.09400254487991333,
0.01217343658208847,
-0.1418045610189438,
-0.3706286549568176,
0.28404471278190613,
0.14285194873809814,
-0.08949212729930878,
0.10076570510864258,
-0.013199582695960999,
0.10908034443855286,
-0.01727338880300522,
-0.3324374556541443,
-0.30108019709587097,
0.22019919753074646,
-0.00026594847440719604,
-0.07680704444646835,
-0.4500381350517273,
0.3931191563606262,
0.015894223004579544,
0.17116020619869232,
-0.3692800998687744,
-0.08200488984584808,
0.25709012150764465,
-0.13892695307731628,
-0.15586154162883759,
-0.018137168139219284,
0.11437824368476868,
-0.07485164701938629,
-0.06706671416759491,
0.22027495503425598,
0.05518505722284317,
-0.19679060578346252,
-0.04802921786904335,
-0.008961886167526245
] |
https://github.com/huggingface/datasets/issues/4358 | Missing dataset tags and sections in some dataset cards | Hi @RohitRathore1 :)
You can find all the YAML tags in the tagging app here: https://hf.co/spaces/huggingface/datasets-tagging). They're all passed as arguments to a DatasetMetadata object used to validate the tags. | Summary of CircleCI errors for different dataset metadata:
- **BoolQ**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **Conllpp**: expected some content in section `Citation Information` but it is empty.
- **GLUE**: 'annotations_creators', 'language_creators', 'source_datasets' :['unknown'] are not registered tags
- **ConLL2003**: field 'task_ids': ['part-of-speech-tagging'] are not registered tags for 'task_ids'
- **Hate_speech18:** Expected some content in section `Data Instances` but it is empty, Expected some content in section `Data Splits` but it is empty
- **Jjigsaw_toxicity_pred**: `Citation Information` but it is empty.
- **LIAR** : `Data Instances`,`Data Fields`, `Data Splits`, `Citation Information` are empty.
- **MSRA NER** : Dataset Summary`, `Data Instances`, `Data Fields`, `Data Splits`, `Citation Information` are empty.
- **sem_eval_2010_task_8**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sms_spam**: `Data Instances` and`Data Splits` are empty.
- **Quora** : Expected some content in section `Citation Information` but it is empty, missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sentiment140**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids' | 30 | Missing dataset tags and sections in some dataset cards
Summary of CircleCI errors for different dataset metadata:
- **BoolQ**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **Conllpp**: expected some content in section `Citation Information` but it is empty.
- **GLUE**: 'annotations_creators', 'language_creators', 'source_datasets' :['unknown'] are not registered tags
- **ConLL2003**: field 'task_ids': ['part-of-speech-tagging'] are not registered tags for 'task_ids'
- **Hate_speech18:** Expected some content in section `Data Instances` but it is empty, Expected some content in section `Data Splits` but it is empty
- **Jjigsaw_toxicity_pred**: `Citation Information` but it is empty.
- **LIAR** : `Data Instances`,`Data Fields`, `Data Splits`, `Citation Information` are empty.
- **MSRA NER** : Dataset Summary`, `Data Instances`, `Data Fields`, `Data Splits`, `Citation Information` are empty.
- **sem_eval_2010_task_8**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sms_spam**: `Data Instances` and`Data Splits` are empty.
- **Quora** : Expected some content in section `Citation Information` but it is empty, missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
- **sentiment140**: missing 8 required positional arguments: 'annotations_creators', 'language_creators', 'licenses', 'multilinguality', 'size_categories', 'source_datasets', 'task_categories', and 'task_ids'
Hi @RohitRathore1 :)
You can find all the YAML tags in the tagging app here: https://hf.co/spaces/huggingface/datasets-tagging). They're all passed as arguments to a DatasetMetadata object used to validate the tags. | [
-0.21198584139347076,
0.04630735516548157,
-0.18291079998016357,
0.3745988607406616,
-0.03782837837934494,
0.3396456241607666,
0.26515209674835205,
0.29197463393211365,
-0.018360253423452377,
0.07831576466560364,
0.20011664927005768,
0.4552749693393707,
0.05990941822528839,
0.4089476764202118,
-0.19057568907737732,
-0.05356267839670181,
0.10399173945188522,
0.13621953129768372,
0.10804381966590881,
-0.1382923424243927,
-0.13642984628677368,
0.2884673774242401,
-0.27727511525154114,
0.079914391040802,
-0.4522334337234497,
-0.29721716046333313,
-0.04969070851802826,
0.01133035123348236,
-0.2272566556930542,
-0.5709039568901062,
0.2756475806236267,
0.12683387100696564,
-0.19906994700431824,
0.21778003871440887,
-0.00010476919123902917,
-0.15785560011863708,
0.34846872091293335,
0.01051374338567257,
-0.4228750765323639,
-0.22760312259197235,
-0.17939281463623047,
-0.32336822152137756,
-0.028868163004517555,
-0.15730898082256317,
0.016159772872924805,
0.06379503011703491,
-0.36705493927001953,
0.0010949857532978058,
0.10939843207597733,
0.2971136271953583,
0.2544768154621124,
0.16887551546096802,
0.15547922253608704,
-0.3857136070728302,
0.23070445656776428,
0.4238296151161194,
-0.01786096766591072,
0.1629665195941925,
0.4041830897331238,
0.08973713219165802,
0.06614430993795395,
0.517324686050415,
-0.0790325477719307,
-0.01668393984436989,
0.07135871797800064,
-0.2886243760585785,
-0.14122498035430908,
-0.4819572865962982,
0.42357316613197327,
0.16563765704631805,
0.47571125626564026,
-0.26088935136795044,
-0.3562069535255432,
-0.12027643620967865,
-0.08777809888124466,
-0.29319053888320923,
0.2729448080062866,
0.24059180915355682,
-0.04101802408695221,
0.024298131465911865,
0.06350213289260864,
0.1288156807422638,
0.01467043161392212,
-0.13274408876895905,
-0.11576361209154129,
0.29934215545654297,
0.062315598130226135,
-0.1332402229309082,
-0.33019962906837463,
-0.29790598154067993,
0.03894515335559845,
0.05875198915600777,
-0.18744759261608124,
0.07311543822288513,
-0.28179535269737244,
-0.1588549166917801,
0.10026092827320099,
0.11171375215053558,
0.08239784091711044,
0.26272743940353394,
0.05108514055609703,
0.17805153131484985,
-0.030898630619049072,
0.24449768662452698,
0.1539015918970108,
-0.1563744693994522,
0.0563548281788826,
0.5824376940727234,
0.10910401493310928,
-0.2608826160430908,
0.2605258524417877,
0.09160344302654266,
0.04637337848544121,
0.021900299936532974,
-0.2902088761329651,
0.2145640254020691,
-0.14921173453330994,
-0.23952345550060272,
-0.5081314444541931,
0.23659852147102356,
0.10604652017354965,
0.05005975067615509,
0.07977239042520523,
0.1107761487364769,
-0.1035517081618309,
0.12154148519039154,
-0.19908909499645233,
0.173406183719635,
0.09321583062410355,
-0.06831769645214081,
-0.1799057126045227,
0.02894858829677105,
-0.03432437404990196,
0.10779932141304016,
0.402847021818161,
-0.13673849403858185,
0.4715940058231354,
0.14229092001914978,
-0.22788117825984955,
0.1481090635061264,
-0.007883721962571144,
-0.4552009701728821,
0.08908292651176453,
0.2944166660308838,
0.19519078731536865,
0.24531643092632294,
0.0758017897605896,
0.027658671140670776,
-0.03624659404158592,
0.17515233159065247,
-0.35574010014533997,
-0.08738500624895096,
-0.30057191848754883,
0.3071623742580414,
-0.0240118820220232,
-0.10321880877017975,
-0.2010350525379181,
0.10735766589641571,
0.034038811922073364,
-0.1652110517024994,
-0.08548956364393234,
-0.14527516067028046,
-0.15351058542728424,
0.02946954406797886,
0.14392590522766113,
0.49222332239151,
-0.2738513946533203,
-0.3213866651058197,
-0.10198264569044113,
0.018022771924734116,
0.133118137717247,
0.31441813707351685,
-0.05137854069471359,
0.514355480670929,
-0.4051545560359955,
0.132923886179924,
0.15096601843833923,
-0.38713333010673523,
-0.19425806403160095,
-0.10289827734231949,
0.1823628693819046,
-0.056406170129776,
-0.0699622854590416,
-0.1564488559961319,
0.45486530661582947,
-0.15636837482452393,
0.215392604470253,
-0.2549409866333008,
-0.14686749875545502,
0.12436548620462418,
-0.2564034163951874,
-0.03990910202264786,
0.46096646785736084,
0.14655737578868866,
0.21204550564289093,
-0.08801008015871048,
0.1356268674135208,
-0.47491252422332764,
0.14446920156478882,
0.037789538502693176,
0.018654871731996536,
0.4526493549346924,
0.1514725685119629,
-0.1599738895893097,
0.06222498416900635,
-0.051439423114061356,
-0.34292906522750854,
0.05441322177648544,
-0.055362801998853683,
0.3749730885028839,
-0.14865633845329285,
-0.04317228123545647,
-0.42152372002601624,
-0.05097193643450737,
-0.02432311698794365,
0.08129319548606873,
0.21290017664432526,
0.11242882907390594,
0.2112956941127777,
0.03671274706721306,
-0.3555578887462616,
0.1292429119348526,
-0.35047948360443115,
0.19856403768062592,
0.29692956805229187,
0.12206067144870758,
-0.2715097963809967,
-0.2726817727088928,
0.4120236337184906,
0.117741659283638,
0.3696479797363281,
0.12025454640388489,
-0.05136297643184662,
0.18731412291526794,
0.2353479415178299,
-0.11651590466499329,
0.060631297528743744,
0.1350061297416687,
0.4436222314834595,
-0.34259161353111267,
-0.13621191680431366,
0.05632292851805687,
0.0779491662979126,
-0.07964149117469788,
-0.08600416034460068,
0.2363404482603073,
-0.03290250524878502,
0.1366593837738037,
0.23037485778331757,
0.13783396780490875,
0.4130244553089142,
0.2105540633201599,
0.09244317561388016,
-0.39481300115585327,
0.2963342070579529,
0.22195042669773102,
0.3702442944049835,
-0.014967268332839012,
-0.05597072094678879,
0.15782633423805237,
0.4347285032272339,
0.07317829132080078,
0.14644992351531982,
0.07366714626550674,
-0.06476738303899765,
0.045239098370075226,
0.15116767585277557,
0.10153576731681824,
0.2222396433353424,
0.1972038447856903,
-0.09977313876152039,
-0.026409922167658806,
-0.00020257849246263504,
-0.31975454092025757,
0.22946247458457947,
0.13181854784488678,
-0.3076821267604828,
0.308399498462677,
0.0032465895637869835,
0.23479421436786652,
-0.06252104043960571,
-0.20066764950752258,
0.2055569589138031,
0.2201998084783554,
-0.26918163895606995,
-0.23116882145404816,
-0.4355863630771637,
-0.4079517722129822,
0.296941339969635,
-0.11922449618577957,
-0.13066695630550385,
-0.3613610565662384,
0.23879460990428925,
-0.21665030717849731,
-0.30375543236732483,
0.33045196533203125,
-0.06706173717975616,
0.3017878234386444,
-0.1678985059261322,
0.3778107762336731,
-0.5512654185295105,
-0.37144601345062256,
-0.15932485461235046,
0.15126021206378937,
0.19971446692943573,
-0.07071302831172943,
0.35624024271965027,
-0.4992586374282837,
0.16337087750434875,
-0.4292694926261902,
-0.3653920888900757,
0.3423973321914673,
-0.04016822576522827,
-0.05802859365940094,
-0.028219640254974365,
-0.005022712051868439,
-0.214069202542305,
-0.3109094798564911,
0.14907421171665192,
-0.029419023543596268,
-0.051329344511032104,
0.09132814407348633,
-0.3158324360847473,
-0.35065481066703796,
-0.21864989399909973,
-0.24468618631362915,
-0.45367705821990967,
-0.3296844959259033,
-0.016620084643363953,
0.016705557703971863,
0.27805304527282715,
0.46307864785194397,
-0.1405191421508789,
0.03342360258102417,
-0.055536799132823944,
0.21199527382850647,
-0.1827920824289322,
-0.4307076334953308,
0.2708791196346283,
-0.2978031635284424,
-0.4520493447780609,
0.20233535766601562,
0.10697893798351288,
0.5070987939834595,
0.1628449559211731,
-0.30824601650238037,
0.2896553575992584,
0.013613328337669373,
-0.012649957090616226,
-0.10225960612297058,
-0.14323332905769348,
0.09840977936983109,
0.29267632961273193,
-0.12456730008125305,
0.022127963602542877,
-0.20199447870254517,
-0.12341535836458206,
-0.15702679753303528,
0.029394619166851044,
-0.37402504682540894,
0.013266099616885185,
0.04140545800328255,
0.4250381588935852,
0.20085376501083374,
0.14167694747447968,
0.2418343722820282,
0.08540525287389755,
0.33215096592903137,
-0.08309442549943924,
-0.1754397451877594,
0.22474530339241028,
-0.08504149317741394,
0.04936555027961731,
0.22015561163425446,
-0.10549291223287582,
-0.24892662465572357,
-0.2844219207763672,
0.07674703001976013,
-0.48449063301086426,
-0.23576681315898895,
-0.09035460650920868,
-0.18981792032718658,
0.6341032385826111,
0.19451642036437988,
0.17473077774047852,
-0.27898141741752625,
-0.13738352060317993,
0.3455565273761749,
0.25533583760261536,
0.16627296805381775,
-0.11144980788230896,
-0.5595066547393799,
-0.47075048089027405,
-0.03652287274599075,
0.10595496743917465,
0.1655970811843872,
0.02904108539223671,
-0.2759421467781067,
0.06503521651029587,
-0.35780322551727295,
0.17575277388095856,
-0.040339067578315735,
-0.24890007078647614,
0.07301659882068634,
0.4745585322380066,
0.1598043441772461,
-0.15124958753585815,
-0.04795059561729431,
-0.322547048330307,
0.11120017617940903,
0.10102929174900055,
0.36758339405059814,
-0.22302904725074768,
-0.147237628698349,
0.050271034240722656,
-0.1010470762848854,
-0.0016319639980793,
0.16027098894119263,
0.1439954936504364,
-0.25210192799568176,
-0.3456383943557739,
-0.04975476115942001,
0.21165286004543304,
-0.019228752702474594,
-0.15602698922157288,
-0.21715697646141052,
0.00914018228650093,
-0.04811237007379532,
0.037877753376960754,
0.2668292224407196,
0.4063207805156708,
-0.03803528472781181,
0.13529779016971588,
-0.09904910624027252,
-0.06412150710821152,
0.6948734521865845,
0.4090227782726288,
0.01723606325685978,
-0.19284752011299133,
0.3637361526489258,
-0.46742215752601624,
0.2423853874206543,
0.10715573281049728,
0.09219576418399811,
0.20399121940135956,
-0.1661844700574875,
0.08930721133947372,
-0.1473495364189148,
0.03425629064440727,
-0.043998733162879944,
-0.09108329564332962,
-0.13633912801742554,
-0.11789039522409439,
-0.279535174369812,
0.3754180669784546,
-0.027304761111736298,
0.3581816554069519,
0.015507571399211884,
-0.09380185604095459,
0.2315005362033844,
0.1309722661972046,
0.7563799619674683,
0.2519911527633667,
-0.21263369917869568,
-0.02966359630227089,
-0.20319105684757233,
0.2633476257324219,
0.004801422357559204,
0.023755192756652832,
-0.14583095908164978,
-0.11808359622955322,
0.01814919151365757,
0.020728666335344315,
0.10715610533952713,
0.20529916882514954,
-0.26494887471199036,
0.2828288972377777,
-0.06138172745704651,
0.15984058380126953,
-0.0204144436866045,
0.1423976719379425,
-0.23377898335456848,
-0.32000553607940674,
-0.20323219895362854,
0.26212722063064575,
-0.18024149537086487,
0.11344507336616516,
-0.3377476632595062,
0.11470872908830643,
-0.0676002949476242,
-0.36178767681121826,
-0.5348173975944519,
0.08333674818277359,
-0.41863974928855896,
0.15578436851501465,
0.12615559995174408,
-0.21956686675548553,
0.17986102402210236,
-0.08716470003128052,
0.19397605955600739,
0.1852935254573822,
-0.02216227911412716,
0.13793544471263885,
-0.08325652033090591,
0.13295258581638336,
0.06471654772758484,
0.02849942073225975,
0.3914940059185028,
-0.22496849298477173,
-0.026752568781375885,
0.2218228280544281,
-0.23389065265655518,
0.0973939448595047,
-0.1698501706123352,
-0.024539299309253693,
-0.07539235055446625,
0.11895659565925598,
0.3269001245498657,
-0.21695765852928162,
-0.07728511095046997,
-0.3114657700061798,
0.2219797968864441,
-0.024989768862724304,
0.1264684945344925,
0.20611321926116943,
-0.09939514100551605,
-0.006843797862529755,
-0.24683545529842377,
-0.028830021619796753,
0.0050200726836919785,
-0.220071941614151,
0.40463703870773315,
0.16844871640205383,
-0.1606525182723999,
-0.36330124735832214,
-0.003150094300508499,
-0.1280851513147354,
-0.15890124440193176,
0.06038063019514084,
-0.24890445172786713,
-0.1596764624118805,
-0.06255651265382767,
0.5778699517250061,
0.19317762553691864,
0.0713198110461235,
-0.030010735616087914,
-0.4915684163570404,
-0.3135127127170563,
0.3507269620895386,
0.11750639975070953,
-0.1295313984155655,
-0.33362165093421936,
-0.005824146792292595,
0.10980391502380371,
0.03754853457212448,
-0.4085923135280609,
-0.16033488512039185,
-0.4536878764629364,
0.2304082214832306,
-0.035946715623140335,
-0.060373999178409576,
0.012208867818117142,
-0.15124377608299255,
0.14321072399616241,
0.11363781988620758,
0.07605277746915817,
-0.29320254921913147,
-0.10711939632892609,
0.04628700017929077,
0.2539602816104889,
-0.02510955184698105,
0.07104746252298355,
0.036508508026599884,
0.08220233023166656,
-0.07150258868932724,
0.013821940869092941,
-0.06275944411754608,
-0.010043315589427948,
0.18697530031204224,
-0.2862611413002014,
0.2414996325969696,
-0.07209295779466629,
0.11053462326526642,
0.21270357072353363,
0.19357621669769287,
0.1686582863330841,
0.058056607842445374,
0.058316417038440704,
-0.045656293630599976,
0.2204505056142807,
0.2603696882724762,
0.11130927503108978,
-0.020474545657634735,
0.37677469849586487,
-0.32581859827041626,
0.07547011971473694,
0.495103120803833,
0.04316883906722069,
0.058200519531965256,
-0.12767446041107178,
0.01754148118197918,
0.11350654065608978,
0.35076403617858887,
-0.23769062757492065,
-0.21086432039737701,
-0.0658324807882309,
0.14950479567050934,
0.1154615581035614,
-0.05262959748506546,
0.236813485622406,
-0.41839897632598877,
0.19423127174377441,
0.09424284845590591,
0.6600061655044556,
-0.28456687927246094,
0.29141002893447876,
-0.007642921060323715,
0.08407913148403168,
0.2320270538330078,
-0.10183829814195633,
0.17194709181785583,
0.06794595718383789,
0.13998249173164368,
0.29178565740585327,
0.3365597724914551,
0.20525789260864258,
0.22952581942081451,
0.3339184820652008,
-0.26545724272727966,
0.09358599036931992,
0.006526008248329163,
-0.010208778083324432,
0.12179702520370483,
0.035592660307884216,
-0.13602501153945923,
0.04370228201150894,
-0.3288439214229584,
-0.249886155128479,
-0.0844709724187851,
-0.2793196439743042,
0.2109895944595337,
-0.4519095718860626,
-0.11923713982105255,
-0.16715583205223083,
-0.14648358523845673,
-0.0007640793919563293,
0.11164745688438416,
0.1515907198190689,
-0.04410461336374283,
-0.258459210395813,
-0.14041444659233093,
-0.21491676568984985,
0.3679918944835663,
0.13413535058498383,
-0.15251432359218597,
0.32940804958343506,
0.14817741513252258,
-0.1806480586528778,
-0.10156966745853424,
0.4986151158809662,
0.5042206048965454,
0.29309481382369995,
0.09734733402729034,
-0.07253444939851761,
-0.15916641056537628,
-0.21491990983486176,
0.05691180378198624,
0.3167853057384491,
0.14935430884361267,
0.003845175728201866,
0.15403111279010773,
0.22059118747711182,
-0.2768976390361786,
-0.2113439291715622,
0.16137807071208954,
0.2980653643608093,
-0.019171496853232384,
0.043215587735176086,
-0.275228887796402,
-0.33001887798309326,
0.026711566373705864,
-0.04177660495042801,
-0.38167017698287964,
-0.015981879085302353,
0.4262166917324066,
0.1892881542444229,
0.12223563343286514,
-0.017058327794075012,
0.15261101722717285,
0.08037543296813965,
0.4750944674015045,
0.3749445974826813,
-0.031067848205566406,
-0.35027068853378296,
-0.4035657048225403,
-0.23769895732402802,
0.0538906492292881,
0.04515000432729721,
0.3372964560985565,
0.03857692331075668,
-0.0026790816336870193,
0.17258518934249878,
0.13728947937488556,
0.22598426043987274,
0.05995160713791847,
0.0427180640399456,
-0.0543457567691803,
-0.5215979218482971,
0.02893836423754692,
-0.1965709775686264,
-0.12461161613464355,
-0.07016802579164505,
-0.07843558490276337,
0.17429764568805695,
0.023600853979587555,
0.11232306808233261,
-0.11354854702949524,
-0.4727685749530792,
0.11593551933765411,
0.037783194333314896,
0.40325987339019775,
0.1437585949897766,
0.5097940564155579,
-0.080063596367836,
-0.19183005392551422,
-0.00446825847029686,
-0.3014739453792572,
0.06681951880455017,
0.5337585806846619,
0.000404898077249527,
0.16047808527946472,
0.041664011776447296,
-0.24427048861980438,
-0.04173923656344414,
-0.09400254487991333,
0.01217343658208847,
-0.1418045610189438,
-0.3706286549568176,
0.28404471278190613,
0.14285194873809814,
-0.08949212729930878,
0.10076570510864258,
-0.013199582695960999,
0.10908034443855286,
-0.01727338880300522,
-0.3324374556541443,
-0.30108019709587097,
0.22019919753074646,
-0.00026594847440719604,
-0.07680704444646835,
-0.4500381350517273,
0.3931191563606262,
0.015894223004579544,
0.17116020619869232,
-0.3692800998687744,
-0.08200488984584808,
0.25709012150764465,
-0.13892695307731628,
-0.15586154162883759,
-0.018137168139219284,
0.11437824368476868,
-0.07485164701938629,
-0.06706671416759491,
0.22027495503425598,
0.05518505722284317,
-0.19679060578346252,
-0.04802921786904335,
-0.008961886167526245
] |
https://github.com/huggingface/datasets/issues/4354 | Problems with WMT dataset | Hi! Yes, the docs are outdated. Expect this to be fixed soon.
In the meantime, you can try to fix the issue yourself.
These are the configs/language pairs supported by `wmt15` from which you can choose:
* `cs-en` (Czech - English)
* `de-en` (German - English)
* `fi-en` (Finnish- English)
* `fr-en` (French - English)
* `ru-en` (Russian - English)
And the current implementation always uses all the subsets available for a language, so to define custom subsets, you'll have to clone the repo from the Hub and replace the line https://huggingface.co/datasets/wmt15/blob/main/wmt_utils.py#L688 with:
`for split, ss_names in (self._subsets if self.config.subsets is None else self.config.subsets).items()`
Then, you can load the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset("path/to/local/wmt15_folder", "<one of 5 available configs>", subsets=...) | ## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 126 | Problems with WMT dataset
## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi! Yes, the docs are outdated. Expect this to be fixed soon.
In the meantime, you can try to fix the issue yourself.
These are the configs/language pairs supported by `wmt15` from which you can choose:
* `cs-en` (Czech - English)
* `de-en` (German - English)
* `fi-en` (Finnish- English)
* `fr-en` (French - English)
* `ru-en` (Russian - English)
And the current implementation always uses all the subsets available for a language, so to define custom subsets, you'll have to clone the repo from the Hub and replace the line https://huggingface.co/datasets/wmt15/blob/main/wmt_utils.py#L688 with:
`for split, ss_names in (self._subsets if self.config.subsets is None else self.config.subsets).items()`
Then, you can load the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset("path/to/local/wmt15_folder", "<one of 5 available configs>", subsets=...) | [
-0.4581346809864044,
-0.11206459254026413,
0.08600442111492157,
0.3351208567619324,
0.3928869962692261,
0.005077466368675232,
0.31913629174232483,
0.2288428544998169,
0.17617754638195038,
0.25060638785362244,
0.021360229700803757,
0.023583674803376198,
-0.05569741874933243,
0.13058683276176453,
-0.04613834246993065,
-0.01898999512195587,
0.13013146817684174,
-0.23527437448501587,
-0.46442922949790955,
-0.00449737161397934,
-0.27546370029449463,
0.15286841988563538,
-0.16980141401290894,
0.14164358377456665,
-0.40147486329078674,
0.16269724071025848,
-0.08706361055374146,
0.05181664973497391,
-0.01467069797217846,
-0.0974927544593811,
0.3456382155418396,
-0.07705628871917725,
0.10440502315759659,
0.2094283401966095,
-0.00011377984628779814,
0.16791346669197083,
0.24984954297542572,
-0.0722275823354721,
-0.29230591654777527,
-0.49717479944229126,
-0.6378249526023865,
-0.33800894021987915,
0.04961574822664261,
0.12419558316469193,
-0.03737073391675949,
-0.06791984289884567,
-0.03975595533847809,
-0.2140677571296692,
0.3147050738334656,
0.23515275120735168,
0.20431561768054962,
0.2744557559490204,
-0.012270305305719376,
-0.3041326701641083,
0.28971269726753235,
0.21669431030750275,
-0.18766456842422485,
0.1495090126991272,
0.26223379373550415,
0.0872887521982193,
0.14251923561096191,
0.2933732569217682,
0.08907262235879898,
0.047768428921699524,
0.15810346603393555,
0.07587095350027084,
0.44539928436279297,
-0.14602255821228027,
0.07419855892658234,
0.3933589458465576,
0.5531706809997559,
-0.10330498963594437,
-0.4046669602394104,
-0.036856427788734436,
-0.18549765646457672,
-0.27719950675964355,
0.1342988908290863,
0.25689172744750977,
-0.12309466302394867,
0.2755594253540039,
-0.06568293273448944,
-0.11096358299255371,
0.10825680196285248,
0.2005041390657425,
-0.284742146730423,
0.6652599573135376,
-0.10061130672693253,
0.009931392967700958,
-0.001282181590795517,
-0.17612257599830627,
0.07232189923524857,
0.19841986894607544,
-0.1530390977859497,
-0.030875314027071,
-0.06519931554794312,
0.17538578808307648,
-0.12352920323610306,
-0.14530208706855774,
0.038496069610118866,
-0.020328618586063385,
-0.05562826991081238,
0.10135409235954285,
-0.005521717015653849,
0.025694014504551888,
0.32269495725631714,
0.09916435182094574,
-0.20488932728767395,
-0.03476593270897865,
0.06450066715478897,
0.15861628949642181,
0.01858093962073326,
0.02741110697388649,
-0.14474311470985413,
-0.5930660367012024,
-0.25505807995796204,
0.044539377093315125,
0.25544750690460205,
0.06860241293907166,
-0.22161507606506348,
-0.0004892833530902863,
-0.02825365588068962,
-0.26500874757766724,
0.004333255812525749,
0.2839331328868866,
-0.10492037981748581,
0.2556339502334595,
0.12538714706897736,
0.10244648158550262,
-0.38263797760009766,
-0.279964804649353,
-0.21690605580806732,
0.1002994030714035,
-0.4322121739387512,
-0.16793419420719147,
0.16586939990520477,
0.11880771815776825,
0.13045156002044678,
0.1086864322423935,
0.013942599296569824,
-0.07212449610233307,
-0.26596784591674805,
-0.0016477182507514954,
0.24176150560379028,
0.3118544816970825,
-0.07900425791740417,
0.26269111037254333,
0.23460038006305695,
-0.22526825964450836,
-0.05343768745660782,
0.2273981273174286,
-0.4248288571834564,
-0.18987904489040375,
-0.03667908161878586,
0.16870296001434326,
-0.15020114183425903,
0.09014778584241867,
-0.08209196478128433,
0.4403960108757019,
-0.2278650999069214,
0.039555784314870834,
0.04987907409667969,
-0.28495925664901733,
-0.20774352550506592,
-0.04354109242558479,
0.4932585656642914,
0.599396288394928,
-0.4322422742843628,
-0.28176701068878174,
-0.09146909415721893,
-0.09179835021495819,
0.1639675498008728,
0.09224216639995575,
-0.15192489326000214,
-0.16453412175178528,
-0.10946228355169296,
-0.24072638154029846,
0.20541037619113922,
-0.142938494682312,
-0.12842456996440887,
-0.005215168464928865,
-0.04034915566444397,
0.09639448672533035,
-0.03497789055109024,
-0.16602186858654022,
-0.046929046511650085,
-0.11199462413787842,
-0.18599486351013184,
0.2165323942899704,
-0.18355856835842133,
-0.07104811072349548,
-0.21474689245224,
-0.4056556820869446,
0.5323262810707092,
-0.0638807862997055,
0.43280214071273804,
-0.22328296303749084,
0.2164342701435089,
0.6769174933433533,
0.2948456108570099,
0.09750242531299591,
0.08535194396972656,
0.22841356694698334,
0.1062786877155304,
-0.051659129559993744,
-0.07653720676898956,
-0.22485774755477905,
-0.09706377238035202,
0.2858709394931793,
-0.16066233813762665,
0.061399638652801514,
0.19734886288642883,
0.23220942914485931,
-0.30027517676353455,
0.03604172170162201,
-0.13204875588417053,
-0.2709348499774933,
0.04360395669937134,
-0.034206800162792206,
-0.25979700684547424,
0.2004275768995285,
0.15893611311912537,
-0.07543264329433441,
-0.2745790481567383,
0.13062383234500885,
-0.17933963239192963,
0.1506223976612091,
-0.059620268642902374,
-0.0865803137421608,
0.13310690224170685,
0.22509607672691345,
0.08777783811092377,
-0.006706014275550842,
-0.17521750926971436,
0.28808408975601196,
0.25470539927482605,
0.4099356532096863,
-0.30818992853164673,
0.22036685049533844,
0.24837014079093933,
-0.3967391848564148,
0.10162082314491272,
-0.07577642798423767,
0.047447118908166885,
0.07864119857549667,
-0.1940910816192627,
0.12663580477237701,
-0.42113494873046875,
0.17170082032680511,
0.21804867684841156,
0.13111282885074615,
0.16965803503990173,
0.06781628727912903,
-0.21312490105628967,
-0.4863366484642029,
-0.06378641724586487,
-0.013656359165906906,
-0.2164708375930786,
0.042985811829566956,
0.008563093841075897,
0.032990649342536926,
0.5647172927856445,
0.18527577817440033,
0.1338416039943695,
0.11611408740282059,
-0.2667679190635681,
-0.0493413507938385,
-0.018604105338454247,
0.17121237516403198,
0.3076461851596832,
0.15812917053699493,
0.1482582539319992,
0.08960861712694168,
-0.03719933703541756,
-0.1313696652650833,
0.5109034180641174,
0.15008893609046936,
-0.0725381076335907,
0.10469265282154083,
-0.16113997995853424,
0.015953360125422478,
0.047491058707237244,
0.3151291608810425,
0.025485383346676826,
0.08177784830331802,
-0.5100197196006775,
0.07562155276536942,
-0.7636252045631409,
-0.08756691217422485,
-0.5658928155899048,
-0.5512122511863708,
-0.3753081262111664,
-0.4184947907924652,
-0.17106486856937408,
-0.1071087121963501,
-0.1782640516757965,
0.3965986967086792,
0.07636383175849915,
0.027906790375709534,
-0.23556877672672272,
0.3544202446937561,
0.009317822754383087,
-0.19385340809822083,
-0.3506387174129486,
0.03515137359499931,
0.32631760835647583,
0.2782321870326996,
0.1961742788553238,
-0.3857032358646393,
-0.1561368852853775,
-0.01588851772248745,
-0.24739748239517212,
0.19380955398082733,
-0.09865067899227142,
0.6393176317214966,
0.1450023055076599,
0.05420370027422905,
-0.11136406660079956,
-0.22443901002407074,
0.4116705060005188,
-0.09905655682086945,
-0.02963893674314022,
0.0012593269348144531,
0.18208396434783936,
-0.13805155456066132,
-0.18138235807418823,
-0.6290637850761414,
-0.3387306332588196,
-0.3150453269481659,
-0.05335947126150131,
-0.126514732837677,
-0.14700107276439667,
0.5941763520240784,
0.28834065794944763,
0.024515587836503983,
-0.02254602499306202,
0.16464222967624664,
-0.24480897188186646,
-0.1858324408531189,
0.37387263774871826,
-0.17197361588478088,
-0.329694926738739,
0.3457111418247223,
-0.024004852399230003,
0.18679861724376678,
0.12993264198303223,
-0.2708108425140381,
0.32474979758262634,
-0.038960471749305725,
-0.1101432740688324,
0.3646218776702881,
0.37592777609825134,
0.2884342074394226,
0.007524543907493353,
0.043978311121463776,
-0.2497483789920807,
-0.16648206114768982,
-0.12306629866361618,
-0.11020248383283615,
0.35678696632385254,
0.0855465829372406,
0.11809003353118896,
0.027568835765123367,
0.9205470085144043,
-0.13182149827480316,
0.23688922822475433,
0.03751707077026367,
-0.10925468057394028,
0.37268003821372986,
-0.08036913722753525,
-0.4284731149673462,
0.13762956857681274,
-0.30588287115097046,
0.1566929817199707,
0.2021060585975647,
-0.0027420539408922195,
0.2789852023124695,
-0.2892547845840454,
0.015730466693639755,
-0.20928961038589478,
-0.5036876797676086,
0.10822553187608719,
-0.25629326701164246,
0.32500702142715454,
0.05595182254910469,
0.12235518544912338,
-0.009677466005086899,
-0.0880383625626564,
0.0887354165315628,
0.4183305501937866,
0.0005087405443191528,
0.23286008834838867,
0.2937853932380676,
0.018374228850007057,
-0.14715173840522766,
0.022022955119609833,
0.016798270866274834,
0.5729224681854248,
-0.17218713462352753,
-0.14720648527145386,
-0.17738886177539825,
0.025961561128497124,
0.4299505949020386,
-0.1143534854054451,
0.18476183712482452,
0.19368459284305573,
-0.26963675022125244,
-0.40005776286125183,
-0.2956473231315613,
-0.16916213929653168,
-0.6014143824577332,
-0.04807258024811745,
-0.07088352739810944,
-0.042061276733875275,
-0.47380948066711426,
0.19934295117855072,
0.22543105483055115,
-0.4261679947376251,
0.3083808124065399,
-0.33872953057289124,
-0.10420171916484833,
-0.10123950988054276,
-0.1275719702243805,
0.272842675447464,
0.02487696148455143,
-0.09174568206071854,
0.3020341992378235,
-0.05576228350400925,
-0.11028698086738586,
0.21542593836784363,
-0.009735342115163803,
0.22237363457679749,
0.2082953006029129,
0.3091150224208832,
0.13234299421310425,
0.5167677402496338,
0.43406811356544495,
0.5881304740905762,
-0.07445253431797028,
-0.47573667764663696,
0.06596732139587402,
-0.23557469248771667,
0.3825012743473053,
0.39939308166503906,
-0.15528036653995514,
-0.12634101510047913,
0.14833307266235352,
-0.12017054855823517,
-0.6046262383460999,
0.314403235912323,
0.3806615173816681,
0.15747317671775818,
-0.1584337055683136,
-0.28412356972694397,
0.15718741714954376,
0.10706864297389984,
0.08422575891017914,
0.19565387070178986,
0.17818346619606018,
-0.454081267118454,
-0.09994355589151382,
0.2700182795524597,
0.7992920279502869,
0.2772004008293152,
0.0841779038310051,
0.1453060507774353,
-0.4439851641654968,
0.20565254986286163,
0.1736489236354828,
-0.09290122985839844,
-0.14131319522857666,
-0.41383621096611023,
-0.07331348955631256,
-0.12910419702529907,
0.26561811566352844,
0.07663720101118088,
-0.10965138673782349,
0.07108533382415771,
-0.184493750333786,
0.03728345036506653,
0.18618212640285492,
-0.0420001745223999,
-0.13983739912509918,
-0.2668992877006531,
0.04469077289104462,
0.1286558359861374,
-0.10732640326023102,
0.13376259803771973,
-0.13132527470588684,
-0.021072575822472572,
-0.09511351585388184,
0.04058817774057388,
-0.5639451742172241,
-0.012291058897972107,
-0.03618355095386505,
-0.019940614700317383,
0.09190146625041962,
-0.09117751568555832,
0.5491018891334534,
0.027031365782022476,
0.19458577036857605,
0.21444784104824066,
-0.2639392912387848,
0.19335919618606567,
-0.4526727795600891,
0.14184880256652832,
-0.03346961364150047,
0.17880301177501678,
0.6586146354675293,
-0.07123447954654694,
-0.13057927787303925,
-0.08399053663015366,
-0.1328507959842682,
0.33463865518569946,
-0.3186931610107422,
-0.12350335717201233,
0.16593149304389954,
-0.1663377285003662,
-0.01611306145787239,
0.06790409982204437,
0.27324509620666504,
-0.24688346683979034,
0.12964920699596405,
0.0025254637002944946,
-0.07773766666650772,
0.25328731536865234,
-0.0030531659722328186,
-0.020360060036182404,
-0.10857771337032318,
0.2962830364704132,
-0.29256296157836914,
0.05097611993551254,
0.36214983463287354,
0.36725395917892456,
-0.15757852792739868,
-0.1327001452445984,
0.47451555728912354,
0.19341379404067993,
-0.597918689250946,
0.16028974950313568,
0.02581140026450157,
0.0776686817407608,
-0.013613165356218815,
0.6630610227584839,
0.3859558701515198,
-0.22504624724388123,
-0.04414418712258339,
-0.40157756209373474,
-0.06096336245536804,
0.3357195258140564,
-0.1610109955072403,
-0.04021093621850014,
-0.2267146110534668,
0.24323506653308868,
0.11754019558429718,
0.12950775027275085,
-0.2704746425151825,
0.02971380203962326,
0.0761934444308281,
0.03504680097103119,
-0.23885533213615417,
-0.08057577162981033,
0.06651861220598221,
-0.189736008644104,
-0.03062797151505947,
-0.16112221777439117,
-0.27124908566474915,
-0.09875214844942093,
-0.5385427474975586,
0.1525929868221283,
-0.11298256367444992,
-0.21935872733592987,
0.20503893494606018,
-0.09100258350372314,
0.043838173151016235,
-0.21339407563209534,
0.06827579438686371,
0.47694486379623413,
-0.1930965632200241,
0.5273731350898743,
0.15391863882541656,
0.2807902693748474,
-0.11293154954910278,
-0.0673985704779625,
0.34055987000465393,
0.4654886722564697,
0.11308571696281433,
0.06555347144603729,
0.23483353853225708,
0.11003072559833527,
-0.20976389944553375,
0.14438846707344055,
-0.07676313817501068,
-0.049823492765426636,
0.5045611262321472,
-0.15773601830005646,
0.20924660563468933,
0.06803371757268906,
0.31864452362060547,
0.28318867087364197,
-0.1016644835472107,
0.016455011442303658,
0.3650188446044922,
0.11646371334791183,
-0.4645114243030548,
0.047829270362854004,
0.10761785507202148,
0.07133444398641586,
-0.02539070136845112,
0.17613787949085236,
0.2672882378101349,
-0.12896572053432465,
-0.06706957519054413,
0.21680471301078796,
0.12942536175251007,
-0.2242649644613266,
0.3391568064689636,
0.4953804314136505,
-0.14727327227592468,
0.3638615310192108,
0.17355775833129883,
-0.06390571594238281,
0.07102054357528687,
0.12278109788894653,
-0.04955770820379257,
0.31579145789146423,
-0.08501282334327698,
0.22468459606170654,
0.011184290051460266,
-0.3139353394508362,
0.0709625706076622,
-0.13535282015800476,
-0.3289143443107605,
0.08671420812606812,
-0.22251680493354797,
0.3641638457775116,
-0.18581119179725647,
-0.09969989210367203,
-0.15708047151565552,
0.04766736924648285,
-0.20186370611190796,
-0.27470216155052185,
-0.18238846957683563,
-0.20072850584983826,
-0.42552685737609863,
-0.010232988744974136,
0.03360680118203163,
-0.2153674215078354,
0.06470833718776703,
0.24080444872379303,
-0.17606531083583832,
-0.0906575471162796,
-0.10991402715444565,
-0.022456485778093338,
-0.025418080389499664,
-0.2406550496816635,
0.10065524280071259,
0.2529744505882263,
-0.17984741926193237,
0.20570030808448792,
0.190996453166008,
0.2281809002161026,
0.17610469460487366,
-0.1333581656217575,
-0.1719973087310791,
0.04877932742238045,
0.026225650683045387,
-0.031941305845975876,
0.4753401279449463,
0.0688725933432579,
0.04439501464366913,
0.29803940653800964,
0.1319066733121872,
-0.09054805338382721,
0.11928488314151764,
0.11838409304618835,
0.00875710416585207,
-0.5434650182723999,
0.3388015627861023,
-0.08667927980422974,
0.2409634292125702,
-0.03657665103673935,
0.1368492692708969,
-0.21233835816383362,
0.1850513368844986,
0.44177764654159546,
0.06612417101860046,
0.1702510416507721,
-0.006219305098056793,
0.06357433646917343,
0.31977641582489014,
0.5962056517601013,
0.2757330536842346,
-0.16801458597183228,
-0.17208777368068695,
-0.06270067393779755,
-0.6336569786071777,
-0.11691757291555405,
0.1775418370962143,
0.17145901918411255,
0.0759335607290268,
-0.1496044099330902,
0.25515323877334595,
0.3115308880805969,
0.12599371373653412,
0.20206080377101898,
-0.15554867684841156,
-0.0035600848495960236,
-0.23592792451381683,
-0.32655540108680725,
-0.058091431856155396,
0.3001258969306946,
-0.051065899431705475,
-0.07797688245773315,
-0.1066495031118393,
-0.20795926451683044,
-0.09798432886600494,
-0.1690538376569748,
-0.2448786050081253,
0.20523490011692047,
0.29496586322784424,
-0.06380116939544678,
0.23133142292499542,
0.10611680895090103,
-0.0014317259192466736,
0.049510419368743896,
-0.49792784452438354,
-0.32984864711761475,
0.05542375519871712,
0.4927518665790558,
-0.1556324064731598,
0.30563732981681824,
-0.17779310047626495,
-0.2628450393676758,
-0.47554823756217957,
-0.06927312910556793,
0.016381267458200455,
0.05871141701936722,
-0.37102994322776794,
0.1706637740135193,
0.030007772147655487,
-0.006174907553941011,
0.37086543440818787,
0.4296106696128845,
-0.2576422095298767,
0.17111177742481232,
-0.21100887656211853,
-0.27247634530067444,
0.09793391078710556,
-0.10145090520381927,
-0.37211281061172485,
-0.46582943201065063,
0.10799291729927063,
-0.3049253523349762,
0.0959286242723465,
-0.4151800274848938,
0.07156293839216232,
0.2806696593761444,
0.011838149279356003,
-0.20072604715824127,
-0.02295224741101265,
0.07967963814735413,
-0.014255542308092117,
-0.09881876409053802,
0.29125916957855225,
0.28297188878059387,
-0.04814602807164192,
0.04968811199069023,
-0.0049143265932798386
] |
https://github.com/huggingface/datasets/issues/4354 | Problems with WMT dataset | Hi @mariosasko
Are the docs updated? If not, I would like to get on it. I am new around here, would we helpful, if you can guide.
Thanks | ## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 28 | Problems with WMT dataset
## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @mariosasko
Are the docs updated? If not, I would like to get on it. I am new around here, would we helpful, if you can guide.
Thanks | [
-0.42644309997558594,
-0.17433269321918488,
0.09474942088127136,
0.3972369432449341,
0.37911146879196167,
0.002787373960018158,
0.3470560610294342,
0.19680683314800262,
0.13073308765888214,
0.16936305165290833,
0.023115528747439384,
0.018618913367390633,
-0.06973940879106522,
0.11597531288862228,
0.022772658616304398,
0.004366986453533173,
0.17676177620887756,
-0.20497244596481323,
-0.4371599853038788,
-0.03680890053510666,
-0.31133466958999634,
0.08891826868057251,
-0.2361069917678833,
0.13460007309913635,
-0.4145504832267761,
0.16793100535869598,
-0.14569880068302155,
0.05557144805788994,
-0.02082034759223461,
-0.12726910412311554,
0.3645516633987427,
-0.06949113309383392,
0.14741535484790802,
0.2656148076057434,
-0.00011752123100450262,
0.14140024781227112,
0.26124081015586853,
-0.09747990220785141,
-0.2328784018754959,
-0.45505839586257935,
-0.745434582233429,
-0.3533274829387665,
0.08071671426296234,
0.14740276336669922,
0.00042455270886421204,
-0.08674591034650803,
-0.08066581189632416,
-0.18851876258850098,
0.2918410897254944,
0.22606803476810455,
0.17356353998184204,
0.25726431608200073,
0.05075133964419365,
-0.2451876550912857,
0.35541513562202454,
0.21505612134933472,
-0.14083674550056458,
0.1628284454345703,
0.2809246778488159,
0.06886490434408188,
0.22015032172203064,
0.2642304301261902,
0.0350138321518898,
0.0779251679778099,
0.24986955523490906,
0.06225088983774185,
0.44928908348083496,
-0.1705481857061386,
0.04901773855090141,
0.4093616306781769,
0.6538401246070862,
-0.09592180699110031,
-0.4665098488330841,
-0.04290439933538437,
-0.17733564972877502,
-0.2708069384098053,
0.1274317055940628,
0.3167049288749695,
-0.12071913480758667,
0.26260825991630554,
-0.18912412226200104,
-0.09987106919288635,
0.07811601459980011,
0.16967906057834625,
-0.3158886134624481,
0.6336904764175415,
-0.12776511907577515,
-0.0006274804472923279,
-0.04055177792906761,
-0.20437100529670715,
0.08140582591295242,
0.14700838923454285,
-0.13853394985198975,
0.0008975863456726074,
-0.06487542390823364,
0.14367277920246124,
-0.11535725742578506,
-0.09262055903673172,
0.03106675297021866,
0.05552220344543457,
-0.08049754053354263,
0.09730640798807144,
-0.026497606188058853,
0.00006035715341567993,
0.3619241416454315,
0.1126672625541687,
-0.2850049138069153,
0.0024076439440250397,
0.09679446369409561,
0.21100755035877228,
-0.04885510355234146,
0.007852122187614441,
-0.17079177498817444,
-0.5319937467575073,
-0.2222125083208084,
0.03347157686948776,
0.32272571325302124,
0.02461857721209526,
-0.23045694828033447,
-0.024906303733587265,
-0.049805350601673126,
-0.306851327419281,
-0.0016715480014681816,
0.3068350851535797,
-0.16759999096393585,
0.23348504304885864,
0.18362867832183838,
0.010641807690262794,
-0.3527444899082184,
-0.3134624660015106,
-0.18564237654209137,
0.09881073236465454,
-0.4428691565990448,
-0.11290063709020615,
0.11447304487228394,
0.14565278589725494,
0.13871890306472778,
0.09297356754541397,
0.013340853154659271,
-0.0968901664018631,
-0.29727110266685486,
0.027456533163785934,
0.2676571309566498,
0.33816006779670715,
-0.07799338549375534,
0.24850808084011078,
0.1843927651643753,
-0.13937051594257355,
-0.05318574607372284,
0.28352904319763184,
-0.442307710647583,
-0.22838151454925537,
-0.04081054776906967,
0.12729287147521973,
-0.17647746205329895,
0.10393766313791275,
-0.08417361229658127,
0.38254308700561523,
-0.22562488913536072,
0.07674963772296906,
0.02155008167028427,
-0.2727891206741333,
-0.174994558095932,
-0.11428384482860565,
0.513491690158844,
0.6057716012001038,
-0.448637455701828,
-0.2749839425086975,
-0.09338849037885666,
-0.061990175396203995,
0.134568452835083,
0.047643695026636124,
-0.16821038722991943,
-0.09878485649824142,
-0.12893399596214294,
-0.30365878343582153,
0.2116919904947281,
-0.1890898197889328,
-0.14916732907295227,
-0.010200831107795238,
0.03428760915994644,
0.11099617928266525,
-0.035753004252910614,
-0.1485779583454132,
-0.04973150044679642,
-0.13146594166755676,
-0.21355849504470825,
0.19179989397525787,
-0.2167222946882248,
-0.06938791275024414,
-0.21606719493865967,
-0.40763771533966064,
0.522543728351593,
-0.09967589378356934,
0.4055672883987427,
-0.1801181137561798,
0.23774564266204834,
0.5967065095901489,
0.347991943359375,
0.15210047364234924,
0.05250294506549835,
0.18336358666419983,
0.16137661039829254,
0.01536683738231659,
-0.005156359635293484,
-0.2172854244709015,
-0.15835708379745483,
0.23520523309707642,
-0.10815035551786423,
0.018313877284526825,
0.21611446142196655,
0.18808147311210632,
-0.2792729437351227,
0.01022818498313427,
-0.15445387363433838,
-0.27539223432540894,
0.003208450973033905,
-0.06914496421813965,
-0.21499687433242798,
0.08508332073688507,
0.06224614009261131,
-0.11131685227155685,
-0.26577091217041016,
0.21238067746162415,
-0.1305648386478424,
0.18618562817573547,
-0.023564709350466728,
-0.11875300109386444,
0.14026713371276855,
0.22652655839920044,
0.14615240693092346,
0.01116457860916853,
-0.18919703364372253,
0.2951487898826599,
0.23151971399784088,
0.442486047744751,
-0.3336903154850006,
0.2946353554725647,
0.27976351976394653,
-0.42592543363571167,
0.11626381427049637,
-0.07879364490509033,
0.07092762738466263,
0.06971883028745651,
-0.2159348726272583,
0.0949237048625946,
-0.38708460330963135,
0.14645563066005707,
0.25984108448028564,
0.1139616146683693,
0.09295177459716797,
0.0406322218477726,
-0.1898583173751831,
-0.39915117621421814,
-0.09441709518432617,
0.0008863043040037155,
-0.20330287516117096,
0.049021363258361816,
0.04414936900138855,
0.06972415745258331,
0.4833425283432007,
0.16810034215450287,
0.11317916214466095,
0.07902318239212036,
-0.3142271935939789,
-0.05104996636509895,
-0.06578770279884338,
0.22141386568546295,
0.29964426159858704,
0.16484335064888,
0.13451848924160004,
0.0806417316198349,
0.020105697214603424,
-0.10983187705278397,
0.5136269927024841,
0.2221832424402237,
-0.08694398403167725,
0.11866944283246994,
-0.16823071241378784,
0.051338084042072296,
0.139634907245636,
0.35509365797042847,
0.03277655690908432,
0.0911732092499733,
-0.5970377326011658,
0.009513156488537788,
-0.7499392628669739,
-0.0874989926815033,
-0.553879976272583,
-0.613680899143219,
-0.3668987452983856,
-0.39307504892349243,
-0.23321957886219025,
-0.1296948343515396,
-0.12480026483535767,
0.36019405722618103,
-0.02364172600209713,
0.04621294140815735,
-0.23887616395950317,
0.43506506085395813,
0.033325500786304474,
-0.11652487516403198,
-0.3379189968109131,
-0.00479620136320591,
0.37020570039749146,
0.23776458203792572,
0.1940038949251175,
-0.3431417942047119,
-0.10193300992250443,
-0.031569987535476685,
-0.2363342046737671,
0.1379583179950714,
-0.06728409230709076,
0.6500687003135681,
0.17517314851284027,
0.08541474491357803,
-0.05324891582131386,
-0.15845072269439697,
0.3225744664669037,
-0.1437358409166336,
-0.010649021714925766,
-0.11432195454835892,
0.21889589726924896,
-0.13882458209991455,
-0.15384626388549805,
-0.656949520111084,
-0.3323303461074829,
-0.2959256172180176,
-0.0415210947394371,
-0.08872942626476288,
-0.13461343944072723,
0.5465667247772217,
0.2257118970155716,
0.06430371105670929,
0.03902877867221832,
0.1704569309949875,
-0.2041235864162445,
-0.21543362736701965,
0.39396408200263977,
-0.1628257930278778,
-0.3202836811542511,
0.3757597804069519,
-0.059465616941452026,
0.15434998273849487,
0.13027697801589966,
-0.29506590962409973,
0.35770151019096375,
-0.02024768479168415,
-0.1384124457836151,
0.3921923041343689,
0.3822125196456909,
0.29026156663894653,
-0.03127758577466011,
0.07915093749761581,
-0.2814970016479492,
-0.20735400915145874,
-0.1850835084915161,
-0.14678260684013367,
0.40168502926826477,
0.1530933678150177,
0.12548036873340607,
-0.002349540591239929,
0.9222122430801392,
-0.13517262041568756,
0.1747872531414032,
0.010813087224960327,
-0.14289434254169464,
0.35334089398384094,
0.05451865494251251,
-0.43634551763534546,
0.08691638708114624,
-0.2715144157409668,
0.1506205052137375,
0.19588732719421387,
0.06723645329475403,
0.33412036299705505,
-0.3066316545009613,
-0.034747038036584854,
-0.26391687989234924,
-0.4783259928226471,
0.027790363878011703,
-0.20201534032821655,
0.3163725733757019,
0.06557708978652954,
0.10669607669115067,
-0.0258883535861969,
-0.1537064015865326,
0.0901908129453659,
0.4993245005607605,
0.07399053871631622,
0.17285513877868652,
0.24766646325588226,
-0.015929389744997025,
-0.0988135114312172,
0.06442427635192871,
0.02488207258284092,
0.5707758665084839,
-0.08718855679035187,
-0.1510041207075119,
-0.1635020524263382,
0.02241150103509426,
0.45731818675994873,
-0.11346086114645004,
0.19384640455245972,
0.17657259106636047,
-0.26055529713630676,
-0.319504976272583,
-0.32178646326065063,
-0.14144498109817505,
-0.5286090970039368,
-0.026802197098731995,
-0.010890036821365356,
0.014070123434066772,
-0.49320265650749207,
0.295071005821228,
0.1711583137512207,
-0.444527804851532,
0.2526620626449585,
-0.3072373867034912,
-0.1078626960515976,
-0.021395454183220863,
-0.19199135899543762,
0.1995048224925995,
-0.01562993973493576,
-0.12750113010406494,
0.2793005406856537,
-0.05774863809347153,
-0.10985323786735535,
0.2534150779247284,
-0.05829066038131714,
0.23480957746505737,
0.22314779460430145,
0.3656700551509857,
0.17833417654037476,
0.5058422088623047,
0.49438270926475525,
0.5896929502487183,
-0.1320476531982422,
-0.44471073150634766,
-0.011979136615991592,
-0.20767377316951752,
0.44648033380508423,
0.35606926679611206,
-0.15528978407382965,
-0.12037349492311478,
0.1251271665096283,
-0.1547558307647705,
-0.6059914231300354,
0.19884039461612701,
0.39032092690467834,
0.13390906155109406,
-0.16128824651241302,
-0.3403124213218689,
0.24260523915290833,
0.1581851840019226,
0.05027458071708679,
0.276178240776062,
0.19859632849693298,
-0.4488056004047394,
-0.18861053884029388,
0.26644447445869446,
0.8655385971069336,
0.3158148527145386,
0.030850568786263466,
0.1497253179550171,
-0.47403842210769653,
0.19159063696861267,
0.1169377863407135,
-0.09494481980800629,
-0.21122872829437256,
-0.41181373596191406,
-0.09089521318674088,
-0.19009345769882202,
0.28802457451820374,
0.03691945970058441,
-0.0946073979139328,
0.09864141792058945,
-0.22760708630084991,
0.0720394179224968,
0.15874145925045013,
-0.08147437870502472,
-0.050928808748722076,
-0.21994329988956451,
0.025966793298721313,
0.09393787384033203,
-0.05439833551645279,
0.12303677201271057,
-0.1614525318145752,
-0.014494968578219414,
-0.07409501820802689,
0.023590847849845886,
-0.5837761759757996,
-0.025469645857810974,
-0.07550378888845444,
-0.07118263095617294,
0.16604650020599365,
-0.07421523332595825,
0.5524672865867615,
0.05027041584253311,
0.17983612418174744,
0.1727873831987381,
-0.2870517075061798,
0.214356929063797,
-0.4826648235321045,
0.14344410598278046,
-0.0985502079129219,
0.2124684453010559,
0.649055540561676,
-0.04670361429452896,
-0.1903148889541626,
-0.07895084470510483,
-0.11491449922323227,
0.33850473165512085,
-0.3307274580001831,
-0.1396324336528778,
0.23005835711956024,
-0.22110800445079803,
0.008572503924369812,
0.029807426035404205,
0.30690547823905945,
-0.22203968465328217,
0.1086435616016388,
0.0171896331012249,
-0.07889267057180405,
0.3412999212741852,
0.035108327865600586,
-0.008616320788860321,
-0.06869752705097198,
0.33372342586517334,
-0.2629489302635193,
0.05150211602449417,
0.3176591396331787,
0.36055508255958557,
-0.14902758598327637,
-0.10649353265762329,
0.5081188678741455,
0.18453431129455566,
-0.49731069803237915,
0.1853266954421997,
-0.01683810167014599,
0.175497904419899,
0.024949340149760246,
0.63571697473526,
0.3499303460121155,
-0.21930930018424988,
-0.025550058111548424,
-0.41839078068733215,
-0.05021815747022629,
0.34504032135009766,
-0.2091245800256729,
0.002831563353538513,
-0.28396663069725037,
0.16856426000595093,
0.17364729940891266,
0.14770783483982086,
-0.23841635882854462,
0.08790092170238495,
0.09405027329921722,
0.02297133021056652,
-0.18952788412570953,
0.014853980392217636,
0.039302531629800797,
-0.2053624540567398,
-0.0724141076207161,
-0.12163221836090088,
-0.21334373950958252,
-0.0669412910938263,
-0.4848140776157379,
0.18893910944461823,
-0.1046842411160469,
-0.24545545876026154,
0.18776382505893707,
-0.10542190074920654,
0.03263457864522934,
-0.15499767661094666,
0.0553785003721714,
0.4403779208660126,
-0.1548958122730255,
0.5353963971138,
0.18910564482212067,
0.22180360555648804,
-0.16293683648109436,
0.012231456115841866,
0.33138155937194824,
0.5216121077537537,
0.14886660873889923,
0.05850870534777641,
0.2393617331981659,
0.10312609374523163,
-0.2360636442899704,
0.12245360016822815,
-0.06733989715576172,
-0.07351309806108475,
0.5796130895614624,
-0.16732218861579895,
0.22501173615455627,
0.09346750378608704,
0.3174457550048828,
0.29975712299346924,
-0.14203262329101562,
0.10091114044189453,
0.33187630772590637,
0.07918679714202881,
-0.47606468200683594,
0.05316992104053497,
0.17805038392543793,
0.1159762516617775,
-0.0747683122754097,
0.1639566868543625,
0.2695080637931824,
-0.1897684931755066,
-0.1637410670518875,
0.23374614119529724,
0.22285740077495575,
-0.1917031854391098,
0.34108516573905945,
0.4640095829963684,
-0.17520557343959808,
0.36015215516090393,
0.17532221972942352,
-0.02483820542693138,
0.047393783926963806,
0.14250214397907257,
-0.06012221425771713,
0.3263918459415436,
-0.05269294232130051,
0.16460855305194855,
0.038069963455200195,
-0.37513259053230286,
0.09536869823932648,
-0.10373866558074951,
-0.36125922203063965,
0.06971660256385803,
-0.22719624638557434,
0.34511858224868774,
-0.09984668344259262,
-0.11858972907066345,
-0.16163180768489838,
0.05084226280450821,
-0.16464772820472717,
-0.24047231674194336,
-0.18440428376197815,
-0.23481649160385132,
-0.3914077579975128,
-0.026143111288547516,
0.0667310282588005,
-0.21855802834033966,
0.09674804657697678,
0.19244490563869476,
-0.12908609211444855,
-0.10516639053821564,
-0.054944559931755066,
0.009023880586028099,
0.04466501995921135,
-0.25851553678512573,
0.06072111427783966,
0.25644057989120483,
-0.12404951453208923,
0.2864348888397217,
0.21797338128089905,
0.2482471466064453,
0.2051607370376587,
-0.11563673615455627,
-0.17961859703063965,
0.05585917457938194,
0.023599373176693916,
0.02704498916864395,
0.46153655648231506,
0.0022522062063217163,
0.011083811521530151,
0.2126150280237198,
0.0975315272808075,
-0.045224715024232864,
0.16239114105701447,
0.10497678071260452,
0.005814156495034695,
-0.5976270437240601,
0.342721164226532,
-0.08389417082071304,
0.1629328727722168,
-0.01399507001042366,
0.10886162519454956,
-0.13483449816703796,
0.13552843034267426,
0.5201318860054016,
0.05856885388493538,
0.1673647165298462,
0.014843673445284367,
0.032953403890132904,
0.32011938095092773,
0.5733621120452881,
0.30388838052749634,
-0.14504507184028625,
-0.15775397419929504,
-0.09507643431425095,
-0.6692503690719604,
-0.15102693438529968,
0.23995976150035858,
0.1500890851020813,
0.08300920575857162,
-0.15877299010753632,
0.15951932966709137,
0.23721826076507568,
0.1935044825077057,
0.12592178583145142,
-0.06365074217319489,
0.03152015805244446,
-0.25145551562309265,
-0.38457465171813965,
-0.14513958990573883,
0.3110096752643585,
-0.055814195424318314,
-0.06390220671892166,
-0.08944651484489441,
-0.26733464002609253,
-0.13825073838233948,
-0.1661076694726944,
-0.2090381383895874,
0.24457484483718872,
0.3652403950691223,
-0.039835259318351746,
0.19811996817588806,
0.19590827822685242,
0.04244101047515869,
0.01915864087641239,
-0.5026468634605408,
-0.31301432847976685,
0.04262387752532959,
0.5143973231315613,
-0.2125055491924286,
0.1914728581905365,
-0.1888657808303833,
-0.2818869650363922,
-0.48093441128730774,
-0.12431275099515915,
0.01700608804821968,
0.08045944571495056,
-0.39752233028411865,
0.14751911163330078,
0.03286600857973099,
-0.018219683319330215,
0.4130619466304779,
0.3849320411682129,
-0.32868632674217224,
0.21597328782081604,
-0.19801899790763855,
-0.2260146290063858,
0.15282171964645386,
-0.2071579247713089,
-0.30638405680656433,
-0.5318791270256042,
0.14474672079086304,
-0.3590388894081116,
0.07936356216669083,
-0.49095940589904785,
0.043939389288425446,
0.38501617312431335,
0.004954082891345024,
-0.19128486514091492,
0.01823432743549347,
0.10626456141471863,
-0.014801837503910065,
-0.07339887320995331,
0.2710121273994446,
0.23102539777755737,
-0.032359566539525986,
0.07137872278690338,
0.03955749422311783
] |
https://github.com/huggingface/datasets/issues/4354 | Problems with WMT dataset | Hi @khushmeeet! The docs haven't been updated, so feel free to work on this issue. This is a tricky issue, so I'll give the steps you can follow to fix this:
First, this code:
https://github.com/huggingface/datasets/blob/7cff5b9726a223509dbd6224de3f5f452c8d924f/src/datasets/load.py#L113-L118
needs to be replaced with (makes the dataset builder search more robust and allows us to remove the ABC stuff from `wmt_utils.py`):
```python
for name, obj in module.__dict__.items():
if inspect.isclass(obj) and issubclass(obj, main_cls_type):
if inspect.isabstract(obj):
continue
module_main_cls = obj
obj_module = inspect.getmodule(obj)
if obj_module is not None and module == obj_module:
break
```
Then, all the `wmt_utils.py` scripts need to be updated as follows (these are the diffs with the requiered changes):
````diff
import os
import re
import xml.etree.cElementTree as ElementTree
-from abc import ABC, abstractmethod
import datasets
````
````diff
logger = datasets.logging.get_logger(__name__)
_DESCRIPTION = """\
-Translate dataset based on the data from statmt.org.
+Translation dataset based on the data from statmt.org.
-Versions exists for the different years using a combination of multiple data
-sources. The base `wmt_translate` allows you to create your own config to choose
-your own data/language pair by creating a custom `datasets.translate.wmt.WmtConfig`.
+Versions exist for different years using a combination of data
+sources. The base `wmt` allows you to create a custom dataset by choosing
+your own data/language pair. This can be done as follows:
```
-config = datasets.wmt.WmtConfig(
- version="0.0.1",
+from datasets import inspect_dataset, load_dataset_builder
+
+inspect_dataset("<insert the dataset name", "path/to/scripts")
+builder = load_dataset_builder(
+ "path/to/scripts/wmt_utils.py",
language_pair=("fr", "de"),
subsets={
datasets.Split.TRAIN: ["commoncrawl_frde"],
datasets.Split.VALIDATION: ["euelections_dev2019"],
},
)
-builder = datasets.builder("wmt_translate", config=config)
-```
+# Standard version
+builder.download_and_prepare()
+ds = builder.as_dataset()
+
+# Streamable version
+ds = builder.as_streaming_dataset()
+```
"""
````
````diff
+class Wmt(datasets.GeneratorBasedBuilder):
"""WMT translation dataset."""
+
+ BUILDER_CONFIG_CLASS = WmtConfig
def __init__(self, *args, **kwargs):
- if type(self) == Wmt and "config" not in kwargs: # pylint: disable=unidiomatic-typecheck
- raise ValueError(
- "The raw `wmt_translate` can only be instantiated with the config "
- "kwargs. You may want to use one of the `wmtYY_translate` "
- "implementation instead to get the WMT dataset for a specific year."
- )
super(Wmt, self).__init__(*args, **kwargs)
@property
- @abstractmethod
def _subsets(self):
"""Subsets that make up each split of the dataset."""
````
```diff
"""Subsets that make up each split of the dataset for the language pair."""
source, target = self.config.language_pair
filtered_subsets = {}
- for split, ss_names in self._subsets.items():
+ subsets = self._subsets if self.config.subsets is None else self.config.subsets
+ for split, ss_names in subsets.items():
filtered_subsets[split] = []
for ss_name in ss_names:
dataset = DATASET_MAP[ss_name]
```
`wmt14`, `wmt15`, `wmt16`, `wmt17`, `wmt18`, `wmt19` and `wmt_t2t` have this script, so all of them need to be updated. Also, the dataset summaries from the READMEs of these datasets need to be updated to match the new `_DESCRIPTION` string. And that's it! Let me know if you need additional help. | ## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 458 | Problems with WMT dataset
## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @khushmeeet! The docs haven't been updated, so feel free to work on this issue. This is a tricky issue, so I'll give the steps you can follow to fix this:
First, this code:
https://github.com/huggingface/datasets/blob/7cff5b9726a223509dbd6224de3f5f452c8d924f/src/datasets/load.py#L113-L118
needs to be replaced with (makes the dataset builder search more robust and allows us to remove the ABC stuff from `wmt_utils.py`):
```python
for name, obj in module.__dict__.items():
if inspect.isclass(obj) and issubclass(obj, main_cls_type):
if inspect.isabstract(obj):
continue
module_main_cls = obj
obj_module = inspect.getmodule(obj)
if obj_module is not None and module == obj_module:
break
```
Then, all the `wmt_utils.py` scripts need to be updated as follows (these are the diffs with the requiered changes):
````diff
import os
import re
import xml.etree.cElementTree as ElementTree
-from abc import ABC, abstractmethod
import datasets
````
````diff
logger = datasets.logging.get_logger(__name__)
_DESCRIPTION = """\
-Translate dataset based on the data from statmt.org.
+Translation dataset based on the data from statmt.org.
-Versions exists for the different years using a combination of multiple data
-sources. The base `wmt_translate` allows you to create your own config to choose
-your own data/language pair by creating a custom `datasets.translate.wmt.WmtConfig`.
+Versions exist for different years using a combination of data
+sources. The base `wmt` allows you to create a custom dataset by choosing
+your own data/language pair. This can be done as follows:
```
-config = datasets.wmt.WmtConfig(
- version="0.0.1",
+from datasets import inspect_dataset, load_dataset_builder
+
+inspect_dataset("<insert the dataset name", "path/to/scripts")
+builder = load_dataset_builder(
+ "path/to/scripts/wmt_utils.py",
language_pair=("fr", "de"),
subsets={
datasets.Split.TRAIN: ["commoncrawl_frde"],
datasets.Split.VALIDATION: ["euelections_dev2019"],
},
)
-builder = datasets.builder("wmt_translate", config=config)
-```
+# Standard version
+builder.download_and_prepare()
+ds = builder.as_dataset()
+
+# Streamable version
+ds = builder.as_streaming_dataset()
+```
"""
````
````diff
+class Wmt(datasets.GeneratorBasedBuilder):
"""WMT translation dataset."""
+
+ BUILDER_CONFIG_CLASS = WmtConfig
def __init__(self, *args, **kwargs):
- if type(self) == Wmt and "config" not in kwargs: # pylint: disable=unidiomatic-typecheck
- raise ValueError(
- "The raw `wmt_translate` can only be instantiated with the config "
- "kwargs. You may want to use one of the `wmtYY_translate` "
- "implementation instead to get the WMT dataset for a specific year."
- )
super(Wmt, self).__init__(*args, **kwargs)
@property
- @abstractmethod
def _subsets(self):
"""Subsets that make up each split of the dataset."""
````
```diff
"""Subsets that make up each split of the dataset for the language pair."""
source, target = self.config.language_pair
filtered_subsets = {}
- for split, ss_names in self._subsets.items():
+ subsets = self._subsets if self.config.subsets is None else self.config.subsets
+ for split, ss_names in subsets.items():
filtered_subsets[split] = []
for ss_name in ss_names:
dataset = DATASET_MAP[ss_name]
```
`wmt14`, `wmt15`, `wmt16`, `wmt17`, `wmt18`, `wmt19` and `wmt_t2t` have this script, so all of them need to be updated. Also, the dataset summaries from the READMEs of these datasets need to be updated to match the new `_DESCRIPTION` string. And that's it! Let me know if you need additional help. | [
-0.43425291776657104,
-0.16670918464660645,
0.10636147856712341,
0.3848138451576233,
0.4583449959754944,
0.01907995343208313,
0.3221488296985626,
0.1813812255859375,
0.18812468647956848,
0.19171908497810364,
-0.010922458954155445,
0.05659184977412224,
-0.09811699390411377,
0.16601867973804474,
0.02134774997830391,
-0.029042601585388184,
0.09742381423711777,
-0.16615921258926392,
-0.4780829846858978,
0.05790536850690842,
-0.2762612998485565,
0.16130343079566956,
-0.14092163741588593,
0.11188450455665588,
-0.4373922348022461,
0.1916252076625824,
-0.08183487504720688,
0.09259932488203049,
-0.005540749058127403,
-0.09170904010534286,
0.3779950439929962,
-0.0814085602760315,
0.09940372407436371,
0.2107648402452469,
-0.00011654593254206702,
0.19120685756206512,
0.2520632743835449,
-0.11246591806411743,
-0.31593412160873413,
-0.5084489583969116,
-0.6718478798866272,
-0.28127461671829224,
0.1013258770108223,
0.183417409658432,
-0.06588437408208847,
-0.08482185751199722,
-0.06621444970369339,
-0.21694986522197723,
0.31054264307022095,
0.2210635244846344,
0.19098390638828278,
0.3438415229320526,
0.0008108839392662048,
-0.2644194960594177,
0.2912328839302063,
0.2205743044614792,
-0.17991691827774048,
0.17884379625320435,
0.18813244998455048,
0.11040429770946503,
0.1989113837480545,
0.2751733064651489,
0.06198392063379288,
0.07333153486251831,
0.27105429768562317,
0.08954640477895737,
0.35403481125831604,
-0.08328717947006226,
0.08758217096328735,
0.3984580934047699,
0.5207914113998413,
-0.17480027675628662,
-0.4385293424129486,
-0.11985179036855698,
-0.14837241172790527,
-0.2629903256893158,
0.1356746107339859,
0.25381535291671753,
-0.10071392357349396,
0.29918473958969116,
-0.2054554671049118,
-0.032674092799425125,
0.11013798415660858,
0.1751631498336792,
-0.3041698932647705,
0.5616803169250488,
-0.20140999555587769,
0.022872518748044968,
0.01604115217924118,
-0.12567877769470215,
-0.07873494923114777,
0.1725478321313858,
-0.16867388784885406,
-0.01060554850846529,
-0.059119340032339096,
0.15889781713485718,
-0.057482413947582245,
-0.06157562881708145,
0.09440689533948898,
0.081392303109169,
-0.09799282997846603,
0.08718661963939667,
-0.030516531318426132,
0.007976502180099487,
0.3148542642593384,
0.14748376607894897,
-0.22351038455963135,
-0.10268232971429825,
0.06451277434825897,
0.2171204537153244,
-0.014649737626314163,
-0.022667471319437027,
-0.10832066833972931,
-0.5110224485397339,
-0.24864071607589722,
0.040676701813936234,
0.31123530864715576,
0.062061529606580734,
-0.25815680623054504,
-0.0003595016896724701,
-0.070131815969944,
-0.21799901127815247,
0.030971039086580276,
0.32651159167289734,
-0.10412216931581497,
0.20335841178894043,
0.14536525309085846,
0.11363032460212708,
-0.33879798650741577,
-0.29545944929122925,
-0.2532306909561157,
0.06013703718781471,
-0.41622671484947205,
-0.06823408603668213,
0.15626661479473114,
0.09944592416286469,
0.20196308195590973,
0.12369968742132187,
0.02499927207827568,
-0.10720700025558472,
-0.2828257083892822,
0.05198969691991806,
0.21345658600330353,
0.3787473142147064,
-0.07868488878011703,
0.27356040477752686,
0.27994608879089355,
-0.20151419937610626,
-0.06945891678333282,
0.15041705965995789,
-0.35467636585235596,
-0.2169615924358368,
0.03724600374698639,
0.1408233493566513,
-0.23623178899288177,
0.15311956405639648,
-0.15336325764656067,
0.36831438541412354,
-0.21715092658996582,
0.11586302518844604,
0.026779338717460632,
-0.2570992708206177,
-0.19807861745357513,
-0.06875566393136978,
0.581327497959137,
0.66902095079422,
-0.38372161984443665,
-0.35283535718917847,
-0.06510482728481293,
-0.11844052374362946,
0.11405934393405914,
0.034879837185144424,
-0.12483072280883789,
-0.10966477543115616,
-0.15149426460266113,
-0.2504008710384369,
0.10293962061405182,
-0.17381946742534637,
-0.14220108091831207,
0.058314044028520584,
-0.061792854219675064,
0.16581402719020844,
-0.03645215183496475,
-0.1679985076189041,
-0.09730604290962219,
-0.11521385610103607,
-0.16927236318588257,
0.17238686978816986,
-0.19407957792282104,
-0.05750101059675217,
-0.18315303325653076,
-0.41220661997795105,
0.4559016823768616,
-0.08473572134971619,
0.37596386671066284,
-0.12032382935285568,
0.18399345874786377,
0.5646271109580994,
0.2924472391605377,
0.11347955465316772,
0.06165284663438797,
0.18487392365932465,
0.09156206250190735,
-0.0008995309472084045,
-0.08121822029352188,
-0.23551517724990845,
-0.18787258863449097,
0.3149917721748352,
-0.11025607585906982,
0.042618099600076675,
0.12130969762802124,
0.17952300608158112,
-0.3076085150241852,
0.0471140593290329,
-0.16978639364242554,
-0.27818575501441956,
0.01403137668967247,
-0.00820295512676239,
-0.1745985448360443,
0.1419752687215805,
0.10313799977302551,
-0.07736509293317795,
-0.24852962791919708,
0.21061255037784576,
-0.2131710946559906,
0.16674897074699402,
0.031433816999197006,
-0.06830150634050369,
0.10579034686088562,
0.2722431421279907,
0.12417077273130417,
-0.003497088560834527,
-0.1310587227344513,
0.30910617113113403,
0.17699670791625977,
0.44201499223709106,
-0.3839840590953827,
0.2540777027606964,
0.23868638277053833,
-0.4190894365310669,
0.04679371416568756,
-0.07737378776073456,
0.05547947436571121,
0.04199393838644028,
-0.19718292355537415,
0.16297191381454468,
-0.3975716233253479,
0.24088114500045776,
0.2038237601518631,
0.1295027881860733,
0.11635643243789673,
0.01279289647936821,
-0.21655336022377014,
-0.46778324246406555,
-0.06551952660083771,
-0.03464468568563461,
-0.1495969593524933,
0.04218847304582596,
0.004082076251506805,
0.04595285281538963,
0.4453839659690857,
0.18557588756084442,
0.11792240291833878,
0.04131215065717697,
-0.3713743984699249,
0.03279576823115349,
-0.04764481633901596,
0.22025005519390106,
0.360853910446167,
0.16987930238246918,
0.12016524374485016,
0.12892521917819977,
-0.03632952272891998,
-0.13791203498840332,
0.4873097836971283,
0.2053876519203186,
-0.08593633025884628,
0.14689764380455017,
-0.18792277574539185,
0.02206883579492569,
0.05477850139141083,
0.2979956865310669,
0.010290632024407387,
0.07686223834753036,
-0.6188123822212219,
0.047086119651794434,
-0.7645891904830933,
-0.07405572384595871,
-0.5342215895652771,
-0.5872230529785156,
-0.3363717496395111,
-0.42195913195610046,
-0.21552474796772003,
-0.07767613232135773,
-0.19116605818271637,
0.33733636140823364,
0.008077256381511688,
-0.012295529246330261,
-0.24636654555797577,
0.28984954953193665,
0.007953569293022156,
-0.12299805879592896,
-0.3197074830532074,
-0.002345295622944832,
0.3205661475658417,
0.23570793867111206,
0.22575855255126953,
-0.36917823553085327,
-0.1521780788898468,
-0.0648946464061737,
-0.18821677565574646,
0.19816258549690247,
-0.15349169075489044,
0.6666381359100342,
0.2111336886882782,
0.10688275843858719,
-0.09030516445636749,
-0.18985113501548767,
0.4333432912826538,
-0.05857625603675842,
-0.03766832500696182,
-0.02392766810953617,
0.21158073842525482,
-0.10856107622385025,
-0.2382424920797348,
-0.5838924646377563,
-0.2540012300014496,
-0.33742913603782654,
0.04369597136974335,
-0.09411433339118958,
-0.17446303367614746,
0.6254189610481262,
0.2666934132575989,
0.08690346032381058,
-0.011861534789204597,
0.16004277765750885,
-0.22298485040664673,
-0.20377907156944275,
0.36418938636779785,
-0.19582048058509827,
-0.32215815782546997,
0.3134280741214752,
-0.04718814790248871,
0.20279577374458313,
0.15891209244728088,
-0.33811044692993164,
0.2848377823829651,
-0.03200271725654602,
-0.13784237205982208,
0.37554439902305603,
0.3812693953514099,
0.27916592359542847,
-0.03370952606201172,
0.055537350475788116,
-0.2766830027103424,
-0.20494897663593292,
-0.10749595612287521,
-0.17876023054122925,
0.3689762353897095,
0.11567804962396622,
0.1784396469593048,
0.003929466009140015,
0.921829879283905,
-0.0902133584022522,
0.19911152124404907,
0.06894147396087646,
-0.16581252217292786,
0.404570072889328,
-0.009547211229801178,
-0.4392060339450836,
0.10762862861156464,
-0.2925752103328705,
0.22468547523021698,
0.24162082374095917,
0.06953302025794983,
0.3792588412761688,
-0.2941880226135254,
-0.018775101751089096,
-0.17979317903518677,
-0.5056655406951904,
0.05569180101156235,
-0.21613958477973938,
0.28699150681495667,
0.04626056179404259,
0.1488139033317566,
0.01501430943608284,
-0.08340858668088913,
0.11750754714012146,
0.4388378858566284,
0.047422245144844055,
0.21540109813213348,
0.22177989780902863,
0.0033785265404731035,
-0.1790381669998169,
0.05802750959992409,
-0.0012988375965505838,
0.5087169408798218,
-0.09365030378103256,
-0.17452239990234375,
-0.15565718710422516,
0.02308819070458412,
0.5036742091178894,
-0.04282914102077484,
0.22100165486335754,
0.1454480141401291,
-0.3277410864830017,
-0.4131343364715576,
-0.2785343825817108,
-0.10243731737136841,
-0.5418386459350586,
-0.05434518679976463,
0.02412593737244606,
-0.10757890343666077,
-0.4538717567920685,
0.23366454243659973,
0.22055034339427948,
-0.39187976717948914,
0.22827041149139404,
-0.34112733602523804,
-0.15004819631576538,
-0.0983361005783081,
-0.16548576951026917,
0.22680245339870453,
0.02362661436200142,
-0.08582447469234467,
0.29594364762306213,
-0.10093685984611511,
-0.17266422510147095,
0.27286049723625183,
-0.03851212561130524,
0.26320233941078186,
0.21277311444282532,
0.3603675067424774,
0.19861756265163422,
0.4982248842716217,
0.40309783816337585,
0.682661235332489,
-0.09080782532691956,
-0.4751405715942383,
0.034665536135435104,
-0.18309949338436127,
0.41541552543640137,
0.3657304048538208,
-0.17998191714286804,
-0.1260257065296173,
0.15255382657051086,
-0.09447833895683289,
-0.6439493298530579,
0.2933511734008789,
0.351127564907074,
0.11976232379674911,
-0.14310377836227417,
-0.2815089523792267,
0.2537495493888855,
0.09472021460533142,
0.09337972104549408,
0.2676768898963928,
0.3010792136192322,
-0.46128302812576294,
-0.1731753796339035,
0.20776978135108948,
0.7981080412864685,
0.26803070306777954,
0.06356732547283173,
0.18273040652275085,
-0.4163397550582886,
0.25536859035491943,
0.17010162770748138,
-0.09544374793767929,
-0.1765369325876236,
-0.4156607687473297,
-0.07224801182746887,
-0.17098930478096008,
0.23909059166908264,
0.08268656581640244,
-0.07018927484750748,
0.059365320950746536,
-0.17712554335594177,
0.09528723359107971,
0.1875896155834198,
-0.10559782385826111,
-0.15618106722831726,
-0.29549115896224976,
-0.04413954168558121,
0.11331254243850708,
-0.07245089113712311,
0.1775919497013092,
-0.10318338871002197,
-0.000437307171523571,
-0.09322085976600647,
0.010256964713335037,
-0.5518141388893127,
-0.019254233688116074,
-0.15160591900348663,
-0.07840827852487564,
0.20102445781230927,
-0.07276834547519684,
0.5268582105636597,
0.032092221081256866,
0.19877281785011292,
0.18466249108314514,
-0.30119654536247253,
0.1874777376651764,
-0.5116525292396545,
0.16119472682476044,
-0.05618470534682274,
0.1708599328994751,
0.6542328000068665,
-0.027850553393363953,
-0.1052311584353447,
-0.09185656160116196,
-0.10435229539871216,
0.3125153183937073,
-0.30707457661628723,
-0.1279059201478958,
0.14692246913909912,
-0.2194925844669342,
0.01062137633562088,
0.061426348984241486,
0.36725181341171265,
-0.24997340142726898,
0.10681748390197754,
0.0303146094083786,
-0.10017279535531998,
0.2453049123287201,
-0.0029357150197029114,
-0.08056939393281937,
-0.10092803835868835,
0.33596622943878174,
-0.3276575207710266,
0.1104278415441513,
0.3265465497970581,
0.36734893918037415,
-0.13821932673454285,
-0.12020143866539001,
0.4320313632488251,
0.22889642417430878,
-0.5842972993850708,
0.19655869901180267,
0.044215843081474304,
0.08858908712863922,
-0.0137251615524292,
0.6499649286270142,
0.36347174644470215,
-0.259229838848114,
-0.009832590818405151,
-0.4198780953884125,
-0.0928625613451004,
0.3316495418548584,
-0.16973945498466492,
-0.003084484487771988,
-0.23420611023902893,
0.2845887243747711,
0.11906786262989044,
0.13639411330223083,
-0.24620334804058075,
0.014547708444297314,
0.03685273975133896,
0.009509252384305,
-0.1439451426267624,
-0.004522684961557388,
0.16650062799453735,
-0.17676705121994019,
-0.03680472448468208,
-0.10116207599639893,
-0.29263895750045776,
-0.07859417051076889,
-0.5297794342041016,
0.1642700433731079,
-0.11365955322980881,
-0.1893177032470703,
0.2269391566514969,
-0.007415972650051117,
0.029012471437454224,
-0.24173830449581146,
0.15162600576877594,
0.48269742727279663,
-0.15824458003044128,
0.45019519329071045,
0.1771034300327301,
0.23658600449562073,
-0.17803281545639038,
-0.0848580151796341,
0.32340574264526367,
0.46352481842041016,
0.14169548451900482,
0.009498592466115952,
0.1628088802099228,
0.13405829668045044,
-0.212832510471344,
0.09943921864032745,
-0.08009342849254608,
-0.059412769973278046,
0.5413357615470886,
-0.17909184098243713,
0.1770990639925003,
0.09253187477588654,
0.35434970259666443,
0.2267943024635315,
-0.11035582423210144,
0.07558490335941315,
0.33481794595718384,
0.09075042605400085,
-0.4458543062210083,
0.10697371512651443,
0.17268230020999908,
0.08626554906368256,
0.000279352068901062,
0.20038756728172302,
0.24217316508293152,
-0.16764037311077118,
-0.11817926168441772,
0.18663156032562256,
0.20294170081615448,
-0.1654527187347412,
0.3130406141281128,
0.46393364667892456,
-0.15605556964874268,
0.36710143089294434,
0.15843474864959717,
-0.018203355371952057,
0.06993116438388824,
0.08982101827859879,
-0.10786259919404984,
0.3005528450012207,
-0.20892038941383362,
0.1627664417028427,
0.016497649252414703,
-0.362777441740036,
0.04472444951534271,
-0.1099795401096344,
-0.36095982789993286,
0.10752871632575989,
-0.2517363727092743,
0.46145981550216675,
-0.20331719517707825,
-0.10465242713689804,
-0.10858644545078278,
0.11924690008163452,
-0.18077406287193298,
-0.25719359517097473,
-0.17160332202911377,
-0.2033948004245758,
-0.3971621096134186,
-0.008060626685619354,
0.08023609966039658,
-0.30707603693008423,
0.13404539227485657,
0.18918633460998535,
-0.16266639530658722,
-0.1663573831319809,
-0.1126343384385109,
-0.003384966403245926,
-0.0009713396430015564,
-0.24121631681919098,
0.05777551233768463,
0.279699444770813,
-0.13749702274799347,
0.26583272218704224,
0.17079079151153564,
0.2538566589355469,
0.177796870470047,
-0.03405921161174774,
-0.18731482326984406,
0.022312913089990616,
0.05147888511419296,
-0.08107610791921616,
0.4381147027015686,
0.013566918671131134,
0.032476987689733505,
0.29428914189338684,
0.11341466009616852,
-0.08186733722686768,
0.05444606393575668,
0.10404063761234283,
0.03326171636581421,
-0.5542150139808655,
0.4459088146686554,
-0.15827041864395142,
0.19501033425331116,
-0.056385114789009094,
0.11080556362867355,
-0.20004874467849731,
0.17055644094944,
0.4348140358924866,
0.02471117489039898,
0.18079116940498352,
0.0049677323549985886,
0.04392814636230469,
0.29513922333717346,
0.5637817978858948,
0.30643683671951294,
-0.13691064715385437,
-0.21432660520076752,
-0.06715122610330582,
-0.6643324494361877,
-0.12594866752624512,
0.2269948422908783,
0.16078223288059235,
0.0499020554125309,
-0.1559929996728897,
0.2263105809688568,
0.2438889592885971,
0.12995873391628265,
0.1623006910085678,
-0.03296080231666565,
-0.06254171580076218,
-0.20350055396556854,
-0.36408156156539917,
-0.17462101578712463,
0.2705684304237366,
-0.01075734756886959,
-0.050688035786151886,
-0.12545597553253174,
-0.210875004529953,
-0.11239983141422272,
-0.16705690324306488,
-0.14045140147209167,
0.14149519801139832,
0.25392577052116394,
-0.0355997309088707,
0.2014855295419693,
0.15550953149795532,
0.016943708062171936,
0.033081136643886566,
-0.5247780084609985,
-0.2483220249414444,
0.013675040565431118,
0.44458138942718506,
-0.20377588272094727,
0.29761016368865967,
-0.17933645844459534,
-0.2775035798549652,
-0.5090858340263367,
-0.07444015890359879,
0.09692107141017914,
0.05794626474380493,
-0.39280036091804504,
0.21910127997398376,
-0.09273844212293625,
0.020091570913791656,
0.4050082564353943,
0.4447471797466278,
-0.31916797161102295,
0.23092103004455566,
-0.18760210275650024,
-0.30306288599967957,
0.21238493919372559,
-0.23081368207931519,
-0.3156505227088928,
-0.4000746011734009,
0.15909330546855927,
-0.29020455479621887,
0.006401208229362965,
-0.47413167357444763,
0.0729607567191124,
0.3064471185207367,
-0.012136124074459076,
-0.21002447605133057,
0.01663854345679283,
0.05318626016378403,
-0.024233300238847733,
-0.07520449161529541,
0.2834360599517822,
0.2972237169742584,
-0.07969653606414795,
0.14564503729343414,
0.015236236155033112
] |
https://github.com/huggingface/datasets/issues/4354 | Problems with WMT dataset | Hi @mariosasko ,
I have made the changes as suggested by you and have opened a PR #4537.
Thanks | ## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 19 | Problems with WMT dataset
## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.
## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```
## Expected results
To load WMT15 with given data-sources.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @mariosasko ,
I have made the changes as suggested by you and have opened a PR #4537.
Thanks | [
-0.4753238260746002,
-0.16201354563236237,
0.10318101942539215,
0.42315196990966797,
0.4330452084541321,
0.016905441880226135,
0.35091662406921387,
0.22065357863903046,
0.17838940024375916,
0.21284633874893188,
0.009992547333240509,
0.09353262931108475,
-0.07774440199136734,
0.13607257604599,
-0.003404407761991024,
-0.03072866052389145,
0.11823096871376038,
-0.14931327104568481,
-0.48271825909614563,
0.03294854611158371,
-0.32292670011520386,
0.11581569910049438,
-0.17054468393325806,
0.15638116002082825,
-0.3975420296192169,
0.16713814437389374,
-0.07849536836147308,
0.073076531291008,
0.0031765811145305634,
-0.12864121794700623,
0.33383041620254517,
-0.12437991797924042,
0.13182713091373444,
0.23364447057247162,
-0.00011539660044945776,
0.191487655043602,
0.2427891194820404,
-0.07607568055391312,
-0.2865108251571655,
-0.5192022919654846,
-0.7284544706344604,
-0.3052528202533722,
0.08914053440093994,
0.14703863859176636,
-0.05439949035644531,
-0.10785902291536331,
-0.06563307344913483,
-0.19210591912269592,
0.32479536533355713,
0.2685149908065796,
0.19841396808624268,
0.29813241958618164,
-0.002449527382850647,
-0.25844040513038635,
0.34462258219718933,
0.1731545627117157,
-0.1786031723022461,
0.11853709816932678,
0.21550756692886353,
0.10272786766290665,
0.2239970564842224,
0.24741226434707642,
0.0827951580286026,
0.10655707120895386,
0.2022155225276947,
0.08543989062309265,
0.4449063837528229,
-0.13891643285751343,
0.0966743603348732,
0.4026833176612854,
0.5686425566673279,
-0.14095371961593628,
-0.41570109128952026,
-0.04507553577423096,
-0.13856658339500427,
-0.2484240084886551,
0.1278308480978012,
0.33265018463134766,
-0.12780191004276276,
0.3112644851207733,
-0.16354000568389893,
-0.04221421852707863,
0.07994960248470306,
0.15114659070968628,
-0.31469452381134033,
0.6029043197631836,
-0.14368532598018646,
0.01932065188884735,
-0.028142202645540237,
-0.15242570638656616,
0.0699106901884079,
0.12539556622505188,
-0.16699275374412537,
-0.04302309453487396,
-0.08227379620075226,
0.1653202325105667,
-0.10281483083963394,
-0.07760750502347946,
0.05707618594169617,
0.0543287917971611,
-0.09810975939035416,
0.07078249752521515,
-0.018568355590105057,
-0.0202978253364563,
0.3361358344554901,
0.0956425815820694,
-0.3169732689857483,
-0.0008593518286943436,
0.062227897346019745,
0.16972030699253082,
-0.0403335839509964,
0.006629880517721176,
-0.1432407647371292,
-0.5510644912719727,
-0.20528002083301544,
0.021232377737760544,
0.31418275833129883,
0.07037810981273651,
-0.2760724723339081,
-0.014660432003438473,
-0.09047412872314453,
-0.2430299073457718,
-0.000833083875477314,
0.3473261892795563,
-0.1531064510345459,
0.21855393052101135,
0.1538572907447815,
0.06419068574905396,
-0.32033708691596985,
-0.26634809374809265,
-0.22887524962425232,
0.08457396924495697,
-0.4306442141532898,
-0.13345278799533844,
0.12164494395256042,
0.12021565437316895,
0.1592470109462738,
0.12733331322669983,
-0.025224857032299042,
-0.11891280859708786,
-0.21155579388141632,
-0.0014732228592038155,
0.2423437535762787,
0.3844161331653595,
-0.04147852212190628,
0.25428640842437744,
0.21555940806865692,
-0.15165174007415771,
-0.03389989584684372,
0.24772492051124573,
-0.37173882126808167,
-0.22072504460811615,
-0.0089296605437994,
0.1576678305864334,
-0.17681625485420227,
0.13589398562908173,
-0.10035226494073868,
0.3484378755092621,
-0.25750505924224854,
0.1024225652217865,
-0.003994539380073547,
-0.29576319456100464,
-0.1798768937587738,
-0.08650974184274673,
0.5402562022209167,
0.633029043674469,
-0.41529667377471924,
-0.2912171483039856,
-0.09956329315900803,
-0.13509169220924377,
0.18394984304904938,
0.025835007429122925,
-0.15320557355880737,
-0.11923526972532272,
-0.17348775267601013,
-0.29782289266586304,
0.19506606459617615,
-0.15781854093074799,
-0.17235854268074036,
0.04772905632853508,
-0.06136956810951233,
0.11990825086832047,
0.0018571242690086365,
-0.14299708604812622,
-0.055795468389987946,
-0.10567759722471237,
-0.18217921257019043,
0.21201661229133606,
-0.197279691696167,
-0.052989013493061066,
-0.23472712934017181,
-0.3978837728500366,
0.5423581600189209,
-0.07386678457260132,
0.4582757353782654,
-0.12429127842187881,
0.19587993621826172,
0.5910617709159851,
0.3100986182689667,
0.12469501793384552,
0.05219762772321701,
0.12768256664276123,
0.1276625543832779,
-0.03570721298456192,
-0.0480029359459877,
-0.2504371404647827,
-0.09431923180818558,
0.289756715297699,
-0.1495494544506073,
0.009762898087501526,
0.19197127223014832,
0.21175503730773926,
-0.33711671829223633,
0.03883504867553711,
-0.1813705414533615,
-0.2507117986679077,
0.03001684695482254,
-0.02258843183517456,
-0.2183128148317337,
0.121225506067276,
0.09710824489593506,
-0.10258945822715759,
-0.27170583605766296,
0.1888597458600998,
-0.12386226654052734,
0.1737862080335617,
-0.023322774097323418,
-0.05429302155971527,
0.11168430745601654,
0.22276636958122253,
0.10269603133201599,
0.00554133765399456,
-0.16797414422035217,
0.2700912058353424,
0.20773808658123016,
0.3972390294075012,
-0.3416963219642639,
0.21496672928333282,
0.25148341059684753,
-0.4624565541744232,
0.06090991944074631,
-0.047446925193071365,
0.08963349461555481,
0.056103743612766266,
-0.17621761560440063,
0.15567219257354736,
-0.3661656975746155,
0.1919245719909668,
0.22003190219402313,
0.13105632364749908,
0.12395581603050232,
0.006359182298183441,
-0.1741032898426056,
-0.4328387975692749,
-0.05713364854454994,
-0.003151094540953636,
-0.17406578361988068,
0.06142589449882507,
-0.027515143156051636,
0.03309585899114609,
0.450761616230011,
0.19994162023067474,
0.13716405630111694,
0.05304725468158722,
-0.35818353295326233,
-0.0019725821912288666,
-0.07037445157766342,
0.22846995294094086,
0.37356749176979065,
0.17278516292572021,
0.10336099565029144,
0.12230724096298218,
0.0013322182931005955,
-0.11208212375640869,
0.5135263204574585,
0.20373933017253876,
-0.07336006313562393,
0.16805925965309143,
-0.16112597286701202,
0.043305229395627975,
0.09693235903978348,
0.3145711123943329,
0.04369479417800903,
0.09031137824058533,
-0.583757758140564,
0.023280629888176918,
-0.7559526562690735,
-0.07154323160648346,
-0.5670561194419861,
-0.5751727819442749,
-0.28277477622032166,
-0.36797991394996643,
-0.20563608407974243,
-0.12453311681747437,
-0.11891402304172516,
0.3868119716644287,
-0.004846157506108284,
0.006813377141952515,
-0.24862854182720184,
0.3846892714500427,
0.00793980062007904,
-0.10841655731201172,
-0.3272748589515686,
0.01288718730211258,
0.35019323229789734,
0.27456721663475037,
0.23899531364440918,
-0.3492676019668579,
-0.1428806483745575,
-0.07183834165334702,
-0.15452034771442413,
0.17069146037101746,
-0.07892593741416931,
0.673874020576477,
0.178605318069458,
0.09538324922323227,
-0.04465373605489731,
-0.16199038922786713,
0.3747262954711914,
-0.05581776797771454,
-0.036645010113716125,
-0.04054640606045723,
0.1725829392671585,
-0.12168503552675247,
-0.1645461469888687,
-0.6504446268081665,
-0.3376524746417999,
-0.32306966185569763,
-0.0408857986330986,
-0.07467019557952881,
-0.15459978580474854,
0.5279179215431213,
0.2512107491493225,
0.08363310992717743,
0.04977721348404884,
0.14556308090686798,
-0.22270117700099945,
-0.16553735733032227,
0.36445364356040955,
-0.17029321193695068,
-0.3224066495895386,
0.3612534999847412,
-0.07487074285745621,
0.1324881911277771,
0.15828867256641388,
-0.33084356784820557,
0.33999568223953247,
-0.036945052444934845,
-0.1398659497499466,
0.3374452292919159,
0.37157371640205383,
0.27939435839653015,
-0.021073242649435997,
0.05307874083518982,
-0.2603599727153778,
-0.20030668377876282,
-0.17272549867630005,
-0.1550193727016449,
0.39943501353263855,
0.10851868242025375,
0.17075932025909424,
-0.027346597984433174,
0.9388051629066467,
-0.11811159551143646,
0.18395912647247314,
0.019419517368078232,
-0.19037045538425446,
0.325063556432724,
-0.009924821555614471,
-0.43417179584503174,
0.10046275705099106,
-0.2571185827255249,
0.1655239760875702,
0.22723114490509033,
0.0280170701444149,
0.3272710144519806,
-0.2950637936592102,
-0.023362183943390846,
-0.21312391757965088,
-0.4798039197921753,
0.04427534341812134,
-0.22538748383522034,
0.322040855884552,
0.05146099254488945,
0.10075104981660843,
0.0076788030564785,
-0.09480444341897964,
0.0691351592540741,
0.43094170093536377,
0.06703168153762817,
0.18885408341884613,
0.2367904633283615,
-0.007177212741225958,
-0.12094654887914658,
0.05422735586762428,
0.0013194757048040628,
0.5461844205856323,
-0.10624537616968155,
-0.15037187933921814,
-0.14700955152511597,
0.012050649151206017,
0.5074642896652222,
-0.12106860429048538,
0.22583599388599396,
0.17205695807933807,
-0.2939855456352234,
-0.364592969417572,
-0.316438764333725,
-0.14166894555091858,
-0.5327537059783936,
-0.05773759260773659,
-0.0022816136479377747,
-0.022606223821640015,
-0.43538743257522583,
0.28979986906051636,
0.22957029938697815,
-0.4483092725276947,
0.20060621201992035,
-0.35616520047187805,
-0.12757381796836853,
-0.07775766402482986,
-0.15673121809959412,
0.22646711766719818,
0.031855374574661255,
-0.10850328952074051,
0.2622234523296356,
-0.12573136389255524,
-0.1466699242591858,
0.2622632384300232,
-0.017333712428808212,
0.23439231514930725,
0.20498451590538025,
0.40193971991539,
0.1222284659743309,
0.5293315649032593,
0.46726542711257935,
0.6461992859840393,
-0.09881739318370819,
-0.5135331153869629,
0.026900608092546463,
-0.20840442180633545,
0.4096672534942627,
0.3316155672073364,
-0.2055744230747223,
-0.12933069467544556,
0.11903786659240723,
-0.12370742857456207,
-0.5832421183586121,
0.24719025194644928,
0.35577136278152466,
0.11152482777833939,
-0.20093762874603271,
-0.30115512013435364,
0.20832961797714233,
0.12632037699222565,
0.06110289692878723,
0.24441328644752502,
0.17742007970809937,
-0.4406980574131012,
-0.11616729944944382,
0.20605731010437012,
0.8154700398445129,
0.246693953871727,
0.017017967998981476,
0.13935460150241852,
-0.4339964985847473,
0.23356319963932037,
0.15924450755119324,
-0.08763224631547928,
-0.21448396146297455,
-0.43394771218299866,
-0.08793642371892929,
-0.19620443880558014,
0.26512202620506287,
0.08203248679637909,
-0.08901932090520859,
0.04652346670627594,
-0.22793668508529663,
0.061770178377628326,
0.17248639464378357,
-0.09630930423736572,
-0.09006939083337784,
-0.22552341222763062,
-0.001608164981007576,
0.11566014587879181,
-0.06203398108482361,
0.12370648980140686,
-0.12599998712539673,
-0.025953400880098343,
-0.07149823009967804,
0.058498553931713104,
-0.5730494260787964,
-0.008596044033765793,
-0.1306045949459076,
-0.07725796848535538,
0.18396687507629395,
-0.07763078808784485,
0.5874055624008179,
0.07642822712659836,
0.17918957769870758,
0.2012234479188919,
-0.2759256660938263,
0.2019711136817932,
-0.5075655579566956,
0.1636289358139038,
-0.0666513442993164,
0.211107075214386,
0.6531826257705688,
-0.051881447434425354,
-0.14694635570049286,
-0.026125334203243256,
-0.1032489463686943,
0.33916985988616943,
-0.3153528869152069,
-0.11236399412155151,
0.22842705249786377,
-0.22996801137924194,
-0.0323820561170578,
0.03464174270629883,
0.3244761824607849,
-0.24348761141300201,
0.12966224551200867,
-0.01097036898136139,
-0.10206540673971176,
0.2875176966190338,
0.002781875431537628,
-0.08584138005971909,
-0.07433541119098663,
0.3155536651611328,
-0.297522634267807,
0.13235238194465637,
0.3239209055900574,
0.3399193286895752,
-0.12494855374097824,
-0.13763222098350525,
0.47619330883026123,
0.16786210238933563,
-0.5413563847541809,
0.19324959814548492,
0.04175850749015808,
0.11477489769458771,
0.01111743226647377,
0.6400426626205444,
0.3615090250968933,
-0.23147273063659668,
-0.013957113027572632,
-0.44179776310920715,
-0.0516519621014595,
0.2550310492515564,
-0.1757509559392929,
-0.005976539105176926,
-0.2669437527656555,
0.2744447886943817,
0.12208646535873413,
0.11563710123300552,
-0.25851327180862427,
0.04736126959323883,
0.013036241754889488,
0.01878255419433117,
-0.23715326189994812,
0.009301278740167618,
0.04300069063901901,
-0.1545262336730957,
-0.025348851457238197,
-0.10343950986862183,
-0.25990626215934753,
-0.10439512878656387,
-0.5060081481933594,
0.17391298711299896,
-0.10195521265268326,
-0.2104969471693039,
0.1814521849155426,
-0.04063587263226509,
0.03360120952129364,
-0.15735001862049103,
0.09721265733242035,
0.4553947150707245,
-0.172410786151886,
0.47673720121383667,
0.1940101534128189,
0.18402555584907532,
-0.21986567974090576,
-0.03859834372997284,
0.31380465626716614,
0.4856603741645813,
0.13132140040397644,
0.03933178633451462,
0.24316903948783875,
0.13422049582004547,
-0.2972838580608368,
0.06013866886496544,
-0.05986186861991882,
-0.029719442129135132,
0.5461809039115906,
-0.1630955934524536,
0.20638462901115417,
0.1221066415309906,
0.3173108696937561,
0.2642144560813904,
-0.1483483463525772,
0.1158595085144043,
0.34578341245651245,
0.11368387937545776,
-0.4957128167152405,
0.07479306310415268,
0.16925521194934845,
0.07606491446495056,
-0.03773697093129158,
0.17402595281600952,
0.24999123811721802,
-0.17671169340610504,
-0.14519071578979492,
0.19621780514717102,
0.21299637854099274,
-0.21619394421577454,
0.2977752089500427,
0.49151232838630676,
-0.15247182548046112,
0.3638934791088104,
0.175674706697464,
-0.025166481733322144,
0.03290174901485443,
0.14799386262893677,
-0.08112313598394394,
0.3338063955307007,
-0.11396507173776627,
0.1606799066066742,
0.025056760758161545,
-0.3701658248901367,
0.08770287036895752,
-0.10646122694015503,
-0.41599559783935547,
0.06982224434614182,
-0.23473605513572693,
0.36669737100601196,
-0.1733561009168625,
-0.09162770211696625,
-0.14420902729034424,
0.06683584302663803,
-0.1858101785182953,
-0.2469840943813324,
-0.17110085487365723,
-0.21380645036697388,
-0.39024055004119873,
0.01072511076927185,
0.05892116576433182,
-0.23671288788318634,
0.08354587107896805,
0.2314978390932083,
-0.18254633247852325,
-0.11961403489112854,
-0.07911600172519684,
0.027556199580430984,
0.0007437169551849365,
-0.26460227370262146,
0.040952764451503754,
0.22417336702346802,
-0.13819091022014618,
0.24909894168376923,
0.1927623599767685,
0.22077856957912445,
0.21355050802230835,
-0.07943570613861084,
-0.20634955167770386,
0.03799901902675629,
0.045068658888339996,
-0.04701187461614609,
0.4287573993206024,
0.04318993538618088,
0.04962373524904251,
0.2563808858394623,
0.11979520320892334,
-0.09133539348840714,
0.139755517244339,
0.09634563326835632,
0.01288895308971405,
-0.593684732913971,
0.4025002717971802,
-0.12057603895664215,
0.17316299676895142,
-0.05936884135007858,
0.13340821862220764,
-0.1630817949771881,
0.18992774188518524,
0.4988209903240204,
0.038771893829107285,
0.20025166869163513,
0.003369429614394903,
0.045624151825904846,
0.2813276946544647,
0.5514607429504395,
0.2802329957485199,
-0.11532328277826309,
-0.20742367208003998,
-0.06597040593624115,
-0.6322753429412842,
-0.10627550631761551,
0.19200049340724945,
0.15100231766700745,
0.10688456147909164,
-0.17021359503269196,
0.15215787291526794,
0.273369699716568,
0.1472194492816925,
0.19663871824741364,
-0.07397733628749847,
0.05007738620042801,
-0.22222286462783813,
-0.3770090341567993,
-0.12594424188137054,
0.3161664605140686,
-0.04472588747739792,
-0.0861368328332901,
-0.10424059629440308,
-0.23731866478919983,
-0.09869130700826645,
-0.17895296216011047,
-0.2129915952682495,
0.20259977877140045,
0.3130880892276764,
-0.01143994927406311,
0.1916135996580124,
0.16662733256816864,
0.02108132466673851,
0.10859517008066177,
-0.47368907928466797,
-0.3206915259361267,
0.0379624180495739,
0.4428352415561676,
-0.1413150131702423,
0.2129906862974167,
-0.13730701804161072,
-0.2604801058769226,
-0.4890027642250061,
-0.15689298510551453,
0.04846600443124771,
0.09623298794031143,
-0.3979586362838745,
0.16616931557655334,
-0.050007980316877365,
0.021750329062342644,
0.39598873257637024,
0.419102281332016,
-0.31236156821250916,
0.1705186367034912,
-0.17492333054542542,
-0.2801608443260193,
0.15566763281822205,
-0.20239979028701782,
-0.3638135492801666,
-0.4535456597805023,
0.15897470712661743,
-0.3804735541343689,
0.07204068452119827,
-0.42522698640823364,
0.06127815693616867,
0.3737093210220337,
-0.011362455785274506,
-0.17405818402767181,
-0.010393993929028511,
0.08788886666297913,
0.026545587927103043,
-0.048095885664224625,
0.2666228115558624,
0.23637953400611877,
-0.02699797786772251,
0.10141907632350922,
0.015380904078483582
] |
https://github.com/huggingface/datasets/issues/4352 | When using `dataset.map()` if passed `Features` types do not match what is returned from the mapped function, execution does not except in an obvious way | Hi ! Thanks for reporting :) `datasets` usually returns a `pa.lib.ArrowInvalid` error if the feature types don't match.
It would be awesome if we had a way to reproduce the `OverflowError` in this case, to better understand what happened and be able to provide the best error message | ## Describe the bug
Recently I was trying to using `.map()` to preprocess a dataset. I defined the expected Features and passed them into `.map()` like `dataset.map(preprocess_data, features=features)`. My expected `Features` keys matched what came out of `preprocess_data`, but the types i had defined for them did not match the types that came back. Because of this, i ended up in tracebacks deep inside arrow_dataset.py and arrow_writer.py with exceptions that [did not make clear what the problem was](https://github.com/huggingface/datasets/issues/4349). In short i ended up with overflows and the OS killing processes when Arrow was attempting to write. It wasn't until I dug into `def write_batch` and the loop that loops over cols that I figured out what was going on.
It seems like `.map()` could set a boolean that it's checked that for at least 1 instance from the dataset, the returned data's types match the types provided by the `features` param and error out with a clear exception if they don't. This would make the cause of the issue much more understandable and save people time. This could be construed as a feature but it feels more like a bug to me.
## Steps to reproduce the bug
I don't have explicit code to repro the bug, but ill show an example
Code prior to the fix:
```python
def preprocess(examples):
# returns an encoded data dict with keys that match the features, but the types do not match
...
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['audit_type'].unique().tolist()
features = Features({
'image': Array3D(dtype="uint8", shape=(3, 224, 224))),
'input_ids': Sequence(feature=Value(dtype='int64'))),
'attention_mask': Sequence(Value(dtype='int64'))),
'token_type_ids': Sequence(Value(dtype='int64'))),
'bbox': Array2D(dtype="int64", shape=(512, 4))),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names)
```
The Features set that fixed it:
```python
features = Features({
'image': Sequence(Array3D(dtype="uint8", shape=(3, 224, 224))),
'input_ids': Sequence(Sequence(feature=Value(dtype='int64'))),
'attention_mask': Sequence(Sequence(Value(dtype='int64'))),
'token_type_ids': Sequence(Sequence(Value(dtype='int64'))),
'bbox': Sequence(Array2D(dtype="int64", shape=(512, 4))),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
```
The difference between my original code (which was based on documentation) and the working code is the addition of the `Sequence(...)` to 4/5 features as I am working with paginated data and the doc examples are not.
## Expected results
Dataset.map() attempts to validate the data types for each Feature on the first iteration and errors out if they are not validated.
## Actual results
Specify the actual results or traceback.
Based on the value of `writer_batch_size`, execution errors out when Arrow attempts to write because the types do not match, though its error messages dont make this obvious
Example errors:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
datasets version: 2.1.0
Platform: macOS-12.2.1-arm64-arm-64bit
Python version: 3.9.12
PyArrow version: 6.0.1
Pandas version: 1.4.2
| 48 | When using `dataset.map()` if passed `Features` types do not match what is returned from the mapped function, execution does not except in an obvious way
## Describe the bug
Recently I was trying to using `.map()` to preprocess a dataset. I defined the expected Features and passed them into `.map()` like `dataset.map(preprocess_data, features=features)`. My expected `Features` keys matched what came out of `preprocess_data`, but the types i had defined for them did not match the types that came back. Because of this, i ended up in tracebacks deep inside arrow_dataset.py and arrow_writer.py with exceptions that [did not make clear what the problem was](https://github.com/huggingface/datasets/issues/4349). In short i ended up with overflows and the OS killing processes when Arrow was attempting to write. It wasn't until I dug into `def write_batch` and the loop that loops over cols that I figured out what was going on.
It seems like `.map()` could set a boolean that it's checked that for at least 1 instance from the dataset, the returned data's types match the types provided by the `features` param and error out with a clear exception if they don't. This would make the cause of the issue much more understandable and save people time. This could be construed as a feature but it feels more like a bug to me.
## Steps to reproduce the bug
I don't have explicit code to repro the bug, but ill show an example
Code prior to the fix:
```python
def preprocess(examples):
# returns an encoded data dict with keys that match the features, but the types do not match
...
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['audit_type'].unique().tolist()
features = Features({
'image': Array3D(dtype="uint8", shape=(3, 224, 224))),
'input_ids': Sequence(feature=Value(dtype='int64'))),
'attention_mask': Sequence(Value(dtype='int64'))),
'token_type_ids': Sequence(Value(dtype='int64'))),
'bbox': Array2D(dtype="int64", shape=(512, 4))),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names)
```
The Features set that fixed it:
```python
features = Features({
'image': Sequence(Array3D(dtype="uint8", shape=(3, 224, 224))),
'input_ids': Sequence(Sequence(feature=Value(dtype='int64'))),
'attention_mask': Sequence(Sequence(Value(dtype='int64'))),
'token_type_ids': Sequence(Sequence(Value(dtype='int64'))),
'bbox': Sequence(Array2D(dtype="int64", shape=(512, 4))),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
```
The difference between my original code (which was based on documentation) and the working code is the addition of the `Sequence(...)` to 4/5 features as I am working with paginated data and the doc examples are not.
## Expected results
Dataset.map() attempts to validate the data types for each Feature on the first iteration and errors out if they are not validated.
## Actual results
Specify the actual results or traceback.
Based on the value of `writer_batch_size`, execution errors out when Arrow attempts to write because the types do not match, though its error messages dont make this obvious
Example errors:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
datasets version: 2.1.0
Platform: macOS-12.2.1-arm64-arm-64bit
Python version: 3.9.12
PyArrow version: 6.0.1
Pandas version: 1.4.2
Hi ! Thanks for reporting :) `datasets` usually returns a `pa.lib.ArrowInvalid` error if the feature types don't match.
It would be awesome if we had a way to reproduce the `OverflowError` in this case, to better understand what happened and be able to provide the best error message | [
-0.01542741060256958,
-0.27166733145713806,
-0.038212601095438004,
0.40207791328430176,
0.07682394236326218,
-0.22450953722000122,
0.20396871864795685,
0.42125988006591797,
0.23055216670036316,
-0.18846093118190765,
0.3516477644443512,
0.676310658454895,
-0.04513915255665779,
0.24678631126880646,
-0.26714593172073364,
0.08216869831085205,
0.26048025488853455,
-0.06135182082653046,
-0.22164592146873474,
-0.12264864891767502,
-0.4214105010032654,
0.1797156184911728,
-0.21745404601097107,
0.13804394006729126,
-0.15566739439964294,
-0.17204292118549347,
0.2900170683860779,
-0.10662462562322617,
-0.08844245970249176,
-0.19645945727825165,
0.23012717068195343,
-0.22298622131347656,
-0.15267358720302582,
0.49475252628326416,
-0.00012219874770380557,
-0.03270211070775986,
0.25318285822868347,
-0.014425912871956825,
-0.057495005428791046,
-0.12178139388561249,
-0.447079062461853,
-0.18042339384555817,
0.0566321462392807,
-0.3089342415332794,
0.34894129633903503,
-0.20303168892860413,
-0.19271552562713623,
-0.5170692205429077,
0.24331684410572052,
0.22580429911613464,
0.11813630163669586,
0.22284218668937683,
0.07160159945487976,
0.2678671181201935,
0.27991846203804016,
0.508924126625061,
-0.23004375398159027,
-0.044944729655981064,
0.22425797581672668,
-0.2612457871437073,
0.09180432558059692,
0.25678303837776184,
-0.32193443179130554,
0.15185703337192535,
0.21585115790367126,
-0.17257584631443024,
0.1776738166809082,
-0.35148510336875916,
0.16785359382629395,
0.25053128600120544,
0.04794575273990631,
-0.07693462818861008,
-0.38519924879074097,
-0.46646061539649963,
-0.2894834280014038,
0.01746531017124653,
0.2953340709209442,
-0.14889444410800934,
-0.2431776523590088,
-0.17136837542057037,
-0.3597147762775421,
0.21886667609214783,
0.20562300086021423,
0.19579441845417023,
-0.04027169197797775,
0.07757718861103058,
-0.14718633890151978,
0.35229527950286865,
-0.12380664050579071,
-0.04944917559623718,
0.2429044246673584,
-0.4015972316265106,
-0.11581218242645264,
0.26477211713790894,
-0.16998039186000824,
0.055884189903736115,
0.2769191563129425,
-0.13307136297225952,
0.40453872084617615,
-0.23367755115032196,
0.1371024250984192,
0.059469565749168396,
-0.2898268401622772,
0.15535253286361694,
0.5823197960853577,
0.017383387312293053,
0.20320653915405273,
0.5008635520935059,
-0.013718880712985992,
-0.17339655756950378,
-0.24210359156131744,
0.065312460064888,
0.2312191277742386,
-0.19743221998214722,
0.5123171210289001,
0.060834310948848724,
0.6413848996162415,
-0.11043591797351837,
-0.07744183391332626,
0.28310737013816833,
-0.42932412028312683,
-0.08339466899633408,
-0.02157074213027954,
0.09034743905067444,
0.11123867332935333,
0.24203860759735107,
0.1533208042383194,
0.15311966836452484,
-0.04470071941614151,
0.2137880176305771,
-0.07743912935256958,
-0.4748871922492981,
-0.3383391499519348,
-0.23475955426692963,
0.03125269338488579,
0.11683166027069092,
0.1394898146390915,
0.1120234951376915,
-0.0864715427160263,
-0.290242075920105,
0.08204147219657898,
-0.2516825497150421,
0.5740806460380554,
0.1538495421409607,
-0.3987724184989929,
0.5148239135742188,
0.1619735062122345,
0.11545133590698242,
-0.18714459240436554,
0.3627646565437317,
-0.37904563546180725,
-0.017230141907930374,
0.4185172915458679,
0.09436957538127899,
-0.14050868153572083,
0.26257580518722534,
-0.3001094162464142,
0.04833945259451866,
0.422454297542572,
-0.20187842845916748,
0.262142539024353,
-0.3188623785972595,
-0.09037281572818756,
-0.467374712228775,
-0.011800036765635014,
0.42421644926071167,
-0.36972272396087646,
0.09390497207641602,
-0.12244600802659988,
0.15293772518634796,
0.16034585237503052,
0.3592385947704315,
-0.08011756837368011,
0.13326719403266907,
-0.2775319218635559,
0.006845615804195404,
0.26732003688812256,
0.02580781653523445,
-0.31842201948165894,
0.24772527813911438,
0.20323757827281952,
0.425220251083374,
-0.11771171540021896,
-0.012742863968014717,
0.24638180434703827,
-0.10129067301750183,
0.15264083445072174,
0.3514275550842285,
-0.17781446874141693,
0.16389307379722595,
-0.06347465515136719,
0.06284305453300476,
0.14624446630477905,
-0.36456868052482605,
0.10207448154687881,
0.027627896517515182,
0.028622522950172424,
-0.6266319751739502,
0.190377876162529,
0.06947976350784302,
0.08425213396549225,
-0.08170027285814285,
0.2223586142063141,
-0.09386371076107025,
0.032814837992191315,
-0.2374151051044464,
-0.3714837431907654,
0.22906136512756348,
-0.21364572644233704,
-0.43132326006889343,
-0.2748379707336426,
-0.08461001515388489,
-0.011801805347204208,
0.35564035177230835,
-0.07500952482223511,
0.1319110095500946,
0.01075514405965805,
0.016750313341617584,
-0.30329155921936035,
0.10270088911056519,
-0.0801619216799736,
-0.17635264992713928,
-0.06713905185461044,
-0.11617984622716904,
-0.01951748877763748,
0.004392735660076141,
0.20974642038345337,
-0.0914091169834137,
-0.3605959713459015,
0.10512429475784302,
0.11933599412441254,
0.11029571294784546,
-0.29917770624160767,
0.20880553126335144,
0.08938443660736084,
0.07561717182397842,
-0.21474528312683105,
0.0564689040184021,
-0.0780024304986,
-0.2608487904071808,
-0.120320625603199,
0.388533353805542,
0.2400817573070526,
-0.15996119379997253,
0.1217249184846878,
0.20250622928142548,
0.13539822399616241,
0.4701404571533203,
-0.14375808835029602,
0.19835242629051208,
0.005315424874424934,
0.1920294612646103,
-0.3332021236419678,
-0.24120837450027466,
-0.1783941239118576,
-0.00579332560300827,
0.050074879080057144,
0.19307969510555267,
-0.12095612287521362,
0.09302403032779694,
0.7217909693717957,
0.05858960375189781,
0.3236067295074463,
-0.1629180610179901,
-0.22685381770133972,
0.2617557942867279,
0.16980384290218353,
0.18375767767429352,
0.3775627613067627,
0.011702137999236584,
-0.0162077434360981,
-0.3919249176979065,
-0.13280761241912842,
0.023475762456655502,
0.17508041858673096,
0.10986492037773132,
0.23833857476711273,
0.09960909932851791,
0.18598634004592896,
0.0012339875102043152,
-0.1078173816204071,
0.08596861362457275,
0.07362552732229233,
-0.23051899671554565,
-0.35276171565055847,
0.15911951661109924,
-0.22461305558681488,
0.017957065254449844,
-0.017301548272371292,
-0.24579544365406036,
-0.07636679708957672,
-0.26381540298461914,
-0.02161252871155739,
0.16678069531917572,
-0.3104291558265686,
0.06730019301176071,
-0.18679150938987732,
-0.031228944659233093,
0.16864806413650513,
-0.6947468519210815,
-0.026911847293376923,
-0.19042222201824188,
-0.05373365432024002,
-0.026694409549236298,
0.30563104152679443,
-0.21494869887828827,
0.4419732987880707,
0.22008062899112701,
-0.15674300491809845,
-0.45471999049186707,
-0.031770382076501846,
-0.05356910824775696,
-0.25272637605667114,
0.15874092280864716,
0.10580416023731232,
0.13736507296562195,
-0.20371820032596588,
0.0627288892865181,
0.3226574659347534,
-0.34406355023384094,
-0.2764991223812103,
0.1724003255367279,
0.20801599323749542,
-0.1893412321805954,
-0.19307859241962433,
0.03977912291884422,
0.22529259324073792,
-0.32307302951812744,
0.36687618494033813,
-0.0919136255979538,
0.27629953622817993,
0.13865166902542114,
0.3917214274406433,
0.04507499560713768,
-0.06798658519983292,
-0.1868888884782791,
-0.23598061501979828,
0.036194998770952225,
0.297611802816391,
0.07520759850740433,
-0.03059418871998787,
0.040703702718019485,
-0.02664700336754322,
-0.21654948592185974,
0.5186001658439636,
-0.2125479131937027,
-0.13164961338043213,
-0.17306670546531677,
0.43818458914756775,
0.20239445567131042,
0.12080232799053192,
0.283687561750412,
0.3576371967792511,
-0.02665146254003048,
-0.39743301272392273,
-0.372233510017395,
0.2709449529647827,
0.22892668843269348,
0.03808755427598953,
0.281155526638031,
0.15620268881320953,
-0.08973123133182526,
0.5712617635726929,
0.13701766729354858,
-0.16993021965026855,
0.30261772871017456,
0.10763420909643173,
0.3212425112724304,
-0.15345129370689392,
-0.25016817450523376,
-0.21691522002220154,
-0.19519957900047302,
-0.1101963147521019,
-0.14360131323337555,
-0.1361873745918274,
-0.381785124540329,
0.150198295712471,
0.1723511517047882,
-0.36560678482055664,
-0.3724226653575897,
0.3027971386909485,
-0.4832286238670349,
0.14871950447559357,
-0.04315769672393799,
0.23984041810035706,
-0.3452710211277008,
0.0652838945388794,
0.06586350500583649,
-0.2932358384132385,
0.4898504316806793,
-0.09784423559904099,
-0.4328017234802246,
-0.3473905324935913,
-0.258163720369339,
0.2897401452064514,
0.010731026530265808,
0.44841882586479187,
-0.10494980216026306,
-0.13614404201507568,
-0.0804678201675415,
0.21915772557258606,
0.6346836686134338,
-0.37650883197784424,
0.015060748904943466,
-0.01328243501484394,
0.00781412422657013,
-0.4613932967185974,
-0.07624396681785583,
-0.19708089530467987,
0.5989090800285339,
-0.21784737706184387,
0.3432038426399231,
-0.1490941047668457,
0.1355224847793579,
-0.0798751562833786,
0.1276385486125946,
-0.004271727055311203,
-0.14957597851753235,
-0.16252021491527557,
-0.01934446394443512,
-0.21042074263095856,
0.21381938457489014,
0.5802378058433533,
-0.137181356549263,
-0.054412201046943665,
-0.6709996461868286,
-0.37943416833877563,
0.09750813990831375,
0.21262407302856445,
-0.026684904471039772,
0.49709901213645935,
-0.11285669356584549,
-0.03378267213702202,
-0.0076325275003910065,
0.2794138193130493,
0.09262952208518982,
0.5620912909507751,
-0.21749672293663025,
-0.1409536451101303,
-0.05699269473552704,
-0.0455046147108078,
0.11328119039535522,
0.4681198298931122,
-0.10902675986289978,
0.13859401643276215,
0.05968599021434784,
-0.08951613306999207,
-0.08984711021184921,
-0.06524510681629181,
0.5051771402359009,
0.24872630834579468,
-0.4003407061100006,
-0.3388911187648773,
0.19306915998458862,
0.09047871828079224,
-0.2582333981990814,
0.7719440460205078,
0.07365642488002777,
-0.3612009286880493,
0.5119302272796631,
0.10081177204847336,
0.7488675713539124,
-0.18101359903812408,
-0.00924338772892952,
0.04482574760913849,
0.13578614592552185,
0.1866067498922348,
0.3219512701034546,
0.033336661756038666,
-0.15277516841888428,
-0.1504143327474594,
-0.055974408984184265,
-0.2562226355075836,
0.040987998247146606,
0.10081992298364639,
-0.02161199413239956,
0.12199264019727707,
-0.13771498203277588,
0.4695911705493927,
0.0019329031929373741,
-0.18039587140083313,
0.04127172380685806,
-0.12111231684684753,
-0.27459120750427246,
0.05726456642150879,
0.24740459024906158,
-0.03241712227463722,
0.05998025834560394,
-0.14481320977210999,
-0.08601164817810059,
-0.29650717973709106,
-0.37323838472366333,
-0.08136384189128876,
-0.49594876170158386,
0.0666898638010025,
0.17898359894752502,
-0.05554334819316864,
0.10893243551254272,
0.37014368176460266,
0.024312682449817657,
0.15495778620243073,
-0.004202013835310936,
-0.11672759056091309,
0.6450012922286987,
0.24679070711135864,
0.038658156991004944,
-0.2597543001174927,
0.06255541741847992,
0.2504347562789917,
-0.1838361918926239,
0.2250666320323944,
-0.20540718734264374,
-0.23903661966323853,
-0.22318223118782043,
0.31364402174949646,
-0.0320277065038681,
-0.3522886335849762,
-0.3442680835723877,
-0.29248306155204773,
-0.192476287484169,
-0.0632663294672966,
0.01180274598300457,
0.07550787180662155,
0.06095867231488228,
0.5672886967658997,
-0.12736305594444275,
-0.36323127150535583,
-0.005745183676481247,
-0.014722809195518494,
-0.09659562259912491,
0.322587788105011,
0.4037937521934509,
-0.02655775099992752,
0.05448129028081894,
-0.13204824924468994,
0.01647128164768219,
0.36233219504356384,
-0.34361526370048523,
0.2974644601345062,
-0.2990334928035736,
-0.3308435082435608,
-0.13216668367385864,
0.2872627079486847,
-0.019957855343818665,
0.27005788683891296,
-0.3128761351108551,
-0.39224186539649963,
-0.24496261775493622,
0.36562472581863403,
-0.0057474300265312195,
0.2455216944217682,
-0.08319804072380066,
-0.07248459756374359,
0.056992463767528534,
0.045563291758298874,
-0.2002900093793869,
-0.22416314482688904,
0.11047843843698502,
0.29636427760124207,
-0.060119614005088806,
0.4114746153354645,
0.23878106474876404,
-0.25449419021606445,
0.011003406718373299,
0.1508236825466156,
-0.1605156660079956,
-0.14838004112243652,
-0.007344299927353859,
0.22042328119277954,
0.05689533054828644,
-0.11731559783220291,
0.14310462772846222,
-0.4449560046195984,
0.12247548997402191,
-0.4456949234008789,
-0.0282149575650692,
0.19917616248130798,
-0.21856500208377838,
-0.1511451005935669,
0.22374120354652405,
0.03334113955497742,
-0.018104365095496178,
0.2826322615146637,
-0.2282746434211731,
-0.2201898843050003,
-0.18946579098701477,
0.12687133252620697,
0.2675676643848419,
-0.039370130747556686,
0.04418514296412468,
-0.07285451143980026,
-0.09882056713104248,
0.450820654630661,
0.41322052478790283,
-0.019153796136379242,
-0.14887872338294983,
0.2046571522951126,
0.19075363874435425,
0.3420760929584503,
-0.17933523654937744,
-0.036721862852573395,
0.016660984605550766,
0.10713820904493332,
-0.07816649228334427,
-0.14114299416542053,
0.3895890712738037,
0.074466273188591,
0.2623485028743744,
0.38382065296173096,
0.027095716446638107,
-0.13039225339889526,
-0.11005780100822449,
0.07869990915060043,
-0.19158510863780975,
0.06777330487966537,
0.1236526370048523,
0.6467748284339905,
0.16728292405605316,
0.13972216844558716,
0.3026452362537384,
-0.04824290797114372,
0.27345871925354004,
0.14792108535766602,
0.27099981904029846,
0.1037180945277214,
0.4013616740703583,
0.041963957250118256,
0.18369552493095398,
-0.4892185628414154,
0.3691166639328003,
-0.07972748577594757,
-0.2244047224521637,
0.5675984025001526,
0.36718857288360596,
0.06809207051992416,
-0.2966703772544861,
-0.259188175201416,
-0.16603481769561768,
-0.14655527472496033,
-0.2303711175918579,
-0.05344262719154358,
-0.06800924241542816,
-0.14853058755397797,
0.1066109836101532,
-0.2552616596221924,
-0.1682169884443283,
-0.12860079109668732,
0.7107400894165039,
-0.02358347922563553,
0.0006729885935783386,
-0.15250006318092346,
-0.03934045135974884,
-0.024358682334423065,
0.22766008973121643,
-0.24434395134449005,
0.23850303888320923,
-0.2551742196083069,
-0.08125711977481842,
-0.1187269538640976,
0.23420892655849457,
0.3374895453453064,
0.5659930109977722,
-0.21200329065322876,
0.3045048415660858,
0.14896588027477264,
-0.0921098068356514,
-0.1325441598892212,
0.24814054369926453,
0.007279351353645325,
-0.005638744682073593,
0.12042661011219025,
0.09411043673753738,
-0.03650903329253197,
-0.04045765474438667,
-0.09230072796344757,
0.2610415816307068,
-0.018859881907701492,
0.2844519317150116,
-0.16363489627838135,
-0.15890705585479736,
-0.03752356767654419,
-0.00030726194381713867,
-0.11212599277496338,
-0.38426515460014343,
0.5338490605354309,
-0.02486044354736805,
0.20852357149124146,
-0.058158330619335175,
0.014826897531747818,
-0.10480748116970062,
0.27189210057258606,
0.32181426882743835,
0.2687360942363739,
-0.2993440628051758,
0.30024439096450806,
-0.36036545038223267,
0.24018165469169617,
-0.24657562375068665,
0.05401930212974548,
0.21306295692920685,
0.09094816446304321,
0.21222445368766785,
0.007841045036911964,
0.526478111743927,
-0.17664532363414764,
0.030792847275733948,
0.37619030475616455,
-0.16571144759655,
-0.3281031847000122,
-0.28664612770080566,
-0.09300455451011658,
0.2167193740606308,
-0.5763651728630066,
0.3635091185569763,
0.0007886048406362534,
-0.01784275844693184,
0.09473853558301926,
-0.25373268127441406,
0.012059241533279419,
-0.1153845489025116,
0.5345919728279114,
0.38868004083633423,
0.12179239094257355,
-0.10597756505012512,
-0.20106415450572968,
-0.13105323910713196,
-0.10843958705663681,
-0.20032212138175964,
0.31158965826034546,
-0.13361194729804993,
0.37529146671295166,
-0.3629946708679199,
0.030882716178894043,
-0.1357342153787613,
-0.01217892486602068,
0.02570139616727829,
-0.29685622453689575,
-0.21683964133262634,
0.13407674431800842,
-0.3402169644832611,
0.02201732248067856,
-0.05093884840607643,
0.21810072660446167,
-0.11736656725406647,
0.11208614706993103,
-0.040967147797346115,
-0.24223411083221436,
0.42385435104370117,
-0.3262568414211273,
-0.32076236605644226,
-0.03307206183671951,
0.1605159342288971,
0.2704108655452728,
-0.1734382063150406,
-0.5823544263839722,
-0.4169694781303406,
0.3108637034893036,
-0.10342366248369217,
-0.08041825890541077,
-0.2932642996311188,
-0.4243089556694031,
0.16746646165847778,
-0.20162709057331085,
0.2766415476799011,
-0.19342240691184998,
-0.1163293644785881,
0.3662242591381073,
-0.24635213613510132
] |
https://github.com/huggingface/datasets/issues/4351 | Add optional progress bar for .save_to_disk(..) and .load_from_disk(..) when working with remote filesystems | Hi! I like this idea. For consistency with `load_dataset`, we can use `fsspec`'s `TqdmCallback` in `.load_from_disk` to monitor the number of bytes downloaded, and in `.save_to_disk`, we can track the number of saved shards for consistency with `push_to_hub` (after we implement https://github.com/huggingface/datasets/issues/4196). | **Is your feature request related to a problem? Please describe.**
When working with large datasets stored on remote filesystems(such as s3), the process of uploading a dataset could take really long time. For instance: I was uploading a re-processed version of wmt17 en-ru to my s3 bucket and it took like 35 minutes(and that's given that I have a fiber optic connection). The only output during that process was a progress bar for flattening indices and then ~35 minutes of complete silence.
**Describe the solution you'd like**
I want to be able to enable a progress bar when calling .save_to_disk(..) and .load_from_disk(..), it would track either amount of bytes sent/received or amount of records written/loaded, and will give some ETA. Basically just tqdm.
**Describe alternatives you've considered**
- Save dataset to tmp folder at the disk and then upload it using custom wrapper over botocore, which will work with progress bar, like [this](https://alexwlchan.net/2021/04/s3-progress-bars/). | 42 | Add optional progress bar for .save_to_disk(..) and .load_from_disk(..) when working with remote filesystems
**Is your feature request related to a problem? Please describe.**
When working with large datasets stored on remote filesystems(such as s3), the process of uploading a dataset could take really long time. For instance: I was uploading a re-processed version of wmt17 en-ru to my s3 bucket and it took like 35 minutes(and that's given that I have a fiber optic connection). The only output during that process was a progress bar for flattening indices and then ~35 minutes of complete silence.
**Describe the solution you'd like**
I want to be able to enable a progress bar when calling .save_to_disk(..) and .load_from_disk(..), it would track either amount of bytes sent/received or amount of records written/loaded, and will give some ETA. Basically just tqdm.
**Describe alternatives you've considered**
- Save dataset to tmp folder at the disk and then upload it using custom wrapper over botocore, which will work with progress bar, like [this](https://alexwlchan.net/2021/04/s3-progress-bars/).
Hi! I like this idea. For consistency with `load_dataset`, we can use `fsspec`'s `TqdmCallback` in `.load_from_disk` to monitor the number of bytes downloaded, and in `.save_to_disk`, we can track the number of saved shards for consistency with `push_to_hub` (after we implement https://github.com/huggingface/datasets/issues/4196). | [
-0.257343590259552,
-0.1386776864528656,
-0.008543659001588821,
-0.2823570966720581,
0.08616878092288971,
-0.21052491664886475,
0.10983265936374664,
-0.08793848752975464,
-0.3601023554801941,
0.39995598793029785,
0.27226927876472473,
0.3882160186767578,
-0.2690257132053375,
0.6326685547828674,
-0.0549129992723465,
0.18864069879055023,
0.06184408441185951,
0.25678420066833496,
-0.07059696316719055,
0.0809817761182785,
-0.149820476770401,
0.07546640187501907,
0.08932586014270782,
-0.5912981033325195,
-0.042324505746364594,
0.18063105642795563,
-0.11927451938390732,
0.1010260134935379,
-0.12097405642271042,
-0.43170294165611267,
0.18393903970718384,
0.4591546058654785,
0.1505170464515686,
0.38863661885261536,
-0.00012396489910315722,
-0.29583826661109924,
0.2018028348684311,
-0.21866264939308167,
-0.5338096022605896,
-0.06234660744667053,
-0.10808538645505905,
-0.62367182970047,
0.18805144727230072,
-0.32549843192100525,
0.13596734404563904,
0.1901499480009079,
-0.010126957669854164,
-0.09857045114040375,
0.22678565979003906,
-0.07676316052675247,
0.04587502405047417,
0.5923205614089966,
-0.49503016471862793,
-0.003200467210263014,
0.43901321291923523,
0.41696304082870483,
-0.3367355763912201,
0.4138912856578827,
0.412898451089859,
0.2170412391424179,
-0.1727645993232727,
0.2538162171840668,
0.04793976992368698,
-0.00010855495929718018,
0.3483727276325226,
0.07238706946372986,
0.20948094129562378,
-0.4015853703022003,
-0.33247119188308716,
0.29095736145973206,
0.6841978430747986,
-0.07633385807275772,
-0.5132709741592407,
-0.46478018164634705,
0.04574037715792656,
-0.3383667469024658,
0.059483252465724945,
-0.21832536160945892,
-0.1429644525051117,
-0.04824875667691231,
-0.4892997443675995,
-0.22032035887241364,
-0.23376357555389404,
0.19200029969215393,
0.07365447282791138,
-0.28905171155929565,
-0.10550574958324432,
-0.039486512541770935,
-0.07216478884220123,
0.11606276035308838,
0.009453958831727505,
-0.2659743130207062,
-0.010258715599775314,
0.098447784781456,
-0.23486410081386566,
-0.39003002643585205,
0.17495059967041016,
-0.1332138180732727,
-0.024953730404376984,
0.6155774593353271,
-0.356730580329895,
-0.057433970272541046,
-0.11651968955993652,
0.1682545244693756,
-0.08449472486972809,
0.07592496275901794,
0.5453355312347412,
-0.33940351009368896,
0.2945882976055145,
-0.1416391134262085,
0.3727521300315857,
-0.05586666613817215,
0.09317935258150101,
-0.13073112070560455,
0.47368353605270386,
0.3560129702091217,
0.048534296452999115,
-0.09438808262348175,
0.13684342801570892,
0.11517436802387238,
0.4146650433540344,
-0.07718227803707123,
0.04588319733738899,
-0.017845548689365387,
0.0927867516875267,
-0.05044388771057129,
-0.20961856842041016,
0.2780505418777466,
0.024794546887278557,
-0.17392894625663757,
0.1334780603647232,
-0.20443934202194214,
-0.0020527467131614685,
0.3804389536380768,
0.3038809299468994,
0.14209681749343872,
-0.036411188542842865,
-0.11926106363534927,
0.16591021418571472,
0.400366872549057,
0.12754639983177185,
-0.25137820839881897,
0.16643863916397095,
0.15923373401165009,
-0.015195684507489204,
0.18592701852321625,
-0.18386918306350708,
0.19100074470043182,
-0.250930517911911,
0.2469376027584076,
0.1659521460533142,
-0.41855284571647644,
-0.32881906628608704,
0.059659987688064575,
-0.5907198190689087,
-0.3840542733669281,
-0.6369209289550781,
0.2815402150154114,
-0.17255598306655884,
-0.05879691243171692,
0.1736549437046051,
0.3488087058067322,
-0.49444815516471863,
-0.12896907329559326,
0.25639641284942627,
0.4883706569671631,
-0.2160099893808365,
-0.09987614303827286,
0.015999814495444298,
-0.23450776934623718,
0.0106210857629776,
0.09377217292785645,
-0.08400331437587738,
0.13240946829319,
-0.08938761800527573,
0.34208792448043823,
0.26532691717147827,
-0.4473259150981903,
-0.17522762715816498,
0.3625432848930359,
-0.14014771580696106,
0.05847226083278656,
0.21641968190670013,
0.2532512843608856,
0.321043998003006,
-0.11811534315347672,
-0.1811113953590393,
0.4447179436683655,
-0.060405097901821136,
-0.03752496838569641,
-0.06699340045452118,
-0.24918200075626373,
-0.09301155805587769,
0.5127271413803101,
0.08921478688716888,
0.12328627705574036,
0.12201427668333054,
-0.5404253005981445,
0.1918450891971588,
-0.07024608552455902,
0.2052169144153595,
0.08192741870880127,
0.7580311298370361,
-0.19169096648693085,
-0.35562244057655334,
-0.1137353703379631,
-0.5029722452163696,
0.3824673891067505,
0.08092620968818665,
0.04919886589050293,
-0.04744657874107361,
-0.10049892961978912,
0.011583216488361359,
-0.2479097843170166,
-0.10121333599090576,
0.3952409625053406,
-0.08365583419799805,
-0.02837473899126053,
0.03414938226342201,
0.2592683434486389,
0.0061977095901966095,
-0.04308772087097168,
-0.030974872410297394,
-0.15229079127311707,
0.2810187041759491,
0.41844040155410767,
0.26326003670692444,
-0.3672686815261841,
-0.04197292402386665,
-0.23072955012321472,
0.14900550246238708,
-0.08318955451250076,
-0.13789185881614685,
0.2701754868030548,
0.050410911440849304,
0.6364105343818665,
0.276689738035202,
0.2982322573661804,
0.08874615281820297,
0.3131128251552582,
-0.20820796489715576,
-0.1876171976327896,
0.024399448186159134,
0.10670145601034164,
-0.27642661333084106,
0.1759006679058075,
-0.08490288257598877,
0.17427140474319458,
-0.1333533227443695,
-0.20061561465263367,
0.12859654426574707,
-0.16632336378097534,
-0.16923393309116364,
-0.0844624787569046,
0.2417987883090973,
0.3402833640575409,
-0.061566781252622604,
-0.25432202219963074,
-0.03530360013246536,
0.18303260207176208,
0.5429512858390808,
-0.022264815866947174,
-0.07988006621599197,
0.19687813520431519,
-0.023346073925495148,
0.10215813666582108,
0.2844894528388977,
0.3468592166900635,
0.5786373615264893,
0.09052674472332001,
0.25976988673210144,
-0.10253959149122238,
0.2074095457792282,
-0.17243798077106476,
0.07175590842962265,
0.04017353430390358,
0.028232736513018608,
0.5384559035301208,
0.1990380585193634,
0.00510739628225565,
-0.27049657702445984,
-0.30462169647216797,
0.06809384375810623,
-0.20013633370399475,
-0.00030079856514930725,
-0.15694603323936462,
0.06353539228439331,
-0.1981402337551117,
0.1043858677148819,
-0.10230167955160141,
-0.18675333261489868,
-0.2814793884754181,
0.1467248648405075,
0.40265345573425293,
-0.24982720613479614,
0.11729071289300919,
0.33835527300834656,
0.32626277208328247,
-0.22378955781459808,
-0.4067138731479645,
-0.207756906747818,
-0.13010798394680023,
0.20746374130249023,
-0.0855504721403122,
0.01876005157828331,
-0.1531444936990738,
0.6922066807746887,
-0.29949334263801575,
0.4344291090965271,
-0.5723611116409302,
-0.1322544515132904,
-0.03483548015356064,
0.08700115978717804,
0.2660740911960602,
-0.017609477043151855,
0.09960590302944183,
0.10867057740688324,
0.259554386138916,
0.2283691167831421,
-0.09773947298526764,
-0.27114138007164,
-0.05711280182003975,
-0.008512497879564762,
-0.06353886425495148,
-0.08623772859573364,
0.2517643868923187,
-0.38774991035461426,
-0.3333190977573395,
0.32241153717041016,
-0.1921442300081253,
-0.03434079885482788,
-0.11764853447675705,
-0.20295102894306183,
0.15242181718349457,
0.008525827899575233,
-0.22137139737606049,
0.009376545436680317,
-0.6199076771736145,
0.5107544660568237,
-0.1294998973608017,
-0.070664182305336,
0.17261353135108948,
0.09731505066156387,
-0.22705328464508057,
-0.013258107006549835,
-0.4877074360847473,
-0.6064633131027222,
-0.2260638028383255,
0.5528601408004761,
-0.2639654576778412,
0.05444193631410599,
0.45440661907196045,
-0.04813506081700325,
-0.01514161005616188,
0.04065951704978943,
-0.36615219712257385,
0.1056739091873169,
0.4683282673358917,
0.08353248238563538,
-0.354550302028656,
0.3536336123943329,
0.1920795440673828,
0.7276447415351868,
-0.06685687601566315,
-0.13253448903560638,
0.5261113047599792,
0.0411936417222023,
0.253226637840271,
0.01807626336812973,
-0.166268453001976,
-0.11670966446399689,
-0.2763540744781494,
-0.016599856317043304,
-0.03720821440219879,
-0.188221275806427,
0.3280113637447357,
-0.22497616708278656,
-0.33002567291259766,
-0.07881256192922592,
-0.15178224444389343,
0.10716236382722855,
-0.12874279916286469,
0.25525039434432983,
-0.3307700455188751,
-0.1318797469139099,
-0.26634085178375244,
-0.1628594696521759,
0.17368096113204956,
0.5482209324836731,
0.49029162526130676,
-0.08318522572517395,
-0.03439890593290329,
0.08259636908769608,
-0.37309712171554565,
0.17876972258090973,
0.20073416829109192,
-0.22164221107959747,
-0.08985483646392822,
-0.046421125531196594,
0.019465364515781403,
-0.03231048956513405,
0.41168880462646484,
-0.2629248797893524,
-0.12708765268325806,
-0.04533474147319794,
-0.33074522018432617,
-0.31610816717147827,
-0.2651897668838501,
0.1523747593164444,
0.003692620899528265,
0.04751386493444443,
0.5915942788124084,
-0.2997569441795349,
0.08225447684526443,
-0.35713332891464233,
0.1874074637889862,
-0.2710024118423462,
-0.7156173586845398,
-0.18420197069644928,
0.22564196586608887,
-0.34573546051979065,
0.13019663095474243,
0.03520330786705017,
-0.17224599421024323,
-0.10148075222969055,
-0.24316498637199402,
0.04701504856348038,
0.1934090256690979,
0.05376604571938515,
-0.0694388747215271,
0.006805100943893194,
0.07705879211425781,
0.313128262758255,
-0.20683805644512177,
-0.0952177345752716,
0.2033187299966812,
0.4134507477283478,
0.07895053923130035,
-0.250464528799057,
-0.032468680292367935,
-0.30775782465934753,
0.27099013328552246,
0.33768439292907715,
0.16900001466274261,
0.4880269467830658,
0.025035813450813293,
0.27336710691452026,
-0.6075422763824463,
0.10193635523319244,
0.05297689139842987,
-0.2542803883552551,
0.2637801170349121,
0.2312820851802826,
0.3870924115180969,
-0.335050493478775,
-0.05819779261946678,
-0.11552785336971283,
0.14025907218456268,
-0.009148821234703064,
-0.21278691291809082,
-0.06783398240804672,
0.9030986428260803,
-0.06307975947856903,
0.274746835231781,
0.04449939727783203,
-0.3729481101036072,
0.26357051730155945,
-0.044333696365356445,
-0.076911062002182,
-0.13248485326766968,
-0.045703817158937454,
-0.048507340252399445,
-0.16930803656578064,
-0.013462968170642853,
0.0928594321012497,
-0.4896751940250397,
0.14516723155975342,
-0.07265631854534149,
0.17240794003009796,
-0.2659305930137634,
0.3623279333114624,
-0.13120493292808533,
-0.48416516184806824,
-0.3271070718765259,
0.05574283003807068,
0.1265464723110199,
0.19480593502521515,
-0.05179785192012787,
-0.2809606194496155,
0.1183832585811615,
0.13185489177703857,
-0.09309767931699753,
-0.03110567480325699,
0.19976702332496643,
-0.10764332115650177,
0.015261242166161537,
-0.38389837741851807,
0.017571166157722473,
-0.12178745865821838,
0.30395177006721497,
-0.0008564181625843048,
-0.17418256402015686,
0.12665480375289917,
-0.059751905500888824,
0.42995685338974,
-0.17627209424972534,
-0.34878432750701904,
0.20845144987106323,
-0.3971341848373413,
-0.07231076061725616,
0.1322268843650818,
-0.05211285129189491,
-0.35593998432159424,
0.14841565489768982,
-0.05040201544761658,
0.13747063279151917,
0.05321408063173294,
-0.02350553683936596,
0.051106005907058716,
0.04559686407446861,
-0.10835142433643341,
-0.005324127152562141,
0.5499669909477234,
-0.04805031418800354,
0.2566632330417633,
-0.45418867468833923,
0.018274441361427307,
-0.17867238819599152,
0.3345474600791931,
-0.4861324727535248,
-0.05214851349592209,
0.1215549036860466,
-0.022233499214053154,
-0.17333093285560608,
-0.1158016249537468,
0.25554776191711426,
-0.18960914015769958,
-0.42908811569213867,
0.19170573353767395,
0.19700974225997925,
0.2654111981391907,
-0.11950001865625381,
0.14543704688549042,
0.23132392764091492,
-0.14240145683288574,
-0.07711292058229446,
0.05753672122955322,
-0.20464326441287994,
-0.23371733725070953,
0.12656591832637787,
0.2982361912727356,
0.01926552504301071,
-0.018888063728809357,
0.1398935765028,
0.07097523659467697,
-0.19433200359344482,
-0.06297603249549866,
-0.2690199315547943,
0.23858599364757538,
0.23531684279441833,
-0.11370744556188583,
0.16337887942790985,
-0.26874837279319763,
-0.17889626324176788,
-0.11980259418487549,
-0.31942179799079895,
-0.07711431384086609,
-0.3108706474304199,
0.17993083596229553,
0.1582535207271576,
0.13074620068073273,
0.11584598571062088,
-0.11370334774255753,
-0.046877671033144,
-0.0034745754674077034,
0.004046853631734848,
0.040366820991039276,
-0.24680690467357635,
0.20529188215732574,
0.0015979856252670288,
0.27989545464515686,
-0.20043449103832245,
0.15692254900932312,
0.1986357867717743,
0.13533081114292145,
-0.1388310045003891,
0.15096968412399292,
-0.004675642587244511,
0.1019527018070221,
0.13762438297271729,
0.016996685415506363,
0.48215240240097046,
0.006571998819708824,
0.06349432468414307,
0.07985992729663849,
-0.007673516869544983,
-0.2194044291973114,
0.36249902844429016,
0.11605218797922134,
-0.18499751389026642,
-0.2455868422985077,
0.3732220530509949,
0.14499050378799438,
0.21331633627414703,
-0.16001670062541962,
-0.09911967813968658,
0.008372525684535503,
0.1898771971464157,
-0.06762479990720749,
-0.01802302524447441,
0.4154512584209442,
0.1499391794204712,
0.0764596089720726,
-0.20100322365760803,
0.22844912111759186,
-0.16383644938468933,
-0.17966914176940918,
0.03394458815455437,
0.13570675253868103,
0.18093380331993103,
0.05393986031413078,
0.20880819857120514,
-0.0524686723947525,
-0.0862479880452156,
0.32743600010871887,
-0.09061624854803085,
0.12257988750934601,
-0.0014676451683044434,
-0.06439979374408722,
-0.20930372178554535,
-0.24529457092285156,
0.05863123759627342,
0.02845178171992302,
0.15474456548690796,
0.21458560228347778,
-0.15740081667900085,
-0.14905859529972076,
-0.354323148727417,
0.24645072221755981,
0.20963355898857117,
-0.07296787202358246,
0.1909547746181488,
-0.08938393741846085,
0.07384295761585236,
0.08502595126628876,
0.11136452853679657,
0.07738988101482391,
0.11607854068279266,
0.24341142177581787,
0.4165916442871094,
0.09833844006061554,
-0.25629785656929016,
0.1717698872089386,
0.37028273940086365,
-0.22940394282341003,
-0.31407269835472107,
0.29885315895080566,
-0.057125434279441833,
-0.039900559931993484,
0.02897082269191742,
0.03845176100730896,
0.3340418338775635,
-0.007224144414067268,
0.20877639949321747,
0.18783488869667053,
0.051356926560401917,
-0.012143567204475403,
0.21302366256713867,
-0.1540132761001587,
0.1787172555923462,
0.42256224155426025,
0.032874226570129395,
-0.17566128075122833,
0.430691659450531,
-0.270607054233551,
-0.0219624862074852,
-0.3929405212402344,
0.26349037885665894,
0.33391350507736206,
0.11217767745256424,
-0.23929834365844727,
0.07424189150333405,
-0.09452523291110992,
-0.023762129247188568,
0.354028582572937,
-0.08900976926088333,
-0.01012147031724453,
-0.09620843082666397,
0.027116362005472183,
-0.36540690064430237,
0.2684076726436615,
0.18592765927314758,
0.36430060863494873,
-0.3779370188713074,
0.03765051066875458,
-0.3042789697647095,
-0.11949286609888077,
0.2883831560611725,
-0.22565509378910065,
0.03369710594415665,
0.24963174760341644,
0.10545211285352707,
0.4363514184951782,
0.09057332575321198,
-0.0029401977080851793,
-0.19953832030296326,
0.14366739988327026,
-0.29767411947250366,
0.11306479573249817,
-0.09711579978466034,
-0.1738821268081665,
0.07132890075445175,
-0.1793248951435089,
0.07597425580024719,
0.19850434362888336,
-0.0086379274725914,
0.0042821913957595825,
-0.16948889195919037,
0.10783751308917999,
0.2267095446586609,
0.6318005919456482,
-0.09693816304206848,
0.3368070721626282,
-0.1303671896457672,
-0.10582241415977478,
0.561828076839447,
0.09120659530162811,
-0.14089660346508026,
-0.05094730108976364,
-0.12610013782978058,
0.465201199054718,
-0.059694305062294006,
0.7084760069847107,
-0.24574029445648193,
0.2541980743408203,
-0.06091522425413132,
-0.06900589913129807,
0.06503506004810333,
0.010983720421791077,
0.1535869538784027,
0.06695882230997086,
-0.026774391531944275,
-0.07009812444448471,
0.1616763472557068,
0.21783849596977234,
-0.4843788743019104,
0.06679394096136093,
0.2654615044593811,
-0.27063533663749695,
-0.002498447895050049,
-0.13132987916469574,
0.12007024139165878,
0.12203210592269897,
0.05652801692485809,
-0.4775323271751404,
-0.17864999175071716,
0.2743856906890869,
0.08165541291236877,
0.0037744753062725067,
0.6654047966003418,
-0.016936684027314186,
-0.07317595928907394,
-0.009699869900941849,
0.2593725025653839,
-0.008851166814565659,
0.13163845241069794,
-0.360371470451355,
-0.2781514823436737
] |
https://github.com/huggingface/datasets/issues/4349 | Dataset.map()'s fails at any value of parameter writer_batch_size | Note that this same issue occurs even if i preprocess with the more default way of tokenizing that uses LayoutLMv2Processor's internal OCR:
```python
feature_extractor = LayoutLMv2FeatureExtractor()
tokenizer = LayoutLMv2Tokenizer.from_pretrained("microsoft/layoutlmv2-base-uncased")
processor = LayoutLMv2Processor(feature_extractor, tokenizer)
encoded_inputs = processor(images, padding="max_length", truncation=True)
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
``` | ## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 45 | Dataset.map()'s fails at any value of parameter writer_batch_size
## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Note that this same issue occurs even if i preprocess with the more default way of tokenizing that uses LayoutLMv2Processor's internal OCR:
```python
feature_extractor = LayoutLMv2FeatureExtractor()
tokenizer = LayoutLMv2Tokenizer.from_pretrained("microsoft/layoutlmv2-base-uncased")
processor = LayoutLMv2Processor(feature_extractor, tokenizer)
encoded_inputs = processor(images, padding="max_length", truncation=True)
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
``` | [
-0.2549961507320404,
-0.4085405766963959,
0.09665369987487793,
0.42863041162490845,
0.23294591903686523,
0.017586782574653625,
0.36135944724082947,
0.2593979835510254,
0.131059929728508,
0.15520450472831726,
0.28622376918792725,
0.05914156511425972,
-0.1847832202911377,
-0.04552052915096283,
-0.14566919207572937,
-0.20545953512191772,
0.09237278997898102,
-0.04216988384723663,
-0.14013710618019104,
-0.019398216158151627,
-0.3787088394165039,
0.07615963369607925,
-0.2715662717819214,
-0.1442142128944397,
-0.3637101352214813,
-0.2576707899570465,
-0.08149145543575287,
-0.05088506639003754,
-0.012684041634202003,
-0.2538661062717438,
-0.03921514004468918,
-0.07920607924461365,
0.06439333409070969,
0.7314352989196777,
-0.00012106044596293941,
0.15368248522281647,
0.08651230484247208,
-0.0697602927684784,
-0.15949083864688873,
-0.05898880958557129,
-0.09553246945142746,
-0.038727857172489166,
-0.2697998583316803,
-0.24695995450019836,
0.11225669831037521,
0.015855038538575172,
0.18809016048908234,
-0.16622482240200043,
0.5088891983032227,
0.35990673303604126,
0.12666833400726318,
0.6991736888885498,
0.08304896950721741,
-0.051465556025505066,
0.01938069984316826,
0.4730716943740845,
-0.1919533610343933,
-0.059148285537958145,
0.24922743439674377,
-0.29391607642173767,
-0.40980374813079834,
0.3504144847393036,
-0.13694584369659424,
0.01298501156270504,
0.23121777176856995,
0.02783021703362465,
0.2286606729030609,
-0.2976701855659485,
0.13176369667053223,
-0.02262415736913681,
0.011326976120471954,
-0.2830757200717926,
-0.479977548122406,
-0.41258543729782104,
-0.22972220182418823,
-0.10845502465963364,
0.1302787959575653,
-0.00798771157860756,
-0.1074652373790741,
-0.15688556432724,
-0.4408595561981201,
0.35235533118247986,
-0.19353047013282776,
0.20339536666870117,
-0.12561294436454773,
0.3592495918273926,
-0.06018086522817612,
0.31800606846809387,
0.24488769471645355,
-0.16736938059329987,
0.14186708629131317,
-0.16757449507713318,
-0.12597247958183289,
0.3222804069519043,
-0.3464231789112091,
-0.1639374941587448,
0.2818056046962738,
0.08873807638883591,
0.3620133101940155,
-0.36051762104034424,
0.2780511677265167,
-0.21053975820541382,
0.2745921015739441,
0.21055778861045837,
0.42027267813682556,
0.2311277985572815,
0.04116278886795044,
0.42108339071273804,
0.2026752084493637,
0.18191277980804443,
0.08362649381160736,
0.07384045422077179,
0.22051164507865906,
-0.41282275319099426,
0.26189637184143066,
-0.23714867234230042,
0.30188941955566406,
0.0028397031128406525,
-0.10686581581830978,
0.24262939393520355,
-0.29627126455307007,
0.15693745017051697,
0.0628645196557045,
0.2640833854675293,
0.06421100348234177,
-0.02740595117211342,
0.0027664154767990112,
0.020617198199033737,
-0.13226710259914398,
0.05545394495129585,
-0.19997337460517883,
-0.14478400349617004,
-0.18970131874084473,
-0.04645325243473053,
0.021144215017557144,
-0.1493096798658371,
0.34213173389434814,
-0.07500186562538147,
0.19073721766471863,
-0.37113726139068604,
-0.01665807142853737,
-0.25260505080223083,
0.12220583856105804,
0.3778110146522522,
-0.13318781554698944,
0.12479118257761002,
0.03682209178805351,
0.07188321650028229,
-0.0024961158633232117,
0.17214864492416382,
-0.13030657172203064,
-0.219047412276268,
0.20446155965328217,
0.09215323626995087,
-0.05664340779185295,
0.12242559343576431,
-0.13970687985420227,
0.09865975379943848,
0.6351867318153381,
-0.12975402176380157,
0.17283019423484802,
-0.35285651683807373,
-0.16534458100795746,
-0.1489732563495636,
-0.018984103575348854,
0.7036290764808655,
0.11919358372688293,
0.045600757002830505,
0.057824961841106415,
0.10445234179496765,
0.08060123026371002,
0.42198532819747925,
-0.19155479967594147,
0.060554854571819305,
-0.15326394140720367,
0.203574076294899,
0.0644492357969284,
-0.18183207511901855,
-0.4863224923610687,
0.356488972902298,
-0.044085994362831116,
0.051902033388614655,
0.1186690479516983,
0.0649157240986824,
0.2858864963054657,
-0.2532079219818115,
0.14665991067886353,
0.07889004796743393,
-0.24718636274337769,
0.3153240978717804,
-0.31269124150276184,
-0.08833401650190353,
-0.016642827540636063,
0.0029890593141317368,
0.32601961493492126,
0.015022031962871552,
0.04587927833199501,
0.03031664341688156,
0.12173536419868469,
-0.2715137004852295,
0.14289912581443787,
0.45093798637390137,
0.06057213246822357,
-0.26952028274536133,
0.09254547208547592,
-0.16498440504074097,
-0.43531888723373413,
0.29327982664108276,
-0.17533469200134277,
-0.05970297008752823,
-0.07775692641735077,
-0.034977901726961136,
-0.07598121464252472,
0.2715284526348114,
-0.14803604781627655,
-0.1630062460899353,
-0.011235162615776062,
0.10111925005912781,
0.04976997897028923,
-0.09940795600414276,
-0.07170893251895905,
0.08338206261396408,
-0.14346840977668762,
0.10180681198835373,
-0.3893093466758728,
-0.12920309603214264,
-0.15354371070861816,
-0.10565687716007233,
-0.23314687609672546,
0.03235243260860443,
0.16951096057891846,
-0.06339050829410553,
-0.11409424245357513,
0.4107946753501892,
-0.11285584419965744,
0.02561681717634201,
-0.33342984318733215,
0.18987654149532318,
0.25423359870910645,
-0.02964949421584606,
0.06368571519851685,
0.19646888971328735,
0.1371326595544815,
-0.11995566636323929,
-0.22304251790046692,
0.07941954582929611,
0.2551165223121643,
0.125139981508255,
-0.12221615761518478,
0.10570346564054489,
0.007506405934691429,
0.016170334070920944,
-0.21496401727199554,
-0.23476606607437134,
0.08102227747440338,
-0.021694805473089218,
0.4558163583278656,
0.033627040684223175,
-0.10930371284484863,
-0.23081326484680176,
0.22074253857135773,
-0.105064257979393,
0.26595547795295715,
0.24846673011779785,
-0.2770918309688568,
-0.03941046819090843,
-0.12382343411445618,
0.3397199213504791,
0.4484456777572632,
-0.009372157044708729,
-0.1279749721288681,
-0.03168804943561554,
-0.27998581528663635,
-0.059869684278964996,
0.08631189167499542,
0.19179768860340118,
0.1437056064605713,
0.30067652463912964,
0.21400848031044006,
0.16427913308143616,
-0.4125704765319824,
-0.24900437891483307,
0.16540178656578064,
0.20899459719657898,
-0.3966592848300934,
0.1585261970758438,
0.25766801834106445,
0.09105917066335678,
-0.13468722999095917,
0.1582665741443634,
-0.32236161828041077,
-0.08151339739561081,
-0.0632597878575325,
0.23076894879341125,
-0.3480379283428192,
0.06317300349473953,
0.11981500685214996,
0.3087458908557892,
0.2692214846611023,
-0.0895010456442833,
0.08993490040302277,
-0.1529722362756729,
-0.06155075877904892,
-0.09836721420288086,
0.2079993188381195,
-0.3659324645996094,
0.39451947808265686,
0.19917553663253784,
-0.21815843880176544,
-0.1864873617887497,
-0.29215216636657715,
0.047872308641672134,
-0.16273532807826996,
0.34222346544265747,
0.09150392562150955,
0.09521548449993134,
-0.06299985945224762,
-0.028554663062095642,
0.22384235262870789,
-0.07074788212776184,
-0.19956757128238678,
0.01916610822081566,
0.15463027358055115,
-0.30094796419143677,
-0.15854845941066742,
0.17690390348434448,
0.08636573702096939,
-0.4077359735965729,
0.19370849430561066,
-0.12652073800563812,
0.17930468916893005,
0.4783584773540497,
0.34875360131263733,
0.08323018252849579,
0.01073118019849062,
-0.051842235028743744,
-0.05549287796020508,
-0.09220007061958313,
0.2649373412132263,
-0.09245263040065765,
-0.3057470917701721,
-0.24808116257190704,
-0.07491613924503326,
-0.11158633232116699,
0.5124540328979492,
-0.6443178653717041,
-0.35743165016174316,
-0.32618093490600586,
-0.1612044870853424,
0.04972316324710846,
0.2880780100822449,
0.467058002948761,
0.10469725728034973,
0.022646481171250343,
-0.22461053729057312,
-0.3394986093044281,
0.11181451380252838,
0.3409174382686615,
0.22569352388381958,
-0.13831156492233276,
0.512859046459198,
0.029867347329854965,
0.5854806900024414,
0.4212762117385864,
-0.28622692823410034,
0.3482707738876343,
0.17032229900360107,
0.19548457860946655,
-0.08339578658342361,
-0.33517181873321533,
-0.02676711417734623,
-0.21745148301124573,
-0.15934334695339203,
0.20645608007907867,
-0.13963016867637634,
-0.1449049711227417,
0.08827847242355347,
-0.1411079615354538,
-0.12299598008394241,
-0.13735006749629974,
0.331743448972702,
-0.009157128632068634,
0.6276150941848755,
-0.1398429125547409,
0.17500609159469604,
-0.24301005899906158,
0.05968090891838074,
-0.05537359043955803,
-0.14981764554977417,
0.24353578686714172,
-0.13690437376499176,
-0.2361508309841156,
0.1524321436882019,
-0.49120599031448364,
0.2563071548938751,
0.11086206138134003,
0.3054404556751251,
-0.09027521312236786,
-0.028596583753824234,
-0.08831436932086945,
-0.06547044217586517,
0.8383856415748596,
-0.1291293203830719,
0.06567702442407608,
-0.08438438177108765,
-0.22045138478279114,
-0.404344379901886,
0.04148481413722038,
-0.10475379228591919,
0.39487138390541077,
0.009386502206325531,
0.588066816329956,
-0.2593165338039398,
-0.04272489249706268,
0.2883617579936981,
-0.027423959225416183,
-0.08893036842346191,
-0.20271195471286774,
-0.10338614881038666,
-0.18705901503562927,
-0.2849715054035187,
0.16242550313472748,
0.38597235083580017,
0.1198355183005333,
0.12474866956472397,
-0.04818485304713249,
-0.1148163378238678,
-0.25712132453918457,
0.08409065008163452,
0.15739469230175018,
0.2821669578552246,
0.04106392338871956,
0.3013719618320465,
0.07789289951324463,
0.07239885628223419,
0.2652687132358551,
0.485615611076355,
-0.23186662793159485,
-0.31912845373153687,
0.12458619475364685,
-0.02445507049560547,
0.2676212787628174,
0.6213520765304565,
-0.035503726452589035,
-0.014262937009334564,
0.2743670642375946,
0.32697349786758423,
-0.28050634264945984,
-0.11673592031002045,
0.5595646500587463,
0.104092538356781,
-0.5772107839584351,
-0.032443415373563766,
0.42422351241111755,
-0.06611521542072296,
0.05928027629852295,
0.19664353132247925,
-0.019912265241146088,
-0.4153895080089569,
0.6873133182525635,
0.18269529938697815,
0.7562255859375,
-0.026912905275821686,
0.4074801802635193,
-0.09187622368335724,
0.3495878577232361,
0.19796760380268097,
0.18221454322338104,
0.2532643675804138,
-0.34496358036994934,
-0.14428456127643585,
0.035793863236904144,
-0.11160442978143692,
0.30666789412498474,
0.15604552626609802,
-0.18709570169448853,
0.037991560995578766,
0.006217949092388153,
0.28620269894599915,
-0.018283871933817863,
-0.12672585248947144,
-0.15765875577926636,
-0.36936724185943604,
-0.24154961109161377,
0.018458310514688492,
0.14412760734558105,
0.009705990552902222,
-0.09932208061218262,
-0.17439407110214233,
0.07858008146286011,
-0.4576195478439331,
-0.44291001558303833,
-0.1579761505126953,
-0.6252821087837219,
0.20996303856372833,
0.32186776399612427,
-0.09559132158756256,
0.21523992717266083,
0.4003434479236603,
0.08917632699012756,
0.22846877574920654,
-0.21908678114414215,
0.008340699598193169,
0.07158201932907104,
0.0011743386276066303,
0.1443866491317749,
0.04530761018395424,
0.26865535974502563,
0.09847802668809891,
0.07926183193922043,
-0.12705472111701965,
-0.18025361001491547,
-0.21691568195819855,
-0.23266135156154633,
0.20826728641986847,
-0.1820070594549179,
-0.4568886160850525,
-0.3589368760585785,
-0.24594071507453918,
-0.2898752689361572,
-0.33126500248908997,
0.038521744310855865,
0.013320047408342361,
-0.10495207458734512,
0.39472949504852295,
-0.2618066072463989,
-0.21871919929981232,
0.05286373570561409,
0.4035632312297821,
-0.1579349935054779,
-0.1114737018942833,
0.47605279088020325,
0.16829203069210052,
-0.009373936802148819,
-0.20263677835464478,
0.08559864014387131,
0.12370765954256058,
-0.5980488657951355,
0.39594805240631104,
-0.2390010952949524,
-0.3244960904121399,
-0.057615458965301514,
0.35022327303886414,
0.28945767879486084,
-0.09821998327970505,
-0.04201994091272354,
-0.42459169030189514,
-0.43929263949394226,
-0.0008983835577964783,
0.3359580934047699,
0.3218543529510498,
-0.011543894186615944,
0.2987797260284424,
0.030203955247998238,
0.39321959018707275,
-0.22284851968288422,
-0.14097627997398376,
-0.25699830055236816,
0.3198022246360779,
0.20275869965553284,
0.08149401843547821,
0.344165176153183,
0.0510309562087059,
0.0015598610043525696,
0.45253169536590576,
-0.33671391010284424,
-0.11363436281681061,
-0.24084404110908508,
0.17624005675315857,
0.18871760368347168,
-0.3197741210460663,
0.13920444250106812,
-0.2850767970085144,
-0.14446254074573517,
-0.37568724155426025,
0.2854781448841095,
0.28470900654792786,
-0.1185009777545929,
-0.12660814821720123,
0.2986679971218109,
0.1675955355167389,
0.19253526628017426,
0.016993923112750053,
-0.1708456575870514,
-0.06390263140201569,
0.1586419939994812,
0.22183816134929657,
-0.05864858254790306,
-0.11657167226076126,
-0.10010211914777756,
0.1243235319852829,
0.017554573714733124,
0.04842572286725044,
0.34322619438171387,
-0.3843614459037781,
-0.13441018760204315,
0.3040526807308197,
0.3968196213245392,
0.17895284295082092,
-0.4033266007900238,
0.03980311006307602,
0.04858798161149025,
0.154889315366745,
-0.24489045143127441,
-0.26187244057655334,
0.2438858300447464,
0.026335813105106354,
0.2345447540283203,
0.353505939245224,
0.08744864165782928,
-0.18133273720741272,
-0.002182506024837494,
0.23563873767852783,
0.17229478061199188,
-0.26209741830825806,
0.026772918179631233,
0.5198604464530945,
-0.0015637576580047607,
0.20519249141216278,
0.2858971655368805,
0.029419727623462677,
0.5735170245170593,
0.31320691108703613,
0.0908893346786499,
0.20578540861606598,
-0.11101622134447098,
0.20405174791812897,
-0.0045174360275268555,
-0.4669378101825714,
0.3745184540748596,
0.023886702954769135,
0.004729121923446655,
0.4105875790119171,
-0.06352315843105316,
0.14933577179908752,
-0.2738238275051117,
0.05264081433415413,
-0.3058513104915619,
0.11323218047618866,
-0.2703651785850525,
-0.27766677737236023,
0.05043821036815643,
-0.15471161901950836,
-0.0400245375931263,
0.07556457817554474,
-0.1563970148563385,
-0.08116121590137482,
0.1423628032207489,
-0.00471968948841095,
-0.19429360330104828,
-0.14989396929740906,
-0.34994620084762573,
-0.021427210420370102,
0.2192486822605133,
-0.5033091902732849,
0.4050554633140564,
0.14556343853473663,
-0.1877383291721344,
-0.1972421556711197,
0.5169714689254761,
0.5575661063194275,
0.38092392683029175,
-0.12703467905521393,
0.347419410943985,
-0.07975229620933533,
0.03773186355829239,
-0.21268761157989502,
0.09342766553163528,
0.06272966414690018,
0.1698603332042694,
0.30980384349823,
-0.024042794480919838,
-0.16777512431144714,
0.04867850989103317,
0.028618842363357544,
0.04321128502488136,
-0.13056178390979767,
0.1809830665588379,
-0.14498019218444824,
-0.395353764295578,
0.009148553013801575,
-0.009894683957099915,
-0.47727057337760925,
0.08151684701442719,
0.613967776298523,
-0.2847595810890198,
0.2693396210670471,
-0.07006478309631348,
0.031219974160194397,
0.12962372601032257,
0.6888219118118286,
0.46952182054519653,
-0.08991921693086624,
-0.5807616114616394,
0.05695068836212158,
-0.3940955400466919,
0.22802971303462982,
-0.32828670740127563,
0.29463234543800354,
0.14055609703063965,
0.08955458551645279,
-0.0314178541302681,
-0.14711745083332062,
0.1764611303806305,
-0.21730034053325653,
-0.3720601201057434,
0.2697402834892273,
-0.09775189310312271,
-0.19477124512195587,
-0.3971366286277771,
-0.034521132707595825,
0.2713106572628021,
-0.45767852663993835,
0.310051828622818,
-0.018493972718715668,
-0.01392853632569313,
-0.3058578372001648,
0.188073992729187,
-0.09275850653648376,
-0.17748050391674042,
0.27360963821411133,
0.19297297298908234,
0.10921860486268997,
-0.11650845408439636,
-0.1212349459528923,
-0.4437463879585266,
-0.1116199716925621,
-0.2730078101158142,
0.02708612009882927,
0.36158496141433716,
0.6506826877593994,
-0.3293811082839966,
-0.4673864543437958,
-0.15963582694530487,
-0.019453639164566994,
0.13898496329784393,
-0.28322547674179077,
-0.06032726913690567,
0.09818566590547562,
-0.03700108826160431,
-0.1547415554523468,
0.25802773237228394,
0.5240416526794434,
-0.12988445162773132,
0.04242423176765442,
-0.23547068238258362,
-0.43185585737228394,
0.3844515085220337,
-0.6561743021011353,
-0.29707589745521545,
0.09856905043125153,
0.1513333022594452,
-0.12007754296064377,
-0.2039685696363449,
-0.6576153039932251,
-0.011831454932689667,
0.19258403778076172,
0.0064063891768455505,
-0.5403890609741211,
0.08844423294067383,
0.028739728033542633,
-0.06842018663883209,
-0.03334777057170868,
0.2988985776901245,
0.041152648627758026,
-0.2757113575935364,
0.3255549371242523,
-0.31791436672210693
] |
https://github.com/huggingface/datasets/issues/4349 | Dataset.map()'s fails at any value of parameter writer_batch_size | Did you close it because you found that it was due to the incorrect Feature types ? | ## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 17 | Dataset.map()'s fails at any value of parameter writer_batch_size
## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Did you close it because you found that it was due to the incorrect Feature types ? | [
-0.2549961507320404,
-0.4085405766963959,
0.09665369987487793,
0.42863041162490845,
0.23294591903686523,
0.017586782574653625,
0.36135944724082947,
0.2593979835510254,
0.131059929728508,
0.15520450472831726,
0.28622376918792725,
0.05914156511425972,
-0.1847832202911377,
-0.04552052915096283,
-0.14566919207572937,
-0.20545953512191772,
0.09237278997898102,
-0.04216988384723663,
-0.14013710618019104,
-0.019398216158151627,
-0.3787088394165039,
0.07615963369607925,
-0.2715662717819214,
-0.1442142128944397,
-0.3637101352214813,
-0.2576707899570465,
-0.08149145543575287,
-0.05088506639003754,
-0.012684041634202003,
-0.2538661062717438,
-0.03921514004468918,
-0.07920607924461365,
0.06439333409070969,
0.7314352989196777,
-0.00012106044596293941,
0.15368248522281647,
0.08651230484247208,
-0.0697602927684784,
-0.15949083864688873,
-0.05898880958557129,
-0.09553246945142746,
-0.038727857172489166,
-0.2697998583316803,
-0.24695995450019836,
0.11225669831037521,
0.015855038538575172,
0.18809016048908234,
-0.16622482240200043,
0.5088891983032227,
0.35990673303604126,
0.12666833400726318,
0.6991736888885498,
0.08304896950721741,
-0.051465556025505066,
0.01938069984316826,
0.4730716943740845,
-0.1919533610343933,
-0.059148285537958145,
0.24922743439674377,
-0.29391607642173767,
-0.40980374813079834,
0.3504144847393036,
-0.13694584369659424,
0.01298501156270504,
0.23121777176856995,
0.02783021703362465,
0.2286606729030609,
-0.2976701855659485,
0.13176369667053223,
-0.02262415736913681,
0.011326976120471954,
-0.2830757200717926,
-0.479977548122406,
-0.41258543729782104,
-0.22972220182418823,
-0.10845502465963364,
0.1302787959575653,
-0.00798771157860756,
-0.1074652373790741,
-0.15688556432724,
-0.4408595561981201,
0.35235533118247986,
-0.19353047013282776,
0.20339536666870117,
-0.12561294436454773,
0.3592495918273926,
-0.06018086522817612,
0.31800606846809387,
0.24488769471645355,
-0.16736938059329987,
0.14186708629131317,
-0.16757449507713318,
-0.12597247958183289,
0.3222804069519043,
-0.3464231789112091,
-0.1639374941587448,
0.2818056046962738,
0.08873807638883591,
0.3620133101940155,
-0.36051762104034424,
0.2780511677265167,
-0.21053975820541382,
0.2745921015739441,
0.21055778861045837,
0.42027267813682556,
0.2311277985572815,
0.04116278886795044,
0.42108339071273804,
0.2026752084493637,
0.18191277980804443,
0.08362649381160736,
0.07384045422077179,
0.22051164507865906,
-0.41282275319099426,
0.26189637184143066,
-0.23714867234230042,
0.30188941955566406,
0.0028397031128406525,
-0.10686581581830978,
0.24262939393520355,
-0.29627126455307007,
0.15693745017051697,
0.0628645196557045,
0.2640833854675293,
0.06421100348234177,
-0.02740595117211342,
0.0027664154767990112,
0.020617198199033737,
-0.13226710259914398,
0.05545394495129585,
-0.19997337460517883,
-0.14478400349617004,
-0.18970131874084473,
-0.04645325243473053,
0.021144215017557144,
-0.1493096798658371,
0.34213173389434814,
-0.07500186562538147,
0.19073721766471863,
-0.37113726139068604,
-0.01665807142853737,
-0.25260505080223083,
0.12220583856105804,
0.3778110146522522,
-0.13318781554698944,
0.12479118257761002,
0.03682209178805351,
0.07188321650028229,
-0.0024961158633232117,
0.17214864492416382,
-0.13030657172203064,
-0.219047412276268,
0.20446155965328217,
0.09215323626995087,
-0.05664340779185295,
0.12242559343576431,
-0.13970687985420227,
0.09865975379943848,
0.6351867318153381,
-0.12975402176380157,
0.17283019423484802,
-0.35285651683807373,
-0.16534458100795746,
-0.1489732563495636,
-0.018984103575348854,
0.7036290764808655,
0.11919358372688293,
0.045600757002830505,
0.057824961841106415,
0.10445234179496765,
0.08060123026371002,
0.42198532819747925,
-0.19155479967594147,
0.060554854571819305,
-0.15326394140720367,
0.203574076294899,
0.0644492357969284,
-0.18183207511901855,
-0.4863224923610687,
0.356488972902298,
-0.044085994362831116,
0.051902033388614655,
0.1186690479516983,
0.0649157240986824,
0.2858864963054657,
-0.2532079219818115,
0.14665991067886353,
0.07889004796743393,
-0.24718636274337769,
0.3153240978717804,
-0.31269124150276184,
-0.08833401650190353,
-0.016642827540636063,
0.0029890593141317368,
0.32601961493492126,
0.015022031962871552,
0.04587927833199501,
0.03031664341688156,
0.12173536419868469,
-0.2715137004852295,
0.14289912581443787,
0.45093798637390137,
0.06057213246822357,
-0.26952028274536133,
0.09254547208547592,
-0.16498440504074097,
-0.43531888723373413,
0.29327982664108276,
-0.17533469200134277,
-0.05970297008752823,
-0.07775692641735077,
-0.034977901726961136,
-0.07598121464252472,
0.2715284526348114,
-0.14803604781627655,
-0.1630062460899353,
-0.011235162615776062,
0.10111925005912781,
0.04976997897028923,
-0.09940795600414276,
-0.07170893251895905,
0.08338206261396408,
-0.14346840977668762,
0.10180681198835373,
-0.3893093466758728,
-0.12920309603214264,
-0.15354371070861816,
-0.10565687716007233,
-0.23314687609672546,
0.03235243260860443,
0.16951096057891846,
-0.06339050829410553,
-0.11409424245357513,
0.4107946753501892,
-0.11285584419965744,
0.02561681717634201,
-0.33342984318733215,
0.18987654149532318,
0.25423359870910645,
-0.02964949421584606,
0.06368571519851685,
0.19646888971328735,
0.1371326595544815,
-0.11995566636323929,
-0.22304251790046692,
0.07941954582929611,
0.2551165223121643,
0.125139981508255,
-0.12221615761518478,
0.10570346564054489,
0.007506405934691429,
0.016170334070920944,
-0.21496401727199554,
-0.23476606607437134,
0.08102227747440338,
-0.021694805473089218,
0.4558163583278656,
0.033627040684223175,
-0.10930371284484863,
-0.23081326484680176,
0.22074253857135773,
-0.105064257979393,
0.26595547795295715,
0.24846673011779785,
-0.2770918309688568,
-0.03941046819090843,
-0.12382343411445618,
0.3397199213504791,
0.4484456777572632,
-0.009372157044708729,
-0.1279749721288681,
-0.03168804943561554,
-0.27998581528663635,
-0.059869684278964996,
0.08631189167499542,
0.19179768860340118,
0.1437056064605713,
0.30067652463912964,
0.21400848031044006,
0.16427913308143616,
-0.4125704765319824,
-0.24900437891483307,
0.16540178656578064,
0.20899459719657898,
-0.3966592848300934,
0.1585261970758438,
0.25766801834106445,
0.09105917066335678,
-0.13468722999095917,
0.1582665741443634,
-0.32236161828041077,
-0.08151339739561081,
-0.0632597878575325,
0.23076894879341125,
-0.3480379283428192,
0.06317300349473953,
0.11981500685214996,
0.3087458908557892,
0.2692214846611023,
-0.0895010456442833,
0.08993490040302277,
-0.1529722362756729,
-0.06155075877904892,
-0.09836721420288086,
0.2079993188381195,
-0.3659324645996094,
0.39451947808265686,
0.19917553663253784,
-0.21815843880176544,
-0.1864873617887497,
-0.29215216636657715,
0.047872308641672134,
-0.16273532807826996,
0.34222346544265747,
0.09150392562150955,
0.09521548449993134,
-0.06299985945224762,
-0.028554663062095642,
0.22384235262870789,
-0.07074788212776184,
-0.19956757128238678,
0.01916610822081566,
0.15463027358055115,
-0.30094796419143677,
-0.15854845941066742,
0.17690390348434448,
0.08636573702096939,
-0.4077359735965729,
0.19370849430561066,
-0.12652073800563812,
0.17930468916893005,
0.4783584773540497,
0.34875360131263733,
0.08323018252849579,
0.01073118019849062,
-0.051842235028743744,
-0.05549287796020508,
-0.09220007061958313,
0.2649373412132263,
-0.09245263040065765,
-0.3057470917701721,
-0.24808116257190704,
-0.07491613924503326,
-0.11158633232116699,
0.5124540328979492,
-0.6443178653717041,
-0.35743165016174316,
-0.32618093490600586,
-0.1612044870853424,
0.04972316324710846,
0.2880780100822449,
0.467058002948761,
0.10469725728034973,
0.022646481171250343,
-0.22461053729057312,
-0.3394986093044281,
0.11181451380252838,
0.3409174382686615,
0.22569352388381958,
-0.13831156492233276,
0.512859046459198,
0.029867347329854965,
0.5854806900024414,
0.4212762117385864,
-0.28622692823410034,
0.3482707738876343,
0.17032229900360107,
0.19548457860946655,
-0.08339578658342361,
-0.33517181873321533,
-0.02676711417734623,
-0.21745148301124573,
-0.15934334695339203,
0.20645608007907867,
-0.13963016867637634,
-0.1449049711227417,
0.08827847242355347,
-0.1411079615354538,
-0.12299598008394241,
-0.13735006749629974,
0.331743448972702,
-0.009157128632068634,
0.6276150941848755,
-0.1398429125547409,
0.17500609159469604,
-0.24301005899906158,
0.05968090891838074,
-0.05537359043955803,
-0.14981764554977417,
0.24353578686714172,
-0.13690437376499176,
-0.2361508309841156,
0.1524321436882019,
-0.49120599031448364,
0.2563071548938751,
0.11086206138134003,
0.3054404556751251,
-0.09027521312236786,
-0.028596583753824234,
-0.08831436932086945,
-0.06547044217586517,
0.8383856415748596,
-0.1291293203830719,
0.06567702442407608,
-0.08438438177108765,
-0.22045138478279114,
-0.404344379901886,
0.04148481413722038,
-0.10475379228591919,
0.39487138390541077,
0.009386502206325531,
0.588066816329956,
-0.2593165338039398,
-0.04272489249706268,
0.2883617579936981,
-0.027423959225416183,
-0.08893036842346191,
-0.20271195471286774,
-0.10338614881038666,
-0.18705901503562927,
-0.2849715054035187,
0.16242550313472748,
0.38597235083580017,
0.1198355183005333,
0.12474866956472397,
-0.04818485304713249,
-0.1148163378238678,
-0.25712132453918457,
0.08409065008163452,
0.15739469230175018,
0.2821669578552246,
0.04106392338871956,
0.3013719618320465,
0.07789289951324463,
0.07239885628223419,
0.2652687132358551,
0.485615611076355,
-0.23186662793159485,
-0.31912845373153687,
0.12458619475364685,
-0.02445507049560547,
0.2676212787628174,
0.6213520765304565,
-0.035503726452589035,
-0.014262937009334564,
0.2743670642375946,
0.32697349786758423,
-0.28050634264945984,
-0.11673592031002045,
0.5595646500587463,
0.104092538356781,
-0.5772107839584351,
-0.032443415373563766,
0.42422351241111755,
-0.06611521542072296,
0.05928027629852295,
0.19664353132247925,
-0.019912265241146088,
-0.4153895080089569,
0.6873133182525635,
0.18269529938697815,
0.7562255859375,
-0.026912905275821686,
0.4074801802635193,
-0.09187622368335724,
0.3495878577232361,
0.19796760380268097,
0.18221454322338104,
0.2532643675804138,
-0.34496358036994934,
-0.14428456127643585,
0.035793863236904144,
-0.11160442978143692,
0.30666789412498474,
0.15604552626609802,
-0.18709570169448853,
0.037991560995578766,
0.006217949092388153,
0.28620269894599915,
-0.018283871933817863,
-0.12672585248947144,
-0.15765875577926636,
-0.36936724185943604,
-0.24154961109161377,
0.018458310514688492,
0.14412760734558105,
0.009705990552902222,
-0.09932208061218262,
-0.17439407110214233,
0.07858008146286011,
-0.4576195478439331,
-0.44291001558303833,
-0.1579761505126953,
-0.6252821087837219,
0.20996303856372833,
0.32186776399612427,
-0.09559132158756256,
0.21523992717266083,
0.4003434479236603,
0.08917632699012756,
0.22846877574920654,
-0.21908678114414215,
0.008340699598193169,
0.07158201932907104,
0.0011743386276066303,
0.1443866491317749,
0.04530761018395424,
0.26865535974502563,
0.09847802668809891,
0.07926183193922043,
-0.12705472111701965,
-0.18025361001491547,
-0.21691568195819855,
-0.23266135156154633,
0.20826728641986847,
-0.1820070594549179,
-0.4568886160850525,
-0.3589368760585785,
-0.24594071507453918,
-0.2898752689361572,
-0.33126500248908997,
0.038521744310855865,
0.013320047408342361,
-0.10495207458734512,
0.39472949504852295,
-0.2618066072463989,
-0.21871919929981232,
0.05286373570561409,
0.4035632312297821,
-0.1579349935054779,
-0.1114737018942833,
0.47605279088020325,
0.16829203069210052,
-0.009373936802148819,
-0.20263677835464478,
0.08559864014387131,
0.12370765954256058,
-0.5980488657951355,
0.39594805240631104,
-0.2390010952949524,
-0.3244960904121399,
-0.057615458965301514,
0.35022327303886414,
0.28945767879486084,
-0.09821998327970505,
-0.04201994091272354,
-0.42459169030189514,
-0.43929263949394226,
-0.0008983835577964783,
0.3359580934047699,
0.3218543529510498,
-0.011543894186615944,
0.2987797260284424,
0.030203955247998238,
0.39321959018707275,
-0.22284851968288422,
-0.14097627997398376,
-0.25699830055236816,
0.3198022246360779,
0.20275869965553284,
0.08149401843547821,
0.344165176153183,
0.0510309562087059,
0.0015598610043525696,
0.45253169536590576,
-0.33671391010284424,
-0.11363436281681061,
-0.24084404110908508,
0.17624005675315857,
0.18871760368347168,
-0.3197741210460663,
0.13920444250106812,
-0.2850767970085144,
-0.14446254074573517,
-0.37568724155426025,
0.2854781448841095,
0.28470900654792786,
-0.1185009777545929,
-0.12660814821720123,
0.2986679971218109,
0.1675955355167389,
0.19253526628017426,
0.016993923112750053,
-0.1708456575870514,
-0.06390263140201569,
0.1586419939994812,
0.22183816134929657,
-0.05864858254790306,
-0.11657167226076126,
-0.10010211914777756,
0.1243235319852829,
0.017554573714733124,
0.04842572286725044,
0.34322619438171387,
-0.3843614459037781,
-0.13441018760204315,
0.3040526807308197,
0.3968196213245392,
0.17895284295082092,
-0.4033266007900238,
0.03980311006307602,
0.04858798161149025,
0.154889315366745,
-0.24489045143127441,
-0.26187244057655334,
0.2438858300447464,
0.026335813105106354,
0.2345447540283203,
0.353505939245224,
0.08744864165782928,
-0.18133273720741272,
-0.002182506024837494,
0.23563873767852783,
0.17229478061199188,
-0.26209741830825806,
0.026772918179631233,
0.5198604464530945,
-0.0015637576580047607,
0.20519249141216278,
0.2858971655368805,
0.029419727623462677,
0.5735170245170593,
0.31320691108703613,
0.0908893346786499,
0.20578540861606598,
-0.11101622134447098,
0.20405174791812897,
-0.0045174360275268555,
-0.4669378101825714,
0.3745184540748596,
0.023886702954769135,
0.004729121923446655,
0.4105875790119171,
-0.06352315843105316,
0.14933577179908752,
-0.2738238275051117,
0.05264081433415413,
-0.3058513104915619,
0.11323218047618866,
-0.2703651785850525,
-0.27766677737236023,
0.05043821036815643,
-0.15471161901950836,
-0.0400245375931263,
0.07556457817554474,
-0.1563970148563385,
-0.08116121590137482,
0.1423628032207489,
-0.00471968948841095,
-0.19429360330104828,
-0.14989396929740906,
-0.34994620084762573,
-0.021427210420370102,
0.2192486822605133,
-0.5033091902732849,
0.4050554633140564,
0.14556343853473663,
-0.1877383291721344,
-0.1972421556711197,
0.5169714689254761,
0.5575661063194275,
0.38092392683029175,
-0.12703467905521393,
0.347419410943985,
-0.07975229620933533,
0.03773186355829239,
-0.21268761157989502,
0.09342766553163528,
0.06272966414690018,
0.1698603332042694,
0.30980384349823,
-0.024042794480919838,
-0.16777512431144714,
0.04867850989103317,
0.028618842363357544,
0.04321128502488136,
-0.13056178390979767,
0.1809830665588379,
-0.14498019218444824,
-0.395353764295578,
0.009148553013801575,
-0.009894683957099915,
-0.47727057337760925,
0.08151684701442719,
0.613967776298523,
-0.2847595810890198,
0.2693396210670471,
-0.07006478309631348,
0.031219974160194397,
0.12962372601032257,
0.6888219118118286,
0.46952182054519653,
-0.08991921693086624,
-0.5807616114616394,
0.05695068836212158,
-0.3940955400466919,
0.22802971303462982,
-0.32828670740127563,
0.29463234543800354,
0.14055609703063965,
0.08955458551645279,
-0.0314178541302681,
-0.14711745083332062,
0.1764611303806305,
-0.21730034053325653,
-0.3720601201057434,
0.2697402834892273,
-0.09775189310312271,
-0.19477124512195587,
-0.3971366286277771,
-0.034521132707595825,
0.2713106572628021,
-0.45767852663993835,
0.310051828622818,
-0.018493972718715668,
-0.01392853632569313,
-0.3058578372001648,
0.188073992729187,
-0.09275850653648376,
-0.17748050391674042,
0.27360963821411133,
0.19297297298908234,
0.10921860486268997,
-0.11650845408439636,
-0.1212349459528923,
-0.4437463879585266,
-0.1116199716925621,
-0.2730078101158142,
0.02708612009882927,
0.36158496141433716,
0.6506826877593994,
-0.3293811082839966,
-0.4673864543437958,
-0.15963582694530487,
-0.019453639164566994,
0.13898496329784393,
-0.28322547674179077,
-0.06032726913690567,
0.09818566590547562,
-0.03700108826160431,
-0.1547415554523468,
0.25802773237228394,
0.5240416526794434,
-0.12988445162773132,
0.04242423176765442,
-0.23547068238258362,
-0.43185585737228394,
0.3844515085220337,
-0.6561743021011353,
-0.29707589745521545,
0.09856905043125153,
0.1513333022594452,
-0.12007754296064377,
-0.2039685696363449,
-0.6576153039932251,
-0.011831454932689667,
0.19258403778076172,
0.0064063891768455505,
-0.5403890609741211,
0.08844423294067383,
0.028739728033542633,
-0.06842018663883209,
-0.03334777057170868,
0.2988985776901245,
0.041152648627758026,
-0.2757113575935364,
0.3255549371242523,
-0.31791436672210693
] |
https://github.com/huggingface/datasets/issues/4349 | Dataset.map()'s fails at any value of parameter writer_batch_size | Yeah-- my analysis of the issue was wrong in this one so I just closed it while linking to the new issue | ## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 22 | Dataset.map()'s fails at any value of parameter writer_batch_size
## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Yeah-- my analysis of the issue was wrong in this one so I just closed it while linking to the new issue | [
-0.2549961507320404,
-0.4085405766963959,
0.09665369987487793,
0.42863041162490845,
0.23294591903686523,
0.017586782574653625,
0.36135944724082947,
0.2593979835510254,
0.131059929728508,
0.15520450472831726,
0.28622376918792725,
0.05914156511425972,
-0.1847832202911377,
-0.04552052915096283,
-0.14566919207572937,
-0.20545953512191772,
0.09237278997898102,
-0.04216988384723663,
-0.14013710618019104,
-0.019398216158151627,
-0.3787088394165039,
0.07615963369607925,
-0.2715662717819214,
-0.1442142128944397,
-0.3637101352214813,
-0.2576707899570465,
-0.08149145543575287,
-0.05088506639003754,
-0.012684041634202003,
-0.2538661062717438,
-0.03921514004468918,
-0.07920607924461365,
0.06439333409070969,
0.7314352989196777,
-0.00012106044596293941,
0.15368248522281647,
0.08651230484247208,
-0.0697602927684784,
-0.15949083864688873,
-0.05898880958557129,
-0.09553246945142746,
-0.038727857172489166,
-0.2697998583316803,
-0.24695995450019836,
0.11225669831037521,
0.015855038538575172,
0.18809016048908234,
-0.16622482240200043,
0.5088891983032227,
0.35990673303604126,
0.12666833400726318,
0.6991736888885498,
0.08304896950721741,
-0.051465556025505066,
0.01938069984316826,
0.4730716943740845,
-0.1919533610343933,
-0.059148285537958145,
0.24922743439674377,
-0.29391607642173767,
-0.40980374813079834,
0.3504144847393036,
-0.13694584369659424,
0.01298501156270504,
0.23121777176856995,
0.02783021703362465,
0.2286606729030609,
-0.2976701855659485,
0.13176369667053223,
-0.02262415736913681,
0.011326976120471954,
-0.2830757200717926,
-0.479977548122406,
-0.41258543729782104,
-0.22972220182418823,
-0.10845502465963364,
0.1302787959575653,
-0.00798771157860756,
-0.1074652373790741,
-0.15688556432724,
-0.4408595561981201,
0.35235533118247986,
-0.19353047013282776,
0.20339536666870117,
-0.12561294436454773,
0.3592495918273926,
-0.06018086522817612,
0.31800606846809387,
0.24488769471645355,
-0.16736938059329987,
0.14186708629131317,
-0.16757449507713318,
-0.12597247958183289,
0.3222804069519043,
-0.3464231789112091,
-0.1639374941587448,
0.2818056046962738,
0.08873807638883591,
0.3620133101940155,
-0.36051762104034424,
0.2780511677265167,
-0.21053975820541382,
0.2745921015739441,
0.21055778861045837,
0.42027267813682556,
0.2311277985572815,
0.04116278886795044,
0.42108339071273804,
0.2026752084493637,
0.18191277980804443,
0.08362649381160736,
0.07384045422077179,
0.22051164507865906,
-0.41282275319099426,
0.26189637184143066,
-0.23714867234230042,
0.30188941955566406,
0.0028397031128406525,
-0.10686581581830978,
0.24262939393520355,
-0.29627126455307007,
0.15693745017051697,
0.0628645196557045,
0.2640833854675293,
0.06421100348234177,
-0.02740595117211342,
0.0027664154767990112,
0.020617198199033737,
-0.13226710259914398,
0.05545394495129585,
-0.19997337460517883,
-0.14478400349617004,
-0.18970131874084473,
-0.04645325243473053,
0.021144215017557144,
-0.1493096798658371,
0.34213173389434814,
-0.07500186562538147,
0.19073721766471863,
-0.37113726139068604,
-0.01665807142853737,
-0.25260505080223083,
0.12220583856105804,
0.3778110146522522,
-0.13318781554698944,
0.12479118257761002,
0.03682209178805351,
0.07188321650028229,
-0.0024961158633232117,
0.17214864492416382,
-0.13030657172203064,
-0.219047412276268,
0.20446155965328217,
0.09215323626995087,
-0.05664340779185295,
0.12242559343576431,
-0.13970687985420227,
0.09865975379943848,
0.6351867318153381,
-0.12975402176380157,
0.17283019423484802,
-0.35285651683807373,
-0.16534458100795746,
-0.1489732563495636,
-0.018984103575348854,
0.7036290764808655,
0.11919358372688293,
0.045600757002830505,
0.057824961841106415,
0.10445234179496765,
0.08060123026371002,
0.42198532819747925,
-0.19155479967594147,
0.060554854571819305,
-0.15326394140720367,
0.203574076294899,
0.0644492357969284,
-0.18183207511901855,
-0.4863224923610687,
0.356488972902298,
-0.044085994362831116,
0.051902033388614655,
0.1186690479516983,
0.0649157240986824,
0.2858864963054657,
-0.2532079219818115,
0.14665991067886353,
0.07889004796743393,
-0.24718636274337769,
0.3153240978717804,
-0.31269124150276184,
-0.08833401650190353,
-0.016642827540636063,
0.0029890593141317368,
0.32601961493492126,
0.015022031962871552,
0.04587927833199501,
0.03031664341688156,
0.12173536419868469,
-0.2715137004852295,
0.14289912581443787,
0.45093798637390137,
0.06057213246822357,
-0.26952028274536133,
0.09254547208547592,
-0.16498440504074097,
-0.43531888723373413,
0.29327982664108276,
-0.17533469200134277,
-0.05970297008752823,
-0.07775692641735077,
-0.034977901726961136,
-0.07598121464252472,
0.2715284526348114,
-0.14803604781627655,
-0.1630062460899353,
-0.011235162615776062,
0.10111925005912781,
0.04976997897028923,
-0.09940795600414276,
-0.07170893251895905,
0.08338206261396408,
-0.14346840977668762,
0.10180681198835373,
-0.3893093466758728,
-0.12920309603214264,
-0.15354371070861816,
-0.10565687716007233,
-0.23314687609672546,
0.03235243260860443,
0.16951096057891846,
-0.06339050829410553,
-0.11409424245357513,
0.4107946753501892,
-0.11285584419965744,
0.02561681717634201,
-0.33342984318733215,
0.18987654149532318,
0.25423359870910645,
-0.02964949421584606,
0.06368571519851685,
0.19646888971328735,
0.1371326595544815,
-0.11995566636323929,
-0.22304251790046692,
0.07941954582929611,
0.2551165223121643,
0.125139981508255,
-0.12221615761518478,
0.10570346564054489,
0.007506405934691429,
0.016170334070920944,
-0.21496401727199554,
-0.23476606607437134,
0.08102227747440338,
-0.021694805473089218,
0.4558163583278656,
0.033627040684223175,
-0.10930371284484863,
-0.23081326484680176,
0.22074253857135773,
-0.105064257979393,
0.26595547795295715,
0.24846673011779785,
-0.2770918309688568,
-0.03941046819090843,
-0.12382343411445618,
0.3397199213504791,
0.4484456777572632,
-0.009372157044708729,
-0.1279749721288681,
-0.03168804943561554,
-0.27998581528663635,
-0.059869684278964996,
0.08631189167499542,
0.19179768860340118,
0.1437056064605713,
0.30067652463912964,
0.21400848031044006,
0.16427913308143616,
-0.4125704765319824,
-0.24900437891483307,
0.16540178656578064,
0.20899459719657898,
-0.3966592848300934,
0.1585261970758438,
0.25766801834106445,
0.09105917066335678,
-0.13468722999095917,
0.1582665741443634,
-0.32236161828041077,
-0.08151339739561081,
-0.0632597878575325,
0.23076894879341125,
-0.3480379283428192,
0.06317300349473953,
0.11981500685214996,
0.3087458908557892,
0.2692214846611023,
-0.0895010456442833,
0.08993490040302277,
-0.1529722362756729,
-0.06155075877904892,
-0.09836721420288086,
0.2079993188381195,
-0.3659324645996094,
0.39451947808265686,
0.19917553663253784,
-0.21815843880176544,
-0.1864873617887497,
-0.29215216636657715,
0.047872308641672134,
-0.16273532807826996,
0.34222346544265747,
0.09150392562150955,
0.09521548449993134,
-0.06299985945224762,
-0.028554663062095642,
0.22384235262870789,
-0.07074788212776184,
-0.19956757128238678,
0.01916610822081566,
0.15463027358055115,
-0.30094796419143677,
-0.15854845941066742,
0.17690390348434448,
0.08636573702096939,
-0.4077359735965729,
0.19370849430561066,
-0.12652073800563812,
0.17930468916893005,
0.4783584773540497,
0.34875360131263733,
0.08323018252849579,
0.01073118019849062,
-0.051842235028743744,
-0.05549287796020508,
-0.09220007061958313,
0.2649373412132263,
-0.09245263040065765,
-0.3057470917701721,
-0.24808116257190704,
-0.07491613924503326,
-0.11158633232116699,
0.5124540328979492,
-0.6443178653717041,
-0.35743165016174316,
-0.32618093490600586,
-0.1612044870853424,
0.04972316324710846,
0.2880780100822449,
0.467058002948761,
0.10469725728034973,
0.022646481171250343,
-0.22461053729057312,
-0.3394986093044281,
0.11181451380252838,
0.3409174382686615,
0.22569352388381958,
-0.13831156492233276,
0.512859046459198,
0.029867347329854965,
0.5854806900024414,
0.4212762117385864,
-0.28622692823410034,
0.3482707738876343,
0.17032229900360107,
0.19548457860946655,
-0.08339578658342361,
-0.33517181873321533,
-0.02676711417734623,
-0.21745148301124573,
-0.15934334695339203,
0.20645608007907867,
-0.13963016867637634,
-0.1449049711227417,
0.08827847242355347,
-0.1411079615354538,
-0.12299598008394241,
-0.13735006749629974,
0.331743448972702,
-0.009157128632068634,
0.6276150941848755,
-0.1398429125547409,
0.17500609159469604,
-0.24301005899906158,
0.05968090891838074,
-0.05537359043955803,
-0.14981764554977417,
0.24353578686714172,
-0.13690437376499176,
-0.2361508309841156,
0.1524321436882019,
-0.49120599031448364,
0.2563071548938751,
0.11086206138134003,
0.3054404556751251,
-0.09027521312236786,
-0.028596583753824234,
-0.08831436932086945,
-0.06547044217586517,
0.8383856415748596,
-0.1291293203830719,
0.06567702442407608,
-0.08438438177108765,
-0.22045138478279114,
-0.404344379901886,
0.04148481413722038,
-0.10475379228591919,
0.39487138390541077,
0.009386502206325531,
0.588066816329956,
-0.2593165338039398,
-0.04272489249706268,
0.2883617579936981,
-0.027423959225416183,
-0.08893036842346191,
-0.20271195471286774,
-0.10338614881038666,
-0.18705901503562927,
-0.2849715054035187,
0.16242550313472748,
0.38597235083580017,
0.1198355183005333,
0.12474866956472397,
-0.04818485304713249,
-0.1148163378238678,
-0.25712132453918457,
0.08409065008163452,
0.15739469230175018,
0.2821669578552246,
0.04106392338871956,
0.3013719618320465,
0.07789289951324463,
0.07239885628223419,
0.2652687132358551,
0.485615611076355,
-0.23186662793159485,
-0.31912845373153687,
0.12458619475364685,
-0.02445507049560547,
0.2676212787628174,
0.6213520765304565,
-0.035503726452589035,
-0.014262937009334564,
0.2743670642375946,
0.32697349786758423,
-0.28050634264945984,
-0.11673592031002045,
0.5595646500587463,
0.104092538356781,
-0.5772107839584351,
-0.032443415373563766,
0.42422351241111755,
-0.06611521542072296,
0.05928027629852295,
0.19664353132247925,
-0.019912265241146088,
-0.4153895080089569,
0.6873133182525635,
0.18269529938697815,
0.7562255859375,
-0.026912905275821686,
0.4074801802635193,
-0.09187622368335724,
0.3495878577232361,
0.19796760380268097,
0.18221454322338104,
0.2532643675804138,
-0.34496358036994934,
-0.14428456127643585,
0.035793863236904144,
-0.11160442978143692,
0.30666789412498474,
0.15604552626609802,
-0.18709570169448853,
0.037991560995578766,
0.006217949092388153,
0.28620269894599915,
-0.018283871933817863,
-0.12672585248947144,
-0.15765875577926636,
-0.36936724185943604,
-0.24154961109161377,
0.018458310514688492,
0.14412760734558105,
0.009705990552902222,
-0.09932208061218262,
-0.17439407110214233,
0.07858008146286011,
-0.4576195478439331,
-0.44291001558303833,
-0.1579761505126953,
-0.6252821087837219,
0.20996303856372833,
0.32186776399612427,
-0.09559132158756256,
0.21523992717266083,
0.4003434479236603,
0.08917632699012756,
0.22846877574920654,
-0.21908678114414215,
0.008340699598193169,
0.07158201932907104,
0.0011743386276066303,
0.1443866491317749,
0.04530761018395424,
0.26865535974502563,
0.09847802668809891,
0.07926183193922043,
-0.12705472111701965,
-0.18025361001491547,
-0.21691568195819855,
-0.23266135156154633,
0.20826728641986847,
-0.1820070594549179,
-0.4568886160850525,
-0.3589368760585785,
-0.24594071507453918,
-0.2898752689361572,
-0.33126500248908997,
0.038521744310855865,
0.013320047408342361,
-0.10495207458734512,
0.39472949504852295,
-0.2618066072463989,
-0.21871919929981232,
0.05286373570561409,
0.4035632312297821,
-0.1579349935054779,
-0.1114737018942833,
0.47605279088020325,
0.16829203069210052,
-0.009373936802148819,
-0.20263677835464478,
0.08559864014387131,
0.12370765954256058,
-0.5980488657951355,
0.39594805240631104,
-0.2390010952949524,
-0.3244960904121399,
-0.057615458965301514,
0.35022327303886414,
0.28945767879486084,
-0.09821998327970505,
-0.04201994091272354,
-0.42459169030189514,
-0.43929263949394226,
-0.0008983835577964783,
0.3359580934047699,
0.3218543529510498,
-0.011543894186615944,
0.2987797260284424,
0.030203955247998238,
0.39321959018707275,
-0.22284851968288422,
-0.14097627997398376,
-0.25699830055236816,
0.3198022246360779,
0.20275869965553284,
0.08149401843547821,
0.344165176153183,
0.0510309562087059,
0.0015598610043525696,
0.45253169536590576,
-0.33671391010284424,
-0.11363436281681061,
-0.24084404110908508,
0.17624005675315857,
0.18871760368347168,
-0.3197741210460663,
0.13920444250106812,
-0.2850767970085144,
-0.14446254074573517,
-0.37568724155426025,
0.2854781448841095,
0.28470900654792786,
-0.1185009777545929,
-0.12660814821720123,
0.2986679971218109,
0.1675955355167389,
0.19253526628017426,
0.016993923112750053,
-0.1708456575870514,
-0.06390263140201569,
0.1586419939994812,
0.22183816134929657,
-0.05864858254790306,
-0.11657167226076126,
-0.10010211914777756,
0.1243235319852829,
0.017554573714733124,
0.04842572286725044,
0.34322619438171387,
-0.3843614459037781,
-0.13441018760204315,
0.3040526807308197,
0.3968196213245392,
0.17895284295082092,
-0.4033266007900238,
0.03980311006307602,
0.04858798161149025,
0.154889315366745,
-0.24489045143127441,
-0.26187244057655334,
0.2438858300447464,
0.026335813105106354,
0.2345447540283203,
0.353505939245224,
0.08744864165782928,
-0.18133273720741272,
-0.002182506024837494,
0.23563873767852783,
0.17229478061199188,
-0.26209741830825806,
0.026772918179631233,
0.5198604464530945,
-0.0015637576580047607,
0.20519249141216278,
0.2858971655368805,
0.029419727623462677,
0.5735170245170593,
0.31320691108703613,
0.0908893346786499,
0.20578540861606598,
-0.11101622134447098,
0.20405174791812897,
-0.0045174360275268555,
-0.4669378101825714,
0.3745184540748596,
0.023886702954769135,
0.004729121923446655,
0.4105875790119171,
-0.06352315843105316,
0.14933577179908752,
-0.2738238275051117,
0.05264081433415413,
-0.3058513104915619,
0.11323218047618866,
-0.2703651785850525,
-0.27766677737236023,
0.05043821036815643,
-0.15471161901950836,
-0.0400245375931263,
0.07556457817554474,
-0.1563970148563385,
-0.08116121590137482,
0.1423628032207489,
-0.00471968948841095,
-0.19429360330104828,
-0.14989396929740906,
-0.34994620084762573,
-0.021427210420370102,
0.2192486822605133,
-0.5033091902732849,
0.4050554633140564,
0.14556343853473663,
-0.1877383291721344,
-0.1972421556711197,
0.5169714689254761,
0.5575661063194275,
0.38092392683029175,
-0.12703467905521393,
0.347419410943985,
-0.07975229620933533,
0.03773186355829239,
-0.21268761157989502,
0.09342766553163528,
0.06272966414690018,
0.1698603332042694,
0.30980384349823,
-0.024042794480919838,
-0.16777512431144714,
0.04867850989103317,
0.028618842363357544,
0.04321128502488136,
-0.13056178390979767,
0.1809830665588379,
-0.14498019218444824,
-0.395353764295578,
0.009148553013801575,
-0.009894683957099915,
-0.47727057337760925,
0.08151684701442719,
0.613967776298523,
-0.2847595810890198,
0.2693396210670471,
-0.07006478309631348,
0.031219974160194397,
0.12962372601032257,
0.6888219118118286,
0.46952182054519653,
-0.08991921693086624,
-0.5807616114616394,
0.05695068836212158,
-0.3940955400466919,
0.22802971303462982,
-0.32828670740127563,
0.29463234543800354,
0.14055609703063965,
0.08955458551645279,
-0.0314178541302681,
-0.14711745083332062,
0.1764611303806305,
-0.21730034053325653,
-0.3720601201057434,
0.2697402834892273,
-0.09775189310312271,
-0.19477124512195587,
-0.3971366286277771,
-0.034521132707595825,
0.2713106572628021,
-0.45767852663993835,
0.310051828622818,
-0.018493972718715668,
-0.01392853632569313,
-0.3058578372001648,
0.188073992729187,
-0.09275850653648376,
-0.17748050391674042,
0.27360963821411133,
0.19297297298908234,
0.10921860486268997,
-0.11650845408439636,
-0.1212349459528923,
-0.4437463879585266,
-0.1116199716925621,
-0.2730078101158142,
0.02708612009882927,
0.36158496141433716,
0.6506826877593994,
-0.3293811082839966,
-0.4673864543437958,
-0.15963582694530487,
-0.019453639164566994,
0.13898496329784393,
-0.28322547674179077,
-0.06032726913690567,
0.09818566590547562,
-0.03700108826160431,
-0.1547415554523468,
0.25802773237228394,
0.5240416526794434,
-0.12988445162773132,
0.04242423176765442,
-0.23547068238258362,
-0.43185585737228394,
0.3844515085220337,
-0.6561743021011353,
-0.29707589745521545,
0.09856905043125153,
0.1513333022594452,
-0.12007754296064377,
-0.2039685696363449,
-0.6576153039932251,
-0.011831454932689667,
0.19258403778076172,
0.0064063891768455505,
-0.5403890609741211,
0.08844423294067383,
0.028739728033542633,
-0.06842018663883209,
-0.03334777057170868,
0.2988985776901245,
0.041152648627758026,
-0.2757113575935364,
0.3255549371242523,
-0.31791436672210693
] |
https://github.com/huggingface/datasets/issues/4349 | Dataset.map()'s fails at any value of parameter writer_batch_size | I met with the same problem when doing some experiments about layoutlm. I tried to set the writer_batch_size to 1, and the error still exists. Is there any solutions to this problem? | ## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 32 | Dataset.map()'s fails at any value of parameter writer_batch_size
## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
I met with the same problem when doing some experiments about layoutlm. I tried to set the writer_batch_size to 1, and the error still exists. Is there any solutions to this problem? | [
-0.2549961507320404,
-0.4085405766963959,
0.09665369987487793,
0.42863041162490845,
0.23294591903686523,
0.017586782574653625,
0.36135944724082947,
0.2593979835510254,
0.131059929728508,
0.15520450472831726,
0.28622376918792725,
0.05914156511425972,
-0.1847832202911377,
-0.04552052915096283,
-0.14566919207572937,
-0.20545953512191772,
0.09237278997898102,
-0.04216988384723663,
-0.14013710618019104,
-0.019398216158151627,
-0.3787088394165039,
0.07615963369607925,
-0.2715662717819214,
-0.1442142128944397,
-0.3637101352214813,
-0.2576707899570465,
-0.08149145543575287,
-0.05088506639003754,
-0.012684041634202003,
-0.2538661062717438,
-0.03921514004468918,
-0.07920607924461365,
0.06439333409070969,
0.7314352989196777,
-0.00012106044596293941,
0.15368248522281647,
0.08651230484247208,
-0.0697602927684784,
-0.15949083864688873,
-0.05898880958557129,
-0.09553246945142746,
-0.038727857172489166,
-0.2697998583316803,
-0.24695995450019836,
0.11225669831037521,
0.015855038538575172,
0.18809016048908234,
-0.16622482240200043,
0.5088891983032227,
0.35990673303604126,
0.12666833400726318,
0.6991736888885498,
0.08304896950721741,
-0.051465556025505066,
0.01938069984316826,
0.4730716943740845,
-0.1919533610343933,
-0.059148285537958145,
0.24922743439674377,
-0.29391607642173767,
-0.40980374813079834,
0.3504144847393036,
-0.13694584369659424,
0.01298501156270504,
0.23121777176856995,
0.02783021703362465,
0.2286606729030609,
-0.2976701855659485,
0.13176369667053223,
-0.02262415736913681,
0.011326976120471954,
-0.2830757200717926,
-0.479977548122406,
-0.41258543729782104,
-0.22972220182418823,
-0.10845502465963364,
0.1302787959575653,
-0.00798771157860756,
-0.1074652373790741,
-0.15688556432724,
-0.4408595561981201,
0.35235533118247986,
-0.19353047013282776,
0.20339536666870117,
-0.12561294436454773,
0.3592495918273926,
-0.06018086522817612,
0.31800606846809387,
0.24488769471645355,
-0.16736938059329987,
0.14186708629131317,
-0.16757449507713318,
-0.12597247958183289,
0.3222804069519043,
-0.3464231789112091,
-0.1639374941587448,
0.2818056046962738,
0.08873807638883591,
0.3620133101940155,
-0.36051762104034424,
0.2780511677265167,
-0.21053975820541382,
0.2745921015739441,
0.21055778861045837,
0.42027267813682556,
0.2311277985572815,
0.04116278886795044,
0.42108339071273804,
0.2026752084493637,
0.18191277980804443,
0.08362649381160736,
0.07384045422077179,
0.22051164507865906,
-0.41282275319099426,
0.26189637184143066,
-0.23714867234230042,
0.30188941955566406,
0.0028397031128406525,
-0.10686581581830978,
0.24262939393520355,
-0.29627126455307007,
0.15693745017051697,
0.0628645196557045,
0.2640833854675293,
0.06421100348234177,
-0.02740595117211342,
0.0027664154767990112,
0.020617198199033737,
-0.13226710259914398,
0.05545394495129585,
-0.19997337460517883,
-0.14478400349617004,
-0.18970131874084473,
-0.04645325243473053,
0.021144215017557144,
-0.1493096798658371,
0.34213173389434814,
-0.07500186562538147,
0.19073721766471863,
-0.37113726139068604,
-0.01665807142853737,
-0.25260505080223083,
0.12220583856105804,
0.3778110146522522,
-0.13318781554698944,
0.12479118257761002,
0.03682209178805351,
0.07188321650028229,
-0.0024961158633232117,
0.17214864492416382,
-0.13030657172203064,
-0.219047412276268,
0.20446155965328217,
0.09215323626995087,
-0.05664340779185295,
0.12242559343576431,
-0.13970687985420227,
0.09865975379943848,
0.6351867318153381,
-0.12975402176380157,
0.17283019423484802,
-0.35285651683807373,
-0.16534458100795746,
-0.1489732563495636,
-0.018984103575348854,
0.7036290764808655,
0.11919358372688293,
0.045600757002830505,
0.057824961841106415,
0.10445234179496765,
0.08060123026371002,
0.42198532819747925,
-0.19155479967594147,
0.060554854571819305,
-0.15326394140720367,
0.203574076294899,
0.0644492357969284,
-0.18183207511901855,
-0.4863224923610687,
0.356488972902298,
-0.044085994362831116,
0.051902033388614655,
0.1186690479516983,
0.0649157240986824,
0.2858864963054657,
-0.2532079219818115,
0.14665991067886353,
0.07889004796743393,
-0.24718636274337769,
0.3153240978717804,
-0.31269124150276184,
-0.08833401650190353,
-0.016642827540636063,
0.0029890593141317368,
0.32601961493492126,
0.015022031962871552,
0.04587927833199501,
0.03031664341688156,
0.12173536419868469,
-0.2715137004852295,
0.14289912581443787,
0.45093798637390137,
0.06057213246822357,
-0.26952028274536133,
0.09254547208547592,
-0.16498440504074097,
-0.43531888723373413,
0.29327982664108276,
-0.17533469200134277,
-0.05970297008752823,
-0.07775692641735077,
-0.034977901726961136,
-0.07598121464252472,
0.2715284526348114,
-0.14803604781627655,
-0.1630062460899353,
-0.011235162615776062,
0.10111925005912781,
0.04976997897028923,
-0.09940795600414276,
-0.07170893251895905,
0.08338206261396408,
-0.14346840977668762,
0.10180681198835373,
-0.3893093466758728,
-0.12920309603214264,
-0.15354371070861816,
-0.10565687716007233,
-0.23314687609672546,
0.03235243260860443,
0.16951096057891846,
-0.06339050829410553,
-0.11409424245357513,
0.4107946753501892,
-0.11285584419965744,
0.02561681717634201,
-0.33342984318733215,
0.18987654149532318,
0.25423359870910645,
-0.02964949421584606,
0.06368571519851685,
0.19646888971328735,
0.1371326595544815,
-0.11995566636323929,
-0.22304251790046692,
0.07941954582929611,
0.2551165223121643,
0.125139981508255,
-0.12221615761518478,
0.10570346564054489,
0.007506405934691429,
0.016170334070920944,
-0.21496401727199554,
-0.23476606607437134,
0.08102227747440338,
-0.021694805473089218,
0.4558163583278656,
0.033627040684223175,
-0.10930371284484863,
-0.23081326484680176,
0.22074253857135773,
-0.105064257979393,
0.26595547795295715,
0.24846673011779785,
-0.2770918309688568,
-0.03941046819090843,
-0.12382343411445618,
0.3397199213504791,
0.4484456777572632,
-0.009372157044708729,
-0.1279749721288681,
-0.03168804943561554,
-0.27998581528663635,
-0.059869684278964996,
0.08631189167499542,
0.19179768860340118,
0.1437056064605713,
0.30067652463912964,
0.21400848031044006,
0.16427913308143616,
-0.4125704765319824,
-0.24900437891483307,
0.16540178656578064,
0.20899459719657898,
-0.3966592848300934,
0.1585261970758438,
0.25766801834106445,
0.09105917066335678,
-0.13468722999095917,
0.1582665741443634,
-0.32236161828041077,
-0.08151339739561081,
-0.0632597878575325,
0.23076894879341125,
-0.3480379283428192,
0.06317300349473953,
0.11981500685214996,
0.3087458908557892,
0.2692214846611023,
-0.0895010456442833,
0.08993490040302277,
-0.1529722362756729,
-0.06155075877904892,
-0.09836721420288086,
0.2079993188381195,
-0.3659324645996094,
0.39451947808265686,
0.19917553663253784,
-0.21815843880176544,
-0.1864873617887497,
-0.29215216636657715,
0.047872308641672134,
-0.16273532807826996,
0.34222346544265747,
0.09150392562150955,
0.09521548449993134,
-0.06299985945224762,
-0.028554663062095642,
0.22384235262870789,
-0.07074788212776184,
-0.19956757128238678,
0.01916610822081566,
0.15463027358055115,
-0.30094796419143677,
-0.15854845941066742,
0.17690390348434448,
0.08636573702096939,
-0.4077359735965729,
0.19370849430561066,
-0.12652073800563812,
0.17930468916893005,
0.4783584773540497,
0.34875360131263733,
0.08323018252849579,
0.01073118019849062,
-0.051842235028743744,
-0.05549287796020508,
-0.09220007061958313,
0.2649373412132263,
-0.09245263040065765,
-0.3057470917701721,
-0.24808116257190704,
-0.07491613924503326,
-0.11158633232116699,
0.5124540328979492,
-0.6443178653717041,
-0.35743165016174316,
-0.32618093490600586,
-0.1612044870853424,
0.04972316324710846,
0.2880780100822449,
0.467058002948761,
0.10469725728034973,
0.022646481171250343,
-0.22461053729057312,
-0.3394986093044281,
0.11181451380252838,
0.3409174382686615,
0.22569352388381958,
-0.13831156492233276,
0.512859046459198,
0.029867347329854965,
0.5854806900024414,
0.4212762117385864,
-0.28622692823410034,
0.3482707738876343,
0.17032229900360107,
0.19548457860946655,
-0.08339578658342361,
-0.33517181873321533,
-0.02676711417734623,
-0.21745148301124573,
-0.15934334695339203,
0.20645608007907867,
-0.13963016867637634,
-0.1449049711227417,
0.08827847242355347,
-0.1411079615354538,
-0.12299598008394241,
-0.13735006749629974,
0.331743448972702,
-0.009157128632068634,
0.6276150941848755,
-0.1398429125547409,
0.17500609159469604,
-0.24301005899906158,
0.05968090891838074,
-0.05537359043955803,
-0.14981764554977417,
0.24353578686714172,
-0.13690437376499176,
-0.2361508309841156,
0.1524321436882019,
-0.49120599031448364,
0.2563071548938751,
0.11086206138134003,
0.3054404556751251,
-0.09027521312236786,
-0.028596583753824234,
-0.08831436932086945,
-0.06547044217586517,
0.8383856415748596,
-0.1291293203830719,
0.06567702442407608,
-0.08438438177108765,
-0.22045138478279114,
-0.404344379901886,
0.04148481413722038,
-0.10475379228591919,
0.39487138390541077,
0.009386502206325531,
0.588066816329956,
-0.2593165338039398,
-0.04272489249706268,
0.2883617579936981,
-0.027423959225416183,
-0.08893036842346191,
-0.20271195471286774,
-0.10338614881038666,
-0.18705901503562927,
-0.2849715054035187,
0.16242550313472748,
0.38597235083580017,
0.1198355183005333,
0.12474866956472397,
-0.04818485304713249,
-0.1148163378238678,
-0.25712132453918457,
0.08409065008163452,
0.15739469230175018,
0.2821669578552246,
0.04106392338871956,
0.3013719618320465,
0.07789289951324463,
0.07239885628223419,
0.2652687132358551,
0.485615611076355,
-0.23186662793159485,
-0.31912845373153687,
0.12458619475364685,
-0.02445507049560547,
0.2676212787628174,
0.6213520765304565,
-0.035503726452589035,
-0.014262937009334564,
0.2743670642375946,
0.32697349786758423,
-0.28050634264945984,
-0.11673592031002045,
0.5595646500587463,
0.104092538356781,
-0.5772107839584351,
-0.032443415373563766,
0.42422351241111755,
-0.06611521542072296,
0.05928027629852295,
0.19664353132247925,
-0.019912265241146088,
-0.4153895080089569,
0.6873133182525635,
0.18269529938697815,
0.7562255859375,
-0.026912905275821686,
0.4074801802635193,
-0.09187622368335724,
0.3495878577232361,
0.19796760380268097,
0.18221454322338104,
0.2532643675804138,
-0.34496358036994934,
-0.14428456127643585,
0.035793863236904144,
-0.11160442978143692,
0.30666789412498474,
0.15604552626609802,
-0.18709570169448853,
0.037991560995578766,
0.006217949092388153,
0.28620269894599915,
-0.018283871933817863,
-0.12672585248947144,
-0.15765875577926636,
-0.36936724185943604,
-0.24154961109161377,
0.018458310514688492,
0.14412760734558105,
0.009705990552902222,
-0.09932208061218262,
-0.17439407110214233,
0.07858008146286011,
-0.4576195478439331,
-0.44291001558303833,
-0.1579761505126953,
-0.6252821087837219,
0.20996303856372833,
0.32186776399612427,
-0.09559132158756256,
0.21523992717266083,
0.4003434479236603,
0.08917632699012756,
0.22846877574920654,
-0.21908678114414215,
0.008340699598193169,
0.07158201932907104,
0.0011743386276066303,
0.1443866491317749,
0.04530761018395424,
0.26865535974502563,
0.09847802668809891,
0.07926183193922043,
-0.12705472111701965,
-0.18025361001491547,
-0.21691568195819855,
-0.23266135156154633,
0.20826728641986847,
-0.1820070594549179,
-0.4568886160850525,
-0.3589368760585785,
-0.24594071507453918,
-0.2898752689361572,
-0.33126500248908997,
0.038521744310855865,
0.013320047408342361,
-0.10495207458734512,
0.39472949504852295,
-0.2618066072463989,
-0.21871919929981232,
0.05286373570561409,
0.4035632312297821,
-0.1579349935054779,
-0.1114737018942833,
0.47605279088020325,
0.16829203069210052,
-0.009373936802148819,
-0.20263677835464478,
0.08559864014387131,
0.12370765954256058,
-0.5980488657951355,
0.39594805240631104,
-0.2390010952949524,
-0.3244960904121399,
-0.057615458965301514,
0.35022327303886414,
0.28945767879486084,
-0.09821998327970505,
-0.04201994091272354,
-0.42459169030189514,
-0.43929263949394226,
-0.0008983835577964783,
0.3359580934047699,
0.3218543529510498,
-0.011543894186615944,
0.2987797260284424,
0.030203955247998238,
0.39321959018707275,
-0.22284851968288422,
-0.14097627997398376,
-0.25699830055236816,
0.3198022246360779,
0.20275869965553284,
0.08149401843547821,
0.344165176153183,
0.0510309562087059,
0.0015598610043525696,
0.45253169536590576,
-0.33671391010284424,
-0.11363436281681061,
-0.24084404110908508,
0.17624005675315857,
0.18871760368347168,
-0.3197741210460663,
0.13920444250106812,
-0.2850767970085144,
-0.14446254074573517,
-0.37568724155426025,
0.2854781448841095,
0.28470900654792786,
-0.1185009777545929,
-0.12660814821720123,
0.2986679971218109,
0.1675955355167389,
0.19253526628017426,
0.016993923112750053,
-0.1708456575870514,
-0.06390263140201569,
0.1586419939994812,
0.22183816134929657,
-0.05864858254790306,
-0.11657167226076126,
-0.10010211914777756,
0.1243235319852829,
0.017554573714733124,
0.04842572286725044,
0.34322619438171387,
-0.3843614459037781,
-0.13441018760204315,
0.3040526807308197,
0.3968196213245392,
0.17895284295082092,
-0.4033266007900238,
0.03980311006307602,
0.04858798161149025,
0.154889315366745,
-0.24489045143127441,
-0.26187244057655334,
0.2438858300447464,
0.026335813105106354,
0.2345447540283203,
0.353505939245224,
0.08744864165782928,
-0.18133273720741272,
-0.002182506024837494,
0.23563873767852783,
0.17229478061199188,
-0.26209741830825806,
0.026772918179631233,
0.5198604464530945,
-0.0015637576580047607,
0.20519249141216278,
0.2858971655368805,
0.029419727623462677,
0.5735170245170593,
0.31320691108703613,
0.0908893346786499,
0.20578540861606598,
-0.11101622134447098,
0.20405174791812897,
-0.0045174360275268555,
-0.4669378101825714,
0.3745184540748596,
0.023886702954769135,
0.004729121923446655,
0.4105875790119171,
-0.06352315843105316,
0.14933577179908752,
-0.2738238275051117,
0.05264081433415413,
-0.3058513104915619,
0.11323218047618866,
-0.2703651785850525,
-0.27766677737236023,
0.05043821036815643,
-0.15471161901950836,
-0.0400245375931263,
0.07556457817554474,
-0.1563970148563385,
-0.08116121590137482,
0.1423628032207489,
-0.00471968948841095,
-0.19429360330104828,
-0.14989396929740906,
-0.34994620084762573,
-0.021427210420370102,
0.2192486822605133,
-0.5033091902732849,
0.4050554633140564,
0.14556343853473663,
-0.1877383291721344,
-0.1972421556711197,
0.5169714689254761,
0.5575661063194275,
0.38092392683029175,
-0.12703467905521393,
0.347419410943985,
-0.07975229620933533,
0.03773186355829239,
-0.21268761157989502,
0.09342766553163528,
0.06272966414690018,
0.1698603332042694,
0.30980384349823,
-0.024042794480919838,
-0.16777512431144714,
0.04867850989103317,
0.028618842363357544,
0.04321128502488136,
-0.13056178390979767,
0.1809830665588379,
-0.14498019218444824,
-0.395353764295578,
0.009148553013801575,
-0.009894683957099915,
-0.47727057337760925,
0.08151684701442719,
0.613967776298523,
-0.2847595810890198,
0.2693396210670471,
-0.07006478309631348,
0.031219974160194397,
0.12962372601032257,
0.6888219118118286,
0.46952182054519653,
-0.08991921693086624,
-0.5807616114616394,
0.05695068836212158,
-0.3940955400466919,
0.22802971303462982,
-0.32828670740127563,
0.29463234543800354,
0.14055609703063965,
0.08955458551645279,
-0.0314178541302681,
-0.14711745083332062,
0.1764611303806305,
-0.21730034053325653,
-0.3720601201057434,
0.2697402834892273,
-0.09775189310312271,
-0.19477124512195587,
-0.3971366286277771,
-0.034521132707595825,
0.2713106572628021,
-0.45767852663993835,
0.310051828622818,
-0.018493972718715668,
-0.01392853632569313,
-0.3058578372001648,
0.188073992729187,
-0.09275850653648376,
-0.17748050391674042,
0.27360963821411133,
0.19297297298908234,
0.10921860486268997,
-0.11650845408439636,
-0.1212349459528923,
-0.4437463879585266,
-0.1116199716925621,
-0.2730078101158142,
0.02708612009882927,
0.36158496141433716,
0.6506826877593994,
-0.3293811082839966,
-0.4673864543437958,
-0.15963582694530487,
-0.019453639164566994,
0.13898496329784393,
-0.28322547674179077,
-0.06032726913690567,
0.09818566590547562,
-0.03700108826160431,
-0.1547415554523468,
0.25802773237228394,
0.5240416526794434,
-0.12988445162773132,
0.04242423176765442,
-0.23547068238258362,
-0.43185585737228394,
0.3844515085220337,
-0.6561743021011353,
-0.29707589745521545,
0.09856905043125153,
0.1513333022594452,
-0.12007754296064377,
-0.2039685696363449,
-0.6576153039932251,
-0.011831454932689667,
0.19258403778076172,
0.0064063891768455505,
-0.5403890609741211,
0.08844423294067383,
0.028739728033542633,
-0.06842018663883209,
-0.03334777057170868,
0.2988985776901245,
0.041152648627758026,
-0.2757113575935364,
0.3255549371242523,
-0.31791436672210693
] |
https://github.com/huggingface/datasets/issues/4349 | Dataset.map()'s fails at any value of parameter writer_batch_size | The problem lies in how your Features are defined. It's erroring out when it actually goes to write them to disk | ## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 21 | Dataset.map()'s fails at any value of parameter writer_batch_size
## Describe the bug
If the the value of `writer_batch_size` is less than the total number of instances in the dataset it will fail at that same number of instances. If it is greater than the total number of instances, it fails on the last instance.
Context:
I am attempting to fine-tune a pre-trained HuggingFace transformers model called LayoutLMv2. This model takes three inputs: document images, words and word bounding boxes. [The Processor for this model has two options](https://huggingface.co/docs/transformers/model_doc/layoutlmv2#usage-layoutlmv2processor), the default is passing a document to the Processor and allowing it to create images of the document and use PyTesseract to perform OCR and generate words/bounding boxes. The other option is to provide `revision="no_ocr"` to the pre-trained model which allows you to use your own OCR results (in my case, Amazon Textract) so you have to provide the image, words and bounding boxes yourself. I am using this second option which might be good context for the bug.
I am using the Dataset.map() paradigm to create these three inputs, encode them and save the dataset. Note that my documents (data instances) on average are fairly large and can range from 1 page up to 300 pages.
Code I am using is provided below
## Steps to reproduce the bug
I do not have explicit sample code, but I will paste the code I'm using in case reading it helps. When `.map()` is called, the dataset has 2933 rows, many of which represent large pdf documents.
```python
def get_encoded_data(data):
dataset = Dataset.from_pandas(data)
unique_labels = data['label'].unique()
features = Features({
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'input_ids': Sequence(feature=Value(dtype='int64')),
'attention_mask': Sequence(Value(dtype='int64')),
'token_type_ids': Sequence(Value(dtype='int64')),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
'label': ClassLabel(num_classes=len(unique_labels), names=unique_labels),
})
encoded_dataset = dataset.map(preprocess_data, features=features, remove_columns=dataset.column_names, writer_batch_size=dataset.num_rows+1)
encoded_dataset.save_to_disk(TRAINING_DATA_PATH + ENCODED_DATASET_NAME)
encoded_dataset.set_format(type="torch")
return encoded_dataset
```
```python
PROCESSOR = LayoutLMv2Processor.from_pretrained(MODEL_PATH, revision="no_ocr", use_fast=False)
def preprocess_data(examples):
directory = os.path.join(FILES_PATH, examples['file_location'])
images_dir = os.path.join(directory, PDF_IMAGE_DIR)
textract_response_path = os.path.join(directory, 'textract.json')
doc_meta_path = os.path.join(directory, 'doc_meta.json')
textract_document = get_textract_document(textract_response_path, doc_meta_path)
images, words, bboxes = get_doc_training_data(images_dir, textract_document)
encoded_inputs = PROCESSOR(images, words, boxes=bboxes, padding="max_length", truncation=True)
# https://github.com/NielsRogge/Transformers-Tutorials/issues/36
encoded_inputs["image"] = np.array(encoded_inputs["image"])
encoded_inputs["label"] = examples['label_id']
return encoded_inputs
```
## Expected results
My expectation is that `writer_batch_size` allows one to simply trade off performance and memory requirements, not that it must be a specific number for `.map()` to function correctly.
## Actual results
If writer_batch_size is set to a value less than the number of rows, I get either:
```
OverflowError: There was an overflow with type <class 'list'>. Try to reduce writer_batch_size to have batches smaller than 2GB.
(offset overflow while concatenating arrays)
```
or simply
```
zsh: killed python doc_classification.py
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
```
If it is greater than the number of rows, i get the `zsh: killed` error above
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: macOS-12.2.1-arm64-arm-64bit
- Python version: 3.9.12
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
The problem lies in how your Features are defined. It's erroring out when it actually goes to write them to disk | [
-0.2549961507320404,
-0.4085405766963959,
0.09665369987487793,
0.42863041162490845,
0.23294591903686523,
0.017586782574653625,
0.36135944724082947,
0.2593979835510254,
0.131059929728508,
0.15520450472831726,
0.28622376918792725,
0.05914156511425972,
-0.1847832202911377,
-0.04552052915096283,
-0.14566919207572937,
-0.20545953512191772,
0.09237278997898102,
-0.04216988384723663,
-0.14013710618019104,
-0.019398216158151627,
-0.3787088394165039,
0.07615963369607925,
-0.2715662717819214,
-0.1442142128944397,
-0.3637101352214813,
-0.2576707899570465,
-0.08149145543575287,
-0.05088506639003754,
-0.012684041634202003,
-0.2538661062717438,
-0.03921514004468918,
-0.07920607924461365,
0.06439333409070969,
0.7314352989196777,
-0.00012106044596293941,
0.15368248522281647,
0.08651230484247208,
-0.0697602927684784,
-0.15949083864688873,
-0.05898880958557129,
-0.09553246945142746,
-0.038727857172489166,
-0.2697998583316803,
-0.24695995450019836,
0.11225669831037521,
0.015855038538575172,
0.18809016048908234,
-0.16622482240200043,
0.5088891983032227,
0.35990673303604126,
0.12666833400726318,
0.6991736888885498,
0.08304896950721741,
-0.051465556025505066,
0.01938069984316826,
0.4730716943740845,
-0.1919533610343933,
-0.059148285537958145,
0.24922743439674377,
-0.29391607642173767,
-0.40980374813079834,
0.3504144847393036,
-0.13694584369659424,
0.01298501156270504,
0.23121777176856995,
0.02783021703362465,
0.2286606729030609,
-0.2976701855659485,
0.13176369667053223,
-0.02262415736913681,
0.011326976120471954,
-0.2830757200717926,
-0.479977548122406,
-0.41258543729782104,
-0.22972220182418823,
-0.10845502465963364,
0.1302787959575653,
-0.00798771157860756,
-0.1074652373790741,
-0.15688556432724,
-0.4408595561981201,
0.35235533118247986,
-0.19353047013282776,
0.20339536666870117,
-0.12561294436454773,
0.3592495918273926,
-0.06018086522817612,
0.31800606846809387,
0.24488769471645355,
-0.16736938059329987,
0.14186708629131317,
-0.16757449507713318,
-0.12597247958183289,
0.3222804069519043,
-0.3464231789112091,
-0.1639374941587448,
0.2818056046962738,
0.08873807638883591,
0.3620133101940155,
-0.36051762104034424,
0.2780511677265167,
-0.21053975820541382,
0.2745921015739441,
0.21055778861045837,
0.42027267813682556,
0.2311277985572815,
0.04116278886795044,
0.42108339071273804,
0.2026752084493637,
0.18191277980804443,
0.08362649381160736,
0.07384045422077179,
0.22051164507865906,
-0.41282275319099426,
0.26189637184143066,
-0.23714867234230042,
0.30188941955566406,
0.0028397031128406525,
-0.10686581581830978,
0.24262939393520355,
-0.29627126455307007,
0.15693745017051697,
0.0628645196557045,
0.2640833854675293,
0.06421100348234177,
-0.02740595117211342,
0.0027664154767990112,
0.020617198199033737,
-0.13226710259914398,
0.05545394495129585,
-0.19997337460517883,
-0.14478400349617004,
-0.18970131874084473,
-0.04645325243473053,
0.021144215017557144,
-0.1493096798658371,
0.34213173389434814,
-0.07500186562538147,
0.19073721766471863,
-0.37113726139068604,
-0.01665807142853737,
-0.25260505080223083,
0.12220583856105804,
0.3778110146522522,
-0.13318781554698944,
0.12479118257761002,
0.03682209178805351,
0.07188321650028229,
-0.0024961158633232117,
0.17214864492416382,
-0.13030657172203064,
-0.219047412276268,
0.20446155965328217,
0.09215323626995087,
-0.05664340779185295,
0.12242559343576431,
-0.13970687985420227,
0.09865975379943848,
0.6351867318153381,
-0.12975402176380157,
0.17283019423484802,
-0.35285651683807373,
-0.16534458100795746,
-0.1489732563495636,
-0.018984103575348854,
0.7036290764808655,
0.11919358372688293,
0.045600757002830505,
0.057824961841106415,
0.10445234179496765,
0.08060123026371002,
0.42198532819747925,
-0.19155479967594147,
0.060554854571819305,
-0.15326394140720367,
0.203574076294899,
0.0644492357969284,
-0.18183207511901855,
-0.4863224923610687,
0.356488972902298,
-0.044085994362831116,
0.051902033388614655,
0.1186690479516983,
0.0649157240986824,
0.2858864963054657,
-0.2532079219818115,
0.14665991067886353,
0.07889004796743393,
-0.24718636274337769,
0.3153240978717804,
-0.31269124150276184,
-0.08833401650190353,
-0.016642827540636063,
0.0029890593141317368,
0.32601961493492126,
0.015022031962871552,
0.04587927833199501,
0.03031664341688156,
0.12173536419868469,
-0.2715137004852295,
0.14289912581443787,
0.45093798637390137,
0.06057213246822357,
-0.26952028274536133,
0.09254547208547592,
-0.16498440504074097,
-0.43531888723373413,
0.29327982664108276,
-0.17533469200134277,
-0.05970297008752823,
-0.07775692641735077,
-0.034977901726961136,
-0.07598121464252472,
0.2715284526348114,
-0.14803604781627655,
-0.1630062460899353,
-0.011235162615776062,
0.10111925005912781,
0.04976997897028923,
-0.09940795600414276,
-0.07170893251895905,
0.08338206261396408,
-0.14346840977668762,
0.10180681198835373,
-0.3893093466758728,
-0.12920309603214264,
-0.15354371070861816,
-0.10565687716007233,
-0.23314687609672546,
0.03235243260860443,
0.16951096057891846,
-0.06339050829410553,
-0.11409424245357513,
0.4107946753501892,
-0.11285584419965744,
0.02561681717634201,
-0.33342984318733215,
0.18987654149532318,
0.25423359870910645,
-0.02964949421584606,
0.06368571519851685,
0.19646888971328735,
0.1371326595544815,
-0.11995566636323929,
-0.22304251790046692,
0.07941954582929611,
0.2551165223121643,
0.125139981508255,
-0.12221615761518478,
0.10570346564054489,
0.007506405934691429,
0.016170334070920944,
-0.21496401727199554,
-0.23476606607437134,
0.08102227747440338,
-0.021694805473089218,
0.4558163583278656,
0.033627040684223175,
-0.10930371284484863,
-0.23081326484680176,
0.22074253857135773,
-0.105064257979393,
0.26595547795295715,
0.24846673011779785,
-0.2770918309688568,
-0.03941046819090843,
-0.12382343411445618,
0.3397199213504791,
0.4484456777572632,
-0.009372157044708729,
-0.1279749721288681,
-0.03168804943561554,
-0.27998581528663635,
-0.059869684278964996,
0.08631189167499542,
0.19179768860340118,
0.1437056064605713,
0.30067652463912964,
0.21400848031044006,
0.16427913308143616,
-0.4125704765319824,
-0.24900437891483307,
0.16540178656578064,
0.20899459719657898,
-0.3966592848300934,
0.1585261970758438,
0.25766801834106445,
0.09105917066335678,
-0.13468722999095917,
0.1582665741443634,
-0.32236161828041077,
-0.08151339739561081,
-0.0632597878575325,
0.23076894879341125,
-0.3480379283428192,
0.06317300349473953,
0.11981500685214996,
0.3087458908557892,
0.2692214846611023,
-0.0895010456442833,
0.08993490040302277,
-0.1529722362756729,
-0.06155075877904892,
-0.09836721420288086,
0.2079993188381195,
-0.3659324645996094,
0.39451947808265686,
0.19917553663253784,
-0.21815843880176544,
-0.1864873617887497,
-0.29215216636657715,
0.047872308641672134,
-0.16273532807826996,
0.34222346544265747,
0.09150392562150955,
0.09521548449993134,
-0.06299985945224762,
-0.028554663062095642,
0.22384235262870789,
-0.07074788212776184,
-0.19956757128238678,
0.01916610822081566,
0.15463027358055115,
-0.30094796419143677,
-0.15854845941066742,
0.17690390348434448,
0.08636573702096939,
-0.4077359735965729,
0.19370849430561066,
-0.12652073800563812,
0.17930468916893005,
0.4783584773540497,
0.34875360131263733,
0.08323018252849579,
0.01073118019849062,
-0.051842235028743744,
-0.05549287796020508,
-0.09220007061958313,
0.2649373412132263,
-0.09245263040065765,
-0.3057470917701721,
-0.24808116257190704,
-0.07491613924503326,
-0.11158633232116699,
0.5124540328979492,
-0.6443178653717041,
-0.35743165016174316,
-0.32618093490600586,
-0.1612044870853424,
0.04972316324710846,
0.2880780100822449,
0.467058002948761,
0.10469725728034973,
0.022646481171250343,
-0.22461053729057312,
-0.3394986093044281,
0.11181451380252838,
0.3409174382686615,
0.22569352388381958,
-0.13831156492233276,
0.512859046459198,
0.029867347329854965,
0.5854806900024414,
0.4212762117385864,
-0.28622692823410034,
0.3482707738876343,
0.17032229900360107,
0.19548457860946655,
-0.08339578658342361,
-0.33517181873321533,
-0.02676711417734623,
-0.21745148301124573,
-0.15934334695339203,
0.20645608007907867,
-0.13963016867637634,
-0.1449049711227417,
0.08827847242355347,
-0.1411079615354538,
-0.12299598008394241,
-0.13735006749629974,
0.331743448972702,
-0.009157128632068634,
0.6276150941848755,
-0.1398429125547409,
0.17500609159469604,
-0.24301005899906158,
0.05968090891838074,
-0.05537359043955803,
-0.14981764554977417,
0.24353578686714172,
-0.13690437376499176,
-0.2361508309841156,
0.1524321436882019,
-0.49120599031448364,
0.2563071548938751,
0.11086206138134003,
0.3054404556751251,
-0.09027521312236786,
-0.028596583753824234,
-0.08831436932086945,
-0.06547044217586517,
0.8383856415748596,
-0.1291293203830719,
0.06567702442407608,
-0.08438438177108765,
-0.22045138478279114,
-0.404344379901886,
0.04148481413722038,
-0.10475379228591919,
0.39487138390541077,
0.009386502206325531,
0.588066816329956,
-0.2593165338039398,
-0.04272489249706268,
0.2883617579936981,
-0.027423959225416183,
-0.08893036842346191,
-0.20271195471286774,
-0.10338614881038666,
-0.18705901503562927,
-0.2849715054035187,
0.16242550313472748,
0.38597235083580017,
0.1198355183005333,
0.12474866956472397,
-0.04818485304713249,
-0.1148163378238678,
-0.25712132453918457,
0.08409065008163452,
0.15739469230175018,
0.2821669578552246,
0.04106392338871956,
0.3013719618320465,
0.07789289951324463,
0.07239885628223419,
0.2652687132358551,
0.485615611076355,
-0.23186662793159485,
-0.31912845373153687,
0.12458619475364685,
-0.02445507049560547,
0.2676212787628174,
0.6213520765304565,
-0.035503726452589035,
-0.014262937009334564,
0.2743670642375946,
0.32697349786758423,
-0.28050634264945984,
-0.11673592031002045,
0.5595646500587463,
0.104092538356781,
-0.5772107839584351,
-0.032443415373563766,
0.42422351241111755,
-0.06611521542072296,
0.05928027629852295,
0.19664353132247925,
-0.019912265241146088,
-0.4153895080089569,
0.6873133182525635,
0.18269529938697815,
0.7562255859375,
-0.026912905275821686,
0.4074801802635193,
-0.09187622368335724,
0.3495878577232361,
0.19796760380268097,
0.18221454322338104,
0.2532643675804138,
-0.34496358036994934,
-0.14428456127643585,
0.035793863236904144,
-0.11160442978143692,
0.30666789412498474,
0.15604552626609802,
-0.18709570169448853,
0.037991560995578766,
0.006217949092388153,
0.28620269894599915,
-0.018283871933817863,
-0.12672585248947144,
-0.15765875577926636,
-0.36936724185943604,
-0.24154961109161377,
0.018458310514688492,
0.14412760734558105,
0.009705990552902222,
-0.09932208061218262,
-0.17439407110214233,
0.07858008146286011,
-0.4576195478439331,
-0.44291001558303833,
-0.1579761505126953,
-0.6252821087837219,
0.20996303856372833,
0.32186776399612427,
-0.09559132158756256,
0.21523992717266083,
0.4003434479236603,
0.08917632699012756,
0.22846877574920654,
-0.21908678114414215,
0.008340699598193169,
0.07158201932907104,
0.0011743386276066303,
0.1443866491317749,
0.04530761018395424,
0.26865535974502563,
0.09847802668809891,
0.07926183193922043,
-0.12705472111701965,
-0.18025361001491547,
-0.21691568195819855,
-0.23266135156154633,
0.20826728641986847,
-0.1820070594549179,
-0.4568886160850525,
-0.3589368760585785,
-0.24594071507453918,
-0.2898752689361572,
-0.33126500248908997,
0.038521744310855865,
0.013320047408342361,
-0.10495207458734512,
0.39472949504852295,
-0.2618066072463989,
-0.21871919929981232,
0.05286373570561409,
0.4035632312297821,
-0.1579349935054779,
-0.1114737018942833,
0.47605279088020325,
0.16829203069210052,
-0.009373936802148819,
-0.20263677835464478,
0.08559864014387131,
0.12370765954256058,
-0.5980488657951355,
0.39594805240631104,
-0.2390010952949524,
-0.3244960904121399,
-0.057615458965301514,
0.35022327303886414,
0.28945767879486084,
-0.09821998327970505,
-0.04201994091272354,
-0.42459169030189514,
-0.43929263949394226,
-0.0008983835577964783,
0.3359580934047699,
0.3218543529510498,
-0.011543894186615944,
0.2987797260284424,
0.030203955247998238,
0.39321959018707275,
-0.22284851968288422,
-0.14097627997398376,
-0.25699830055236816,
0.3198022246360779,
0.20275869965553284,
0.08149401843547821,
0.344165176153183,
0.0510309562087059,
0.0015598610043525696,
0.45253169536590576,
-0.33671391010284424,
-0.11363436281681061,
-0.24084404110908508,
0.17624005675315857,
0.18871760368347168,
-0.3197741210460663,
0.13920444250106812,
-0.2850767970085144,
-0.14446254074573517,
-0.37568724155426025,
0.2854781448841095,
0.28470900654792786,
-0.1185009777545929,
-0.12660814821720123,
0.2986679971218109,
0.1675955355167389,
0.19253526628017426,
0.016993923112750053,
-0.1708456575870514,
-0.06390263140201569,
0.1586419939994812,
0.22183816134929657,
-0.05864858254790306,
-0.11657167226076126,
-0.10010211914777756,
0.1243235319852829,
0.017554573714733124,
0.04842572286725044,
0.34322619438171387,
-0.3843614459037781,
-0.13441018760204315,
0.3040526807308197,
0.3968196213245392,
0.17895284295082092,
-0.4033266007900238,
0.03980311006307602,
0.04858798161149025,
0.154889315366745,
-0.24489045143127441,
-0.26187244057655334,
0.2438858300447464,
0.026335813105106354,
0.2345447540283203,
0.353505939245224,
0.08744864165782928,
-0.18133273720741272,
-0.002182506024837494,
0.23563873767852783,
0.17229478061199188,
-0.26209741830825806,
0.026772918179631233,
0.5198604464530945,
-0.0015637576580047607,
0.20519249141216278,
0.2858971655368805,
0.029419727623462677,
0.5735170245170593,
0.31320691108703613,
0.0908893346786499,
0.20578540861606598,
-0.11101622134447098,
0.20405174791812897,
-0.0045174360275268555,
-0.4669378101825714,
0.3745184540748596,
0.023886702954769135,
0.004729121923446655,
0.4105875790119171,
-0.06352315843105316,
0.14933577179908752,
-0.2738238275051117,
0.05264081433415413,
-0.3058513104915619,
0.11323218047618866,
-0.2703651785850525,
-0.27766677737236023,
0.05043821036815643,
-0.15471161901950836,
-0.0400245375931263,
0.07556457817554474,
-0.1563970148563385,
-0.08116121590137482,
0.1423628032207489,
-0.00471968948841095,
-0.19429360330104828,
-0.14989396929740906,
-0.34994620084762573,
-0.021427210420370102,
0.2192486822605133,
-0.5033091902732849,
0.4050554633140564,
0.14556343853473663,
-0.1877383291721344,
-0.1972421556711197,
0.5169714689254761,
0.5575661063194275,
0.38092392683029175,
-0.12703467905521393,
0.347419410943985,
-0.07975229620933533,
0.03773186355829239,
-0.21268761157989502,
0.09342766553163528,
0.06272966414690018,
0.1698603332042694,
0.30980384349823,
-0.024042794480919838,
-0.16777512431144714,
0.04867850989103317,
0.028618842363357544,
0.04321128502488136,
-0.13056178390979767,
0.1809830665588379,
-0.14498019218444824,
-0.395353764295578,
0.009148553013801575,
-0.009894683957099915,
-0.47727057337760925,
0.08151684701442719,
0.613967776298523,
-0.2847595810890198,
0.2693396210670471,
-0.07006478309631348,
0.031219974160194397,
0.12962372601032257,
0.6888219118118286,
0.46952182054519653,
-0.08991921693086624,
-0.5807616114616394,
0.05695068836212158,
-0.3940955400466919,
0.22802971303462982,
-0.32828670740127563,
0.29463234543800354,
0.14055609703063965,
0.08955458551645279,
-0.0314178541302681,
-0.14711745083332062,
0.1764611303806305,
-0.21730034053325653,
-0.3720601201057434,
0.2697402834892273,
-0.09775189310312271,
-0.19477124512195587,
-0.3971366286277771,
-0.034521132707595825,
0.2713106572628021,
-0.45767852663993835,
0.310051828622818,
-0.018493972718715668,
-0.01392853632569313,
-0.3058578372001648,
0.188073992729187,
-0.09275850653648376,
-0.17748050391674042,
0.27360963821411133,
0.19297297298908234,
0.10921860486268997,
-0.11650845408439636,
-0.1212349459528923,
-0.4437463879585266,
-0.1116199716925621,
-0.2730078101158142,
0.02708612009882927,
0.36158496141433716,
0.6506826877593994,
-0.3293811082839966,
-0.4673864543437958,
-0.15963582694530487,
-0.019453639164566994,
0.13898496329784393,
-0.28322547674179077,
-0.06032726913690567,
0.09818566590547562,
-0.03700108826160431,
-0.1547415554523468,
0.25802773237228394,
0.5240416526794434,
-0.12988445162773132,
0.04242423176765442,
-0.23547068238258362,
-0.43185585737228394,
0.3844515085220337,
-0.6561743021011353,
-0.29707589745521545,
0.09856905043125153,
0.1513333022594452,
-0.12007754296064377,
-0.2039685696363449,
-0.6576153039932251,
-0.011831454932689667,
0.19258403778076172,
0.0064063891768455505,
-0.5403890609741211,
0.08844423294067383,
0.028739728033542633,
-0.06842018663883209,
-0.03334777057170868,
0.2988985776901245,
0.041152648627758026,
-0.2757113575935364,
0.3255549371242523,
-0.31791436672210693
] |
https://github.com/huggingface/datasets/issues/4348 | `inspect` functions can't fetch dataset script from the Hub | Hi, thanks for reporting! `git bisect` points to #2986 as the PR that introduced the bug. Since then, there have been some additional changes to the loading logic, and in the current state, `force_local_path` (set via `local_path`) forbids pulling a script from the internet instead of downloading it: https://github.com/huggingface/datasets/blob/cfae0545b2ba05452e16136cacc7d370b4b186a1/src/datasets/inspect.py#L89-L91
cc @lhoestq: `force_local_path` is only used in `inspect_dataset` and `inspect_metric`. Is it OK if we revert the behavior to match the old one? | The `inspect_dataset` and `inspect_metric` functions are unable to retrieve a dataset or metric script from the Hub and store it locally at the specified `local_path`:
```py
>>> from datasets import inspect_dataset
>>> inspect_dataset('rotten_tomatoes', local_path='path/to/my/local/folder')
FileNotFoundError: Couldn't find a dataset script at /content/rotten_tomatoes/rotten_tomatoes.py or any data file in the same directory.
``` | 72 | `inspect` functions can't fetch dataset script from the Hub
The `inspect_dataset` and `inspect_metric` functions are unable to retrieve a dataset or metric script from the Hub and store it locally at the specified `local_path`:
```py
>>> from datasets import inspect_dataset
>>> inspect_dataset('rotten_tomatoes', local_path='path/to/my/local/folder')
FileNotFoundError: Couldn't find a dataset script at /content/rotten_tomatoes/rotten_tomatoes.py or any data file in the same directory.
```
Hi, thanks for reporting! `git bisect` points to #2986 as the PR that introduced the bug. Since then, there have been some additional changes to the loading logic, and in the current state, `force_local_path` (set via `local_path`) forbids pulling a script from the internet instead of downloading it: https://github.com/huggingface/datasets/blob/cfae0545b2ba05452e16136cacc7d370b4b186a1/src/datasets/inspect.py#L89-L91
cc @lhoestq: `force_local_path` is only used in `inspect_dataset` and `inspect_metric`. Is it OK if we revert the behavior to match the old one? | [
-0.37944406270980835,
0.19572040438652039,
-0.07431367039680481,
0.10047269612550735,
0.2156330794095993,
-0.09829846024513245,
0.1583058387041092,
0.45292219519615173,
0.48710668087005615,
0.11161866039037704,
-0.32819291949272156,
0.25887152552604675,
-0.22168053686618805,
0.031190110370516777,
0.041101157665252686,
0.1528330147266388,
-0.133382648229599,
-0.04323276877403259,
-0.32621344923973083,
0.01422957330942154,
-0.25308406352996826,
0.2764866352081299,
-0.09990695118904114,
0.05075693130493164,
-0.45093923807144165,
0.34971171617507935,
0.12339727580547333,
0.5136902332305908,
-0.14597655832767487,
-0.47283029556274414,
0.530712902545929,
0.08092112839221954,
0.07098783552646637,
0.8331627249717712,
-0.00012220699863974005,
0.17832981050014496,
0.3293147683143616,
-0.1191708892583847,
-0.2107962667942047,
-0.31518489122390747,
-0.2493770718574524,
-0.2152927815914154,
0.1723179966211319,
-0.09918984770774841,
-0.10458941757678986,
0.11957135796546936,
-0.08370327204465866,
-0.45987290143966675,
0.11494031548500061,
0.3732287287712097,
0.13015417754650116,
0.3493002951145172,
-0.046321574598550797,
-0.23328809440135956,
0.2219843864440918,
0.5566753149032593,
-0.22352421283721924,
0.3893827795982361,
0.25640207529067993,
-0.091324582695961,
0.020011290907859802,
0.030044082552194595,
-0.11311455816030502,
0.21399040520191193,
0.18162861466407776,
0.02040376514196396,
0.16032981872558594,
-0.2746001183986664,
0.07443569600582123,
0.01589898020029068,
0.026003144681453705,
-0.5395863056182861,
-0.40962642431259155,
-0.1767110824584961,
-0.17433896660804749,
-0.37064704298973083,
0.0694396123290062,
0.09453004598617554,
-0.08658160269260406,
0.34571170806884766,
-0.18491576611995697,
-0.3970400094985962,
0.03392373025417328,
0.01160356029868126,
-0.015721037983894348,
0.41224756836891174,
0.0254971906542778,
-0.04123813658952713,
0.1506459265947342,
0.22482123970985413,
0.43916869163513184,
0.06626451015472412,
-0.008924383670091629,
0.28568097949028015,
-0.16100668907165527,
0.18617159128189087,
0.2700953185558319,
0.31088748574256897,
0.1058020368218422,
0.5681945085525513,
-0.2981155812740326,
0.0522795207798481,
-0.32029083371162415,
0.053924743086099625,
0.10829068720340729,
0.23611213266849518,
0.14345961809158325,
0.6803111433982849,
0.5539394617080688,
0.3016357719898224,
0.09093746542930603,
0.047714412212371826,
0.09332682192325592,
-0.11453938484191895,
-0.21245253086090088,
0.19286930561065674,
0.6717929840087891,
-0.19944727420806885,
-0.2920161485671997,
-0.041497793048620224,
0.3904099762439728,
-0.28756555914878845,
0.306566447019577,
0.34836187958717346,
0.06387986987829208,
0.34795477986335754,
-0.11458973586559296,
0.04076240956783295,
-0.0880357176065445,
-0.011879047378897667,
-0.19785182178020477,
0.1266534924507141,
-0.24942222237586975,
0.18767163157463074,
0.32487863302230835,
-0.38540738821029663,
0.25799471139907837,
-0.05938457325100899,
0.11596266180276871,
-0.0836196020245552,
-0.2897908091545105,
-0.1746046394109726,
0.281739205121994,
0.3825536072254181,
0.1458890736103058,
0.11407709866762161,
0.13850758969783783,
0.04824165254831314,
-0.1810108870267868,
0.18092657625675201,
-0.4951254725456238,
-0.5884314775466919,
-0.09640970826148987,
0.010417686775326729,
-0.41306495666503906,
0.04457084462046623,
0.03753654658794403,
-0.0474948026239872,
-0.0842091366648674,
-0.2354205995798111,
-0.05563948303461075,
-0.17319665849208832,
-0.18514300882816315,
-0.1042131781578064,
0.42768049240112305,
0.6690763831138611,
-0.4018537700176239,
-0.08922156691551208,
-0.44368571043014526,
-0.021065346896648407,
0.10645321011543274,
0.5356286764144897,
-0.2779473662376404,
0.28541097044944763,
-0.3246537744998932,
0.03336010128259659,
0.29540395736694336,
-0.7516529560089111,
-0.32861390709877014,
-0.02524998039007187,
-0.20384174585342407,
0.30097341537475586,
-0.09521717578172684,
0.031882841140031815,
-0.13141070306301117,
-0.2713063359260559,
0.1767219603061676,
0.10803061723709106,
0.21038426458835602,
0.05571255832910538,
-0.12124909460544586,
-0.12264442443847656,
0.22439086437225342,
0.15344516932964325,
0.22358094155788422,
0.13321644067764282,
-0.04686131328344345,
-0.3651333749294281,
0.347280353307724,
0.04687299579381943,
-0.05947048217058182,
0.00520126149058342,
0.4475257396697998,
0.2536349296569824,
0.1704435646533966,
-0.5117507576942444,
-0.28400126099586487,
0.1792336106300354,
-0.2636171579360962,
-0.10119029879570007,
-0.030431315302848816,
-0.4002847671508789,
-0.5194597244262695,
0.05771629512310028,
-0.07070724666118622,
-0.03799485042691231,
-0.05571024864912033,
0.14513733983039856,
0.027776949107646942,
0.03864073380827904,
-0.515828549861908,
0.07789813727140427,
-0.07501597702503204,
0.09714407473802567,
0.039903424680233,
0.46239134669303894,
-0.09002223610877991,
-0.1426483541727066,
-0.03534417599439621,
0.2881755828857422,
0.25993576645851135,
-0.2090783566236496,
0.04708617553114891,
0.5205754637718201,
0.3501792550086975,
0.12054529786109924,
0.3720920979976654,
0.04901331663131714,
0.039744917303323746,
-0.11205443739891052,
0.09215164929628372,
0.06507732719182968,
0.1755337119102478,
-0.015778180211782455,
-0.10863671451807022,
0.2569088935852051,
-0.06360688805580139,
0.10587631911039352,
0.038094304502010345,
-0.15677492320537567,
0.20131047070026398,
-0.09373721480369568,
-0.1281847357749939,
-0.20835283398628235,
0.3278723359107971,
-0.23009945452213287,
0.13520333170890808,
-0.08630851656198502,
-0.09704964607954025,
-0.056729353964328766,
0.43318530917167664,
0.03309277817606926,
0.3815067708492279,
0.1620335727930069,
0.16265778243541718,
-0.0694148987531662,
-0.22105830907821655,
-0.19289928674697876,
0.4978674054145813,
-0.02637886255979538,
-0.2542393207550049,
0.1385665237903595,
0.03468262776732445,
-0.2395223081111908,
0.1822095662355423,
0.21631105244159698,
-0.1606767773628235,
0.2913815975189209,
0.17009790241718292,
0.005819535814225674,
-0.20167014002799988,
-0.15734624862670898,
-0.17872275412082672,
0.10211070626974106,
-0.3834397792816162,
-0.01709505170583725,
-0.3418246805667877,
0.01852693036198616,
0.05498272553086281,
-0.31787407398223877,
0.03992217779159546,
-0.27009373903274536,
0.09502474963665009,
0.11722612380981445,
-0.21472646296024323,
0.07830388844013214,
-0.08483213186264038,
0.7107259035110474,
-0.1458873450756073,
0.04581235721707344,
-0.22543297708034515,
-0.23821888864040375,
0.12145884335041046,
-0.05365519970655441,
0.2837839126586914,
0.17893536388874054,
0.01758982613682747,
-0.3027166724205017,
0.04331048205494881,
-0.35457074642181396,
-0.1817575991153717,
0.09869977831840515,
0.025692787021398544,
0.37292155623435974,
0.02860970050096512,
0.12663888931274414,
0.3087747097015381,
-0.0800042375922203,
0.061468809843063354,
-0.1942659318447113,
0.14291609823703766,
0.034411076456308365,
-0.1237788125872612,
-0.1462850421667099,
-0.16751214861869812,
-0.2633284628391266,
-0.4103827178478241,
-0.4807091951370239,
0.23413637280464172,
0.31463828682899475,
0.21313358843326569,
-0.08792375773191452,
-0.1856354922056198,
-0.21000011265277863,
-0.09376660734415054,
-0.13877645134925842,
-0.1342659741640091,
-0.4994807839393616,
0.3934766352176666,
-0.4274429678916931,
-0.24654804170131683,
-0.08465023338794708,
0.3298761248588562,
0.1289915293455124,
-0.31364011764526367,
-0.3578566312789917,
-0.1804598718881607,
-0.3400072455406189,
-0.004635985940694809,
0.27753254771232605,
0.14696942269802094,
0.19697368144989014,
-0.06682627648115158,
0.018014920875430107,
-0.0020234622061252594,
-0.4730815589427948,
0.06276042014360428,
0.04932340979576111,
-0.1617003083229065,
0.047268159687519073,
-0.26035645604133606,
-0.08452148735523224,
0.42626267671585083,
0.2406575083732605,
0.07656779885292053,
0.21200554072856903,
-0.0690111294388771,
0.7124300003051758,
-0.2776664197444916,
-0.4201851785182953,
-0.10537552833557129,
0.10916133224964142,
-0.29336583614349365,
0.054781533777713776,
0.027081206440925598,
0.1532210111618042,
-0.28209686279296875,
0.07120402157306671,
-0.30214592814445496,
-0.3955102860927582,
0.01097953412681818,
0.11193691939115524,
0.004991084337234497,
0.11868754029273987,
0.18724283576011658,
-0.22136180102825165,
-0.05546347424387932,
0.2810291051864624,
0.17859676480293274,
0.3245818018913269,
0.11813540756702423,
-0.37245088815689087,
-0.13114604353904724,
-0.13689136505126953,
0.2678994834423065,
-0.0851813480257988,
0.21175315976142883,
-0.09619899839162827,
-0.07115235924720764,
-0.016632072627544403,
-0.007844621315598488,
0.32775455713272095,
-0.0964021310210228,
0.2876233160495758,
0.15781673789024353,
-0.22567856311798096,
-0.4591253101825714,
-0.16566108167171478,
-0.10934431105852127,
0.5940777659416199,
0.20047444105148315,
0.11973980069160461,
-0.09915376454591751,
-0.18838568031787872,
0.4969334602355957,
0.0414709597826004,
-0.15141350030899048,
-0.06943171471357346,
-0.2669363021850586,
-0.12289154529571533,
-0.17245624959468842,
0.0931917205452919,
0.2467336803674698,
0.0608757846057415,
-0.1514158546924591,
0.005659829825162888,
-0.0297172162681818,
-0.4179893732070923,
0.11776332557201385,
0.05427662655711174,
0.34309783577919006,
-0.09662537276744843,
0.09178432822227478,
0.36927366256713867,
-0.5119396448135376,
0.1543557345867157,
0.8515604734420776,
-0.08665807545185089,
-0.4415203928947449,
0.1793854832649231,
0.07236404716968536,
-0.01885736733675003,
0.6425932049751282,
0.022526532411575317,
-0.14776316285133362,
-0.04125932604074478,
-0.005491301417350769,
-0.29866236448287964,
-0.0747309997677803,
0.11154646426439285,
-0.10611192882061005,
-0.23806273937225342,
-0.3792698383331299,
0.32635432481765747,
-0.002291431650519371,
-0.12864002585411072,
0.33979758620262146,
0.25202834606170654,
0.003762721549719572,
0.15442626178264618,
-0.12552863359451294,
1.0084140300750732,
0.15218818187713623,
-0.09762534499168396,
0.10022953152656555,
0.21557290852069855,
0.12928621470928192,
-0.26987969875335693,
0.010681716725230217,
-0.2127915769815445,
-0.13146664202213287,
-0.030553780496120453,
-0.2298303246498108,
0.06790762394666672,
-0.3653665781021118,
0.04354150965809822,
0.4540511965751648,
-0.48769211769104004,
0.29580649733543396,
-0.03997257351875305,
0.15347690880298615,
-0.06149834394454956,
0.04881082847714424,
-0.06288101524114609,
0.06280909478664398,
-0.06988415122032166,
0.46217772364616394,
-0.05060266703367233,
0.054658517241477966,
-0.0831199586391449,
0.0015428662300109863,
-0.5667974948883057,
0.10508743673563004,
0.16782407462596893,
0.22278253734111786,
-0.03469037637114525,
-0.06646804511547089,
-0.18467724323272705,
0.19754089415073395,
0.31124866008758545,
0.2920321226119995,
-0.3167295455932617,
0.22606505453586578,
-0.28815412521362305,
0.099459208548069,
0.041552700102329254,
0.18463604152202606,
0.13054272532463074,
0.06538434326648712,
-0.24326449632644653,
0.18071198463439941,
-0.04498421028256416,
-0.40503501892089844,
-0.11862625181674957,
0.07979419827461243,
0.32445937395095825,
-0.19660426676273346,
-0.33186331391334534,
0.07160496711730957,
0.1461912989616394,
-0.19046631455421448,
0.04616069793701172,
0.15416231751441956,
0.1316087394952774,
0.1111123114824295,
0.0745515525341034,
-0.29019105434417725,
-0.10550147294998169,
0.4017835259437561,
0.008697859942913055,
-0.3264427185058594,
-0.03965308517217636,
0.32630953192710876,
-0.11332359164953232,
-0.162641704082489,
-0.07855672389268875,
0.26350852847099304,
-0.5070192217826843,
0.40325435996055603,
-0.16351144015789032,
-0.02176588773727417,
0.09855596721172333,
0.11230459809303284,
0.13632991909980774,
-0.04591244459152222,
-0.4916209876537323,
-0.5187773704528809,
0.04277145862579346,
0.3589664101600647,
0.18192094564437866,
0.18156962096691132,
0.0069292448461055756,
0.05747085437178612,
-0.13316501677036285,
0.028469331562519073,
-0.23868682980537415,
0.21764080226421356,
-0.20718063414096832,
-0.03573088347911835,
-0.10205608606338501,
0.08176073431968689,
0.13493095338344574,
-0.2787576913833618,
-0.1001778244972229,
0.09935151785612106,
-0.24125885963439941,
-0.10882020741701126,
-0.01888006553053856,
0.21068964898586273,
-0.07945975661277771,
0.06669314950704575,
-0.18402865529060364,
-0.14808720350265503,
0.06071409210562706,
-0.23426245152950287,
0.2945019602775574,
0.5692063570022583,
0.03380047157406807,
0.12786050140857697,
0.4054746925830841,
-0.23840934038162231,
0.1465570628643036,
0.2784566581249237,
-0.04048345237970352,
0.10290065407752991,
-0.0025712703354656696,
0.1752856969833374,
-0.15886259078979492,
0.0012068971991539001,
0.2059766948223114,
0.036035750061273575,
0.2423250675201416,
0.566731333732605,
0.18644395470619202,
-0.03334961086511612,
0.18116381764411926,
0.0780024453997612,
0.2685861885547638,
0.3346673548221588,
-0.2598346769809723,
0.021210195496678352,
-0.050505753606557846,
0.059862300753593445,
-0.23727458715438843,
-0.44569915533065796,
-0.14511997997760773,
0.2603665292263031,
-0.027726268395781517,
0.1637662798166275,
0.1445455551147461,
0.0973806381225586,
0.214470773935318,
0.3565440773963928,
0.6572983860969543,
0.15572775900363922,
0.4183827042579651,
0.11057768762111664,
-0.2176043689250946,
-0.03018013760447502,
0.037634700536727905,
-0.03878030553460121,
0.1493358612060547,
0.725935697555542,
-0.3336546719074249,
0.43291911482810974,
0.1868293285369873,
0.16898106038570404,
0.13372422754764557,
-0.3114762604236603,
0.05059996247291565,
0.010864302515983582,
-0.15477615594863892,
-0.022169336676597595,
-0.04852214455604553,
0.07754204422235489,
-0.37757259607315063,
0.062015749514102936,
-0.34663888812065125,
0.1327691674232483,
0.035196781158447266,
0.15870268642902374,
-0.16621673107147217,
-0.1551932692527771,
0.04914723336696625,
-0.13336704671382904,
-0.1314351111650467,
0.01746639609336853,
0.15545101463794708,
-0.0456496924161911,
-0.21632756292819977,
-0.011723751202225685,
0.15590834617614746,
-0.13156560063362122,
0.33880364894866943,
-0.06303926557302475,
0.1693708300590515,
0.2942228317260742,
-0.06472252309322357,
0.22275610268115997,
0.39960893988609314,
0.47560566663742065,
0.46935591101646423,
0.05077005550265312,
-0.02490234375,
-0.12042179703712463,
-0.2521235942840576,
0.015416182577610016,
0.24564117193222046,
-0.280449777841568,
0.09275610744953156,
0.10146650671958923,
0.22516237199306488,
-0.12467143684625626,
0.0721747949719429,
-0.09800070524215698,
0.5107423067092896,
-0.23987625539302826,
0.6341872215270996,
0.04685717076063156,
-0.08031542599201202,
0.019343877211213112,
-0.06206666678190231,
-0.23167553544044495,
-0.3969764709472656,
0.15350563824176788,
-0.08168168365955353,
0.042590897530317307,
-0.18726763129234314,
0.05694519728422165,
0.0196518711745739,
0.29493844509124756,
0.20474199950695038,
-0.22802504897117615,
-0.1616145819425583,
-0.24804764986038208,
-0.3843197524547577,
0.0704629123210907,
0.13558101654052734,
-0.10647006332874298,
0.13836972415447235,
0.009319746866822243,
-0.2135629653930664,
0.40944796800613403,
0.22132667899131775,
0.028217067942023277,
0.15717720985412598,
-0.20217707753181458,
-0.41808485984802246,
0.21076072752475739,
-0.21662257611751556,
0.012908395379781723,
0.1580241620540619,
-0.2527204155921936,
0.2059573233127594,
-0.2009125053882599,
-0.09743298590183258,
0.04139462858438492,
-0.271123468875885,
0.1615983098745346,
-0.04736543446779251,
0.3876990079879761,
0.009721335023641586,
0.2432039976119995,
-0.07164454460144043,
0.0685432106256485,
-0.6568242907524109,
-0.4859093725681305,
-0.051645491272211075,
0.11411293596029282,
-0.21724706888198853,
0.13574016094207764,
-0.39890140295028687,
-0.5100560784339905,
-0.2773982584476471,
0.2207392305135727,
-0.04989524558186531,
0.46066808700561523,
-0.14678122103214264,
-0.11576966196298599,
-0.23313504457473755,
0.0336497463285923,
-0.025611862540245056,
-0.0036655962467193604,
-0.06280843168497086,
0.2526836395263672,
0.020388208329677582,
-0.2583419680595398,
0.951256275177002,
0.0546301007270813,
-0.1372772604227066,
-0.334608256816864,
0.4829205870628357,
0.17906218767166138,
-0.3641377091407776,
-0.34749504923820496,
0.06169549375772476,
0.090932197868824,
0.2056887447834015,
-0.00015847757458686829,
0.366042822599411,
-0.6884772181510925,
0.03863508626818657,
-0.05602395907044411,
-0.0004286244511604309,
0.22578921914100647,
-0.17854130268096924,
0.10804949700832367,
-0.14747312664985657
] |
https://github.com/huggingface/datasets/issues/4343 | Metrics documentation is not accessible in the datasets doc UI | Hey @fxmarty :) Yes we are working on showing the docs of all the metrics on the Hugging face website. If you want to follow the advancements you can check the [evaluate](https://github.com/huggingface/evaluate) repository cc @lvwerra @sashavor | **Is your feature request related to a problem? Please describe.**
Search for a metric name like "seqeval" yields no results on https://huggingface.co/docs/datasets/master/en/index . One needs to go look in `datasets/metrics/README.md` to find the doc. Even in the `README.md`, it can be hard to understand what the metric expects as an input, for example for `squad` there is a [key `id`](https://github.com/huggingface/datasets/blob/1a4c185663a6958f48ec69624473fdc154a36a9d/metrics/squad/squad.py#L42) documented only in the function doc but not in the `README.md`, and one needs to go look into the code to understand what the metric expects.
**Describe the solution you'd like**
Have the documentation for metrics appear as well in the doc UI, e.g. this https://github.com/huggingface/datasets/blob/1a4c185663a6958f48ec69624473fdc154a36a9d/metrics/squad/squad.py#L21-L63
I know there are plans to migrate metrics to the evaluate library, but just pointing this out.
| 36 | Metrics documentation is not accessible in the datasets doc UI
**Is your feature request related to a problem? Please describe.**
Search for a metric name like "seqeval" yields no results on https://huggingface.co/docs/datasets/master/en/index . One needs to go look in `datasets/metrics/README.md` to find the doc. Even in the `README.md`, it can be hard to understand what the metric expects as an input, for example for `squad` there is a [key `id`](https://github.com/huggingface/datasets/blob/1a4c185663a6958f48ec69624473fdc154a36a9d/metrics/squad/squad.py#L42) documented only in the function doc but not in the `README.md`, and one needs to go look into the code to understand what the metric expects.
**Describe the solution you'd like**
Have the documentation for metrics appear as well in the doc UI, e.g. this https://github.com/huggingface/datasets/blob/1a4c185663a6958f48ec69624473fdc154a36a9d/metrics/squad/squad.py#L21-L63
I know there are plans to migrate metrics to the evaluate library, but just pointing this out.
Hey @fxmarty :) Yes we are working on showing the docs of all the metrics on the Hugging face website. If you want to follow the advancements you can check the [evaluate](https://github.com/huggingface/evaluate) repository cc @lvwerra @sashavor | [
0.02035236731171608,
-0.03355488181114197,
-0.044130221009254456,
0.08836454153060913,
0.4967050552368164,
0.15937143564224243,
-0.06898067891597748,
0.14313608407974243,
-0.11233113706111908,
0.3104035556316376,
-0.28040480613708496,
0.1259918361902237,
0.02757183276116848,
0.09308697283267975,
0.19871307909488678,
0.015651319175958633,
-0.15065091848373413,
-0.07955221831798553,
0.29973354935646057,
0.030466049909591675,
-0.06303751468658447,
0.08820710331201553,
-0.16617819666862488,
0.1772403120994568,
-0.1923416554927826,
-0.02625463716685772,
-0.09041977673768997,
-0.19547462463378906,
-0.5678737163543701,
-0.7116749286651611,
0.19169798493385315,
0.10778239369392395,
0.07866702228784561,
0.1905897557735443,
-0.00011412947787903249,
-0.13658320903778076,
0.3311992883682251,
-0.027753541246056557,
-0.24562010169029236,
-0.21604417264461517,
-0.11051308363676071,
-0.3787638545036316,
0.2869848310947418,
-0.1459539532661438,
-0.11291494220495224,
-0.18525943160057068,
0.0908086746931076,
-0.12157732993364334,
-0.010245777666568756,
0.25358977913856506,
0.15791282057762146,
0.538063645362854,
0.24374498426914215,
-0.16716331243515015,
-0.12017615884542465,
0.2716115713119507,
-0.28229549527168274,
0.4420558214187622,
0.11750703305006027,
0.0002049468457698822,
-0.11800143867731094,
0.2196294516324997,
0.2314566671848297,
-0.10348625481128693,
0.24790522456169128,
0.1547168791294098,
0.22514840960502625,
-0.0647410899400711,
-0.02882503718137741,
0.22455409169197083,
0.6869756579399109,
-0.4253828823566437,
-0.4650837182998657,
-0.08742456883192062,
-0.051706016063690186,
-0.3033176362514496,
-0.039172329008579254,
-0.011833151802420616,
0.03959022834897041,
0.07650083303451538,
-0.4257122278213501,
-0.22333338856697083,
-0.22122922539710999,
0.17970877885818481,
0.05432858318090439,
0.06292513012886047,
-0.31866174936294556,
-0.19605392217636108,
0.17042991518974304,
-0.2543281316757202,
-0.21423476934432983,
0.3220616281032562,
-0.0050809308886528015,
0.3253808915615082,
-0.1907034069299698,
-0.05214576795697212,
0.14454209804534912,
-0.05315934866666794,
0.564346194267273,
0.001715201884508133,
0.07093629986047745,
-0.035336434841156006,
0.016879644244909286,
0.11964089423418045,
0.1772509515285492,
0.45349177718162537,
0.4156532883644104,
0.08486519753932953,
0.22636394202709198,
0.4099564850330353,
0.26002010703086853,
-0.4054391384124756,
-0.046757739037275314,
-0.10916872322559357,
-0.038839928805828094,
0.06792245805263519,
0.19530534744262695,
-0.32680997252464294,
-0.2909505367279053,
-0.08919382840394974,
0.05072289705276489,
-0.1889716535806656,
0.24565760791301727,
0.2839420437812805,
0.06083397939801216,
-0.11332196742296219,
0.056928470730781555,
0.15038900077342987,
-0.28668412566185,
-0.036539483815431595,
-0.21718427538871765,
0.2668604850769043,
-0.35082584619522095,
0.32665666937828064,
0.03740101680159569,
-0.35755810141563416,
0.4784611165523529,
-0.003324296325445175,
0.5033643245697021,
-0.2789515256881714,
-0.38497114181518555,
0.3464416265487671,
0.1801929771900177,
0.12551535665988922,
-0.038657765835523605,
-0.20440155267715454,
0.10553087294101715,
-0.2971472144126892,
-0.19116339087486267,
-0.28900161385536194,
-0.44466453790664673,
-0.1754283457994461,
-0.18662871420383453,
0.06105221435427666,
-0.2555939853191376,
0.11163630336523056,
-0.10529086738824844,
0.5044894814491272,
-0.40094026923179626,
0.004006292670965195,
0.16248944401741028,
0.38332533836364746,
-0.2929084002971649,
-0.174586683511734,
0.5353026986122131,
0.3335990905761719,
-0.07508130371570587,
-0.4036806523799896,
0.034838464111089706,
0.051969416439533234,
-0.30637532472610474,
0.13275930285453796,
-0.06899666041135788,
0.15178650617599487,
-0.25126218795776367,
0.19626964628696442,
0.6370713114738464,
-0.8427285552024841,
-0.15700572729110718,
-0.21966804563999176,
-0.028926581144332886,
-0.2541060149669647,
-0.2524404227733612,
-0.27491939067840576,
0.2617866098880768,
0.021892761811614037,
-0.12367251515388489,
-0.2994644045829773,
0.012097040191292763,
-0.17889943718910217,
-0.0732831358909607,
-0.29946765303611755,
-0.3033885359764099,
-0.2553783357143402,
0.025648310780525208,
0.07872875034809113,
0.4600854218006134,
0.1235126182436943,
0.1783207654953003,
0.09652046859264374,
-0.09647316485643387,
0.5339963436126709,
0.21505168080329895,
0.20826004445552826,
0.15507735311985016,
-0.2643035650253296,
-0.2728920578956604,
0.0934871956706047,
0.15415038168430328,
0.04068861901760101,
-0.0078101009130477905,
-0.3782622814178467,
-0.42240726947784424,
0.11526793986558914,
0.052981454879045486,
-0.22457730770111084,
0.13782517611980438,
-0.20247766375541687,
0.2744787335395813,
0.44311314821243286,
0.011662792414426804,
-0.07961560785770416,
-0.1407437026500702,
0.2567608654499054,
-0.346347838640213,
0.022890059277415276,
0.19861501455307007,
0.009355667978525162,
0.3118555545806885,
0.35026121139526367,
0.26869016885757446,
0.24669992923736572,
-0.14333859086036682,
0.3840867280960083,
0.18348243832588196,
0.136920765042305,
0.3137015402317047,
0.7490876317024231,
0.3231516480445862,
-0.3186988830566406,
0.059918709099292755,
-0.20004227757453918,
-0.2336476892232895,
0.258208304643631,
-0.370871365070343,
0.1784394383430481,
-0.11961571872234344,
0.09024656563997269,
0.0719916969537735,
0.23761942982673645,
0.03428417444229126,
0.14418180286884308,
-0.517191469669342,
-0.35653647780418396,
-0.01326696202158928,
-0.08980581164360046,
0.14049458503723145,
-0.24827174842357635,
0.0342007651925087,
0.08816934376955032,
0.47944140434265137,
0.012647222727537155,
0.043450042605400085,
0.08817934989929199,
-0.07868088036775589,
-0.03216640651226044,
-0.04917352646589279,
-0.5021810531616211,
0.041067369282245636,
0.2175004631280899,
0.14295290410518646,
0.04049321264028549,
0.03746342286467552,
0.008213747292757034,
-0.04704367369413376,
0.2285330593585968,
-0.2558247447013855,
-0.03605983406305313,
0.1305554211139679,
-0.03793080523610115,
-0.24271374940872192,
0.25741127133369446,
-0.3435323238372803,
-0.004462951794266701,
-0.3132101595401764,
-0.1055331900715828,
-0.15005716681480408,
-0.05598463490605354,
-0.032903943210840225,
-0.22617799043655396,
-0.4241158366203308,
-0.3884319067001343,
-0.0018954910337924957,
-0.1209135353565216,
0.25337809324264526,
0.23438848555088043,
-0.04795673489570618,
0.20865292847156525,
-0.08080984652042389,
0.24802148342132568,
-0.09809655696153641,
-0.12642265856266022,
0.2519082725048065,
0.043462079018354416,
-0.19252356886863708,
0.08032835274934769,
0.2892128527164459,
-0.3459196090698242,
0.42963147163391113,
-0.6108819246292114,
-0.8028384447097778,
0.2531166672706604,
0.0340937077999115,
0.5690706968307495,
0.2609419524669647,
-0.07740190625190735,
-0.23813208937644958,
0.2335202991962433,
0.07588618993759155,
-0.350748747587204,
-0.2571638524532318,
-0.14049816131591797,
-0.052074331790208817,
0.1151675209403038,
-0.16702648997306824,
-0.14863398671150208,
0.08172419667243958,
-0.2874465882778168,
0.47648048400878906,
-0.13204267621040344,
-0.08481450378894806,
0.04100314900279045,
-0.2624219059944153,
0.25120922923088074,
-0.11313866078853607,
0.2952510714530945,
-0.20008404552936554,
-0.3744174540042877,
0.19675779342651367,
-0.43168073892593384,
-0.18806317448616028,
0.19218936562538147,
0.011983666568994522,
0.283084511756897,
-0.21710573136806488,
-0.18909817934036255,
-0.39243006706237793,
-0.05072703957557678,
0.2670268416404724,
0.06853246688842773,
0.0946308970451355,
0.26805347204208374,
-0.1410268396139145,
0.11217418313026428,
-0.22396427392959595,
-0.4387308955192566,
-0.20366939902305603,
0.062445856630802155,
0.18085496127605438,
-0.160239577293396,
0.1684773564338684,
0.2034403532743454,
0.31513458490371704,
0.1917990744113922,
0.1045730859041214,
0.0696101263165474,
-0.2904282212257385,
0.5400848388671875,
0.19391706585884094,
-0.24777278304100037,
0.18392504751682281,
0.0783410593867302,
0.11963070929050446,
0.2537371516227722,
0.3802981674671173,
0.36597102880477905,
-0.04662162810564041,
-0.1645047962665558,
-0.4202025532722473,
-0.245601624250412,
-0.25268274545669556,
0.07760612666606903,
0.21509167551994324,
-0.09595686197280884,
0.24748706817626953,
-0.04625466465950012,
-0.10675086826086044,
0.21192336082458496,
0.619941771030426,
0.24405086040496826,
0.2734299600124359,
0.03236471489071846,
0.039082109928131104,
-0.3229793906211853,
0.04583127051591873,
0.004177931696176529,
-0.06415966898202896,
-0.23517853021621704,
-0.05577218905091286,
0.19440235197544098,
0.1238916888833046,
0.26321420073509216,
-0.07788736373186111,
-0.17993822693824768,
0.04444952681660652,
-0.2061505913734436,
-0.17697873711585999,
0.08488985896110535,
0.005780048668384552,
-0.06401101499795914,
0.2666455805301666,
0.5832870006561279,
-0.4116992950439453,
-0.3119460642337799,
0.2992316782474518,
-0.16086743772029877,
-0.1328108012676239,
-0.08598894625902176,
-0.16285797953605652,
-0.18700110912322998,
0.011373227462172508,
-0.049404121935367584,
0.04047433286905289,
0.10826056450605392,
0.14114117622375488,
0.13776877522468567,
-0.0006274450570344925,
0.013173967599868774,
0.08440567553043365,
0.23515276610851288,
0.32896947860717773,
-0.06121693179011345,
0.04181442782282829,
0.720105767250061,
-0.10425178706645966,
0.08045235276222229,
0.23908928036689758,
-0.017896920442581177,
-0.5836122632026672,
0.02971377968788147,
-0.023700524121522903,
0.4786050021648407,
0.09512840211391449,
-0.0945666953921318,
0.2617500424385071,
-0.007146893069148064,
0.08434541523456573,
-0.5238643288612366,
0.04191230237483978,
0.37686166167259216,
0.13695114850997925,
-0.037240028381347656,
-0.2430778294801712,
0.3102395832538605,
0.194882333278656,
-0.01823154091835022,
0.16325218975543976,
0.40217316150665283,
-0.1483049839735031,
-0.44628095626831055,
0.39830517768859863,
0.7400831580162048,
-0.1015160083770752,
-0.2986690104007721,
0.1331825703382492,
-0.26017117500305176,
0.39657679200172424,
-0.2501920461654663,
-0.043593648821115494,
-0.2778398394584656,
-0.14088836312294006,
-0.035321999341249466,
0.026835840195417404,
0.11538099497556686,
-0.24836651980876923,
-0.08143306523561478,
0.2825198769569397,
-0.12887868285179138,
0.30068108439445496,
0.0383826419711113,
0.3268634080886841,
-0.03817332535982132,
-0.0969153344631195,
-0.09570472687482834,
0.1006072610616684,
-0.08616955578327179,
0.1273212879896164,
0.03371245786547661,
-0.2161969095468521,
-0.008112378418445587,
-0.058766234666109085,
-0.3404077887535095,
-0.26163414120674133,
0.0033899969421327114,
0.052295196801424026,
0.13973967730998993,
-0.08502336591482162,
0.2093302458524704,
0.356440931558609,
0.6559436917304993,
0.2915140390396118,
-0.5063876509666443,
0.1510550081729889,
-0.2914614677429199,
-0.1177256777882576,
-0.06533048301935196,
0.1542355865240097,
-0.09423739463090897,
-0.02933068759739399,
-0.05354379490017891,
-0.006483212113380432,
0.15117524564266205,
0.03624730557203293,
-0.2563532590866089,
-0.06501130759716034,
-0.2240249067544937,
-0.22145293653011322,
0.2672363221645355,
-0.15416987240314484,
0.09856939315795898,
-0.20816193521022797,
0.07944674789905548,
0.29607945680618286,
0.04378374665975571,
-0.058559782803058624,
0.3896668553352356,
-0.0112643763422966,
-0.09418976306915283,
0.24713736772537231,
-0.2653964161872864,
-0.12575173377990723,
-0.13553999364376068,
-0.015022583305835724,
-0.3107761740684509,
-0.08473869413137436,
-0.11302600800991058,
0.20129911601543427,
-0.23908278346061707,
0.009244291111826897,
0.22177094221115112,
0.2238951176404953,
-0.0052115959115326405,
0.0670575201511383,
0.0018069595098495483,
-0.430911123752594,
-0.2186753898859024,
-0.3224611282348633,
-0.24008186161518097,
0.5037554502487183,
-0.45162004232406616,
0.022935694083571434,
-0.12243229150772095,
-0.09346926212310791,
-0.03551211580634117,
0.1871488243341446,
-0.27126821875572205,
0.018409155309200287,
-0.18060551583766937,
-0.019170448184013367,
0.20081448554992676,
0.01843949966132641,
0.3608192801475525,
-0.11970598995685577,
-0.060327477753162384,
-0.143480122089386,
-0.11400717496871948,
-0.02023823745548725,
-0.22554689645767212,
0.12031898647546768,
-0.12512728571891785,
0.34709039330482483,
-0.03571820259094238,
0.14431922137737274,
-0.17287304997444153,
-0.15987557172775269,
0.1985701620578766,
0.3381693363189697,
0.10827961564064026,
0.26156166195869446,
-0.24369670450687408,
0.09078692644834518,
0.2677646279335022,
0.19807875156402588,
0.3794265687465668,
0.18131345510482788,
0.05354084074497223,
0.12467436492443085,
-0.4154929220676422,
0.06175154447555542,
0.18192942440509796,
0.3161390721797943,
0.12247909605503082,
-0.1632590889930725,
0.12476365268230438,
0.29779040813446045,
0.013973921537399292,
-0.07761148363351822,
0.2743198573589325,
-0.03577060252428055,
-0.10944420844316483,
0.12611305713653564,
-0.1101333349943161,
0.07920083403587341,
-0.08552299439907074,
-0.20798224210739136,
-0.07122154533863068,
-0.028504524379968643,
0.31010618805885315,
0.20770718157291412,
0.2925094664096832,
0.25464683771133423,
0.37773340940475464,
-0.13573479652404785,
0.32396018505096436,
-0.03478619456291199,
0.04701678827404976,
0.016632411628961563,
0.16003534197807312,
0.06758657097816467,
0.5482020378112793,
0.1516755372285843,
0.16532082855701447,
-0.3545047640800476,
-0.14028054475784302,
-0.019972866401076317,
-0.23994863033294678,
0.2213820368051529,
0.24291077256202698,
0.08671468496322632,
-0.2039661556482315,
-0.1000995934009552,
-0.10761156678199768,
-0.15784764289855957,
-0.36119478940963745,
0.3836803436279297,
0.2473006695508957,
-0.1457590013742447,
-0.24634869396686554,
-0.014481481164693832,
-0.08409030735492706,
-0.1468169093132019,
-0.0175931416451931,
-0.1622641384601593,
0.10066340863704681,
-0.1506561040878296,
0.2904062569141388,
-0.2748507857322693,
-0.1582569181919098,
-0.3707486391067505,
0.3148271441459656,
-0.215159073472023,
-0.028713718056678772,
0.45211896300315857,
0.22191983461380005,
0.11202357709407806,
0.06994292140007019,
-0.12635912001132965,
0.23097451031208038,
0.0344979390501976,
0.6750876903533936,
0.30022355914115906,
-0.22550517320632935,
0.3194338083267212,
-0.07816383242607117,
-0.09184999763965607,
-0.16481052339076996,
0.25351300835609436,
0.20053166151046753,
0.014106504619121552,
-0.4084838330745697,
0.104920893907547,
0.1008039265871048,
-0.043397050350904465,
0.05046205222606659,
-0.31182363629341125,
0.16036103665828705,
-0.20027467608451843,
-0.11522688716650009,
-0.10755220055580139,
-0.01308661699295044,
-0.026384513825178146,
-0.035458214581012726,
-0.30619776248931885,
0.033844687044620514,
0.3749482035636902,
0.08370481431484222,
0.0333893820643425,
-0.2140626758337021,
0.07689489424228668,
0.29255756735801697,
0.10705308616161346,
0.3946920335292816,
0.08583023399114609,
0.0394512340426445,
-0.12727831304073334,
-0.548362135887146,
-0.1302138864994049,
0.22515539824962616,
-0.04395141825079918,
0.25600868463516235,
0.04235413670539856,
-0.12656614184379578,
0.11116021871566772,
0.2791951298713684,
-0.2407744824886322,
0.19428060948848724,
-0.1609247773885727,
-0.3479139804840088,
-0.141929030418396,
-0.034374743700027466,
-0.11431874334812164,
-0.005099320784211159,
0.3632328510284424,
0.10176850855350494,
-0.29317232966423035,
-0.07927975058555603,
-0.18807443976402283,
0.579597532749176,
-0.1701480597257614,
0.31042563915252686,
-0.016376331448554993,
0.12081515043973923,
0.2202243208885193,
-0.17740565538406372,
-0.024545881897211075,
-0.18560290336608887,
-0.09950108081102371,
0.15187861025333405,
0.4547887444496155,
-0.21349136531352997,
0.1533951461315155,
-0.33043718338012695,
-0.46469321846961975,
-0.14090269804000854,
0.3987896740436554,
0.17940327525138855,
-0.4244671165943146,
0.024778814986348152,
0.16360099613666534,
-0.037235841155052185,
-0.1041131466627121,
0.27927708625793457,
0.27804914116859436,
-0.02864254266023636,
0.22289301455020905,
0.1802692860364914,
-0.1804848164319992,
0.5841334462165833,
-0.2499781847000122,
0.08493620157241821,
0.09977123141288757,
0.1982208788394928,
0.48787155747413635,
-0.2822193205356598,
-0.7108474969863892,
0.015863098204135895,
0.3155292570590973,
0.09384264051914215,
-0.1935797482728958,
0.3680466115474701,
-0.2370523065328598,
0.19710473716259003,
-0.13284932076931,
0.13897521793842316,
0.3451014459133148,
0.06087847799062729,
0.1952177882194519,
-0.06599116325378418
] |
https://github.com/huggingface/datasets/issues/4327 | `wikipedia` pre-processed datasets | Hi @vpj, thanks for reporting.
I'm sorry, but I can't reproduce your bug: I load "20220301.simple"in 9 seconds:
```shell
time python -c "from datasets import load_dataset; load_dataset('wikipedia', '20220301.simple')"
Downloading and preparing dataset wikipedia/20220301.simple (download: 228.58 MiB, generated: 224.18 MiB, post-processed: Unknown size, total: 452.76 MiB) to .../.cache/huggingface/datasets/wikipedia/20220301.simple/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.66k/1.66k [00:00<00:00, 1.02MB/s]
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 235M/235M [00:02<00:00, 82.8MB/s]
Dataset wikipedia downloaded and prepared to .../.cache/huggingface/datasets/wikipedia/20220301.simple/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 290.75it/s]
real 0m9.693s
user 0m6.002s
sys 0m3.260s
```
Could you please check your environment info, as requested when opening this issue?
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
```
Maybe you are using an old version of `datasets`... | ## Describe the bug
[Wikipedia](https://huggingface.co/datasets/wikipedia) dataset readme says that certain subsets are preprocessed. However it seems like they are not available. When I try to load them it takes a really long time, and it seems like it's processing them.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikipedia", "20220301.en")
```
## Expected results
To load the dataset
## Actual results
Takes a very long time to load (after downloading)
After `Downloading data files: 100%`. It takes hours and gets killed.
Tried `wikipedia.simple` and it got processed after ~30mins. | 133 | `wikipedia` pre-processed datasets
## Describe the bug
[Wikipedia](https://huggingface.co/datasets/wikipedia) dataset readme says that certain subsets are preprocessed. However it seems like they are not available. When I try to load them it takes a really long time, and it seems like it's processing them.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikipedia", "20220301.en")
```
## Expected results
To load the dataset
## Actual results
Takes a very long time to load (after downloading)
After `Downloading data files: 100%`. It takes hours and gets killed.
Tried `wikipedia.simple` and it got processed after ~30mins.
Hi @vpj, thanks for reporting.
I'm sorry, but I can't reproduce your bug: I load "20220301.simple"in 9 seconds:
```shell
time python -c "from datasets import load_dataset; load_dataset('wikipedia', '20220301.simple')"
Downloading and preparing dataset wikipedia/20220301.simple (download: 228.58 MiB, generated: 224.18 MiB, post-processed: Unknown size, total: 452.76 MiB) to .../.cache/huggingface/datasets/wikipedia/20220301.simple/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.66k/1.66k [00:00<00:00, 1.02MB/s]
Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 235M/235M [00:02<00:00, 82.8MB/s]
Dataset wikipedia downloaded and prepared to .../.cache/huggingface/datasets/wikipedia/20220301.simple/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 290.75it/s]
real 0m9.693s
user 0m6.002s
sys 0m3.260s
```
Could you please check your environment info, as requested when opening this issue?
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
```
Maybe you are using an old version of `datasets`... | [
0.054896872490644455,
-0.31806278228759766,
-0.1157064437866211,
0.3456413149833679,
0.098975770175457,
0.3343450129032135,
0.08799096941947937,
0.10338081419467926,
0.21118488907814026,
-0.018500208854675293,
-0.13220514357089996,
0.10368873178958893,
0.3096598982810974,
-0.21211110055446625,
0.17978999018669128,
0.06753252446651459,
0.1868012249469757,
-0.07200554013252258,
-0.09705504775047302,
-0.07157041877508163,
-0.30694615840911865,
0.23287661373615265,
-0.4208982586860657,
-0.24167360365390778,
-0.28761541843414307,
0.13832014799118042,
0.059920668601989746,
-0.030868075788021088,
0.0033287452533841133,
-0.44620031118392944,
0.4059971272945404,
0.2565496563911438,
-0.09430576860904694,
0.30111753940582275,
-0.00012078124564141035,
-0.037399373948574066,
0.6935430765151978,
0.06022781878709793,
-0.46062442660331726,
0.05642807483673096,
-0.1278100609779358,
-0.26028120517730713,
0.16165925562381744,
-0.1536373347043991,
-0.08196510374546051,
-0.245402529835701,
0.13776524364948273,
-0.5391521453857422,
0.3004876375198364,
-0.06521511822938919,
0.1465837061405182,
0.15749360620975494,
-0.0050835199654102325,
-0.05309167876839638,
0.3917735517024994,
0.24949583411216736,
-0.10272283107042313,
0.1492963284254074,
0.06404812633991241,
-0.05809465050697327,
0.20573177933692932,
0.28242185711860657,
-0.2057785987854004,
0.07095738500356674,
0.2967132031917572,
-0.020176734775304794,
-0.29203200340270996,
-0.6454648971557617,
0.242629736661911,
0.49648162722587585,
0.5226839780807495,
-0.010903414338827133,
-0.3370826840400696,
-0.46553096175193787,
-0.09299440681934357,
-0.11298391968011856,
0.17583075165748596,
0.24423496425151825,
-0.18369780480861664,
0.06693664938211441,
-0.21636411547660828,
-0.016770193353295326,
0.020635008811950684,
0.18996325135231018,
-0.12266194075345993,
0.2824174761772156,
-0.12599125504493713,
0.13036759197711945,
0.08263903111219406,
-0.03525616228580475,
-0.3133819103240967,
-0.33232545852661133,
0.16322122514247894,
0.3879089951515198,
-0.20768676698207855,
0.0886467695236206,
-0.14136922359466553,
0.3560757637023926,
0.3300657570362091,
0.06190566346049309,
-0.29413899779319763,
0.13388144969940186,
-0.01403594296425581,
-0.10713734477758408,
0.2897220849990845,
-0.2806013524532318,
-0.10052760690450668,
-0.21288494765758514,
0.49111080169677734,
0.2790764570236206,
-0.06859998404979706,
0.12376285344362259,
0.22855311632156372,
-0.0751568153500557,
0.07526788115501404,
-0.1553339958190918,
0.2598646879196167,
-0.26943761110305786,
-0.22857196629047394,
0.3040081858634949,
-0.05817895010113716,
-0.13336452841758728,
-0.27739202976226807,
0.4097319543361664,
-0.4868459105491638,
0.23931941390037537,
0.19709010422229767,
0.030369507148861885,
-0.440875768661499,
-0.12538360059261322,
-0.12264556437730789,
-0.027752596884965897,
-0.1144547313451767,
0.3053130507469177,
0.31156906485557556,
-0.38961660861968994,
0.28740668296813965,
0.11237826198339462,
0.0881585031747818,
-0.28887903690338135,
0.04466494917869568,
-0.15152835845947266,
0.07922273874282837,
0.27956637740135193,
0.05448620393872261,
0.4828096330165863,
0.012388525530695915,
0.002179402858018875,
-0.19721372425556183,
0.03765258193016052,
-0.10788906365633011,
-0.028182020410895348,
-0.003767380490899086,
0.10039351880550385,
-0.27100539207458496,
0.1321871131658554,
-0.20798107981681824,
0.19288992881774902,
0.2642507553100586,
-0.005701728165149689,
-0.08347848802804947,
0.16131864488124847,
-0.4269542396068573,
-0.17770744860172272,
0.5984213948249817,
0.684856653213501,
-0.08838336169719696,
0.041493721306324005,
-0.2934589087963104,
0.15050315856933594,
0.29079052805900574,
0.3199024796485901,
-0.03965630382299423,
0.30379825830459595,
-0.2151566594839096,
-0.11201566457748413,
-0.03327316790819168,
0.17728301882743835,
-0.25534847378730774,
0.29354745149612427,
0.15298190712928772,
0.4751918315887451,
-0.10356096178293228,
0.034871626645326614,
0.0859626978635788,
0.0642031654715538,
0.0696534514427185,
0.35796236991882324,
0.098542720079422,
-0.02615324780344963,
-0.37325501441955566,
-0.3133321702480316,
0.25792980194091797,
0.11506827175617218,
0.13426655530929565,
0.04120372608304024,
-0.0833452120423317,
0.21024201810359955,
0.2907647490501404,
0.07569999992847443,
0.05615175515413284,
0.4038609266281128,
-0.19974295794963837,
0.47747915983200073,
0.2681564390659332,
-0.36348357796669006,
-0.4779980182647705,
0.25402936339378357,
0.13530047237873077,
-0.07533873617649078,
-0.09927032887935638,
-0.3441178798675537,
-0.39100077748298645,
0.2224348485469818,
-0.03705064579844475,
-0.14357341825962067,
0.005916733294725418,
0.15088415145874023,
0.2211439609527588,
0.370074599981308,
0.11026756465435028,
0.012659226544201374,
-0.0442238375544548,
-0.061213038861751556,
-0.5784119367599487,
0.16780880093574524,
0.08096799999475479,
0.04883577674627304,
-0.16029879450798035,
0.08340295404195786,
0.13866710662841797,
-0.03392460197210312,
0.013639448210597038,
0.14885367453098297,
0.28119635581970215,
0.2107086181640625,
-0.04793152958154678,
-0.03514893352985382,
0.2589731812477112,
-0.3976222574710846,
-0.11831644922494888,
0.36193910241127014,
0.17873655259609222,
-0.1842169612646103,
-0.32555437088012695,
0.27710670232772827,
-0.1803254634141922,
0.381137490272522,
-0.02157364971935749,
-0.015133069828152657,
0.2451079785823822,
0.21833911538124084,
-0.13826583325862885,
-0.20554077625274658,
0.3364238440990448,
0.13644620776176453,
0.21915580332279205,
0.20163767039775848,
-0.31499749422073364,
-0.01300397515296936,
0.1910419762134552,
-0.14244422316551208,
-0.056014955043792725,
0.11423754692077637,
-0.17472216486930847,
-0.10536593198776245,
0.037485141307115555,
-0.22364981472492218,
0.1251676082611084,
0.0886518582701683,
0.1356538087129593,
-0.12531538307666779,
-0.024138059467077255,
-0.23840244114398956,
0.2143779695034027,
0.20678004622459412,
0.3084263503551483,
0.0873347818851471,
0.14940328896045685,
0.04659980908036232,
-0.20826822519302368,
0.31195348501205444,
-0.08753988146781921,
0.04582282155752182,
-0.35210034251213074,
0.15159346163272858,
-0.3372495174407959,
-0.08714679628610611,
-0.03808359056711197,
-0.06767696887254715,
-0.278340220451355,
-0.3809359669685364,
-0.18063677847385406,
0.25228995084762573,
0.026403415948152542,
0.0244569294154644,
-0.22457247972488403,
0.05375823378562927,
-0.06843173503875732,
-0.20536114275455475,
-0.3252621293067932,
-0.10677606612443924,
-0.07962259650230408,
-0.07184050232172012,
0.24733807146549225,
-0.026644321158528328,
0.3500721752643585,
-0.10945982486009598,
-0.3197617530822754,
-0.3415500819683075,
-0.315095990896225,
0.039477333426475525,
-0.18772833049297333,
0.5618161559104919,
-0.05496971309185028,
0.3884429335594177,
-0.03204677999019623,
-0.1163230761885643,
0.2120593935251236,
-0.07126341760158539,
-0.06112971156835556,
-0.0060169994831085205,
-0.13085511326789856,
0.15842969715595245,
0.0501399002969265,
-0.28910839557647705,
-0.16764618456363678,
-0.1089518815279007,
0.28309619426727295,
0.08371435105800629,
-0.04104892909526825,
0.15926901996135712,
-0.057772375643253326,
-0.17316925525665283,
0.07133841514587402,
0.24799785017967224,
-0.28809264302253723,
-0.2395779937505722,
0.645878791809082,
-0.2730875015258789,
-0.419287770986557,
0.048628006130456924,
0.03623726963996887,
-0.02530297264456749,
0.2717917561531067,
-0.6740569472312927,
0.3852013945579529,
-0.3246743679046631,
0.18387141823768616,
-0.012009244412183762,
-0.20953942835330963,
0.23872806131839752,
-0.2718224823474884,
0.10092510282993317,
-0.025891510769724846,
-0.19026866555213928,
-0.16450780630111694,
-0.47693732380867004,
-0.009954757988452911,
0.06047610193490982,
0.49067267775535583,
-0.12701058387756348,
0.9449725151062012,
0.29620444774627686,
0.20621514320373535,
0.25637149810791016,
0.08646336942911148,
0.3665356934070587,
-0.20044967532157898,
-0.3260413110256195,
-0.26459455490112305,
-0.22741946578025818,
0.03699539974331856,
0.3599923253059387,
0.04521985352039337,
-0.2701165974140167,
-0.18198010325431824,
0.016369875520467758,
-0.43003860116004944,
-0.24962061643600464,
-0.16762810945510864,
0.05858411639928818,
0.34076857566833496,
0.09449887275695801,
0.2609401047229767,
-0.06971615552902222,
-0.4152064621448517,
-0.015348538756370544,
0.21640118956565857,
0.4186161160469055,
-0.015099379234015942,
-0.17879179120063782,
-0.09430944174528122,
-0.48045021295547485,
0.1085248738527298,
-0.0002094586379826069,
0.2661379277706146,
0.015584554523229599,
-0.0293634831905365,
0.30877575278282166,
-0.10845303535461426,
0.4717429280281067,
-0.005991654470562935,
0.23136676847934723,
0.21985608339309692,
-0.24650953710079193,
-0.6826286911964417,
0.08509619534015656,
0.07740329205989838,
0.17754517495632172,
0.42965462803840637,
0.2967548370361328,
-0.4755398631095886,
-0.18810416758060455,
0.30608946084976196,
0.38718053698539734,
-0.18663665652275085,
-0.26327207684516907,
-0.4369499683380127,
-0.2913246154785156,
-0.23255318403244019,
-0.02028939127922058,
0.11581223458051682,
0.16981148719787598,
-0.17794159054756165,
-0.14836923778057098,
-0.08300599455833435,
0.15616008639335632,
0.17696648836135864,
0.1843539923429489,
0.24744725227355957,
0.2135644257068634,
0.5365538001060486,
0.27150455117225647,
0.0330333448946476,
-0.08048256486654282,
0.5861924886703491,
0.08577512949705124,
-0.3634141683578491,
0.03697710484266281,
-0.05932870879769325,
-0.03089965134859085,
0.2797803282737732,
-0.137781023979187,
0.09187830984592438,
0.2689821422100067,
0.012212015688419342,
-0.5276316404342651,
0.05672069266438484,
0.37801578640937805,
-0.14132773876190186,
-0.49537116289138794,
-0.5402560830116272,
0.6680290102958679,
0.17223800718784332,
-0.16356420516967773,
0.4319421350955963,
0.011260896921157837,
-0.26371851563453674,
0.0913902223110199,
0.30664724111557007,
0.966874897480011,
-0.22381027042865753,
0.2480052411556244,
-0.08426813781261444,
0.1639532744884491,
0.5847373008728027,
-0.08040465414524078,
-0.06717319786548615,
-0.1760687381029129,
-0.14166350662708282,
0.17722448706626892,
-0.011336352676153183,
-0.07072923332452774,
-0.07958221435546875,
0.08318005502223969,
0.12607741355895996,
-0.22919109463691711,
0.16452601552009583,
-0.1300891935825348,
0.44530782103538513,
0.10088979452848434,
-0.3349322974681854,
-0.17275723814964294,
0.04903842508792877,
0.025164447724819183,
0.3026529848575592,
-0.10532298684120178,
0.21392175555229187,
-0.11061511188745499,
0.09941506385803223,
-0.4046900272369385,
0.009161684662103653,
-0.161733016371727,
0.2721980810165405,
-0.11496973037719727,
-0.32729095220565796,
0.14933019876480103,
0.29796913266181946,
-0.017938047647476196,
0.4763173758983612,
-0.3426330089569092,
0.242357537150383,
-0.3293382525444031,
-0.14086966216564178,
-0.0603649839758873,
-0.005460749845951796,
0.02757418155670166,
-0.03867905214428902,
-0.15109330415725708,
-0.15744176506996155,
-0.15533317625522614,
-0.14588060975074768,
-0.32305359840393066,
0.09227559715509415,
-0.060299985110759735,
-0.03452003374695778,
-0.328632116317749,
-0.059719860553741455,
0.2239956259727478,
-0.23329204320907593,
0.10701644420623779,
0.22117021679878235,
0.06942229717969894,
0.15985867381095886,
0.051721371710300446,
-0.35489070415496826,
-0.22833533585071564,
0.5297857522964478,
0.18147939443588257,
-0.032343436032533646,
0.567706823348999,
0.3214016854763031,
-0.5092512369155884,
-0.11105260998010635,
0.07595499604940414,
-0.4274950325489044,
-0.4078892767429352,
0.03135305270552635,
-0.0847901701927185,
0.4042145609855652,
-0.30993950366973877,
0.09155025333166122,
0.08407498896121979,
-0.4899061918258667,
0.1203119158744812,
-0.45016950368881226,
-0.01899254508316517,
0.16499122977256775,
-0.040086779743433,
0.09476160258054733,
0.3241286873817444,
-0.1731223613023758,
0.013691579923033714,
0.19633999466896057,
-0.19243045151233673,
0.004655946046113968,
-0.10812561213970184,
0.06266571581363678,
0.27142876386642456,
0.08879303932189941,
-0.00486195832490921,
-0.1663879007101059,
0.0847162976861,
0.09367216378450394,
0.05649718642234802,
-0.12928584218025208,
-0.1426759958267212,
0.21098998188972473,
-0.18133234977722168,
-0.322314590215683,
0.15151411294937134,
-0.2787551283836365,
-0.008780889213085175,
-0.4136868417263031,
0.12226782739162445,
0.0497833788394928,
0.20120365917682648,
-0.18982723355293274,
0.23794256150722504,
0.16380295157432556,
-0.2612142562866211,
0.34345394372940063,
-0.09845973551273346,
0.27182915806770325,
0.19852834939956665,
0.08865273743867874,
0.407917320728302,
-0.030576057732105255,
-0.1490713655948639,
-0.040488481521606445,
0.02294529229402542,
-0.005824107676744461,
0.3924216330051422,
-0.2625792622566223,
-0.028455452993512154,
0.46524375677108765,
0.1619214415550232,
0.5159903764724731,
0.010418038815259933,
0.1122526228427887,
0.16324159502983093,
0.0989825576543808,
-0.21902994811534882,
-0.09663026034832001,
0.3058028221130371,
0.0068334126845002174,
-0.10024429857730865,
0.15920908749103546,
0.21371635794639587,
0.10375167429447174,
0.08883976936340332,
0.13320595026016235,
0.18914373219013214,
-0.12631674110889435,
0.257438063621521,
-0.02614184096455574,
0.41814330220222473,
0.11023548245429993,
0.012971045449376106,
0.20032751560211182,
0.017516382038593292,
0.2078627347946167,
0.3514789640903473,
0.1877136528491974,
0.060401443392038345,
0.22514930367469788,
-0.1588674783706665,
-0.43757617473602295,
0.20981936156749725,
0.31791430711746216,
-0.3497054874897003,
0.327940434217453,
0.034579310566186905,
0.2391597032546997,
-0.03863964602351189,
-0.14201007783412933,
-0.33664199709892273,
0.2534852921962738,
-0.041967883706092834,
-0.34008926153182983,
-0.028294438496232033,
-0.2562984824180603,
0.09205509722232819,
0.16417880356311798,
0.012111421674489975,
-0.45571547746658325,
0.18913710117340088,
0.16126081347465515,
-0.18794135749340057,
-0.5230399370193481,
0.3103625178337097,
-0.1129007562994957,
0.4020444452762604,
-0.27212095260620117,
0.07931961119174957,
-0.050307124853134155,
-0.10925555229187012,
-0.04471440240740776,
0.1827983558177948,
0.21233247220516205,
0.21783499419689178,
-0.25591179728507996,
-0.07799781858921051,
-0.11686770617961884,
0.04978742450475693,
-0.07558535039424896,
0.49318382143974304,
0.03863546997308731,
0.13397550582885742,
0.3567572832107544,
0.05132459104061127,
-0.11156376451253891,
-0.4173779785633087,
0.4123992919921875,
0.23067831993103027,
-0.5669919848442078,
-0.10897595435380936,
-0.40205392241477966,
-0.10675151646137238,
-0.057263001799583435,
0.13721349835395813,
-0.31049615144729614,
0.2658534646034241,
0.38019904494285583,
-0.02456737495958805,
0.010970262810587883,
-0.1919582486152649,
0.03376608341932297,
-0.06187712773680687,
0.5389562249183655,
0.16452312469482422,
0.3385299742221832,
-0.13026976585388184,
-0.37683653831481934,
-0.629585325717926,
0.03905963897705078,
-0.3081868290901184,
0.07379111647605896,
0.3375292122364044,
0.3105328679084778,
-0.10424860566854477,
0.2409735918045044,
0.06350423395633698,
-0.179148331284523,
0.058427534997463226,
0.3509241044521332,
-0.21585693955421448,
-0.26990821957588196,
-0.18624891340732574,
0.0001786109060049057,
-0.18381866812705994,
-0.27945613861083984,
0.26108816266059875,
-0.15005727112293243,
-0.11493103206157684,
-0.13219378888607025,
-0.03763239085674286,
0.10393604636192322,
0.20368774235248566,
0.45220765471458435,
0.10077100247144699,
0.3672260046005249,
-0.11791577190160751,
-0.27686506509780884,
-0.27538084983825684,
-0.189035102725029,
0.18842574954032898,
0.43545401096343994,
-0.11799514293670654,
0.21417973935604095,
-0.17678867280483246,
-0.2248487025499344,
-0.07664934545755386,
0.4357685446739197,
-0.03356083855032921,
-0.022867323830723763,
-0.1980542093515396,
-0.3009476959705353,
-0.18419501185417175,
0.18207873404026031,
0.06907259672880173,
0.24860668182373047,
-0.16802100837230682,
0.092485211789608,
-0.12213005125522614,
-0.3529573678970337,
0.4446692168712616,
-0.4433255195617676,
-0.28511032462120056,
-0.25211772322654724,
0.20068299770355225,
0.18757575750350952,
0.016414696350693703,
-0.2368498146533966,
0.054264478385448456,
0.48849090933799744,
-0.0619283989071846,
0.0086231529712677,
0.15230365097522736,
-0.25936126708984375,
-0.1316894292831421,
-0.23729479312896729,
0.26806753873825073,
-0.03952203691005707,
-0.21226714551448822,
0.10118912160396576,
-0.46029239892959595
] |
https://github.com/huggingface/datasets/issues/4327 | `wikipedia` pre-processed datasets | Downloading and processing `wikipedia simple` dataset completed in under 11sec on M1 Mac. Could you please check `dataset` version as mentioned by @albertvillanova? Also check system specs, if system is under load processing could take some time I guess. | ## Describe the bug
[Wikipedia](https://huggingface.co/datasets/wikipedia) dataset readme says that certain subsets are preprocessed. However it seems like they are not available. When I try to load them it takes a really long time, and it seems like it's processing them.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikipedia", "20220301.en")
```
## Expected results
To load the dataset
## Actual results
Takes a very long time to load (after downloading)
After `Downloading data files: 100%`. It takes hours and gets killed.
Tried `wikipedia.simple` and it got processed after ~30mins. | 39 | `wikipedia` pre-processed datasets
## Describe the bug
[Wikipedia](https://huggingface.co/datasets/wikipedia) dataset readme says that certain subsets are preprocessed. However it seems like they are not available. When I try to load them it takes a really long time, and it seems like it's processing them.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("wikipedia", "20220301.en")
```
## Expected results
To load the dataset
## Actual results
Takes a very long time to load (after downloading)
After `Downloading data files: 100%`. It takes hours and gets killed.
Tried `wikipedia.simple` and it got processed after ~30mins.
Downloading and processing `wikipedia simple` dataset completed in under 11sec on M1 Mac. Could you please check `dataset` version as mentioned by @albertvillanova? Also check system specs, if system is under load processing could take some time I guess. | [
-0.0015672668814659119,
-0.2262672781944275,
-0.1317075937986374,
0.30275100469589233,
-0.0004759058356285095,
0.35930246114730835,
0.09913334250450134,
0.18695005774497986,
0.21876253187656403,
-0.16363905370235443,
0.006870933808386326,
0.25350770354270935,
0.19352535903453827,
-0.23757781088352203,
0.016640732064843178,
0.09800094366073608,
0.2745264768600464,
-0.1065056174993515,
-0.08133949339389801,
-0.13045477867126465,
-0.3176977038383484,
0.19344039261341095,
-0.4827198386192322,
-0.17229603230953217,
-0.26308050751686096,
0.048071399331092834,
0.08710712194442749,
-0.08784789592027664,
-0.09503690898418427,
-0.4211772382259369,
0.3357481062412262,
0.16024696826934814,
-0.07349236309528351,
0.3841734230518341,
-0.00011979861301369965,
-0.04230959713459015,
0.7511489987373352,
0.0961364135146141,
-0.4297446310520172,
-0.013811767101287842,
-0.17083962261676788,
-0.31281578540802,
0.22163766622543335,
-0.24076589941978455,
-0.05704597383737564,
-0.27794790267944336,
0.13689689338207245,
-0.4590950906276703,
0.26960521936416626,
-0.024672742933034897,
0.1460852026939392,
0.07650021463632584,
-0.016567200422286987,
-0.020457793027162552,
0.3488224744796753,
0.3233644962310791,
-0.07093048095703125,
0.12084178626537323,
0.049531489610672,
-0.1449032723903656,
0.23662731051445007,
0.29007208347320557,
-0.2116316258907318,
0.09570305049419403,
0.3158392310142517,
-0.03533845767378807,
-0.16995841264724731,
-0.5611833333969116,
0.17525646090507507,
0.4338855743408203,
0.6262943148612976,
0.04702853411436081,
-0.33729320764541626,
-0.35264116525650024,
0.01223533134907484,
0.04709630459547043,
0.3585386872291565,
0.33552372455596924,
-0.24031834304332733,
-0.012088313698768616,
-0.15376757085323334,
-0.08888205140829086,
-0.007544737309217453,
0.14808890223503113,
-0.15761598944664001,
0.2859022915363312,
-0.07206055521965027,
0.17893004417419434,
0.06434965133666992,
-0.0967501699924469,
-0.030421990901231766,
-0.32102739810943604,
0.25114741921424866,
0.33612892031669617,
-0.29503846168518066,
0.08869011700153351,
-0.18232595920562744,
0.21681511402130127,
0.17352664470672607,
-0.19083161652088165,
-0.38261812925338745,
-0.001503385603427887,
-0.05957445129752159,
-0.06837429106235504,
0.2996911406517029,
-0.373311847448349,
-0.19677487015724182,
-0.10975035279989243,
0.4477694630622864,
0.12071331590414047,
-0.14769381284713745,
0.18552491068840027,
0.09068386256694794,
-0.12836746871471405,
0.14901360869407654,
-0.13995549082756042,
0.32856684923171997,
-0.22708946466445923,
-0.18590165674686432,
0.2948912978172302,
-0.0823124349117279,
-0.24286657571792603,
-0.30797216296195984,
0.34195059537887573,
-0.5465877652168274,
0.1957727074623108,
0.20375464856624603,
0.01066787913441658,
-0.45224761962890625,
-0.07139556109905243,
-0.042223986238241196,
-0.04233210161328316,
-0.19522033631801605,
0.1079280897974968,
0.24731869995594025,
-0.23968583345413208,
0.18772047758102417,
0.22058895230293274,
-0.14704391360282898,
-0.2634502053260803,
0.13591110706329346,
-0.23131360113620758,
0.019309379160404205,
0.3347940444946289,
0.047799598425626755,
0.4817425310611725,
-0.005588613450527191,
0.17683152854442596,
-0.1600889265537262,
0.24081820249557495,
-0.26448529958724976,
0.03337651118636131,
-0.025976600125432014,
0.12988640367984772,
-0.20256230235099792,
0.010888457298278809,
-0.22134670615196228,
0.18726128339767456,
0.23306170105934143,
0.0641615092754364,
-0.11291497200727463,
0.07328563928604126,
-0.32516413927078247,
-0.19000257551670074,
0.4825343191623688,
0.4927576780319214,
-0.2700071930885315,
0.11739087104797363,
-0.4370453655719757,
0.10450159013271332,
0.2966900169849396,
0.3407188951969147,
-0.019893553107976913,
0.41867727041244507,
-0.12235723435878754,
-0.20555618405342102,
0.13410861790180206,
0.13834670186042786,
-0.19450809061527252,
0.1608830690383911,
0.20234797894954681,
0.33288607001304626,
-0.16794496774673462,
0.06675362586975098,
0.03657970204949379,
0.1804424375295639,
-0.008330300450325012,
0.39000970125198364,
0.1460171341896057,
-0.032352399080991745,
-0.36825937032699585,
-0.40990740060806274,
0.3406531810760498,
0.19319048523902893,
0.2573213279247284,
0.009694322943687439,
-0.08520006388425827,
0.12685054540634155,
0.19946160912513733,
0.16327601671218872,
-0.05802588164806366,
0.36204278469085693,
-0.12030363082885742,
0.39584100246429443,
0.31177252531051636,
-0.27761879563331604,
-0.259306937456131,
0.17393192648887634,
0.23360493779182434,
-0.11455108225345612,
-0.12755133211612701,
-0.225473091006279,
-0.3721112012863159,
0.2627478539943695,
0.0010479651391506195,
0.004911115393042564,
0.021744102239608765,
0.0379440039396286,
0.07607130706310272,
0.42743077874183655,
0.020388152450323105,
0.025495536625385284,
-0.16259826719760895,
-0.05383729189634323,
-0.5078442692756653,
0.16926692426204681,
-0.003882916644215584,
-0.0028548426926136017,
-0.04713280498981476,
-0.0488600879907608,
0.11110333353281021,
-0.004748683422803879,
-0.07630502432584763,
0.0675119012594223,
0.35966500639915466,
0.16844776272773743,
0.02692217193543911,
-0.07626105844974518,
0.18509283661842346,
-0.4483746588230133,
-0.03772386163473129,
0.4096032381057739,
0.21697984635829926,
-0.14216971397399902,
-0.4105868339538574,
0.23103314638137817,
-0.12480811774730682,
0.262474000453949,
-0.06761842966079712,
0.0028146840631961823,
0.15310387313365936,
0.2116052508354187,
0.050433918833732605,
-0.1065291166305542,
0.23813188076019287,
0.18276026844978333,
0.23881788551807404,
0.14928953349590302,
-0.24420472979545593,
-0.03494671732187271,
0.3545089662075043,
-0.09671972692012787,
0.0247003473341465,
0.18505170941352844,
-0.1058938130736351,
-0.16316235065460205,
0.030344858765602112,
-0.3499729335308075,
0.07877962291240692,
0.015597495250403881,
0.03749252110719681,
-0.09430693835020065,
-0.00232600886374712,
-0.1571996510028839,
0.24476617574691772,
0.19674527645111084,
0.2796297073364258,
0.014603149145841599,
0.19802895188331604,
0.11278451979160309,
-0.1182594895362854,
0.2841271460056305,
0.011309536173939705,
0.16090165078639984,
-0.3260968327522278,
0.13351161777973175,
-0.28456199169158936,
-0.15829548239707947,
0.001607947051525116,
0.031625889241695404,
-0.21739830076694489,
-0.329212486743927,
-0.22745899856090546,
0.24925385415554047,
0.1554943472146988,
0.04304768145084381,
-0.11341990530490875,
0.12202740460634232,
0.10485798120498657,
-0.12010330706834793,
-0.29398900270462036,
-0.14253252744674683,
-0.040837034583091736,
-0.01875092089176178,
0.2528045177459717,
0.011706534773111343,
0.23206835985183716,
-0.1076413094997406,
-0.3092522621154785,
-0.3015713095664978,
-0.30817940831184387,
0.023472711443901062,
-0.21859349310398102,
0.5379121899604797,
-0.03267328441143036,
0.4075167775154114,
-0.08934096992015839,
-0.09690465778112411,
0.14314518868923187,
-0.14749565720558167,
-0.10787061601877213,
-0.04942719265818596,
-0.1341089904308319,
0.11013174802064896,
0.15779916942119598,
-0.29764324426651,
-0.2929806113243103,
-0.04568908363580704,
0.14272570610046387,
0.04172619804739952,
0.03306454047560692,
0.07223938405513763,
0.010371874086558819,
-0.18410557508468628,
0.19476677477359772,
0.22439755499362946,
-0.18527819216251373,
-0.2659358084201813,
0.6223852634429932,
-0.1906816065311432,
-0.3836917579174042,
0.11910989880561829,
0.04486791044473648,
-0.08391734957695007,
0.251056969165802,
-0.6675190925598145,
0.43101316690444946,
-0.3174028694629669,
0.31947532296180725,
0.01527222990989685,
-0.15429748594760895,
0.17992213368415833,
-0.18898943066596985,
0.11658470332622528,
-0.07822766900062561,
-0.18456868827342987,
-0.1306346356868744,
-0.29595351219177246,
0.07824808359146118,
0.09345565736293793,
0.5489798188209534,
-0.24098201096057892,
0.9911630153656006,
0.2521210312843323,
0.15891245007514954,
0.1950293481349945,
0.13973914086818695,
0.30792149901390076,
-0.14477798342704773,
-0.31763678789138794,
-0.2017124742269516,
-0.025313273072242737,
-0.03286287188529968,
0.29018330574035645,
-0.04898660629987717,
-0.4410046935081482,
-0.11921776831150055,
0.005966439843177795,
-0.4874749481678009,
-0.20046554505825043,
-0.15251922607421875,
0.03134327754378319,
0.3211105167865753,
0.05906768515706062,
0.32998111844062805,
-0.11834485828876495,
-0.4177515506744385,
0.032749924808740616,
0.2587950825691223,
0.37175658345222473,
-0.06498406082391739,
-0.19255265593528748,
-0.13336844742298126,
-0.39130836725234985,
-0.001662321388721466,
-0.10189882665872574,
0.3956894874572754,
0.001035638153553009,
-0.04931897670030594,
0.29873669147491455,
-0.12656553089618683,
0.4124373197555542,
-0.21959978342056274,
0.13577020168304443,
0.28413712978363037,
-0.08732254803180695,
-0.668527364730835,
-0.0682806596159935,
0.08907729387283325,
0.3355381190776825,
0.40179193019866943,
0.15070092678070068,
-0.29539570212364197,
-0.15066811442375183,
0.3117446005344391,
0.3189719021320343,
-0.16753992438316345,
-0.3631518483161926,
-0.42435115575790405,
-0.17538177967071533,
-0.09574735909700394,
-0.004408001899719238,
-0.033942218869924545,
0.123123399913311,
-0.1897733509540558,
-0.19928711652755737,
-0.17096677422523499,
0.19778618216514587,
0.1506904810667038,
0.2839154005050659,
0.15891990065574646,
0.07741859555244446,
0.6085219979286194,
0.21181456744670868,
-0.004076935350894928,
0.027531743049621582,
0.5551921129226685,
0.008198719471693039,
-0.418376088142395,
0.08418574184179306,
-0.1537487506866455,
-0.02584531158208847,
0.15341132879257202,
-0.17688924074172974,
0.06515070796012878,
0.2934103012084961,
-0.08541035652160645,
-0.5165311098098755,
0.05401886999607086,
0.45202699303627014,
-0.04328704625368118,
-0.6169025301933289,
-0.6051988005638123,
0.5735412836074829,
0.25596609711647034,
-0.16283468902111053,
0.4840584099292755,
-0.28557395935058594,
-0.17150253057479858,
0.18447981774806976,
0.3296400308609009,
0.9082339406013489,
-0.3530126214027405,
0.07648283243179321,
-0.08736228942871094,
0.19768588244915009,
0.4939609467983246,
-0.17397814989089966,
-0.05696798861026764,
-0.24699048697948456,
-0.16115157306194305,
0.12354621291160583,
-0.092291921377182,
-0.05003846436738968,
-0.09177009761333466,
0.03696798160672188,
0.06691013276576996,
-0.2984622120857239,
0.10014431178569794,
-0.19013141095638275,
0.5280651450157166,
0.2553987205028534,
-0.1942039281129837,
-0.18313658237457275,
0.07603296637535095,
0.09032019227743149,
0.21161845326423645,
-0.15087193250656128,
0.21719524264335632,
-0.1502419412136078,
0.14821185171604156,
-0.445151686668396,
-0.020653381943702698,
-0.020017830654978752,
0.277209997177124,
-0.09721356630325317,
-0.3060506582260132,
0.16550271213054657,
0.20610737800598145,
-0.00610014796257019,
0.48422977328300476,
-0.29562076926231384,
0.3076460659503937,
-0.3214419484138489,
-0.06329108774662018,
-0.02434592880308628,
-0.024316832423210144,
0.02529900334775448,
-0.026001354679465294,
-0.20121042430400848,
-0.0497363805770874,
-0.14040836691856384,
-0.22571133077144623,
-0.20654062926769257,
0.029030296951532364,
-0.018261805176734924,
-0.025893904268741608,
-0.30707451701164246,
-0.07351110875606537,
0.1912233531475067,
-0.09586337208747864,
0.1184171736240387,
0.17011484503746033,
0.20848795771598816,
0.37907466292381287,
-0.047738704830408096,
-0.38769474625587463,
-0.19866536557674408,
0.45576098561286926,
0.20797210931777954,
0.06434305012226105,
0.428587943315506,
0.3339312970638275,
-0.4868658185005188,
-0.12645575404167175,
0.10328016430139542,
-0.46638283133506775,
-0.2945506274700165,
0.0075352988205850124,
-0.20165161788463593,
0.4085157513618469,
-0.16513562202453613,
0.12465834617614746,
0.11034982651472092,
-0.4197249412536621,
0.13030751049518585,
-0.5314502716064453,
-0.02721910923719406,
0.09075147658586502,
-0.129418283700943,
-0.04591795429587364,
0.29874569177627563,
-0.3066112697124481,
0.10861095786094666,
0.06019775569438934,
-0.19410854578018188,
-0.05974186211824417,
-0.08228296786546707,
0.09663257002830505,
0.1259598731994629,
0.08469237387180328,
-0.05917932465672493,
-0.1885061264038086,
0.09953612089157104,
-0.07833436131477356,
0.08821649849414825,
-0.15631383657455444,
-0.1200753003358841,
0.19581085443496704,
-0.15875962376594543,
-0.2988632023334503,
0.07489515841007233,
-0.44036442041397095,
-0.13612723350524902,
-0.25063082575798035,
-0.012705414555966854,
-0.08064837753772736,
0.14116817712783813,
-0.14705368876457214,
0.21613602340221405,
0.07575380057096481,
-0.27882200479507446,
0.3929148316383362,
-0.11293873190879822,
0.19309160113334656,
0.09927655756473541,
0.1797846555709839,
0.5358362793922424,
0.025014929473400116,
-0.28293293714523315,
-0.04148221015930176,
-0.04632551968097687,
0.08314259350299835,
0.43364614248275757,
-0.21716593205928802,
0.09382772445678711,
0.4895200729370117,
0.11056791245937347,
0.6523498892784119,
-0.024704789742827415,
-0.03443790227174759,
0.23317807912826538,
0.15245534479618073,
-0.25026199221611023,
-0.10504162311553955,
0.2799726724624634,
0.12506096065044403,
-0.17069296538829803,
0.1716555655002594,
0.15806691348552704,
0.11711739003658295,
0.062281716614961624,
0.16921237111091614,
0.2497931718826294,
-0.11428433656692505,
0.3008369207382202,
0.07174365967512131,
0.4252060651779175,
0.10635387897491455,
0.05969174951314926,
0.16686296463012695,
-0.09460201114416122,
0.38561922311782837,
0.3956315517425537,
0.09564533829689026,
0.37142810225486755,
0.147273451089859,
-0.11686839908361435,
-0.33122533559799194,
0.3172987699508667,
0.2870194911956787,
-0.29603469371795654,
0.25481298565864563,
0.09638971835374832,
0.056969672441482544,
0.053168926388025284,
-0.21791115403175354,
-0.359589546918869,
0.2378886193037033,
-0.06727609783411026,
-0.22011438012123108,
-0.046448029577732086,
-0.20819547772407532,
0.21270394325256348,
0.15946383774280548,
-0.06298618018627167,
-0.2934293746948242,
0.21255485713481903,
0.32880502939224243,
-0.2217319756746292,
-0.5304176211357117,
0.403891921043396,
-0.048948243260383606,
0.41837674379348755,
-0.2681029736995697,
0.07996857911348343,
-0.1768573671579361,
-0.14061224460601807,
0.006873331964015961,
0.2629087269306183,
0.18055160343647003,
0.34722253680229187,
-0.4082048237323761,
-0.06848989427089691,
-0.026023805141448975,
0.02426241524517536,
0.02172934263944626,
0.5091357827186584,
0.012344829738140106,
0.23395465314388275,
0.3131004869937897,
0.033590130507946014,
-0.05157427489757538,
-0.29813385009765625,
0.3533127009868622,
0.09438534080982208,
-0.568551242351532,
-0.2644495666027069,
-0.26430743932724,
-0.09223711490631104,
0.002453150227665901,
0.16841650009155273,
-0.2820731997489929,
0.30874744057655334,
0.511570394039154,
0.08331796526908875,
-0.044769834727048874,
-0.16232876479625702,
0.025457199662923813,
-0.18734987080097198,
0.5385072827339172,
0.23471897840499878,
0.4424910843372345,
-0.12459897249937057,
-0.3197070360183716,
-0.5808241367340088,
0.011854052543640137,
-0.4051920175552368,
-0.011596471071243286,
0.3818248510360718,
0.2792927324771881,
-0.11600851267576218,
0.2388659119606018,
0.19514906406402588,
-0.1956382840871811,
-0.09052545577287674,
0.49774590134620667,
-0.346713125705719,
-0.24871696531772614,
-0.10051591694355011,
-0.06835179030895233,
-0.27995961904525757,
-0.24647194147109985,
0.33384013175964355,
-0.21146559715270996,
-0.13807354867458344,
-0.19176483154296875,
-0.24414308369159698,
0.20217889547348022,
0.3335518538951874,
0.5371167659759521,
0.058209896087646484,
0.3442308306694031,
-0.026602860540151596,
-0.26309800148010254,
-0.2710520625114441,
-0.19292958080768585,
0.10603310912847519,
0.44313377141952515,
-0.058852966874837875,
0.21791240572929382,
-0.14321008324623108,
-0.011946842074394226,
-0.06528425961732864,
0.42797020077705383,
-0.10192401707172394,
-0.08710745722055435,
-0.19446149468421936,
-0.3441315293312073,
-0.1173715889453888,
0.20103555917739868,
0.06835649162530899,
0.13864904642105103,
-0.048672303557395935,
0.11508363485336304,
-0.20956262946128845,
-0.2504989206790924,
0.26750415563583374,
-0.3805908262729645,
-0.2666335701942444,
-0.3490374982357025,
0.11204453557729721,
0.017712537199258804,
0.22254851460456848,
-0.3012617826461792,
-0.021038971841335297,
0.5897302031517029,
-0.1476598083972931,
0.06468512117862701,
0.13442794978618622,
0.026473406702280045,
0.06728947162628174,
-0.2457214742898941,
0.18973016738891602,
-0.21694332361221313,
-0.24986818432807922,
0.02499152347445488,
-0.41358494758605957
] |
https://github.com/huggingface/datasets/issues/4325 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance | Not sure if it's related... I was going to raise an issue for https://huggingface.co/datasets/domenicrosati/TruthfulQA which also has the same issue... https://huggingface.co/datasets/domenicrosati/TruthfulQA/viewer/domenicrosati--TruthfulQA/train
| ### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes | 21 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance
### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes
Not sure if it's related... I was going to raise an issue for https://huggingface.co/datasets/domenicrosati/TruthfulQA which also has the same issue... https://huggingface.co/datasets/domenicrosati/TruthfulQA/viewer/domenicrosati--TruthfulQA/train
| [
-0.3982287049293518,
-0.05103665590286255,
0.11376392841339111,
0.2787121534347534,
0.12617748975753784,
0.10764957219362259,
0.5049300789833069,
0.10841026902198792,
0.08695563673973083,
0.04506608843803406,
-0.11013823747634888,
-0.05777394026517868,
-0.14051924645900726,
0.09194277226924896,
-0.3627348244190216,
-0.15633505582809448,
0.04522918909788132,
0.18804273009300232,
-0.0041385069489479065,
0.014538086950778961,
-0.10228075087070465,
0.02796183153986931,
-0.45110267400741577,
-0.09153887629508972,
-0.06733916699886322,
0.05857675150036812,
-0.007150562480092049,
-0.12613004446029663,
-0.01174793392419815,
-0.4077222943305969,
0.3778868317604065,
0.21403785049915314,
0.34175753593444824,
0.39439013600349426,
-0.00012234364112373441,
-0.025019779801368713,
0.5172103047370911,
0.09676609933376312,
-0.28321197628974915,
-0.1328122466802597,
-0.022667178884148598,
-0.05616418272256851,
0.32814207673072815,
0.15345430374145508,
-0.30010342597961426,
-0.6987800002098083,
0.14781638979911804,
-0.23615331947803497,
0.20118823647499084,
0.10274253040552139,
0.12154626846313477,
0.38436830043792725,
-0.022700443863868713,
-0.07378032803535461,
-0.28273916244506836,
0.16450142860412598,
-0.12306423485279083,
0.027985990047454834,
0.1478862464427948,
0.3239158093929291,
-0.0018627271056175232,
0.18743406236171722,
-0.19941209256649017,
-0.055874962359666824,
0.258310467004776,
-0.16724619269371033,
-0.22354131937026978,
-0.2240162491798401,
0.18515226244926453,
0.34086886048316956,
0.6331382393836975,
0.16776543855667114,
0.010766088031232357,
-0.3857874572277069,
-0.03310287743806839,
0.21804475784301758,
0.31422021985054016,
0.1806349903345108,
-0.19849583506584167,
0.21991084516048431,
-0.36920344829559326,
0.11605443060398102,
-0.10434982180595398,
-0.011131338775157928,
-0.3837946057319641,
0.11330090463161469,
-0.07700769603252411,
0.19680866599082947,
0.17024727165699005,
-0.17703813314437866,
0.25985366106033325,
-0.45733416080474854,
0.014172486960887909,
-0.07868944108486176,
-0.34543102979660034,
0.12210282683372498,
0.22358384728431702,
0.08865222334861755,
-0.3234995901584625,
0.3895670175552368,
-0.10700802505016327,
0.30472496151924133,
-0.07701744884252548,
0.04107674956321716,
0.17212152481079102,
0.04664699360728264,
0.4642241597175598,
0.23045019805431366,
0.3862571120262146,
0.2803148329257965,
0.12043057382106781,
0.017729759216308594,
-0.22898700833320618,
-0.2555300295352936,
-0.3477623462677002,
-0.36351829767227173,
0.38033103942871094,
-0.3115384578704834,
-0.2527114748954773,
0.4196225702762604,
-0.1702161431312561,
0.01722029410302639,
0.23816177248954773,
0.6355351209640503,
-0.2199338972568512,
0.1897364854812622,
-0.0054679811000823975,
0.10098099708557129,
-0.17278869450092316,
-0.369873046875,
-0.1195109486579895,
-0.3309077024459839,
-0.02264159359037876,
0.22410795092582703,
0.4334228038787842,
-0.17284488677978516,
-0.00974433682858944,
0.10415217280387878,
-0.14798757433891296,
-0.038178279995918274,
-0.03659173101186752,
-0.2227715104818344,
0.019915975630283356,
0.23280198872089386,
0.2605743110179901,
0.42101356387138367,
0.06137923151254654,
-0.08873218297958374,
0.175746887922287,
0.4284597337245941,
0.3320808708667755,
0.07327769696712494,
-0.0205711480230093,
0.04184144362807274,
-0.5777121186256409,
0.05402747914195061,
-0.22528576850891113,
0.340353399515152,
-0.3023441433906555,
-0.23359516263008118,
-0.05534789711236954,
-0.09167607128620148,
-0.013833284378051758,
-0.1384900063276291,
0.5139999985694885,
0.6944781541824341,
-0.41437992453575134,
-0.15723174810409546,
-0.12757644057273865,
-0.3625876307487488,
-0.039243750274181366,
0.16029797494411469,
-0.08236633986234665,
-0.06976970285177231,
-0.2846716046333313,
0.011868402361869812,
-0.0534052774310112,
-0.3121812641620636,
-0.032428085803985596,
0.3432757556438446,
0.0065758079290390015,
0.3959867060184479,
0.14412343502044678,
-0.12835022807121277,
0.11181121319532394,
0.06373723596334457,
-0.3553786873817444,
-0.3445369601249695,
0.12297843396663666,
-0.19992785155773163,
-0.27392616868019104,
-0.11153369396924973,
0.10223907232284546,
0.343879759311676,
0.42694422602653503,
-0.1154017522931099,
-0.23823949694633484,
-0.1298932582139969,
0.33282655477523804,
0.08024974167346954,
0.3605569005012512,
0.14872030913829803,
0.20023705065250397,
0.21054264903068542,
-0.06688354164361954,
-0.15942680835723877,
-0.6356121301651001,
0.11243558675050735,
0.17746806144714355,
0.024248763918876648,
0.29258251190185547,
-0.08174757659435272,
0.007321575656533241,
-0.23510923981666565,
-0.4192138612270355,
-0.3985046148300171,
0.03643441200256348,
0.3992074131965637,
-0.23201006650924683,
0.16406846046447754,
-0.10349436849355698,
-0.018257131800055504,
0.03810770809650421,
0.2227087765932083,
0.0182533897459507,
0.4121572971343994,
0.1549375355243683,
-0.16361652314662933,
-0.06917741894721985,
-0.1320802867412567,
0.37097564339637756,
-0.0256644394248724,
0.07375919818878174,
0.2102161943912506,
-0.026970921084284782,
0.20430608093738556,
-0.017586179077625275,
-0.05927996337413788,
0.42637157440185547,
-0.4307456314563751,
0.050866153091192245,
-0.07052606344223022,
-0.1352776437997818,
-0.19205111265182495,
-0.4414308965206146,
0.28554612398147583,
-0.05453193560242653,
0.23372900485992432,
0.0036715008318424225,
0.17285093665122986,
-0.05452263355255127,
-0.2635056674480438,
-0.1829284131526947,
0.026092112064361572,
0.3896201550960541,
0.02797192893922329,
0.03837751969695091,
0.14679774641990662,
-0.4779359996318817,
0.08819186687469482,
-0.11830371618270874,
-0.026203539222478867,
-0.23889175057411194,
-0.0264977365732193,
-0.2895878553390503,
0.048703692853450775,
0.25890859961509705,
0.2426743358373642,
0.13783538341522217,
0.20523318648338318,
0.08151767402887344,
0.038216814398765564,
0.08963525295257568,
-0.19041356444358826,
0.10499759763479233,
0.15847769379615784,
-0.22276556491851807,
0.2631007730960846,
-0.07736916840076447,
-0.06751544028520584,
-0.2620260417461395,
0.02480299398303032,
0.31453728675842285,
0.1770089864730835,
-0.33305492997169495,
-0.2541579306125641,
-0.3203691244125366,
-0.32644546031951904,
-0.20744772255420685,
0.08169219642877579,
-0.1314803510904312,
-0.263652503490448,
-0.29225510358810425,
0.43842750787734985,
-0.08044340461492538,
0.2873629331588745,
-0.1994772106409073,
0.371971070766449,
-0.3323898911476135,
0.4065910577774048,
-0.31261682510375977,
0.017444979399442673,
-0.4192459285259247,
0.04242905601859093,
0.33275100588798523,
-0.047713153064250946,
0.040044572204351425,
-0.09758662432432175,
0.03042219579219818,
-0.33924198150634766,
-0.31194910407066345,
0.03879942744970322,
-0.014258921146392822,
0.2912878692150116,
-0.12241728603839874,
0.35154348611831665,
-0.22373266518115997,
-0.13391731679439545,
0.2843615710735321,
0.06761188805103302,
0.18747355043888092,
-0.2768878936767578,
0.07550933212041855,
-0.00809036660939455,
-0.02137136086821556,
-0.08001164346933365,
0.05523601174354553,
-0.4155990481376648,
0.21724067628383636,
-0.302522212266922,
-0.08897338807582855,
-0.03301874175667763,
0.12135493755340576,
0.054009974002838135,
-0.13115258514881134,
-0.005607491359114647,
0.038233693689107895,
-0.2113228589296341,
0.4103950560092926,
-0.34653013944625854,
-0.4563778340816498,
0.2237829566001892,
0.1880931407213211,
0.09730836749076843,
-0.25820392370224,
-0.7647978067398071,
0.24451105296611786,
-0.1679867058992386,
0.03670957311987877,
0.2104317843914032,
-0.5187258124351501,
-0.03941577672958374,
0.0662321075797081,
0.12259720265865326,
-0.19426292181015015,
-0.24962203204631805,
0.10385508090257645,
-0.6095733046531677,
0.3069303035736084,
-0.0990120992064476,
0.3421154022216797,
0.00008898600935935974,
0.4534006714820862,
0.4582562744617462,
0.10289262235164642,
0.32831308245658875,
0.10169649124145508,
0.45400598645210266,
0.14395985007286072,
-0.32251325249671936,
0.20709872245788574,
0.13756132125854492,
0.07745318859815598,
0.5021839141845703,
0.15341079235076904,
0.05190812051296234,
-0.5356823205947876,
-0.15830251574516296,
-0.134320929646492,
-0.18573251366615295,
-0.06227290630340576,
-0.18034380674362183,
0.03393352031707764,
0.12542623281478882,
0.4293533265590668,
-0.036239445209503174,
-0.2463264763355255,
-0.2358260601758957,
0.5311416387557983,
0.4078208804130554,
-0.05616230517625809,
-0.3992905020713806,
0.3312792181968689,
-0.17854169011116028,
0.23501667380332947,
-0.2412520945072174,
0.23420625925064087,
-0.47674962878227234,
-0.06141715496778488,
0.1837623119354248,
-0.049152009189128876,
0.5527395009994507,
0.06403008103370667,
-0.0009344518184661865,
-0.0839284360408783,
-0.10887965559959412,
-0.40798261761665344,
-0.1998145878314972,
0.23113849759101868,
-0.2955932915210724,
0.22354017198085785,
0.20720404386520386,
-0.2556193470954895,
-0.2399047166109085,
0.2487080693244934,
-0.21913550794124603,
-0.3384697437286377,
-0.2496240884065628,
0.09931065142154694,
0.19951188564300537,
-0.07189454138278961,
-0.15514597296714783,
-0.18705709278583527,
0.05725013092160225,
-0.39159759879112244,
-0.30647891759872437,
0.10688045620918274,
-0.0892733484506607,
0.2907789349555969,
0.1447724997997284,
0.2677278220653534,
0.011598764918744564,
0.557379424571991,
0.657923698425293,
0.3698335587978363,
0.6914207339286804,
0.4612458646297455,
0.0785418152809143,
-0.27203628420829773,
0.5199404358863831,
-0.023599833250045776,
0.14696460962295532,
0.5148184895515442,
0.008917602710425854,
0.05869781970977783,
0.27133989334106445,
0.3077302575111389,
-0.44333863258361816,
0.22335287928581238,
0.4414884150028229,
-0.11914239078760147,
-0.4064992666244507,
-0.2846008539199829,
0.05672718212008476,
-0.031516823917627335,
-0.03402029722929001,
0.3134301006793976,
0.23371660709381104,
-0.01818753406405449,
0.03159952163696289,
-0.08848997205495834,
0.8379514217376709,
-0.07350897789001465,
-0.06687521934509277,
0.27199941873550415,
-0.33158326148986816,
0.23539967834949493,
-0.05620023235678673,
-0.13643355667591095,
-0.11798034608364105,
-0.17320556938648224,
0.03162464499473572,
-0.1463143676519394,
0.35059648752212524,
0.09071257710456848,
0.08133472502231598,
-0.07183992117643356,
0.17468483746051788,
0.261588454246521,
0.09287699311971664,
0.07379259914159775,
-0.19397498667240143,
0.10782693326473236,
0.13547490537166595,
0.03921234607696533,
-0.03845352679491043,
0.13266628980636597,
-0.11946093291044235,
-0.09084528684616089,
-0.1215512603521347,
-0.03958664834499359,
-0.4416433572769165,
0.12745678424835205,
0.18179094791412354,
-0.2245766967535019,
0.00950547680258751,
-0.27461642026901245,
0.3428308963775635,
0.5304276943206787,
0.0006388351321220398,
0.038938142359256744,
-0.4475354850292206,
0.5271949768066406,
-0.04070371389389038,
-0.03253486379981041,
-0.14125560224056244,
-0.010487133637070656,
0.28503045439720154,
-0.0766356885433197,
-0.209299698472023,
0.10305549204349518,
-0.05509335920214653,
-0.05862946808338165,
-0.5771112442016602,
-0.05327369272708893,
0.13262265920639038,
-0.2516225576400757,
0.1679290533065796,
-0.21815237402915955,
0.2532799243927002,
-0.22013422846794128,
0.07773739099502563,
-0.07208260893821716,
0.3680255711078644,
-0.055769868195056915,
0.2881099581718445,
-0.05259004607796669,
-0.19697213172912598,
0.5780344009399414,
-0.1752403974533081,
-0.08594620227813721,
0.6757297515869141,
0.46705806255340576,
-0.2507626414299011,
-0.1022537350654602,
0.056764550507068634,
0.2911314070224762,
-0.24660348892211914,
0.020903343334794044,
-0.13904348015785217,
0.14998917281627655,
0.18504677712917328,
0.22315336763858795,
0.10585220158100128,
-0.34296655654907227,
-0.044334568083286285,
-0.31055304408073425,
-0.1374955177307129,
0.15659655630588531,
-0.09747433662414551,
0.2805863916873932,
-0.00531730055809021,
0.3497197926044464,
0.17773297429084778,
-0.05361375957727432,
-0.19293776154518127,
-0.06615150719881058,
-0.04422354698181152,
-0.05953003466129303,
-0.15465326607227325,
0.01633724942803383,
0.0014363826485350728,
-0.14240345358848572,
-0.09647706896066666,
0.026116088032722473,
-0.10264892876148224,
-0.041735559701919556,
-0.13719914853572845,
0.2242145985364914,
0.22266340255737305,
-0.2962576448917389,
-0.20527057349681854,
-0.05529044196009636,
0.04068067669868469,
-0.12007088959217072,
-0.0705300122499466,
0.18379110097885132,
-0.04422473907470703,
-0.10898572951555252,
0.05303269997239113,
0.16529375314712524,
-0.1292066127061844,
0.07485809922218323,
0.05350222438573837,
0.13515765964984894,
0.06627673655748367,
0.023102078586816788,
-0.04633978754281998,
-0.013594627380371094,
-0.27010706067085266,
0.07560553401708603,
0.1463257223367691,
-0.12937334179878235,
0.33088791370391846,
-0.3161381483078003,
0.14191970229148865,
0.11025910079479218,
0.4896145164966583,
0.32732269167900085,
-0.14338374137878418,
-0.0036987122148275375,
0.23724648356437683,
0.06895190477371216,
-0.028144314885139465,
0.2419653683900833,
0.11344140768051147,
0.2427976131439209,
-0.09054546803236008,
-0.1925821304321289,
-0.032488368451595306,
-0.17266596853733063,
-0.05352799594402313,
0.20194920897483826,
0.46938714385032654,
0.1699298471212387,
0.4487226605415344,
0.35947325825691223,
-0.07672405987977982,
0.04402501508593559,
0.27165088057518005,
0.009020864963531494,
-0.020602352917194366,
0.3144758343696594,
-0.1997683346271515,
0.0759098082780838,
-0.2557901442050934,
0.33888059854507446,
0.16449689865112305,
-0.5600528717041016,
0.010085497051477432,
0.14842206239700317,
-0.32020944356918335,
-0.17633241415023804,
-0.11383798718452454,
0.26660481095314026,
-0.12992964684963226,
-0.28389933705329895,
-0.4462735056877136,
0.45611244440078735,
-0.24794504046440125,
-0.06343336403369904,
-0.4666828215122223,
-0.3068676292896271,
-0.077471062541008,
0.20877480506896973,
0.1575048416852951,
-0.1868049055337906,
-0.09044231474399567,
0.08616713434457779,
-0.2735278010368347,
-0.4655109643936157,
-0.029556632041931152,
0.029188966378569603,
0.11958633363246918,
-0.06971961259841919,
0.22171379625797272,
0.2786543369293213,
-0.18501362204551697,
0.43963387608528137,
0.37439826130867004,
0.2086407095193863,
0.1618637889623642,
0.2029763162136078,
-0.05465084686875343,
-0.08595159649848938,
0.06089415401220322,
-0.1200484186410904,
0.465006023645401,
0.21823816001415253,
0.232564777135849,
0.33162009716033936,
0.06643883883953094,
-0.1512812227010727,
0.17824631929397583,
-0.16448216140270233,
0.1714639663696289,
-0.3452237546443939,
0.14668391644954681,
-0.3000703752040863,
-0.07414959371089935,
0.10616599768400192,
-0.5676668286323547,
-0.17228706181049347,
0.16144029796123505,
-0.020119860768318176,
-0.017040349543094635,
0.04422555863857269,
-0.4570761024951935,
-0.011291496455669403,
0.12226602435112,
0.31404584646224976,
0.17362049221992493,
0.10431728512048721,
-0.22831864655017853,
-0.48475080728530884,
-0.5570748448371887,
0.28401318192481995,
0.16790080070495605,
0.12150101363658905,
0.07431405037641525,
-0.11761806160211563,
-0.012815751135349274,
-0.17440524697303772,
0.25960230827331543,
0.1694139987230301,
0.06227868050336838,
0.41807958483695984,
-0.27284467220306396,
0.2302810549736023,
0.1654312014579773,
0.09665436297655106,
-0.2092035710811615,
0.019613400101661682,
0.6029530763626099,
-0.06569606810808182,
-0.12172811478376389,
0.0765882357954979,
0.05563042312860489,
-0.037813782691955566,
-0.25252169370651245,
0.272370308637619,
-0.012096347287297249,
0.6717089414596558,
0.3357714116573334,
0.08762145042419434,
-0.4138840138912201,
-0.15464797616004944,
0.012760221026837826,
0.06568612158298492,
-0.007077429443597794,
0.3271186053752899,
-0.14687448740005493,
-0.0801781564950943,
-0.06324053555727005,
0.07297316193580627,
-0.045450255274772644,
0.0827144905924797,
-0.4173303544521332,
-0.1608312427997589,
-0.16760554909706116,
-0.1020796075463295,
0.41706404089927673,
0.19366389513015747,
-0.0003672279417514801,
0.06425956636667252,
-0.4430287480354309,
-0.28112372756004333,
0.6317398548126221,
-0.740106999874115,
0.1520489901304245,
-0.2606527805328369,
-0.03645963966846466,
0.26988139748573303,
-0.15211030840873718,
-0.488751083612442,
-0.1702791005373001,
0.306321382522583,
-0.06377095729112625,
0.11804330348968506,
-0.13599379360675812,
-0.21686843037605286,
-0.14296403527259827,
-0.080635666847229,
0.14529815316200256,
0.17964252829551697,
-0.18648841977119446,
0.2530026435852051,
0.11881919205188751
] |
https://github.com/huggingface/datasets/issues/4325 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance | Yes, it's related. The backend behind the dataset viewer is currently under too much load, and these datasets are still in the jobs queue. We're actively working on this issue, and we expect to fix the issue permanently soon. Thanks for your patience 🙏 | ### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes | 44 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance
### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes
Yes, it's related. The backend behind the dataset viewer is currently under too much load, and these datasets are still in the jobs queue. We're actively working on this issue, and we expect to fix the issue permanently soon. Thanks for your patience 🙏 | [
-0.4592532217502594,
-0.03186105191707611,
0.10656803846359253,
0.19430294632911682,
0.1120796650648117,
0.040372952818870544,
0.4347972869873047,
0.1771509051322937,
0.1332351267337799,
0.051704734563827515,
-0.11417127400636673,
0.026435885578393936,
-0.09639950096607208,
0.12821327149868011,
-0.34574511647224426,
-0.19158001244068146,
0.01721031963825226,
0.193871408700943,
-0.07210557162761688,
0.05400250107049942,
-0.08972002565860748,
-0.0028955675661563873,
-0.4461795687675476,
-0.1104869693517685,
-0.008649738505482674,
0.046854838728904724,
0.02410248853266239,
-0.11262119561433792,
-0.07164234668016434,
-0.37867361307144165,
0.3315652012825012,
0.19370050728321075,
0.4335300922393799,
0.377057820558548,
-0.00011860017548315227,
-0.002147391438484192,
0.5071066617965698,
0.12006804347038269,
-0.2813127040863037,
-0.13076485693454742,
0.03357469290494919,
-0.07070174813270569,
0.3170517086982727,
0.1285306215286255,
-0.2341030240058899,
-0.738849937915802,
0.17073652148246765,
-0.2716604471206665,
0.22422093152999878,
0.06874179095029831,
0.14095021784305573,
0.38851821422576904,
0.03507409617304802,
-0.09819401800632477,
-0.2730962634086609,
0.13896125555038452,
-0.167043536901474,
-0.02975127473473549,
0.21902936697006226,
0.33671703934669495,
0.00245743989944458,
0.19869183003902435,
-0.25368401408195496,
-0.05868597701191902,
0.2975233197212219,
-0.1573674976825714,
-0.14550673961639404,
-0.18532924354076385,
0.18303871154785156,
0.37137097120285034,
0.6679529547691345,
0.15403804183006287,
0.05702975392341614,
-0.3370550870895386,
-0.008935367688536644,
0.21290509402751923,
0.25818055868148804,
0.18418481945991516,
-0.2028588056564331,
0.19101297855377197,
-0.3419443368911743,
0.0878201499581337,
-0.10120341181755066,
-0.026165299117565155,
-0.31346622109413147,
0.05776121839880943,
-0.06083081662654877,
0.23350057005882263,
0.18695852160453796,
-0.2025812715291977,
0.1898970901966095,
-0.42344167828559875,
0.020527174696326256,
-0.08538924902677536,
-0.4033869504928589,
0.17714782059192657,
0.23813223838806152,
-0.04592902213335037,
-0.26892074942588806,
0.4644245505332947,
-0.0528208464384079,
0.35703688859939575,
-0.07021772861480713,
0.09723654389381409,
0.13910268247127533,
0.088971346616745,
0.4621221721172333,
0.16851508617401123,
0.3706039786338806,
0.21272191405296326,
0.11895070970058441,
-0.0023192130029201508,
-0.22596688568592072,
-0.3152064085006714,
-0.23408231139183044,
-0.4600434899330139,
0.4153946042060852,
-0.32892000675201416,
-0.1964852660894394,
0.3822142481803894,
-0.18260115385055542,
0.06151431053876877,
0.19224713742733002,
0.6592831611633301,
-0.18399961292743683,
0.17320123314857483,
-0.018288660794496536,
0.12590929865837097,
-0.11411064863204956,
-0.32210657000541687,
-0.14470602571964264,
-0.30585530400276184,
0.011757340282201767,
0.1808648556470871,
0.45561254024505615,
-0.20008496940135956,
0.033489130437374115,
0.10507003217935562,
-0.15935584902763367,
-0.06204532831907272,
0.059732578694820404,
-0.19235119223594666,
0.0425691232085228,
0.30436941981315613,
0.29499000310897827,
0.3690279722213745,
0.05943399295210838,
-0.13242828845977783,
0.1746750771999359,
0.46599069237709045,
0.27052193880081177,
0.09223245084285736,
-0.07419383525848389,
0.07211772352457047,
-0.6050461530685425,
0.0651630163192749,
-0.33557626605033875,
0.2854951024055481,
-0.27544233202934265,
-0.193995401263237,
-0.08429814130067825,
-0.14333602786064148,
-0.014612466096878052,
-0.13606718182563782,
0.4739319682121277,
0.6773331761360168,
-0.46586722135543823,
-0.09646543860435486,
-0.15754586458206177,
-0.35823190212249756,
0.061097126454114914,
0.14806953072547913,
-0.0960194543004036,
-0.10543354600667953,
-0.2560368776321411,
-0.014321915805339813,
-0.04122176021337509,
-0.27277350425720215,
-0.007971689105033875,
0.33269599080085754,
-0.04735896736383438,
0.3529767096042633,
0.13845044374465942,
-0.11799868941307068,
0.11832789331674576,
0.11181771755218506,
-0.40040647983551025,
-0.3895072937011719,
0.14175784587860107,
-0.16435831785202026,
-0.3321751356124878,
-0.1330362856388092,
0.17108485102653503,
0.32058578729629517,
0.4803841710090637,
-0.17714086174964905,
-0.25207486748695374,
-0.06113805994391441,
0.2501460909843445,
0.11972939968109131,
0.37897077202796936,
0.1711283028125763,
0.15312795341014862,
0.17361733317375183,
-0.03043823316693306,
-0.3053987920284271,
-0.6295796632766724,
0.10456375032663345,
0.18102815747261047,
0.008335094898939133,
0.3495319187641144,
-0.0055136531591415405,
-0.004627532325685024,
-0.20433077216148376,
-0.35364413261413574,
-0.3606984615325928,
0.06053858995437622,
0.3443799316883087,
-0.24875329434871674,
0.12855641543865204,
-0.11679016053676605,
0.01019052043557167,
-0.10226055234670639,
0.16862325370311737,
0.014429228380322456,
0.4094448387622833,
0.14591069519519806,
-0.13614140450954437,
-0.06508767604827881,
-0.17382770776748657,
0.3411249816417694,
0.0020303993951529264,
0.0782405436038971,
0.16445747017860413,
-0.010438572615385056,
0.13698475062847137,
0.004364907741546631,
-0.03768809139728546,
0.35864463448524475,
-0.4419797658920288,
0.07062076032161713,
-0.07419545948505402,
-0.09219611436128616,
-0.1971665918827057,
-0.4723019301891327,
0.23733845353126526,
-0.08844584226608276,
0.24735552072525024,
-0.00964885950088501,
0.18533727526664734,
-0.013399789109826088,
-0.2814212441444397,
-0.18790414929389954,
0.04852572828531265,
0.3327949643135071,
-0.0024862252175807953,
0.05105466768145561,
0.1484636515378952,
-0.4424091875553131,
0.09286277741193771,
-0.08736787736415863,
-0.03044929914176464,
-0.21602949500083923,
0.00933404266834259,
-0.33759188652038574,
0.024370741099119186,
0.17997309565544128,
0.2613498568534851,
0.11700549721717834,
0.2362387329339981,
0.08041523396968842,
-0.011292612180113792,
0.09179912507534027,
-0.18696105480194092,
0.0686725378036499,
0.2124760001897812,
-0.1817817986011505,
0.20387157797813416,
-0.04886293783783913,
-0.047530416399240494,
-0.23305568099021912,
0.022256705909967422,
0.3363684117794037,
0.21087896823883057,
-0.31903934478759766,
-0.30281659960746765,
-0.3582555055618286,
-0.2598405182361603,
-0.20970997214317322,
0.16412904858589172,
-0.03792867437005043,
-0.27635619044303894,
-0.3054616451263428,
0.421786904335022,
-0.0971207320690155,
0.2746308147907257,
-0.20814374089241028,
0.3306017220020294,
-0.3126877546310425,
0.3776480257511139,
-0.30364078283309937,
0.03935287892818451,
-0.3847063481807709,
0.07597620785236359,
0.3531187176704407,
0.041800130158662796,
0.07682062685489655,
-0.022844290360808372,
0.0023722629994153976,
-0.34814542531967163,
-0.3413864076137543,
0.03539104014635086,
0.010047582909464836,
0.21344588696956635,
-0.13749420642852783,
0.3759239912033081,
-0.2888323664665222,
-0.14507180452346802,
0.26658904552459717,
-0.02723703160881996,
0.1807740330696106,
-0.18063195049762726,
0.008848628029227257,
-0.03601180016994476,
-0.04749312996864319,
-0.09345250576734543,
0.015013405121862888,
-0.39522433280944824,
0.22324323654174805,
-0.2275146096944809,
-0.0625978484749794,
-0.10854485630989075,
0.10276084393262863,
0.0668020099401474,
-0.14751040935516357,
-0.04397876560688019,
0.037221260368824005,
-0.2577038109302521,
0.3958875238895416,
-0.36935725808143616,
-0.4998704493045807,
0.24133199453353882,
0.21637195348739624,
0.034607864916324615,
-0.30300575494766235,
-0.7129607200622559,
0.17506930232048035,
-0.23670746386051178,
0.0751589685678482,
0.17047983407974243,
-0.5161302089691162,
-0.017194360494613647,
0.09282016009092331,
0.07828162610530853,
-0.21805953979492188,
-0.20860213041305542,
0.14083030819892883,
-0.5772866606712341,
0.27741819620132446,
-0.09562589973211288,
0.30006274580955505,
-0.04463326185941696,
0.42534178495407104,
0.4329650402069092,
0.08666060864925385,
0.32712841033935547,
0.14900146424770355,
0.44024714827537537,
0.07922116667032242,
-0.2908439636230469,
0.2331634908914566,
0.1274261623620987,
0.15053437650203705,
0.41412442922592163,
0.13076290488243103,
0.007088777609169483,
-0.4665535092353821,
-0.12901203334331512,
-0.05454766005277634,
-0.13302116096019745,
-0.0020358748733997345,
-0.10961160063743591,
-0.039870843291282654,
0.14936555922031403,
0.38803815841674805,
-0.08942747116088867,
-0.27792397141456604,
-0.2810559570789337,
0.5001777410507202,
0.39096707105636597,
0.017213918268680573,
-0.46567219495773315,
0.3484967350959778,
-0.21582472324371338,
0.21126064658164978,
-0.247508242726326,
0.1997203528881073,
-0.4609047472476959,
-0.014440057799220085,
0.16336119174957275,
-0.06244620308279991,
0.4519609212875366,
0.10107287019491196,
0.016363082453608513,
-0.006910825148224831,
-0.11081709712743759,
-0.4032822847366333,
-0.20772893726825714,
0.19530771672725677,
-0.25749433040618896,
0.2646891176700592,
0.18590055406093597,
-0.22079762816429138,
-0.24748963117599487,
0.20506536960601807,
-0.17427988350391388,
-0.3218579888343811,
-0.23503752052783966,
0.029767896980047226,
0.16320005059242249,
-0.12493640929460526,
-0.10833298414945602,
-0.16769720613956451,
0.07522286474704742,
-0.44663482904434204,
-0.3380427062511444,
0.11319238692522049,
-0.03725244104862213,
0.27601802349090576,
0.1563127338886261,
0.27890744805336,
0.04456087574362755,
0.5566547513008118,
0.5503627061843872,
0.3250478208065033,
0.7044826745986938,
0.4302765727043152,
0.10041095316410065,
-0.2526473104953766,
0.558880627155304,
-0.07523222267627716,
0.13297121226787567,
0.43024563789367676,
-0.0033009485341608524,
0.0965542420744896,
0.2570580840110779,
0.38154488801956177,
-0.41043078899383545,
0.20927880704402924,
0.4208598732948303,
-0.12944485247135162,
-0.3878245949745178,
-0.3249468207359314,
0.0676652118563652,
-0.07478602230548859,
-0.009884200990200043,
0.2915072441101074,
0.25703006982803345,
0.06639055907726288,
0.0855259820818901,
-0.07647203654050827,
0.8230450749397278,
-0.19406764209270477,
-0.14464737474918365,
0.23545333743095398,
-0.35773396492004395,
0.2785848379135132,
-0.0715203732252121,
-0.2038305401802063,
-0.11717070639133453,
-0.22536493837833405,
0.07630611956119537,
-0.16665756702423096,
0.36410650610923767,
0.03506893664598465,
0.09177003800868988,
-0.13668005168437958,
0.25354528427124023,
0.2562918961048126,
0.11430264264345169,
0.16819113492965698,
-0.16163529455661774,
0.1004970371723175,
0.18276582658290863,
0.08045709878206253,
-0.08410900831222534,
0.1050838977098465,
-0.03519447147846222,
-0.06833450496196747,
-0.09473760426044464,
-0.022032873705029488,
-0.5266041159629822,
0.10816717892885208,
0.34074822068214417,
-0.16666939854621887,
-0.021030735224485397,
-0.2725116014480591,
0.3687871992588043,
0.5495163202285767,
-0.0716228038072586,
0.09785477072000504,
-0.42082729935646057,
0.5569543838500977,
-0.02158038318157196,
-0.058459315448999405,
-0.11889288574457169,
0.04236826300621033,
0.2562132179737091,
-0.14236751198768616,
-0.30638575553894043,
0.1366756558418274,
-0.0508136972784996,
-0.148057758808136,
-0.5503950119018555,
-0.009870022535324097,
0.203271746635437,
-0.20666614174842834,
0.18110397458076477,
-0.21314361691474915,
0.2083635777235031,
-0.22312170267105103,
0.09048178791999817,
0.0030929744243621826,
0.3436780273914337,
0.0025934725999832153,
0.3487192392349243,
-0.09153348952531815,
-0.17917302250862122,
0.5707800984382629,
-0.1257399022579193,
-0.016450343653559685,
0.7063056230545044,
0.5069150328636169,
-0.231107696890831,
-0.11933636665344238,
0.037130244076251984,
0.3370669484138489,
-0.1972006857395172,
0.0195112656801939,
-0.10313916951417923,
0.18540246784687042,
0.2529104948043823,
0.23388271033763885,
0.09975715726613998,
-0.4306635856628418,
-0.08986656367778778,
-0.3516376316547394,
-0.18305030465126038,
0.10248257964849472,
-0.07692006230354309,
0.24552525579929352,
0.06626717746257782,
0.32425761222839355,
0.14201121032238007,
-0.015181751921772957,
-0.23251014947891235,
-0.07779954373836517,
-0.056563012301921844,
-0.03982751816511154,
-0.1866307556629181,
-0.03810585290193558,
-0.020099427551031113,
-0.1868172436952591,
-0.0917590856552124,
0.04185900464653969,
-0.09781958162784576,
-0.10063473135232925,
-0.1850394755601883,
0.20433302223682404,
0.1573432981967926,
-0.30611652135849,
-0.252040833234787,
-0.07279874384403229,
-0.0033636782318353653,
-0.12866570055484772,
0.028820741921663284,
0.19007867574691772,
-0.053246110677719116,
-0.04237496107816696,
0.059784308075904846,
0.09720166772603989,
-0.09115616977214813,
0.09022478759288788,
0.08284103870391846,
0.1533493548631668,
0.01361975446343422,
0.05347433313727379,
0.02898087352514267,
-0.007913298904895782,
-0.2950344383716583,
-0.005598448216915131,
0.17488780617713928,
-0.10323689132928848,
0.3581165373325348,
-0.3494875431060791,
0.1551637053489685,
0.03396958112716675,
0.4353066682815552,
0.337232768535614,
-0.07608998566865921,
0.03703249245882034,
0.2690463960170746,
0.08524678647518158,
-0.03503657132387161,
0.18451248109340668,
0.15166321396827698,
0.29387012124061584,
-0.12103892862796783,
-0.21521109342575073,
-0.0629647746682167,
-0.2081284523010254,
-0.05991522967815399,
0.2151409387588501,
0.5153112411499023,
0.09419174492359161,
0.3692180812358856,
0.39620232582092285,
-0.01896381378173828,
0.016195766627788544,
0.24122576415538788,
0.042239464819431305,
-0.02753063291311264,
0.31525832414627075,
-0.14577263593673706,
0.14111343026161194,
-0.2927454710006714,
0.4071728587150574,
0.17753514647483826,
-0.5636763572692871,
0.008942898362874985,
0.24157431721687317,
-0.3380527198314667,
-0.17033451795578003,
-0.0832444578409195,
0.33835569024086,
-0.054834578186273575,
-0.2023748904466629,
-0.4987885057926178,
0.4387550354003906,
-0.22215089201927185,
-0.058324407786130905,
-0.500845730304718,
-0.2983699440956116,
-0.017433129251003265,
0.24660944938659668,
0.19760051369667053,
-0.11904735863208771,
-0.1213972419500351,
0.11942248046398163,
-0.32102108001708984,
-0.43648985028266907,
-0.06644566357135773,
0.009819427505135536,
0.07149544358253479,
-0.10983020067214966,
0.15837842226028442,
0.34538909792900085,
-0.17966720461845398,
0.3788147270679474,
0.34247931838035583,
0.21520112454891205,
0.17036187648773193,
0.21762007474899292,
-0.06016230955719948,
0.022808820009231567,
0.019859055057168007,
-0.17092841863632202,
0.47375956177711487,
0.2189033180475235,
0.16106495261192322,
0.3583867847919464,
0.08524085581302643,
-0.17538084089756012,
0.10897268354892731,
-0.1341475397348404,
0.20780602097511292,
-0.27069559693336487,
0.1079360693693161,
-0.26125457882881165,
-0.11797457188367844,
0.0793151706457138,
-0.5351670980453491,
-0.08663889765739441,
0.1609465777873993,
-0.05187773331999779,
-0.007293774280697107,
0.01238216832280159,
-0.5256616473197937,
0.01671183854341507,
0.0813574343919754,
0.3559873700141907,
0.14655925333499908,
0.03888842463493347,
-0.19948160648345947,
-0.44429391622543335,
-0.5649484992027283,
0.33121269941329956,
0.06168867647647858,
0.09028846025466919,
0.10321544110774994,
-0.04696418717503548,
-0.01313558965921402,
-0.15958158671855927,
0.2614246606826782,
0.1834178864955902,
0.0035674693062901497,
0.47054553031921387,
-0.25762414932250977,
0.28143617510795593,
0.23033630847930908,
0.06166635453701019,
-0.20063576102256775,
-0.014267116785049438,
0.6298170685768127,
-0.08886744827032089,
-0.10486608743667603,
0.040235087275505066,
0.061799705028533936,
-0.05363236740231514,
-0.24921032786369324,
0.3122377395629883,
-0.0010574907064437866,
0.6493507623672485,
0.3334999084472656,
0.11504771560430527,
-0.4178553521633148,
-0.10817153751850128,
-0.010901750065386295,
0.0018529295921325684,
0.012743551284074783,
0.3590874671936035,
-0.152247816324234,
-0.014731381088495255,
-0.03351491317152977,
0.09514420479536057,
-0.11327873915433884,
0.0754222571849823,
-0.4334913492202759,
-0.17869170010089874,
-0.18328621983528137,
-0.0763971209526062,
0.3551369905471802,
0.06860695779323578,
0.001522701233625412,
-0.007116634398698807,
-0.4262659549713135,
-0.25982990860939026,
0.558219313621521,
-0.705973207950592,
0.11127039790153503,
-0.26903021335601807,
-0.08223706483840942,
0.25876110792160034,
-0.15208065509796143,
-0.4454945921897888,
-0.14786086976528168,
0.26370805501937866,
0.007220912724733353,
0.16053879261016846,
-0.14117874205112457,
-0.24354809522628784,
-0.12396334111690521,
-0.09292038530111313,
0.165776789188385,
0.09697719663381577,
-0.13962872326374054,
0.1613714098930359,
0.06312043219804764
] |
https://github.com/huggingface/datasets/issues/4325 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance | Thanks @severo and no worries! - a suggestion for a UI usability thing maybe is to indicate that the dataset processing is in the job queue (rather than no data?) | ### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes | 30 | Dataset Viewer issue for strombergnlp/offenseval_2020, strombergnlp/polstance
### Link
https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
### Description
The viewer isn't running for these two datasets. I left it overnight because a wait sometimes helps things get loaded, and the error messages have all gone, but the datasets are still turning up blank in viewer. Maybe it needs a bit more time.
* https://huggingface.co/datasets/strombergnlp/polstance/viewer/PolStance/train
* https://huggingface.co/datasets/strombergnlp/offenseval_2020/viewer/ar/train
While offenseval_2020 is gated w. prompt, the other gated previews I have run fine in Viewer, e.g. https://huggingface.co/datasets/strombergnlp/shaj , so I'm a bit stumped!
### Owner
Yes
Thanks @severo and no worries! - a suggestion for a UI usability thing maybe is to indicate that the dataset processing is in the job queue (rather than no data?) | [
-0.4327181875705719,
0.050321415066719055,
0.0771830677986145,
0.13712812960147858,
0.11783326417207718,
0.07461430877447128,
0.4252675473690033,
0.07164415717124939,
0.17266759276390076,
0.10264122486114502,
0.000681544654071331,
0.03201241046190262,
-0.09696495532989502,
0.1595287322998047,
-0.3764110505580902,
-0.06944338977336884,
-0.010856620967388153,
0.23802293837070465,
-0.03567331284284592,
0.10272899270057678,
-0.06293805688619614,
-0.003758402541279793,
-0.4579775929450989,
-0.08265264332294464,
-0.03033682517707348,
-0.06863332539796829,
0.01464858464896679,
-0.10553783923387527,
-0.03960009664297104,
-0.3885120153427124,
0.28584495186805725,
0.3235504627227783,
0.34942930936813354,
0.36783871054649353,
-0.00012337564839981496,
0.01718679815530777,
0.6446590423583984,
0.12941502034664154,
-0.23636503517627716,
-0.08207590878009796,
0.007941555231809616,
-0.160975381731987,
0.3479500114917755,
0.08452440053224564,
-0.22737479209899902,
-0.5688879489898682,
0.22213642299175262,
-0.30264905095100403,
0.2506766617298126,
-0.06922485679388046,
0.08066874742507935,
0.3872239291667938,
-0.07924475520849228,
0.02245938591659069,
-0.29968059062957764,
0.29641202092170715,
-0.17790400981903076,
-0.0922834724187851,
0.31667813658714294,
0.3331689238548279,
-0.05335875600576401,
0.24307982623577118,
-0.22385841608047485,
-0.003967989236116409,
0.27642685174942017,
-0.050636567175388336,
-0.2187190055847168,
-0.24334421753883362,
0.08687467128038406,
0.34354591369628906,
0.6866151094436646,
0.056774407625198364,
-0.01727275364100933,
-0.4849836528301239,
0.03365267440676689,
0.25615185499191284,
0.2716587483882904,
0.14338833093643188,
-0.27522042393684387,
0.2286301702260971,
-0.40966641902923584,
-0.017999887466430664,
-0.10665544867515564,
-0.03590427339076996,
-0.1981595754623413,
0.05715411156415939,
-0.07443629205226898,
0.17265519499778748,
0.14858898520469666,
-0.13775314390659332,
0.2458043098449707,
-0.38980552554130554,
0.09326808154582977,
0.0031145778484642506,
-0.38411885499954224,
0.06695372611284256,
0.24524033069610596,
0.022832650691270828,
-0.27780741453170776,
0.3878285884857178,
-0.07566305249929428,
0.3318377137184143,
-0.1129324808716774,
0.16770166158676147,
0.18025527894496918,
0.012150201946496964,
0.3547126054763794,
0.11227940022945404,
0.4289427399635315,
0.23007678985595703,
0.1294129192829132,
-0.005128979682922363,
-0.24581612646579742,
-0.302767813205719,
-0.22954408824443817,
-0.36514073610305786,
0.4346342086791992,
-0.2875785827636719,
-0.16796961426734924,
0.36797648668289185,
-0.13537758588790894,
0.07022268325090408,
0.20245900750160217,
0.6410474181175232,
-0.25009092688560486,
0.20802277326583862,
0.046667203307151794,
0.16394567489624023,
-0.19036710262298584,
-0.34220266342163086,
-0.12785319983959198,
-0.3443553149700165,
0.027603838592767715,
0.21379706263542175,
0.38689470291137695,
-0.16499988734722137,
-0.005984941963106394,
0.1765448898077011,
-0.1350710242986679,
-0.05256371945142746,
0.16443046927452087,
-0.21995997428894043,
0.057565707713365555,
0.29956719279289246,
0.3138708770275116,
0.3850581645965576,
0.07907652109861374,
-0.08800563961267471,
0.1600237786769867,
0.5044507384300232,
0.22514989972114563,
0.02772490307688713,
-0.02700154297053814,
0.007614298723638058,
-0.6960511803627014,
0.013502901419997215,
-0.339120477437973,
0.28448477387428284,
-0.28257060050964355,
-0.13022522628307343,
-0.06149963289499283,
-0.04803629219532013,
0.014827463775873184,
-0.1365269273519516,
0.40332600474357605,
0.7090602517127991,
-0.5067070126533508,
-0.07952574640512466,
-0.2979821264743805,
-0.38600635528564453,
0.07277265191078186,
0.056044623255729675,
-0.04197482764720917,
0.006423085927963257,
-0.2644963264465332,
0.03405926376581192,
0.04662235826253891,
-0.28328531980514526,
0.012502537108957767,
0.44577497243881226,
-0.1118837296962738,
0.34666815400123596,
0.18966281414031982,
0.030369844287633896,
0.03872855380177498,
0.056050438433885574,
-0.5302591323852539,
-0.3794593811035156,
0.04660739377140999,
-0.10351365059614182,
-0.3146229386329651,
-0.1766146421432495,
0.13927045464515686,
0.38031062483787537,
0.4552899897098541,
-0.11008896678686142,
-0.33390676975250244,
-0.17339648306369781,
0.40580761432647705,
0.1264147162437439,
0.39367884397506714,
0.15795841813087463,
0.11713694036006927,
0.28977009654045105,
-0.07882741093635559,
-0.21221616864204407,
-0.585103452205658,
0.122288279235363,
0.30314892530441284,
0.02438974194228649,
0.2909465730190277,
-0.154831200838089,
0.03143296390771866,
-0.20225070416927338,
-0.37466007471084595,
-0.3106342554092407,
0.014309383928775787,
0.3536895215511322,
-0.32317477464675903,
0.1458139270544052,
-0.09067060053348541,
0.022754428908228874,
-0.03863297030329704,
0.19016553461551666,
-0.05046951398253441,
0.42038044333457947,
0.2193499356508255,
-0.15498480200767517,
-0.08369573950767517,
-0.19278579950332642,
0.23642966151237488,
-0.02387617714703083,
0.10446684807538986,
0.19232040643692017,
0.082809217274189,
0.168864905834198,
-0.01288345456123352,
-0.031045779585838318,
0.28621530532836914,
-0.26156917214393616,
0.0074442848563194275,
-0.08552683889865875,
-0.11117269843816757,
-0.16960683465003967,
-0.49626395106315613,
0.3879311680793762,
-0.19366393983364105,
0.3085941672325134,
-0.0593833327293396,
0.0749669000506401,
-0.06273026019334793,
-0.20036864280700684,
-0.1941206157207489,
0.07546122372150421,
0.3597528338432312,
0.02269798517227173,
0.039042528718709946,
0.15176446735858917,
-0.5828431248664856,
0.0922556146979332,
-0.03133600577712059,
0.0586843378841877,
-0.22084999084472656,
-0.06155513972043991,
-0.20813453197479248,
0.1611788272857666,
0.2760493755340576,
0.20330987870693207,
0.1468229591846466,
0.23071713745594025,
-0.011804018169641495,
0.02166534587740898,
0.08910998702049255,
-0.16418233513832092,
-0.09883088618516922,
0.23364856839179993,
-0.04697660729289055,
0.1472058743238449,
-0.10527095943689346,
-0.07731740921735764,
-0.15325459837913513,
-0.05738858878612518,
0.3274043798446655,
0.19428755342960358,
-0.37524768710136414,
-0.3306242823600769,
-0.29466351866722107,
-0.37502554059028625,
-0.1693463772535324,
0.1453976184129715,
-0.07009539008140564,
-0.3398457169532776,
-0.28171461820602417,
0.44082698225975037,
-0.14989158511161804,
0.2583525776863098,
-0.2757514715194702,
0.31987541913986206,
-0.39888113737106323,
0.2618239223957062,
-0.3234013020992279,
-0.02330729365348816,
-0.3082291781902313,
0.057098645716905594,
0.3751397132873535,
0.14518430829048157,
0.08908577263355255,
0.010778538882732391,
0.07313228398561478,
-0.3656032681465149,
-0.2900717556476593,
0.03601355850696564,
-0.03323519229888916,
0.3123302459716797,
-0.1644972860813141,
0.3926948308944702,
-0.2037077248096466,
-0.0731021910905838,
0.2633872926235199,
0.026914285495877266,
0.11816038191318512,
-0.23684561252593994,
0.06282180547714233,
-0.04984380677342415,
-0.09866105020046234,
-0.03209996968507767,
0.023346764966845512,
-0.4013166129589081,
0.20984633266925812,
-0.251896470785141,
-0.06740950047969818,
-0.23405052721500397,
0.07778377085924149,
-0.03552394360303879,
-0.019852738827466965,
-0.10385333746671677,
0.045972615480422974,
-0.4260738492012024,
0.3523031771183014,
-0.34915879368782043,
-0.37630221247673035,
0.2662142217159271,
0.13930346071720123,
0.12856481969356537,
-0.24680928885936737,
-0.7603703737258911,
0.18582245707511902,
-0.22845466434955597,
0.08415482938289642,
0.1532476842403412,
-0.5849747061729431,
0.04210885986685753,
0.09073030203580856,
0.13750901818275452,
-0.2395954132080078,
-0.22534674406051636,
0.15913844108581543,
-0.542290985584259,
0.2193073034286499,
-0.00900007039308548,
0.45435962080955505,
-0.0708584263920784,
0.4515048861503601,
0.38298094272613525,
0.1686592698097229,
0.3240944743156433,
0.08772561699151993,
0.485517680644989,
0.11698338389396667,
-0.24722298979759216,
0.24148733913898468,
0.12775062024593353,
0.023645635694265366,
0.37459778785705566,
0.1497933268547058,
0.0320073664188385,
-0.46216046810150146,
-0.06768781691789627,
-0.20590132474899292,
-0.20625391602516174,
0.03591074422001839,
-0.0649791806936264,
-0.07143528014421463,
0.1247483640909195,
0.41339564323425293,
-0.09830711781978607,
-0.23710590600967407,
-0.26543140411376953,
0.5435564517974854,
0.5306569337844849,
-0.0011065519647672772,
-0.27394556999206543,
0.3238403797149658,
-0.2650580108165741,
0.2080306112766266,
-0.17492838203907013,
0.14661413431167603,
-0.4430859386920929,
-0.08864233642816544,
0.1687469184398651,
-0.07780853658914566,
0.5323119163513184,
-0.050583742558956146,
0.08000835031270981,
0.07921268045902252,
-0.18301235139369965,
-0.3745751678943634,
-0.1299375593662262,
0.2105744183063507,
-0.2972782254219055,
0.378725528717041,
0.16119489073753357,
-0.255001962184906,
-0.24898065626621246,
0.19624188542366028,
-0.26707959175109863,
-0.34408998489379883,
-0.3366934061050415,
-0.07562387734651566,
0.1786017119884491,
-0.14660218358039856,
-0.003952346742153168,
-0.10675926506519318,
-0.025689154863357544,
-0.4254695475101471,
-0.3366759717464447,
-0.013010518625378609,
-0.06310019642114639,
0.2678680717945099,
0.1801423728466034,
0.22409838438034058,
-0.01817634142935276,
0.5642565488815308,
0.6409956216812134,
0.323462575674057,
0.6231430172920227,
0.5059888362884521,
0.16541257500648499,
-0.3602122962474823,
0.5099942088127136,
-0.17826293408870697,
0.25245073437690735,
0.44082915782928467,
0.056270819157361984,
0.1503925770521164,
0.3274075984954834,
0.40645694732666016,
-0.47209876775741577,
0.2838819921016693,
0.4675670862197876,
-0.03889971226453781,
-0.501590371131897,
-0.3623315393924713,
0.15109023451805115,
0.025856249034404755,
-0.09762291610240936,
0.287418007850647,
0.2826734483242035,
0.03767674043774605,
0.051422763615846634,
-0.01522652804851532,
0.8098232746124268,
-0.18598663806915283,
-0.16581599414348602,
0.2683475613594055,
-0.34988492727279663,
0.4037363529205322,
-0.10320848226547241,
-0.13353310525417328,
-0.14047463238239288,
-0.2156878113746643,
0.032706014811992645,
-0.18668483197689056,
0.3426065742969513,
0.1308307945728302,
0.01982811465859413,
-0.07289336621761322,
0.2246222048997879,
0.22791074216365814,
0.10608818382024765,
0.15544848144054413,
-0.20455056428909302,
0.11354298889636993,
0.1564026176929474,
0.035913869738578796,
-0.02597687393426895,
0.14118070900440216,
-0.11384724825620651,
-0.11142488569021225,
-0.1689106523990631,
0.09987853467464447,
-0.5143086910247803,
0.06873802095651627,
0.21892721951007843,
-0.2578188180923462,
-0.016284756362438202,
-0.2756059765815735,
0.363524854183197,
0.49765071272850037,
-0.01858288049697876,
0.08220656961202621,
-0.36595094203948975,
0.5377933979034424,
-0.007344990968704224,
-0.053027212619781494,
-0.09192784130573273,
-0.05307001993060112,
0.386191725730896,
-0.10989201068878174,
-0.2607523202896118,
0.06735450774431229,
-0.10033412277698517,
-0.16084346175193787,
-0.5541505813598633,
-0.028595909476280212,
0.17102035880088806,
-0.20884770154953003,
0.12358126044273376,
-0.17589956521987915,
0.23809483647346497,
-0.1836056113243103,
0.03992022946476936,
0.04414404183626175,
0.44318339228630066,
0.008414626121520996,
0.2683313488960266,
-0.09768535196781158,
-0.14626775681972504,
0.3978320062160492,
-0.10082168132066727,
-0.02819201909005642,
0.6016806364059448,
0.4867537021636963,
-0.25180545449256897,
-0.08844798803329468,
0.032503433525562286,
0.41657429933547974,
-0.20394790172576904,
0.12462421506643295,
-0.019534258171916008,
0.12351049482822418,
0.247824564576149,
0.13523165881633759,
0.0692882388830185,
-0.4518926739692688,
-0.19958578050136566,
-0.37216711044311523,
-0.18606697022914886,
0.1659533679485321,
-0.107505202293396,
0.24311281740665436,
-0.05254867672920227,
0.4368434250354767,
0.1706497073173523,
-0.14867562055587769,
-0.17722545564174652,
-0.14689676463603973,
-0.12009219825267792,
-0.020016111433506012,
-0.14377756416797638,
0.07046534866094589,
-0.0694587305188179,
-0.187589630484581,
-0.1360258311033249,
0.02112247236073017,
-0.08497024327516556,
-0.033865559846162796,
-0.1548604965209961,
0.22821006178855896,
0.11343085765838623,
-0.2139071226119995,
-0.11487352848052979,
-0.03169900178909302,
0.007815776392817497,
-0.1156550794839859,
-0.01203984022140503,
0.10959305614233017,
-0.06182904541492462,
-0.08882678300142288,
0.18487218022346497,
0.15758094191551208,
-0.11578553169965744,
0.0820695161819458,
0.09829657524824142,
0.1874174177646637,
-0.030302295461297035,
0.04036620259284973,
0.04593785107135773,
0.05307385325431824,
-0.06840401887893677,
-0.01015181839466095,
0.2807910442352295,
-0.12127461284399033,
0.2814512848854065,
-0.3482195734977722,
0.20551994442939758,
0.07685716450214386,
0.4855875074863434,
0.36720529198646545,
0.042796917259693146,
0.014985965564846992,
0.29409098625183105,
0.06334763765335083,
-0.05701996013522148,
0.3141295611858368,
0.1325865387916565,
0.293317049741745,
-0.10231673717498779,
-0.1442236304283142,
-0.19985313713550568,
-0.0183432474732399,
0.012872420251369476,
0.221061110496521,
0.5000584125518799,
-0.0669863224029541,
0.347028911113739,
0.24178244173526764,
-0.07971446961164474,
0.034534893929958344,
0.26934313774108887,
0.07900237292051315,
-0.08263269811868668,
0.2459852546453476,
-0.05502472072839737,
0.12231287360191345,
-0.17352217435836792,
0.4105481803417206,
0.07419446855783463,
-0.5739290714263916,
-0.12930244207382202,
0.3094845414161682,
-0.345811665058136,
-0.12743985652923584,
-0.048347488045692444,
0.23636510968208313,
0.06311609596014023,
-0.23714765906333923,
-0.4195663034915924,
0.37329694628715515,
-0.19748982787132263,
0.0029023513197898865,
-0.41216447949409485,
-0.2450971007347107,
-0.0005048811435699463,
0.1819455623626709,
0.2527235448360443,
-0.20648951828479767,
-0.1537080556154251,
0.11294475197792053,
-0.2177150696516037,
-0.5798394680023193,
-0.052976712584495544,
0.005479790270328522,
0.2018151581287384,
-0.14285576343536377,
0.10695188492536545,
0.23554885387420654,
-0.15016524493694305,
0.4517163336277008,
0.3906209170818329,
0.2523258328437805,
0.19673484563827515,
0.15446431934833527,
-0.09602393209934235,
-0.08760868012905121,
0.05410955846309662,
-0.14632053673267365,
0.4545381963253021,
0.1902104616165161,
0.19010941684246063,
0.356889933347702,
0.05219323933124542,
-0.1223326176404953,
0.11238661408424377,
-0.16609179973602295,
0.17883767187595367,
-0.3406984508037567,
0.21655969321727753,
-0.2878638505935669,
-0.15784743428230286,
0.039404645562171936,
-0.5764944553375244,
-0.11963754892349243,
0.12920540571212769,
-0.0681401938199997,
-0.14944544434547424,
-0.03890044242143631,
-0.43933430314064026,
-0.016952142119407654,
0.11016987264156342,
0.25614017248153687,
0.17755931615829468,
0.2227734923362732,
-0.2114519476890564,
-0.45262855291366577,
-0.7365676760673523,
0.2454909384250641,
0.14692214131355286,
-0.04208030924201012,
0.13402782380580902,
-0.04517365247011185,
-0.05252727121114731,
-0.1051720529794693,
0.1934192180633545,
0.1947874277830124,
0.03804213926196098,
0.4846985340118408,
-0.29402878880500793,
0.16710060834884644,
0.18664304912090302,
-0.04358021914958954,
-0.18278299272060394,
0.005754046142101288,
0.501618504524231,
-0.04086101055145264,
-0.1450052261352539,
0.054002050310373306,
0.1350809633731842,
-0.043061740696430206,
-0.16417136788368225,
0.2629548907279968,
-0.03130202740430832,
0.6016871929168701,
0.3101397156715393,
0.0794871523976326,
-0.389525443315506,
-0.14341899752616882,
-0.1590901017189026,
0.04527480900287628,
0.026293914765119553,
0.39452749490737915,
-0.21244165301322937,
0.07118400931358337,
-0.02101319283246994,
-0.002077306853607297,
-0.08556124567985535,
0.13846591114997864,
-0.410351037979126,
-0.13668504357337952,
-0.2505169212818146,
0.06068636104464531,
0.30571871995925903,
0.056464582681655884,
0.06568434834480286,
0.08841793239116669,
-0.45507895946502686,
-0.2146727293729782,
0.5857862234115601,
-0.6701218485832214,
0.12505844235420227,
-0.2826038897037506,
-0.09749390184879303,
0.22556030750274658,
-0.18929143249988556,
-0.44808152318000793,
-0.19035401940345764,
0.2517766058444977,
0.027847055345773697,
0.1943231076002121,
-0.11302843689918518,
-0.15232747793197632,
-0.10705718398094177,
-0.12856267392635345,
0.29287680983543396,
0.1035294234752655,
-0.14926306903362274,
0.15964318811893463,
0.008654914796352386
] |
https://github.com/huggingface/datasets/issues/4323 | Audio can not find value["bytes"] | 
that is reason my bytes`s empty
but i have some confused why path prior is higher than bytes?
if you can make bytes in _generate_examples , you don`t have to make bytes to path?
because we have path and bytes already | ## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
| 42 | Audio can not find value["bytes"]
## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1

that is reason my bytes`s empty
but i have some confused why path prior is higher than bytes?
if you can make bytes in _generate_examples , you don`t have to make bytes to path?
because we have path and bytes already | [
-0.13980552554130554,
-0.2254793643951416,
-0.17552484571933746,
0.2904757857322693,
0.4382437467575073,
-0.20853981375694275,
0.1709819734096527,
0.20187847316265106,
-0.4539523720741272,
0.7961021661758423,
0.12657104432582855,
0.1679459810256958,
-0.25194692611694336,
-0.27644217014312744,
-0.005841073580086231,
0.029939111322164536,
0.18055085837841034,
0.3859480023384094,
0.1716855764389038,
-0.23299162089824677,
-0.23089660704135895,
0.18397201597690582,
-0.4147663116455078,
-0.006679236888885498,
-0.4576643109321594,
0.012213291600346565,
-0.08092332631349564,
0.1514478325843811,
-0.2385084182024002,
-0.04986565187573433,
-0.047049473971128464,
-0.1703314334154129,
-0.24010463058948517,
0.36235642433166504,
-0.00011066118167946115,
-0.06352268904447556,
0.5729212164878845,
-0.12337545305490494,
-0.09491778910160065,
-0.25794798135757446,
-0.46497026085853577,
0.38277798891067505,
-0.7173598408699036,
-0.18148678541183472,
0.01054774597287178,
0.09037421643733978,
0.08895985037088394,
-0.46046262979507446,
0.20740923285484314,
0.3887069523334503,
0.17762024700641632,
-0.004834441468119621,
0.09647545218467712,
0.16818846762180328,
0.7133271098136902,
0.5572836995124817,
0.15282025933265686,
-0.06439098715782166,
0.20231512188911438,
0.29263946413993835,
0.36074355244636536,
0.22046811878681183,
0.04418247938156128,
0.025097060948610306,
-0.09374453872442245,
0.28908082842826843,
-0.36592569947242737,
-0.29419246315956116,
0.36188340187072754,
0.3123592138290405,
0.2061540186405182,
-0.05930250138044357,
-0.305771142244339,
0.09784684330224991,
-0.12371421605348587,
-0.5246524214744568,
0.3349509835243225,
0.4230276644229889,
-0.34027332067489624,
0.08681085705757141,
-0.30921831727027893,
-0.007179870270192623,
-0.22221319377422333,
0.3084675073623657,
0.06262870132923126,
0.14478349685668945,
-0.25596386194229126,
-0.00656147301197052,
0.14011316001415253,
-0.02601553499698639,
0.025361720472574234,
0.13834024965763092,
-0.18144197762012482,
0.17712250351905823,
-0.09962278604507446,
-0.1132991760969162,
-0.015963315963745117,
-0.046562813222408295,
0.13364222645759583,
-0.33863264322280884,
0.15062715113162994,
-0.10148676484823227,
-0.09789306670427322,
0.4705928564071655,
-0.012110963463783264,
-0.3720155656337738,
-0.11398007720708847,
-0.001129710115492344,
0.32486623525619507,
0.1250336468219757,
0.11891047656536102,
-0.12126759439706802,
-0.11218911409378052,
-0.08412844687700272,
0.07399545609951019,
0.04048307240009308,
0.15860773622989655,
-0.19897358119487762,
-0.4156654477119446,
0.11727310717105865,
-0.27462777495384216,
0.16357244551181793,
0.09248507767915726,
0.3844148516654968,
0.3813604414463043,
0.045761335641145706,
0.014453910291194916,
0.21868005394935608,
0.04389189928770065,
-0.10501901060342789,
-0.16897553205490112,
0.14763720333576202,
-0.06233687326312065,
-0.14137862622737885,
0.19777382910251617,
0.4867473840713501,
0.4207164943218231,
0.11407165974378586,
0.22526335716247559,
-0.3817353844642639,
0.06374955177307129,
-0.13180574774742126,
0.05748060718178749,
0.3131122887134552,
-0.3246082365512848,
0.09103889018297195,
-0.4150606691837311,
0.2755082845687866,
0.042852528393268585,
0.5830186009407043,
-0.12467063218355179,
0.21572794020175934,
0.06112661212682724,
0.24478942155838013,
0.0007995236665010452,
0.19680845737457275,
0.025425732135772705,
0.1558559685945511,
0.19116473197937012,
-0.2752375900745392,
0.1690707504749298,
0.01242874562740326,
-0.36245468258857727,
-0.08798979967832565,
0.2883475124835968,
-0.19857220351696014,
-0.1341131031513214,
-0.18390196561813354,
-0.22755666077136993,
0.18588192760944366,
0.4060494899749756,
0.11702227592468262,
0.05679255351424217,
0.12152262032032013,
-0.21697501838207245,
0.35436904430389404,
0.3793076276779175,
-0.31074461340904236,
-0.28011617064476013,
0.020829185843467712,
0.040353305637836456,
-0.32968446612358093,
0.4106360673904419,
0.08374331146478653,
0.1904640942811966,
-0.1544223129749298,
0.3303215503692627,
0.08839917927980423,
-0.20152553915977478,
0.02398526854813099,
-0.037114277482032776,
-0.20241138339042664,
0.0011355020105838776,
-0.06908200681209564,
-0.02389543130993843,
-0.16356414556503296,
0.11496587842702866,
-0.010450860485434532,
0.14632375538349152,
-0.24598395824432373,
-0.03774254024028778,
0.4060613512992859,
0.5649909377098083,
-0.4504939317703247,
-0.04762635380029678,
-0.2960992455482483,
0.33595284819602966,
-0.15130797028541565,
-0.37270626425743103,
0.004789017140865326,
-0.30248624086380005,
-0.23840539157390594,
-0.18142294883728027,
-0.0765552893280983,
-0.08217759430408478,
-0.06762523949146271,
0.1428401619195938,
0.23612380027770996,
0.057236868888139725,
-0.057526297867298126,
-0.2119334638118744,
-0.17465783655643463,
0.15004190802574158,
-0.08098208159208298,
0.009929029271006584,
0.19040094316005707,
-0.08692821860313416,
-0.2589412033557892,
0.14183521270751953,
0.24337872862815857,
0.19753724336624146,
-0.04818529263138771,
-0.10943226516246796,
0.5192558169364929,
0.22508975863456726,
0.3200554847717285,
-0.07127728313207626,
0.18032224476337433,
0.4056094288825989,
-0.39628866314888,
0.068773053586483,
0.29916343092918396,
0.36406874656677246,
0.06616463512182236,
0.09764343500137329,
-0.1556043177843094,
0.05846736580133438,
0.01752185821533203,
0.09337937831878662,
-0.20543336868286133,
0.2951471507549286,
0.052979808300733566,
0.12817320227622986,
0.010789565742015839,
0.008736401796340942,
0.02350170910358429,
0.22431431710720062,
0.08659087866544724,
-0.5080168843269348,
-0.046907149255275726,
0.7174844741821289,
-0.3568103611469269,
0.06366812437772751,
0.23332732915878296,
-0.09008876234292984,
-0.23458492755889893,
-0.01736939139664173,
0.29102203249931335,
0.44166940450668335,
0.28121665120124817,
0.0822950005531311,
-0.1936488002538681,
-0.17550784349441528,
-0.2229223996400833,
0.3349289000034332,
-0.02949059009552002,
0.1772218495607376,
0.1681317538022995,
-0.15836597979068756,
-0.1689668893814087,
-0.41653862595558167,
0.17067675292491913,
0.08455712348222733,
0.060311295092105865,
-0.3493204116821289,
-0.11934740096330643,
-0.31055155396461487,
-0.012011758983135223,
-0.2595009505748749,
-0.20295818150043488,
-0.05875259265303612,
-0.04843665659427643,
0.3007296323776245,
0.07614605128765106,
-0.2426253706216812,
0.25132840871810913,
0.1496197134256363,
0.22751551866531372,
0.265380859375,
0.32179880142211914,
-0.362066388130188,
0.15920913219451904,
-0.30237796902656555,
0.09787377715110779,
0.010115244425833225,
0.34061199426651,
0.21079637110233307,
-0.3200782239437103,
0.031741656363010406,
-0.056589819490909576,
-0.15039533376693726,
0.09614820033311844,
0.037800081074237823,
0.5034225583076477,
0.013470426201820374,
0.13955606520175934,
0.025721609592437744,
-0.18875113129615784,
0.1473882794380188,
-0.22491216659545898,
-0.38979366421699524,
0.13582387566566467,
0.0936388373374939,
-0.08525840193033218,
-0.47831153869628906,
-0.39288660883903503,
-0.1872396171092987,
-0.11655279994010925,
-0.13838732242584229,
-0.18283186852931976,
0.2891591787338257,
0.1487571746110916,
0.30561158061027527,
0.1580432504415512,
0.03646053373813629,
0.26662740111351013,
-0.5536206960678101,
-0.5931400060653687,
0.3918820023536682,
-0.11631903797388077,
-0.2856922149658203,
-0.07299227267503738,
-0.03358623385429382,
0.34264248609542847,
0.24432113766670227,
0.01105622947216034,
0.03671374171972275,
-0.11921031773090363,
-0.3279459476470947,
-0.057078562676906586,
0.1936565786600113,
0.11177971959114075,
0.08900083601474762,
-0.21653428673744202,
-0.49292775988578796,
0.012797094881534576,
0.1779455542564392,
0.0916186049580574,
0.45926910638809204,
0.24150002002716064,
0.25822651386260986,
0.042873021215200424,
0.33369141817092896,
0.0028446298092603683,
-0.1053825318813324,
0.20010703802108765,
-0.16854648292064667,
0.2778235673904419,
-0.08964625746011734,
0.12168478965759277,
0.47226613759994507,
0.32209569215774536,
-0.2500365972518921,
0.14743547141551971,
0.10183059424161911,
0.08515287935733795,
0.031137406826019287,
0.21985775232315063,
-0.4673644006252289,
0.023951437324285507,
-0.2125750035047531,
-0.06648768484592438,
0.09805488586425781,
-0.0418582558631897,
0.21157070994377136,
0.15189789235591888,
0.1120413988828659,
0.1036868691444397,
-0.15942706167697906,
0.311085969209671,
-0.07041945308446884,
0.024867501109838486,
-0.06929190456867218,
-0.0920424684882164,
0.12495093047618866,
0.15828390419483185,
0.6272163987159729,
-0.1422014683485031,
0.05829012393951416,
0.004479013383388519,
-0.048470012843608856,
0.6187859177589417,
-0.031981587409973145,
0.32825767993927,
-0.030956372618675232,
0.44803011417388916,
0.2874860465526581,
0.08086897432804108,
-0.4645383059978485,
-0.054280832409858704,
-0.016263671219348907,
0.04928532615303993,
-0.3212154805660248,
0.07778474688529968,
0.1473052203655243,
0.15243223309516907,
0.08216804265975952,
-0.00011771265417337418,
-0.28356900811195374,
-0.26074326038360596,
-0.1301037073135376,
-0.2678189277648926,
0.20757503807544708,
0.2752920687198639,
-0.1247798278927803,
-0.4327087998390198,
0.15429028868675232,
-0.272742360830307,
0.15725493431091309,
-0.0439576655626297,
0.4333905279636383,
-0.44317522644996643,
-0.039340436458587646,
0.11204507201910019,
-0.11627960205078125,
0.2282206118106842,
0.11548814177513123,
0.37564823031425476,
0.014233656227588654,
0.08026991039514542,
-0.3931577503681183,
0.23263216018676758,
0.12891046702861786,
-0.2514071762561798,
-0.1255403459072113,
0.244159534573555,
0.27804821729660034,
-0.3591398298740387,
0.19251017272472382,
0.4338487982749939,
0.12140170484781265,
0.06567292660474777,
-0.13827574253082275,
0.2610515058040619,
-0.05020090192556381,
-0.03146975114941597,
0.47116076946258545,
0.22867555916309357,
-0.40996697545051575,
-0.014121797867119312,
-0.15337172150611877,
0.8211248517036438,
0.33195459842681885,
0.061423029750585556,
0.25336983799934387,
-0.35167813301086426,
-0.13029754161834717,
0.02762080729007721,
0.21209926903247833,
0.15755648910999298,
0.03884181007742882,
-0.12788674235343933,
-0.17729158699512482,
0.08901532739400864,
0.27438732981681824,
-0.2974207401275635,
0.1903182715177536,
0.01317044347524643,
0.3833428621292114,
0.10936599224805832,
-0.3693387806415558,
-0.13707853853702545,
0.1012650728225708,
0.04969147592782974,
0.1037558764219284,
-0.0685039609670639,
0.01043824851512909,
-0.01289554126560688,
-0.2381439059972763,
-0.45425713062286377,
-0.3346583843231201,
-0.17302891612052917,
-0.12554937601089478,
-0.3207044303417206,
0.0004840027540922165,
0.24055570363998413,
-0.07185931503772736,
-0.20341253280639648,
-0.00831640511751175,
0.037149786949157715,
0.33946600556373596,
-0.2143353521823883,
0.3209940791130066,
-0.04634343087673187,
0.3422294855117798,
0.07231514155864716,
0.19115185737609863,
0.06939397007226944,
-0.07618536055088043,
-0.3862167298793793,
0.15779715776443481,
-0.03901077061891556,
-0.16923201084136963,
0.1529090404510498,
-0.26707589626312256,
-0.29283326864242554,
0.16921083629131317,
-0.38511744141578674,
-0.06525139510631561,
-0.04661912843585014,
-0.1370796263217926,
0.1873214691877365,
0.16154678165912628,
-0.6162571310997009,
0.1068410873413086,
0.0900367945432663,
-0.1735628843307495,
-0.1463788002729416,
0.21460987627506256,
-0.1267862617969513,
-0.013042805716395378,
0.1967601627111435,
-0.4020272195339203,
-0.07269847393035889,
-0.27846384048461914,
0.39751318097114563,
-0.27410632371902466,
-0.1403990089893341,
0.06763101369142532,
0.022556671872735023,
-0.08371126651763916,
-0.09603424370288849,
-0.13898588716983795,
-0.18184760212898254,
0.16058018803596497,
-0.19111956655979156,
-0.2765192985534668,
-0.438419908285141,
0.24428348243236542,
-0.14051714539527893,
0.3602712154388428,
-0.18964353203773499,
-0.14986467361450195,
0.1483738124370575,
-0.42851704359054565,
-0.3287044167518616,
0.07249334454536438,
-0.3279467523097992,
0.17426371574401855,
-0.028065890073776245,
0.03257908672094345,
-0.05012422427535057,
-0.11917583644390106,
0.23497286438941956,
-0.01589937135577202,
-0.0980425700545311,
-0.1543506681919098,
-0.0983269065618515,
0.15593548119068146,
0.025367697700858116,
0.08268976956605911,
0.06275441497564316,
0.09674583375453949,
-0.3873788118362427,
0.05574606731534004,
0.00838087685406208,
-0.18331637978553772,
-0.11351044476032257,
0.13837353885173798,
-0.13346879184246063,
-0.022896505892276764,
0.24470920860767365,
-0.1705358922481537,
-0.16968944668769836,
0.24309180676937103,
-0.15398256480693817,
0.05113519728183746,
0.22645559906959534,
-0.2627275288105011,
0.06900209933519363,
0.13524991273880005,
-0.4435829520225525,
-0.27014511823654175,
0.46872425079345703,
-0.2736535668373108,
0.24129948019981384,
0.09248258173465729,
0.3302566707134247,
0.02467622607946396,
-0.21011210978031158,
-0.1736401468515396,
0.026473185047507286,
0.3368951380252838,
-0.17284567654132843,
-0.06230008974671364,
-0.2063562124967575,
-0.04365628957748413,
0.05324828252196312,
0.1541096717119217,
0.0032668225467205048,
-0.18972888588905334,
0.024420499801635742,
-0.005826350301504135,
0.2279115915298462,
-0.27281463146209717,
0.08662663400173187,
0.5022061467170715,
-0.30236345529556274,
0.22427569329738617,
-0.1316482424736023,
0.06510256230831146,
0.17428964376449585,
0.6583148241043091,
-0.2571735084056854,
0.40189671516418457,
0.16794374585151672,
-0.09127850830554962,
0.2286224663257599,
-0.010046204552054405,
-0.3530046045780182,
0.2208089530467987,
-0.15050429105758667,
0.2841044068336487,
0.16492971777915955,
0.07923641055822372,
-0.15742535889148712,
0.03939330577850342,
0.013515518978238106,
-0.04986649379134178,
-0.14403420686721802,
-0.06265367567539215,
-0.18762671947479248,
-0.13331124186515808,
-0.2269226610660553,
-0.22501251101493835,
0.2596230208873749,
0.34438836574554443,
-0.035999760031700134,
0.02122310921549797,
-0.10448995232582092,
0.07547004520893097,
0.03501882776618004,
-0.032073408365249634,
0.020140886306762695,
-0.31573110818862915,
0.23293448984622955,
0.21933384239673615,
-0.057305708527565,
0.5830122828483582,
0.21400639414787292,
0.44460055232048035,
0.24533802270889282,
-0.24597936868667603,
0.19859954714775085,
-0.01990179345011711,
-0.25358471274375916,
-0.08911637216806412,
0.3795185685157776,
0.10687027871608734,
0.2991671562194824,
0.08491750061511993,
0.1479969620704651,
-0.1457545906305313,
0.07526284456253052,
0.3504003882408142,
0.12468251585960388,
-0.1331399530172348,
0.054512057453393936,
-0.6205865144729614,
-0.08284240961074829,
-0.22413504123687744,
-0.22099438309669495,
-0.5507252812385559,
-0.0810595154762268,
0.02566802315413952,
-0.20661790668964386,
0.17018145322799683,
0.09336075186729431,
0.07383710145950317,
-0.23421433568000793,
0.1932225078344345,
0.16712671518325806,
0.10721628367900848,
0.02311461605131626,
-0.2735792398452759,
-0.5983046889305115,
-0.03373917192220688,
0.2093004286289215,
-0.023604746907949448,
-0.10232755541801453,
-0.12539424002170563,
0.1453009843826294,
-0.04593530297279358,
0.4645295739173889,
-0.006530748680233955,
0.14381399750709534,
0.09278304129838943,
-0.25100889801979065,
-0.11048725247383118,
0.10201209783554077,
0.23601774871349335,
-0.2222333401441574,
-0.5313566327095032,
0.10128911584615707,
-0.15150973200798035,
0.12326406687498093,
0.06304347515106201,
0.3486153483390808,
-0.444472998380661,
-0.13292507827281952,
0.17358212172985077,
0.2311120629310608,
0.11838672310113907,
-0.43635261058807373,
0.1964225471019745,
0.19695140421390533,
0.09318243712186813,
0.060963112860918045,
-0.2578039765357971,
0.02905801683664322,
0.605736494064331,
0.055148251354694366,
0.011677002534270287,
-0.20401440560817719,
0.0942145586013794,
-0.03535234555602074,
-0.07106020301580429,
-0.3228534162044525,
0.4683411717414856,
-0.5359659790992737,
-0.08563470840454102,
0.18196408450603485,
-0.49365538358688354,
-0.30768895149230957,
0.043774642050266266,
-0.2705669105052948,
-0.37087464332580566,
0.4424045979976654,
0.014837975613772869,
-0.2772376835346222,
-0.2721850872039795,
0.2854769825935364,
0.2231404185295105,
0.27874505519866943,
-0.6344666481018066,
0.1173185482621193,
0.30275821685791016,
-0.04710925370454788,
-0.12373441457748413,
0.13976255059242249,
-0.006140517070889473,
-0.09843631088733673,
0.19621044397354126,
0.23284360766410828,
0.20752912759780884,
0.01309007965028286,
0.08444729447364807,
-0.38992178440093994
] |
https://github.com/huggingface/datasets/issues/4323 | Audio can not find value["bytes"] | > but i have some confused why path prior is higher than bytes?
If the audio file is already available locally, we don't need to store the bytes again.
If you don't specify a "path" to a local file, then the bytes are stored. You can set "path" to None for example.
> if you can make bytes in _generate_examples , you don`t have to make bytes to path?
> because we have path and bytes already
It's useful to pass both "path" and "bytes" in `_generate_examples`:
- when the dataset has been downloaded, then the "path" to the audio files are stored and we can ignore "bytes" in order to save disk space.
- when the dataset is loaded in streaming mode, the audio files are not available on your disk and therefore we use the "bytes" | ## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
| 138 | Audio can not find value["bytes"]
## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
> but i have some confused why path prior is higher than bytes?
If the audio file is already available locally, we don't need to store the bytes again.
If you don't specify a "path" to a local file, then the bytes are stored. You can set "path" to None for example.
> if you can make bytes in _generate_examples , you don`t have to make bytes to path?
> because we have path and bytes already
It's useful to pass both "path" and "bytes" in `_generate_examples`:
- when the dataset has been downloaded, then the "path" to the audio files are stored and we can ignore "bytes" in order to save disk space.
- when the dataset is loaded in streaming mode, the audio files are not available on your disk and therefore we use the "bytes" | [
-0.13980552554130554,
-0.2254793643951416,
-0.17552484571933746,
0.2904757857322693,
0.4382437467575073,
-0.20853981375694275,
0.1709819734096527,
0.20187847316265106,
-0.4539523720741272,
0.7961021661758423,
0.12657104432582855,
0.1679459810256958,
-0.25194692611694336,
-0.27644217014312744,
-0.005841073580086231,
0.029939111322164536,
0.18055085837841034,
0.3859480023384094,
0.1716855764389038,
-0.23299162089824677,
-0.23089660704135895,
0.18397201597690582,
-0.4147663116455078,
-0.006679236888885498,
-0.4576643109321594,
0.012213291600346565,
-0.08092332631349564,
0.1514478325843811,
-0.2385084182024002,
-0.04986565187573433,
-0.047049473971128464,
-0.1703314334154129,
-0.24010463058948517,
0.36235642433166504,
-0.00011066118167946115,
-0.06352268904447556,
0.5729212164878845,
-0.12337545305490494,
-0.09491778910160065,
-0.25794798135757446,
-0.46497026085853577,
0.38277798891067505,
-0.7173598408699036,
-0.18148678541183472,
0.01054774597287178,
0.09037421643733978,
0.08895985037088394,
-0.46046262979507446,
0.20740923285484314,
0.3887069523334503,
0.17762024700641632,
-0.004834441468119621,
0.09647545218467712,
0.16818846762180328,
0.7133271098136902,
0.5572836995124817,
0.15282025933265686,
-0.06439098715782166,
0.20231512188911438,
0.29263946413993835,
0.36074355244636536,
0.22046811878681183,
0.04418247938156128,
0.025097060948610306,
-0.09374453872442245,
0.28908082842826843,
-0.36592569947242737,
-0.29419246315956116,
0.36188340187072754,
0.3123592138290405,
0.2061540186405182,
-0.05930250138044357,
-0.305771142244339,
0.09784684330224991,
-0.12371421605348587,
-0.5246524214744568,
0.3349509835243225,
0.4230276644229889,
-0.34027332067489624,
0.08681085705757141,
-0.30921831727027893,
-0.007179870270192623,
-0.22221319377422333,
0.3084675073623657,
0.06262870132923126,
0.14478349685668945,
-0.25596386194229126,
-0.00656147301197052,
0.14011316001415253,
-0.02601553499698639,
0.025361720472574234,
0.13834024965763092,
-0.18144197762012482,
0.17712250351905823,
-0.09962278604507446,
-0.1132991760969162,
-0.015963315963745117,
-0.046562813222408295,
0.13364222645759583,
-0.33863264322280884,
0.15062715113162994,
-0.10148676484823227,
-0.09789306670427322,
0.4705928564071655,
-0.012110963463783264,
-0.3720155656337738,
-0.11398007720708847,
-0.001129710115492344,
0.32486623525619507,
0.1250336468219757,
0.11891047656536102,
-0.12126759439706802,
-0.11218911409378052,
-0.08412844687700272,
0.07399545609951019,
0.04048307240009308,
0.15860773622989655,
-0.19897358119487762,
-0.4156654477119446,
0.11727310717105865,
-0.27462777495384216,
0.16357244551181793,
0.09248507767915726,
0.3844148516654968,
0.3813604414463043,
0.045761335641145706,
0.014453910291194916,
0.21868005394935608,
0.04389189928770065,
-0.10501901060342789,
-0.16897553205490112,
0.14763720333576202,
-0.06233687326312065,
-0.14137862622737885,
0.19777382910251617,
0.4867473840713501,
0.4207164943218231,
0.11407165974378586,
0.22526335716247559,
-0.3817353844642639,
0.06374955177307129,
-0.13180574774742126,
0.05748060718178749,
0.3131122887134552,
-0.3246082365512848,
0.09103889018297195,
-0.4150606691837311,
0.2755082845687866,
0.042852528393268585,
0.5830186009407043,
-0.12467063218355179,
0.21572794020175934,
0.06112661212682724,
0.24478942155838013,
0.0007995236665010452,
0.19680845737457275,
0.025425732135772705,
0.1558559685945511,
0.19116473197937012,
-0.2752375900745392,
0.1690707504749298,
0.01242874562740326,
-0.36245468258857727,
-0.08798979967832565,
0.2883475124835968,
-0.19857220351696014,
-0.1341131031513214,
-0.18390196561813354,
-0.22755666077136993,
0.18588192760944366,
0.4060494899749756,
0.11702227592468262,
0.05679255351424217,
0.12152262032032013,
-0.21697501838207245,
0.35436904430389404,
0.3793076276779175,
-0.31074461340904236,
-0.28011617064476013,
0.020829185843467712,
0.040353305637836456,
-0.32968446612358093,
0.4106360673904419,
0.08374331146478653,
0.1904640942811966,
-0.1544223129749298,
0.3303215503692627,
0.08839917927980423,
-0.20152553915977478,
0.02398526854813099,
-0.037114277482032776,
-0.20241138339042664,
0.0011355020105838776,
-0.06908200681209564,
-0.02389543130993843,
-0.16356414556503296,
0.11496587842702866,
-0.010450860485434532,
0.14632375538349152,
-0.24598395824432373,
-0.03774254024028778,
0.4060613512992859,
0.5649909377098083,
-0.4504939317703247,
-0.04762635380029678,
-0.2960992455482483,
0.33595284819602966,
-0.15130797028541565,
-0.37270626425743103,
0.004789017140865326,
-0.30248624086380005,
-0.23840539157390594,
-0.18142294883728027,
-0.0765552893280983,
-0.08217759430408478,
-0.06762523949146271,
0.1428401619195938,
0.23612380027770996,
0.057236868888139725,
-0.057526297867298126,
-0.2119334638118744,
-0.17465783655643463,
0.15004190802574158,
-0.08098208159208298,
0.009929029271006584,
0.19040094316005707,
-0.08692821860313416,
-0.2589412033557892,
0.14183521270751953,
0.24337872862815857,
0.19753724336624146,
-0.04818529263138771,
-0.10943226516246796,
0.5192558169364929,
0.22508975863456726,
0.3200554847717285,
-0.07127728313207626,
0.18032224476337433,
0.4056094288825989,
-0.39628866314888,
0.068773053586483,
0.29916343092918396,
0.36406874656677246,
0.06616463512182236,
0.09764343500137329,
-0.1556043177843094,
0.05846736580133438,
0.01752185821533203,
0.09337937831878662,
-0.20543336868286133,
0.2951471507549286,
0.052979808300733566,
0.12817320227622986,
0.010789565742015839,
0.008736401796340942,
0.02350170910358429,
0.22431431710720062,
0.08659087866544724,
-0.5080168843269348,
-0.046907149255275726,
0.7174844741821289,
-0.3568103611469269,
0.06366812437772751,
0.23332732915878296,
-0.09008876234292984,
-0.23458492755889893,
-0.01736939139664173,
0.29102203249931335,
0.44166940450668335,
0.28121665120124817,
0.0822950005531311,
-0.1936488002538681,
-0.17550784349441528,
-0.2229223996400833,
0.3349289000034332,
-0.02949059009552002,
0.1772218495607376,
0.1681317538022995,
-0.15836597979068756,
-0.1689668893814087,
-0.41653862595558167,
0.17067675292491913,
0.08455712348222733,
0.060311295092105865,
-0.3493204116821289,
-0.11934740096330643,
-0.31055155396461487,
-0.012011758983135223,
-0.2595009505748749,
-0.20295818150043488,
-0.05875259265303612,
-0.04843665659427643,
0.3007296323776245,
0.07614605128765106,
-0.2426253706216812,
0.25132840871810913,
0.1496197134256363,
0.22751551866531372,
0.265380859375,
0.32179880142211914,
-0.362066388130188,
0.15920913219451904,
-0.30237796902656555,
0.09787377715110779,
0.010115244425833225,
0.34061199426651,
0.21079637110233307,
-0.3200782239437103,
0.031741656363010406,
-0.056589819490909576,
-0.15039533376693726,
0.09614820033311844,
0.037800081074237823,
0.5034225583076477,
0.013470426201820374,
0.13955606520175934,
0.025721609592437744,
-0.18875113129615784,
0.1473882794380188,
-0.22491216659545898,
-0.38979366421699524,
0.13582387566566467,
0.0936388373374939,
-0.08525840193033218,
-0.47831153869628906,
-0.39288660883903503,
-0.1872396171092987,
-0.11655279994010925,
-0.13838732242584229,
-0.18283186852931976,
0.2891591787338257,
0.1487571746110916,
0.30561158061027527,
0.1580432504415512,
0.03646053373813629,
0.26662740111351013,
-0.5536206960678101,
-0.5931400060653687,
0.3918820023536682,
-0.11631903797388077,
-0.2856922149658203,
-0.07299227267503738,
-0.03358623385429382,
0.34264248609542847,
0.24432113766670227,
0.01105622947216034,
0.03671374171972275,
-0.11921031773090363,
-0.3279459476470947,
-0.057078562676906586,
0.1936565786600113,
0.11177971959114075,
0.08900083601474762,
-0.21653428673744202,
-0.49292775988578796,
0.012797094881534576,
0.1779455542564392,
0.0916186049580574,
0.45926910638809204,
0.24150002002716064,
0.25822651386260986,
0.042873021215200424,
0.33369141817092896,
0.0028446298092603683,
-0.1053825318813324,
0.20010703802108765,
-0.16854648292064667,
0.2778235673904419,
-0.08964625746011734,
0.12168478965759277,
0.47226613759994507,
0.32209569215774536,
-0.2500365972518921,
0.14743547141551971,
0.10183059424161911,
0.08515287935733795,
0.031137406826019287,
0.21985775232315063,
-0.4673644006252289,
0.023951437324285507,
-0.2125750035047531,
-0.06648768484592438,
0.09805488586425781,
-0.0418582558631897,
0.21157070994377136,
0.15189789235591888,
0.1120413988828659,
0.1036868691444397,
-0.15942706167697906,
0.311085969209671,
-0.07041945308446884,
0.024867501109838486,
-0.06929190456867218,
-0.0920424684882164,
0.12495093047618866,
0.15828390419483185,
0.6272163987159729,
-0.1422014683485031,
0.05829012393951416,
0.004479013383388519,
-0.048470012843608856,
0.6187859177589417,
-0.031981587409973145,
0.32825767993927,
-0.030956372618675232,
0.44803011417388916,
0.2874860465526581,
0.08086897432804108,
-0.4645383059978485,
-0.054280832409858704,
-0.016263671219348907,
0.04928532615303993,
-0.3212154805660248,
0.07778474688529968,
0.1473052203655243,
0.15243223309516907,
0.08216804265975952,
-0.00011771265417337418,
-0.28356900811195374,
-0.26074326038360596,
-0.1301037073135376,
-0.2678189277648926,
0.20757503807544708,
0.2752920687198639,
-0.1247798278927803,
-0.4327087998390198,
0.15429028868675232,
-0.272742360830307,
0.15725493431091309,
-0.0439576655626297,
0.4333905279636383,
-0.44317522644996643,
-0.039340436458587646,
0.11204507201910019,
-0.11627960205078125,
0.2282206118106842,
0.11548814177513123,
0.37564823031425476,
0.014233656227588654,
0.08026991039514542,
-0.3931577503681183,
0.23263216018676758,
0.12891046702861786,
-0.2514071762561798,
-0.1255403459072113,
0.244159534573555,
0.27804821729660034,
-0.3591398298740387,
0.19251017272472382,
0.4338487982749939,
0.12140170484781265,
0.06567292660474777,
-0.13827574253082275,
0.2610515058040619,
-0.05020090192556381,
-0.03146975114941597,
0.47116076946258545,
0.22867555916309357,
-0.40996697545051575,
-0.014121797867119312,
-0.15337172150611877,
0.8211248517036438,
0.33195459842681885,
0.061423029750585556,
0.25336983799934387,
-0.35167813301086426,
-0.13029754161834717,
0.02762080729007721,
0.21209926903247833,
0.15755648910999298,
0.03884181007742882,
-0.12788674235343933,
-0.17729158699512482,
0.08901532739400864,
0.27438732981681824,
-0.2974207401275635,
0.1903182715177536,
0.01317044347524643,
0.3833428621292114,
0.10936599224805832,
-0.3693387806415558,
-0.13707853853702545,
0.1012650728225708,
0.04969147592782974,
0.1037558764219284,
-0.0685039609670639,
0.01043824851512909,
-0.01289554126560688,
-0.2381439059972763,
-0.45425713062286377,
-0.3346583843231201,
-0.17302891612052917,
-0.12554937601089478,
-0.3207044303417206,
0.0004840027540922165,
0.24055570363998413,
-0.07185931503772736,
-0.20341253280639648,
-0.00831640511751175,
0.037149786949157715,
0.33946600556373596,
-0.2143353521823883,
0.3209940791130066,
-0.04634343087673187,
0.3422294855117798,
0.07231514155864716,
0.19115185737609863,
0.06939397007226944,
-0.07618536055088043,
-0.3862167298793793,
0.15779715776443481,
-0.03901077061891556,
-0.16923201084136963,
0.1529090404510498,
-0.26707589626312256,
-0.29283326864242554,
0.16921083629131317,
-0.38511744141578674,
-0.06525139510631561,
-0.04661912843585014,
-0.1370796263217926,
0.1873214691877365,
0.16154678165912628,
-0.6162571310997009,
0.1068410873413086,
0.0900367945432663,
-0.1735628843307495,
-0.1463788002729416,
0.21460987627506256,
-0.1267862617969513,
-0.013042805716395378,
0.1967601627111435,
-0.4020272195339203,
-0.07269847393035889,
-0.27846384048461914,
0.39751318097114563,
-0.27410632371902466,
-0.1403990089893341,
0.06763101369142532,
0.022556671872735023,
-0.08371126651763916,
-0.09603424370288849,
-0.13898588716983795,
-0.18184760212898254,
0.16058018803596497,
-0.19111956655979156,
-0.2765192985534668,
-0.438419908285141,
0.24428348243236542,
-0.14051714539527893,
0.3602712154388428,
-0.18964353203773499,
-0.14986467361450195,
0.1483738124370575,
-0.42851704359054565,
-0.3287044167518616,
0.07249334454536438,
-0.3279467523097992,
0.17426371574401855,
-0.028065890073776245,
0.03257908672094345,
-0.05012422427535057,
-0.11917583644390106,
0.23497286438941956,
-0.01589937135577202,
-0.0980425700545311,
-0.1543506681919098,
-0.0983269065618515,
0.15593548119068146,
0.025367697700858116,
0.08268976956605911,
0.06275441497564316,
0.09674583375453949,
-0.3873788118362427,
0.05574606731534004,
0.00838087685406208,
-0.18331637978553772,
-0.11351044476032257,
0.13837353885173798,
-0.13346879184246063,
-0.022896505892276764,
0.24470920860767365,
-0.1705358922481537,
-0.16968944668769836,
0.24309180676937103,
-0.15398256480693817,
0.05113519728183746,
0.22645559906959534,
-0.2627275288105011,
0.06900209933519363,
0.13524991273880005,
-0.4435829520225525,
-0.27014511823654175,
0.46872425079345703,
-0.2736535668373108,
0.24129948019981384,
0.09248258173465729,
0.3302566707134247,
0.02467622607946396,
-0.21011210978031158,
-0.1736401468515396,
0.026473185047507286,
0.3368951380252838,
-0.17284567654132843,
-0.06230008974671364,
-0.2063562124967575,
-0.04365628957748413,
0.05324828252196312,
0.1541096717119217,
0.0032668225467205048,
-0.18972888588905334,
0.024420499801635742,
-0.005826350301504135,
0.2279115915298462,
-0.27281463146209717,
0.08662663400173187,
0.5022061467170715,
-0.30236345529556274,
0.22427569329738617,
-0.1316482424736023,
0.06510256230831146,
0.17428964376449585,
0.6583148241043091,
-0.2571735084056854,
0.40189671516418457,
0.16794374585151672,
-0.09127850830554962,
0.2286224663257599,
-0.010046204552054405,
-0.3530046045780182,
0.2208089530467987,
-0.15050429105758667,
0.2841044068336487,
0.16492971777915955,
0.07923641055822372,
-0.15742535889148712,
0.03939330577850342,
0.013515518978238106,
-0.04986649379134178,
-0.14403420686721802,
-0.06265367567539215,
-0.18762671947479248,
-0.13331124186515808,
-0.2269226610660553,
-0.22501251101493835,
0.2596230208873749,
0.34438836574554443,
-0.035999760031700134,
0.02122310921549797,
-0.10448995232582092,
0.07547004520893097,
0.03501882776618004,
-0.032073408365249634,
0.020140886306762695,
-0.31573110818862915,
0.23293448984622955,
0.21933384239673615,
-0.057305708527565,
0.5830122828483582,
0.21400639414787292,
0.44460055232048035,
0.24533802270889282,
-0.24597936868667603,
0.19859954714775085,
-0.01990179345011711,
-0.25358471274375916,
-0.08911637216806412,
0.3795185685157776,
0.10687027871608734,
0.2991671562194824,
0.08491750061511993,
0.1479969620704651,
-0.1457545906305313,
0.07526284456253052,
0.3504003882408142,
0.12468251585960388,
-0.1331399530172348,
0.054512057453393936,
-0.6205865144729614,
-0.08284240961074829,
-0.22413504123687744,
-0.22099438309669495,
-0.5507252812385559,
-0.0810595154762268,
0.02566802315413952,
-0.20661790668964386,
0.17018145322799683,
0.09336075186729431,
0.07383710145950317,
-0.23421433568000793,
0.1932225078344345,
0.16712671518325806,
0.10721628367900848,
0.02311461605131626,
-0.2735792398452759,
-0.5983046889305115,
-0.03373917192220688,
0.2093004286289215,
-0.023604746907949448,
-0.10232755541801453,
-0.12539424002170563,
0.1453009843826294,
-0.04593530297279358,
0.4645295739173889,
-0.006530748680233955,
0.14381399750709534,
0.09278304129838943,
-0.25100889801979065,
-0.11048725247383118,
0.10201209783554077,
0.23601774871349335,
-0.2222333401441574,
-0.5313566327095032,
0.10128911584615707,
-0.15150973200798035,
0.12326406687498093,
0.06304347515106201,
0.3486153483390808,
-0.444472998380661,
-0.13292507827281952,
0.17358212172985077,
0.2311120629310608,
0.11838672310113907,
-0.43635261058807373,
0.1964225471019745,
0.19695140421390533,
0.09318243712186813,
0.060963112860918045,
-0.2578039765357971,
0.02905801683664322,
0.605736494064331,
0.055148251354694366,
0.011677002534270287,
-0.20401440560817719,
0.0942145586013794,
-0.03535234555602074,
-0.07106020301580429,
-0.3228534162044525,
0.4683411717414856,
-0.5359659790992737,
-0.08563470840454102,
0.18196408450603485,
-0.49365538358688354,
-0.30768895149230957,
0.043774642050266266,
-0.2705669105052948,
-0.37087464332580566,
0.4424045979976654,
0.014837975613772869,
-0.2772376835346222,
-0.2721850872039795,
0.2854769825935364,
0.2231404185295105,
0.27874505519866943,
-0.6344666481018066,
0.1173185482621193,
0.30275821685791016,
-0.04710925370454788,
-0.12373441457748413,
0.13976255059242249,
-0.006140517070889473,
-0.09843631088733673,
0.19621044397354126,
0.23284360766410828,
0.20752912759780884,
0.01309007965028286,
0.08444729447364807,
-0.38992178440093994
] |
https://github.com/huggingface/datasets/issues/4323 | Audio can not find value["bytes"] | @lhoestq
First of all, thx for reply
but, if i put in "bytes" and "path"
ex) {"bytes":"blah blah~", "path":"blah blah~"}
that source working that my bytes to empty first,
and then, re-calculate my bytes!

if you have some pcm file, pcm is can read bytes.
so, i put in bytes and paths.
but bytes is been None why encode_example func make None
and then, on decode_example func, we no have bytes. so, calculate bytes to path.
pcm is not support librosa or soundfile, error occured!
the most important thing is not announced anywhere this situation can be reproduced
is that truly right process flow? | ## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
| 105 | Audio can not find value["bytes"]
## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
@lhoestq
First of all, thx for reply
but, if i put in "bytes" and "path"
ex) {"bytes":"blah blah~", "path":"blah blah~"}
that source working that my bytes to empty first,
and then, re-calculate my bytes!

if you have some pcm file, pcm is can read bytes.
so, i put in bytes and paths.
but bytes is been None why encode_example func make None
and then, on decode_example func, we no have bytes. so, calculate bytes to path.
pcm is not support librosa or soundfile, error occured!
the most important thing is not announced anywhere this situation can be reproduced
is that truly right process flow? | [
-0.13980552554130554,
-0.2254793643951416,
-0.17552484571933746,
0.2904757857322693,
0.4382437467575073,
-0.20853981375694275,
0.1709819734096527,
0.20187847316265106,
-0.4539523720741272,
0.7961021661758423,
0.12657104432582855,
0.1679459810256958,
-0.25194692611694336,
-0.27644217014312744,
-0.005841073580086231,
0.029939111322164536,
0.18055085837841034,
0.3859480023384094,
0.1716855764389038,
-0.23299162089824677,
-0.23089660704135895,
0.18397201597690582,
-0.4147663116455078,
-0.006679236888885498,
-0.4576643109321594,
0.012213291600346565,
-0.08092332631349564,
0.1514478325843811,
-0.2385084182024002,
-0.04986565187573433,
-0.047049473971128464,
-0.1703314334154129,
-0.24010463058948517,
0.36235642433166504,
-0.00011066118167946115,
-0.06352268904447556,
0.5729212164878845,
-0.12337545305490494,
-0.09491778910160065,
-0.25794798135757446,
-0.46497026085853577,
0.38277798891067505,
-0.7173598408699036,
-0.18148678541183472,
0.01054774597287178,
0.09037421643733978,
0.08895985037088394,
-0.46046262979507446,
0.20740923285484314,
0.3887069523334503,
0.17762024700641632,
-0.004834441468119621,
0.09647545218467712,
0.16818846762180328,
0.7133271098136902,
0.5572836995124817,
0.15282025933265686,
-0.06439098715782166,
0.20231512188911438,
0.29263946413993835,
0.36074355244636536,
0.22046811878681183,
0.04418247938156128,
0.025097060948610306,
-0.09374453872442245,
0.28908082842826843,
-0.36592569947242737,
-0.29419246315956116,
0.36188340187072754,
0.3123592138290405,
0.2061540186405182,
-0.05930250138044357,
-0.305771142244339,
0.09784684330224991,
-0.12371421605348587,
-0.5246524214744568,
0.3349509835243225,
0.4230276644229889,
-0.34027332067489624,
0.08681085705757141,
-0.30921831727027893,
-0.007179870270192623,
-0.22221319377422333,
0.3084675073623657,
0.06262870132923126,
0.14478349685668945,
-0.25596386194229126,
-0.00656147301197052,
0.14011316001415253,
-0.02601553499698639,
0.025361720472574234,
0.13834024965763092,
-0.18144197762012482,
0.17712250351905823,
-0.09962278604507446,
-0.1132991760969162,
-0.015963315963745117,
-0.046562813222408295,
0.13364222645759583,
-0.33863264322280884,
0.15062715113162994,
-0.10148676484823227,
-0.09789306670427322,
0.4705928564071655,
-0.012110963463783264,
-0.3720155656337738,
-0.11398007720708847,
-0.001129710115492344,
0.32486623525619507,
0.1250336468219757,
0.11891047656536102,
-0.12126759439706802,
-0.11218911409378052,
-0.08412844687700272,
0.07399545609951019,
0.04048307240009308,
0.15860773622989655,
-0.19897358119487762,
-0.4156654477119446,
0.11727310717105865,
-0.27462777495384216,
0.16357244551181793,
0.09248507767915726,
0.3844148516654968,
0.3813604414463043,
0.045761335641145706,
0.014453910291194916,
0.21868005394935608,
0.04389189928770065,
-0.10501901060342789,
-0.16897553205490112,
0.14763720333576202,
-0.06233687326312065,
-0.14137862622737885,
0.19777382910251617,
0.4867473840713501,
0.4207164943218231,
0.11407165974378586,
0.22526335716247559,
-0.3817353844642639,
0.06374955177307129,
-0.13180574774742126,
0.05748060718178749,
0.3131122887134552,
-0.3246082365512848,
0.09103889018297195,
-0.4150606691837311,
0.2755082845687866,
0.042852528393268585,
0.5830186009407043,
-0.12467063218355179,
0.21572794020175934,
0.06112661212682724,
0.24478942155838013,
0.0007995236665010452,
0.19680845737457275,
0.025425732135772705,
0.1558559685945511,
0.19116473197937012,
-0.2752375900745392,
0.1690707504749298,
0.01242874562740326,
-0.36245468258857727,
-0.08798979967832565,
0.2883475124835968,
-0.19857220351696014,
-0.1341131031513214,
-0.18390196561813354,
-0.22755666077136993,
0.18588192760944366,
0.4060494899749756,
0.11702227592468262,
0.05679255351424217,
0.12152262032032013,
-0.21697501838207245,
0.35436904430389404,
0.3793076276779175,
-0.31074461340904236,
-0.28011617064476013,
0.020829185843467712,
0.040353305637836456,
-0.32968446612358093,
0.4106360673904419,
0.08374331146478653,
0.1904640942811966,
-0.1544223129749298,
0.3303215503692627,
0.08839917927980423,
-0.20152553915977478,
0.02398526854813099,
-0.037114277482032776,
-0.20241138339042664,
0.0011355020105838776,
-0.06908200681209564,
-0.02389543130993843,
-0.16356414556503296,
0.11496587842702866,
-0.010450860485434532,
0.14632375538349152,
-0.24598395824432373,
-0.03774254024028778,
0.4060613512992859,
0.5649909377098083,
-0.4504939317703247,
-0.04762635380029678,
-0.2960992455482483,
0.33595284819602966,
-0.15130797028541565,
-0.37270626425743103,
0.004789017140865326,
-0.30248624086380005,
-0.23840539157390594,
-0.18142294883728027,
-0.0765552893280983,
-0.08217759430408478,
-0.06762523949146271,
0.1428401619195938,
0.23612380027770996,
0.057236868888139725,
-0.057526297867298126,
-0.2119334638118744,
-0.17465783655643463,
0.15004190802574158,
-0.08098208159208298,
0.009929029271006584,
0.19040094316005707,
-0.08692821860313416,
-0.2589412033557892,
0.14183521270751953,
0.24337872862815857,
0.19753724336624146,
-0.04818529263138771,
-0.10943226516246796,
0.5192558169364929,
0.22508975863456726,
0.3200554847717285,
-0.07127728313207626,
0.18032224476337433,
0.4056094288825989,
-0.39628866314888,
0.068773053586483,
0.29916343092918396,
0.36406874656677246,
0.06616463512182236,
0.09764343500137329,
-0.1556043177843094,
0.05846736580133438,
0.01752185821533203,
0.09337937831878662,
-0.20543336868286133,
0.2951471507549286,
0.052979808300733566,
0.12817320227622986,
0.010789565742015839,
0.008736401796340942,
0.02350170910358429,
0.22431431710720062,
0.08659087866544724,
-0.5080168843269348,
-0.046907149255275726,
0.7174844741821289,
-0.3568103611469269,
0.06366812437772751,
0.23332732915878296,
-0.09008876234292984,
-0.23458492755889893,
-0.01736939139664173,
0.29102203249931335,
0.44166940450668335,
0.28121665120124817,
0.0822950005531311,
-0.1936488002538681,
-0.17550784349441528,
-0.2229223996400833,
0.3349289000034332,
-0.02949059009552002,
0.1772218495607376,
0.1681317538022995,
-0.15836597979068756,
-0.1689668893814087,
-0.41653862595558167,
0.17067675292491913,
0.08455712348222733,
0.060311295092105865,
-0.3493204116821289,
-0.11934740096330643,
-0.31055155396461487,
-0.012011758983135223,
-0.2595009505748749,
-0.20295818150043488,
-0.05875259265303612,
-0.04843665659427643,
0.3007296323776245,
0.07614605128765106,
-0.2426253706216812,
0.25132840871810913,
0.1496197134256363,
0.22751551866531372,
0.265380859375,
0.32179880142211914,
-0.362066388130188,
0.15920913219451904,
-0.30237796902656555,
0.09787377715110779,
0.010115244425833225,
0.34061199426651,
0.21079637110233307,
-0.3200782239437103,
0.031741656363010406,
-0.056589819490909576,
-0.15039533376693726,
0.09614820033311844,
0.037800081074237823,
0.5034225583076477,
0.013470426201820374,
0.13955606520175934,
0.025721609592437744,
-0.18875113129615784,
0.1473882794380188,
-0.22491216659545898,
-0.38979366421699524,
0.13582387566566467,
0.0936388373374939,
-0.08525840193033218,
-0.47831153869628906,
-0.39288660883903503,
-0.1872396171092987,
-0.11655279994010925,
-0.13838732242584229,
-0.18283186852931976,
0.2891591787338257,
0.1487571746110916,
0.30561158061027527,
0.1580432504415512,
0.03646053373813629,
0.26662740111351013,
-0.5536206960678101,
-0.5931400060653687,
0.3918820023536682,
-0.11631903797388077,
-0.2856922149658203,
-0.07299227267503738,
-0.03358623385429382,
0.34264248609542847,
0.24432113766670227,
0.01105622947216034,
0.03671374171972275,
-0.11921031773090363,
-0.3279459476470947,
-0.057078562676906586,
0.1936565786600113,
0.11177971959114075,
0.08900083601474762,
-0.21653428673744202,
-0.49292775988578796,
0.012797094881534576,
0.1779455542564392,
0.0916186049580574,
0.45926910638809204,
0.24150002002716064,
0.25822651386260986,
0.042873021215200424,
0.33369141817092896,
0.0028446298092603683,
-0.1053825318813324,
0.20010703802108765,
-0.16854648292064667,
0.2778235673904419,
-0.08964625746011734,
0.12168478965759277,
0.47226613759994507,
0.32209569215774536,
-0.2500365972518921,
0.14743547141551971,
0.10183059424161911,
0.08515287935733795,
0.031137406826019287,
0.21985775232315063,
-0.4673644006252289,
0.023951437324285507,
-0.2125750035047531,
-0.06648768484592438,
0.09805488586425781,
-0.0418582558631897,
0.21157070994377136,
0.15189789235591888,
0.1120413988828659,
0.1036868691444397,
-0.15942706167697906,
0.311085969209671,
-0.07041945308446884,
0.024867501109838486,
-0.06929190456867218,
-0.0920424684882164,
0.12495093047618866,
0.15828390419483185,
0.6272163987159729,
-0.1422014683485031,
0.05829012393951416,
0.004479013383388519,
-0.048470012843608856,
0.6187859177589417,
-0.031981587409973145,
0.32825767993927,
-0.030956372618675232,
0.44803011417388916,
0.2874860465526581,
0.08086897432804108,
-0.4645383059978485,
-0.054280832409858704,
-0.016263671219348907,
0.04928532615303993,
-0.3212154805660248,
0.07778474688529968,
0.1473052203655243,
0.15243223309516907,
0.08216804265975952,
-0.00011771265417337418,
-0.28356900811195374,
-0.26074326038360596,
-0.1301037073135376,
-0.2678189277648926,
0.20757503807544708,
0.2752920687198639,
-0.1247798278927803,
-0.4327087998390198,
0.15429028868675232,
-0.272742360830307,
0.15725493431091309,
-0.0439576655626297,
0.4333905279636383,
-0.44317522644996643,
-0.039340436458587646,
0.11204507201910019,
-0.11627960205078125,
0.2282206118106842,
0.11548814177513123,
0.37564823031425476,
0.014233656227588654,
0.08026991039514542,
-0.3931577503681183,
0.23263216018676758,
0.12891046702861786,
-0.2514071762561798,
-0.1255403459072113,
0.244159534573555,
0.27804821729660034,
-0.3591398298740387,
0.19251017272472382,
0.4338487982749939,
0.12140170484781265,
0.06567292660474777,
-0.13827574253082275,
0.2610515058040619,
-0.05020090192556381,
-0.03146975114941597,
0.47116076946258545,
0.22867555916309357,
-0.40996697545051575,
-0.014121797867119312,
-0.15337172150611877,
0.8211248517036438,
0.33195459842681885,
0.061423029750585556,
0.25336983799934387,
-0.35167813301086426,
-0.13029754161834717,
0.02762080729007721,
0.21209926903247833,
0.15755648910999298,
0.03884181007742882,
-0.12788674235343933,
-0.17729158699512482,
0.08901532739400864,
0.27438732981681824,
-0.2974207401275635,
0.1903182715177536,
0.01317044347524643,
0.3833428621292114,
0.10936599224805832,
-0.3693387806415558,
-0.13707853853702545,
0.1012650728225708,
0.04969147592782974,
0.1037558764219284,
-0.0685039609670639,
0.01043824851512909,
-0.01289554126560688,
-0.2381439059972763,
-0.45425713062286377,
-0.3346583843231201,
-0.17302891612052917,
-0.12554937601089478,
-0.3207044303417206,
0.0004840027540922165,
0.24055570363998413,
-0.07185931503772736,
-0.20341253280639648,
-0.00831640511751175,
0.037149786949157715,
0.33946600556373596,
-0.2143353521823883,
0.3209940791130066,
-0.04634343087673187,
0.3422294855117798,
0.07231514155864716,
0.19115185737609863,
0.06939397007226944,
-0.07618536055088043,
-0.3862167298793793,
0.15779715776443481,
-0.03901077061891556,
-0.16923201084136963,
0.1529090404510498,
-0.26707589626312256,
-0.29283326864242554,
0.16921083629131317,
-0.38511744141578674,
-0.06525139510631561,
-0.04661912843585014,
-0.1370796263217926,
0.1873214691877365,
0.16154678165912628,
-0.6162571310997009,
0.1068410873413086,
0.0900367945432663,
-0.1735628843307495,
-0.1463788002729416,
0.21460987627506256,
-0.1267862617969513,
-0.013042805716395378,
0.1967601627111435,
-0.4020272195339203,
-0.07269847393035889,
-0.27846384048461914,
0.39751318097114563,
-0.27410632371902466,
-0.1403990089893341,
0.06763101369142532,
0.022556671872735023,
-0.08371126651763916,
-0.09603424370288849,
-0.13898588716983795,
-0.18184760212898254,
0.16058018803596497,
-0.19111956655979156,
-0.2765192985534668,
-0.438419908285141,
0.24428348243236542,
-0.14051714539527893,
0.3602712154388428,
-0.18964353203773499,
-0.14986467361450195,
0.1483738124370575,
-0.42851704359054565,
-0.3287044167518616,
0.07249334454536438,
-0.3279467523097992,
0.17426371574401855,
-0.028065890073776245,
0.03257908672094345,
-0.05012422427535057,
-0.11917583644390106,
0.23497286438941956,
-0.01589937135577202,
-0.0980425700545311,
-0.1543506681919098,
-0.0983269065618515,
0.15593548119068146,
0.025367697700858116,
0.08268976956605911,
0.06275441497564316,
0.09674583375453949,
-0.3873788118362427,
0.05574606731534004,
0.00838087685406208,
-0.18331637978553772,
-0.11351044476032257,
0.13837353885173798,
-0.13346879184246063,
-0.022896505892276764,
0.24470920860767365,
-0.1705358922481537,
-0.16968944668769836,
0.24309180676937103,
-0.15398256480693817,
0.05113519728183746,
0.22645559906959534,
-0.2627275288105011,
0.06900209933519363,
0.13524991273880005,
-0.4435829520225525,
-0.27014511823654175,
0.46872425079345703,
-0.2736535668373108,
0.24129948019981384,
0.09248258173465729,
0.3302566707134247,
0.02467622607946396,
-0.21011210978031158,
-0.1736401468515396,
0.026473185047507286,
0.3368951380252838,
-0.17284567654132843,
-0.06230008974671364,
-0.2063562124967575,
-0.04365628957748413,
0.05324828252196312,
0.1541096717119217,
0.0032668225467205048,
-0.18972888588905334,
0.024420499801635742,
-0.005826350301504135,
0.2279115915298462,
-0.27281463146209717,
0.08662663400173187,
0.5022061467170715,
-0.30236345529556274,
0.22427569329738617,
-0.1316482424736023,
0.06510256230831146,
0.17428964376449585,
0.6583148241043091,
-0.2571735084056854,
0.40189671516418457,
0.16794374585151672,
-0.09127850830554962,
0.2286224663257599,
-0.010046204552054405,
-0.3530046045780182,
0.2208089530467987,
-0.15050429105758667,
0.2841044068336487,
0.16492971777915955,
0.07923641055822372,
-0.15742535889148712,
0.03939330577850342,
0.013515518978238106,
-0.04986649379134178,
-0.14403420686721802,
-0.06265367567539215,
-0.18762671947479248,
-0.13331124186515808,
-0.2269226610660553,
-0.22501251101493835,
0.2596230208873749,
0.34438836574554443,
-0.035999760031700134,
0.02122310921549797,
-0.10448995232582092,
0.07547004520893097,
0.03501882776618004,
-0.032073408365249634,
0.020140886306762695,
-0.31573110818862915,
0.23293448984622955,
0.21933384239673615,
-0.057305708527565,
0.5830122828483582,
0.21400639414787292,
0.44460055232048035,
0.24533802270889282,
-0.24597936868667603,
0.19859954714775085,
-0.01990179345011711,
-0.25358471274375916,
-0.08911637216806412,
0.3795185685157776,
0.10687027871608734,
0.2991671562194824,
0.08491750061511993,
0.1479969620704651,
-0.1457545906305313,
0.07526284456253052,
0.3504003882408142,
0.12468251585960388,
-0.1331399530172348,
0.054512057453393936,
-0.6205865144729614,
-0.08284240961074829,
-0.22413504123687744,
-0.22099438309669495,
-0.5507252812385559,
-0.0810595154762268,
0.02566802315413952,
-0.20661790668964386,
0.17018145322799683,
0.09336075186729431,
0.07383710145950317,
-0.23421433568000793,
0.1932225078344345,
0.16712671518325806,
0.10721628367900848,
0.02311461605131626,
-0.2735792398452759,
-0.5983046889305115,
-0.03373917192220688,
0.2093004286289215,
-0.023604746907949448,
-0.10232755541801453,
-0.12539424002170563,
0.1453009843826294,
-0.04593530297279358,
0.4645295739173889,
-0.006530748680233955,
0.14381399750709534,
0.09278304129838943,
-0.25100889801979065,
-0.11048725247383118,
0.10201209783554077,
0.23601774871349335,
-0.2222333401441574,
-0.5313566327095032,
0.10128911584615707,
-0.15150973200798035,
0.12326406687498093,
0.06304347515106201,
0.3486153483390808,
-0.444472998380661,
-0.13292507827281952,
0.17358212172985077,
0.2311120629310608,
0.11838672310113907,
-0.43635261058807373,
0.1964225471019745,
0.19695140421390533,
0.09318243712186813,
0.060963112860918045,
-0.2578039765357971,
0.02905801683664322,
0.605736494064331,
0.055148251354694366,
0.011677002534270287,
-0.20401440560817719,
0.0942145586013794,
-0.03535234555602074,
-0.07106020301580429,
-0.3228534162044525,
0.4683411717414856,
-0.5359659790992737,
-0.08563470840454102,
0.18196408450603485,
-0.49365538358688354,
-0.30768895149230957,
0.043774642050266266,
-0.2705669105052948,
-0.37087464332580566,
0.4424045979976654,
0.014837975613772869,
-0.2772376835346222,
-0.2721850872039795,
0.2854769825935364,
0.2231404185295105,
0.27874505519866943,
-0.6344666481018066,
0.1173185482621193,
0.30275821685791016,
-0.04710925370454788,
-0.12373441457748413,
0.13976255059242249,
-0.006140517070889473,
-0.09843631088733673,
0.19621044397354126,
0.23284360766410828,
0.20752912759780884,
0.01309007965028286,
0.08444729447364807,
-0.38992178440093994
] |
https://github.com/huggingface/datasets/issues/4323 | Audio can not find value["bytes"] | I don't think we support PCM files, feel free to convert your data to WAV for now.
It would be awesome to support PCM files though, let me know if you'd like to contribute this feature, I'd be happy to help | ## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
| 41 | Audio can not find value["bytes"]
## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
I don't think we support PCM files, feel free to convert your data to WAV for now.
It would be awesome to support PCM files though, let me know if you'd like to contribute this feature, I'd be happy to help | [
-0.13980552554130554,
-0.2254793643951416,
-0.17552484571933746,
0.2904757857322693,
0.4382437467575073,
-0.20853981375694275,
0.1709819734096527,
0.20187847316265106,
-0.4539523720741272,
0.7961021661758423,
0.12657104432582855,
0.1679459810256958,
-0.25194692611694336,
-0.27644217014312744,
-0.005841073580086231,
0.029939111322164536,
0.18055085837841034,
0.3859480023384094,
0.1716855764389038,
-0.23299162089824677,
-0.23089660704135895,
0.18397201597690582,
-0.4147663116455078,
-0.006679236888885498,
-0.4576643109321594,
0.012213291600346565,
-0.08092332631349564,
0.1514478325843811,
-0.2385084182024002,
-0.04986565187573433,
-0.047049473971128464,
-0.1703314334154129,
-0.24010463058948517,
0.36235642433166504,
-0.00011066118167946115,
-0.06352268904447556,
0.5729212164878845,
-0.12337545305490494,
-0.09491778910160065,
-0.25794798135757446,
-0.46497026085853577,
0.38277798891067505,
-0.7173598408699036,
-0.18148678541183472,
0.01054774597287178,
0.09037421643733978,
0.08895985037088394,
-0.46046262979507446,
0.20740923285484314,
0.3887069523334503,
0.17762024700641632,
-0.004834441468119621,
0.09647545218467712,
0.16818846762180328,
0.7133271098136902,
0.5572836995124817,
0.15282025933265686,
-0.06439098715782166,
0.20231512188911438,
0.29263946413993835,
0.36074355244636536,
0.22046811878681183,
0.04418247938156128,
0.025097060948610306,
-0.09374453872442245,
0.28908082842826843,
-0.36592569947242737,
-0.29419246315956116,
0.36188340187072754,
0.3123592138290405,
0.2061540186405182,
-0.05930250138044357,
-0.305771142244339,
0.09784684330224991,
-0.12371421605348587,
-0.5246524214744568,
0.3349509835243225,
0.4230276644229889,
-0.34027332067489624,
0.08681085705757141,
-0.30921831727027893,
-0.007179870270192623,
-0.22221319377422333,
0.3084675073623657,
0.06262870132923126,
0.14478349685668945,
-0.25596386194229126,
-0.00656147301197052,
0.14011316001415253,
-0.02601553499698639,
0.025361720472574234,
0.13834024965763092,
-0.18144197762012482,
0.17712250351905823,
-0.09962278604507446,
-0.1132991760969162,
-0.015963315963745117,
-0.046562813222408295,
0.13364222645759583,
-0.33863264322280884,
0.15062715113162994,
-0.10148676484823227,
-0.09789306670427322,
0.4705928564071655,
-0.012110963463783264,
-0.3720155656337738,
-0.11398007720708847,
-0.001129710115492344,
0.32486623525619507,
0.1250336468219757,
0.11891047656536102,
-0.12126759439706802,
-0.11218911409378052,
-0.08412844687700272,
0.07399545609951019,
0.04048307240009308,
0.15860773622989655,
-0.19897358119487762,
-0.4156654477119446,
0.11727310717105865,
-0.27462777495384216,
0.16357244551181793,
0.09248507767915726,
0.3844148516654968,
0.3813604414463043,
0.045761335641145706,
0.014453910291194916,
0.21868005394935608,
0.04389189928770065,
-0.10501901060342789,
-0.16897553205490112,
0.14763720333576202,
-0.06233687326312065,
-0.14137862622737885,
0.19777382910251617,
0.4867473840713501,
0.4207164943218231,
0.11407165974378586,
0.22526335716247559,
-0.3817353844642639,
0.06374955177307129,
-0.13180574774742126,
0.05748060718178749,
0.3131122887134552,
-0.3246082365512848,
0.09103889018297195,
-0.4150606691837311,
0.2755082845687866,
0.042852528393268585,
0.5830186009407043,
-0.12467063218355179,
0.21572794020175934,
0.06112661212682724,
0.24478942155838013,
0.0007995236665010452,
0.19680845737457275,
0.025425732135772705,
0.1558559685945511,
0.19116473197937012,
-0.2752375900745392,
0.1690707504749298,
0.01242874562740326,
-0.36245468258857727,
-0.08798979967832565,
0.2883475124835968,
-0.19857220351696014,
-0.1341131031513214,
-0.18390196561813354,
-0.22755666077136993,
0.18588192760944366,
0.4060494899749756,
0.11702227592468262,
0.05679255351424217,
0.12152262032032013,
-0.21697501838207245,
0.35436904430389404,
0.3793076276779175,
-0.31074461340904236,
-0.28011617064476013,
0.020829185843467712,
0.040353305637836456,
-0.32968446612358093,
0.4106360673904419,
0.08374331146478653,
0.1904640942811966,
-0.1544223129749298,
0.3303215503692627,
0.08839917927980423,
-0.20152553915977478,
0.02398526854813099,
-0.037114277482032776,
-0.20241138339042664,
0.0011355020105838776,
-0.06908200681209564,
-0.02389543130993843,
-0.16356414556503296,
0.11496587842702866,
-0.010450860485434532,
0.14632375538349152,
-0.24598395824432373,
-0.03774254024028778,
0.4060613512992859,
0.5649909377098083,
-0.4504939317703247,
-0.04762635380029678,
-0.2960992455482483,
0.33595284819602966,
-0.15130797028541565,
-0.37270626425743103,
0.004789017140865326,
-0.30248624086380005,
-0.23840539157390594,
-0.18142294883728027,
-0.0765552893280983,
-0.08217759430408478,
-0.06762523949146271,
0.1428401619195938,
0.23612380027770996,
0.057236868888139725,
-0.057526297867298126,
-0.2119334638118744,
-0.17465783655643463,
0.15004190802574158,
-0.08098208159208298,
0.009929029271006584,
0.19040094316005707,
-0.08692821860313416,
-0.2589412033557892,
0.14183521270751953,
0.24337872862815857,
0.19753724336624146,
-0.04818529263138771,
-0.10943226516246796,
0.5192558169364929,
0.22508975863456726,
0.3200554847717285,
-0.07127728313207626,
0.18032224476337433,
0.4056094288825989,
-0.39628866314888,
0.068773053586483,
0.29916343092918396,
0.36406874656677246,
0.06616463512182236,
0.09764343500137329,
-0.1556043177843094,
0.05846736580133438,
0.01752185821533203,
0.09337937831878662,
-0.20543336868286133,
0.2951471507549286,
0.052979808300733566,
0.12817320227622986,
0.010789565742015839,
0.008736401796340942,
0.02350170910358429,
0.22431431710720062,
0.08659087866544724,
-0.5080168843269348,
-0.046907149255275726,
0.7174844741821289,
-0.3568103611469269,
0.06366812437772751,
0.23332732915878296,
-0.09008876234292984,
-0.23458492755889893,
-0.01736939139664173,
0.29102203249931335,
0.44166940450668335,
0.28121665120124817,
0.0822950005531311,
-0.1936488002538681,
-0.17550784349441528,
-0.2229223996400833,
0.3349289000034332,
-0.02949059009552002,
0.1772218495607376,
0.1681317538022995,
-0.15836597979068756,
-0.1689668893814087,
-0.41653862595558167,
0.17067675292491913,
0.08455712348222733,
0.060311295092105865,
-0.3493204116821289,
-0.11934740096330643,
-0.31055155396461487,
-0.012011758983135223,
-0.2595009505748749,
-0.20295818150043488,
-0.05875259265303612,
-0.04843665659427643,
0.3007296323776245,
0.07614605128765106,
-0.2426253706216812,
0.25132840871810913,
0.1496197134256363,
0.22751551866531372,
0.265380859375,
0.32179880142211914,
-0.362066388130188,
0.15920913219451904,
-0.30237796902656555,
0.09787377715110779,
0.010115244425833225,
0.34061199426651,
0.21079637110233307,
-0.3200782239437103,
0.031741656363010406,
-0.056589819490909576,
-0.15039533376693726,
0.09614820033311844,
0.037800081074237823,
0.5034225583076477,
0.013470426201820374,
0.13955606520175934,
0.025721609592437744,
-0.18875113129615784,
0.1473882794380188,
-0.22491216659545898,
-0.38979366421699524,
0.13582387566566467,
0.0936388373374939,
-0.08525840193033218,
-0.47831153869628906,
-0.39288660883903503,
-0.1872396171092987,
-0.11655279994010925,
-0.13838732242584229,
-0.18283186852931976,
0.2891591787338257,
0.1487571746110916,
0.30561158061027527,
0.1580432504415512,
0.03646053373813629,
0.26662740111351013,
-0.5536206960678101,
-0.5931400060653687,
0.3918820023536682,
-0.11631903797388077,
-0.2856922149658203,
-0.07299227267503738,
-0.03358623385429382,
0.34264248609542847,
0.24432113766670227,
0.01105622947216034,
0.03671374171972275,
-0.11921031773090363,
-0.3279459476470947,
-0.057078562676906586,
0.1936565786600113,
0.11177971959114075,
0.08900083601474762,
-0.21653428673744202,
-0.49292775988578796,
0.012797094881534576,
0.1779455542564392,
0.0916186049580574,
0.45926910638809204,
0.24150002002716064,
0.25822651386260986,
0.042873021215200424,
0.33369141817092896,
0.0028446298092603683,
-0.1053825318813324,
0.20010703802108765,
-0.16854648292064667,
0.2778235673904419,
-0.08964625746011734,
0.12168478965759277,
0.47226613759994507,
0.32209569215774536,
-0.2500365972518921,
0.14743547141551971,
0.10183059424161911,
0.08515287935733795,
0.031137406826019287,
0.21985775232315063,
-0.4673644006252289,
0.023951437324285507,
-0.2125750035047531,
-0.06648768484592438,
0.09805488586425781,
-0.0418582558631897,
0.21157070994377136,
0.15189789235591888,
0.1120413988828659,
0.1036868691444397,
-0.15942706167697906,
0.311085969209671,
-0.07041945308446884,
0.024867501109838486,
-0.06929190456867218,
-0.0920424684882164,
0.12495093047618866,
0.15828390419483185,
0.6272163987159729,
-0.1422014683485031,
0.05829012393951416,
0.004479013383388519,
-0.048470012843608856,
0.6187859177589417,
-0.031981587409973145,
0.32825767993927,
-0.030956372618675232,
0.44803011417388916,
0.2874860465526581,
0.08086897432804108,
-0.4645383059978485,
-0.054280832409858704,
-0.016263671219348907,
0.04928532615303993,
-0.3212154805660248,
0.07778474688529968,
0.1473052203655243,
0.15243223309516907,
0.08216804265975952,
-0.00011771265417337418,
-0.28356900811195374,
-0.26074326038360596,
-0.1301037073135376,
-0.2678189277648926,
0.20757503807544708,
0.2752920687198639,
-0.1247798278927803,
-0.4327087998390198,
0.15429028868675232,
-0.272742360830307,
0.15725493431091309,
-0.0439576655626297,
0.4333905279636383,
-0.44317522644996643,
-0.039340436458587646,
0.11204507201910019,
-0.11627960205078125,
0.2282206118106842,
0.11548814177513123,
0.37564823031425476,
0.014233656227588654,
0.08026991039514542,
-0.3931577503681183,
0.23263216018676758,
0.12891046702861786,
-0.2514071762561798,
-0.1255403459072113,
0.244159534573555,
0.27804821729660034,
-0.3591398298740387,
0.19251017272472382,
0.4338487982749939,
0.12140170484781265,
0.06567292660474777,
-0.13827574253082275,
0.2610515058040619,
-0.05020090192556381,
-0.03146975114941597,
0.47116076946258545,
0.22867555916309357,
-0.40996697545051575,
-0.014121797867119312,
-0.15337172150611877,
0.8211248517036438,
0.33195459842681885,
0.061423029750585556,
0.25336983799934387,
-0.35167813301086426,
-0.13029754161834717,
0.02762080729007721,
0.21209926903247833,
0.15755648910999298,
0.03884181007742882,
-0.12788674235343933,
-0.17729158699512482,
0.08901532739400864,
0.27438732981681824,
-0.2974207401275635,
0.1903182715177536,
0.01317044347524643,
0.3833428621292114,
0.10936599224805832,
-0.3693387806415558,
-0.13707853853702545,
0.1012650728225708,
0.04969147592782974,
0.1037558764219284,
-0.0685039609670639,
0.01043824851512909,
-0.01289554126560688,
-0.2381439059972763,
-0.45425713062286377,
-0.3346583843231201,
-0.17302891612052917,
-0.12554937601089478,
-0.3207044303417206,
0.0004840027540922165,
0.24055570363998413,
-0.07185931503772736,
-0.20341253280639648,
-0.00831640511751175,
0.037149786949157715,
0.33946600556373596,
-0.2143353521823883,
0.3209940791130066,
-0.04634343087673187,
0.3422294855117798,
0.07231514155864716,
0.19115185737609863,
0.06939397007226944,
-0.07618536055088043,
-0.3862167298793793,
0.15779715776443481,
-0.03901077061891556,
-0.16923201084136963,
0.1529090404510498,
-0.26707589626312256,
-0.29283326864242554,
0.16921083629131317,
-0.38511744141578674,
-0.06525139510631561,
-0.04661912843585014,
-0.1370796263217926,
0.1873214691877365,
0.16154678165912628,
-0.6162571310997009,
0.1068410873413086,
0.0900367945432663,
-0.1735628843307495,
-0.1463788002729416,
0.21460987627506256,
-0.1267862617969513,
-0.013042805716395378,
0.1967601627111435,
-0.4020272195339203,
-0.07269847393035889,
-0.27846384048461914,
0.39751318097114563,
-0.27410632371902466,
-0.1403990089893341,
0.06763101369142532,
0.022556671872735023,
-0.08371126651763916,
-0.09603424370288849,
-0.13898588716983795,
-0.18184760212898254,
0.16058018803596497,
-0.19111956655979156,
-0.2765192985534668,
-0.438419908285141,
0.24428348243236542,
-0.14051714539527893,
0.3602712154388428,
-0.18964353203773499,
-0.14986467361450195,
0.1483738124370575,
-0.42851704359054565,
-0.3287044167518616,
0.07249334454536438,
-0.3279467523097992,
0.17426371574401855,
-0.028065890073776245,
0.03257908672094345,
-0.05012422427535057,
-0.11917583644390106,
0.23497286438941956,
-0.01589937135577202,
-0.0980425700545311,
-0.1543506681919098,
-0.0983269065618515,
0.15593548119068146,
0.025367697700858116,
0.08268976956605911,
0.06275441497564316,
0.09674583375453949,
-0.3873788118362427,
0.05574606731534004,
0.00838087685406208,
-0.18331637978553772,
-0.11351044476032257,
0.13837353885173798,
-0.13346879184246063,
-0.022896505892276764,
0.24470920860767365,
-0.1705358922481537,
-0.16968944668769836,
0.24309180676937103,
-0.15398256480693817,
0.05113519728183746,
0.22645559906959534,
-0.2627275288105011,
0.06900209933519363,
0.13524991273880005,
-0.4435829520225525,
-0.27014511823654175,
0.46872425079345703,
-0.2736535668373108,
0.24129948019981384,
0.09248258173465729,
0.3302566707134247,
0.02467622607946396,
-0.21011210978031158,
-0.1736401468515396,
0.026473185047507286,
0.3368951380252838,
-0.17284567654132843,
-0.06230008974671364,
-0.2063562124967575,
-0.04365628957748413,
0.05324828252196312,
0.1541096717119217,
0.0032668225467205048,
-0.18972888588905334,
0.024420499801635742,
-0.005826350301504135,
0.2279115915298462,
-0.27281463146209717,
0.08662663400173187,
0.5022061467170715,
-0.30236345529556274,
0.22427569329738617,
-0.1316482424736023,
0.06510256230831146,
0.17428964376449585,
0.6583148241043091,
-0.2571735084056854,
0.40189671516418457,
0.16794374585151672,
-0.09127850830554962,
0.2286224663257599,
-0.010046204552054405,
-0.3530046045780182,
0.2208089530467987,
-0.15050429105758667,
0.2841044068336487,
0.16492971777915955,
0.07923641055822372,
-0.15742535889148712,
0.03939330577850342,
0.013515518978238106,
-0.04986649379134178,
-0.14403420686721802,
-0.06265367567539215,
-0.18762671947479248,
-0.13331124186515808,
-0.2269226610660553,
-0.22501251101493835,
0.2596230208873749,
0.34438836574554443,
-0.035999760031700134,
0.02122310921549797,
-0.10448995232582092,
0.07547004520893097,
0.03501882776618004,
-0.032073408365249634,
0.020140886306762695,
-0.31573110818862915,
0.23293448984622955,
0.21933384239673615,
-0.057305708527565,
0.5830122828483582,
0.21400639414787292,
0.44460055232048035,
0.24533802270889282,
-0.24597936868667603,
0.19859954714775085,
-0.01990179345011711,
-0.25358471274375916,
-0.08911637216806412,
0.3795185685157776,
0.10687027871608734,
0.2991671562194824,
0.08491750061511993,
0.1479969620704651,
-0.1457545906305313,
0.07526284456253052,
0.3504003882408142,
0.12468251585960388,
-0.1331399530172348,
0.054512057453393936,
-0.6205865144729614,
-0.08284240961074829,
-0.22413504123687744,
-0.22099438309669495,
-0.5507252812385559,
-0.0810595154762268,
0.02566802315413952,
-0.20661790668964386,
0.17018145322799683,
0.09336075186729431,
0.07383710145950317,
-0.23421433568000793,
0.1932225078344345,
0.16712671518325806,
0.10721628367900848,
0.02311461605131626,
-0.2735792398452759,
-0.5983046889305115,
-0.03373917192220688,
0.2093004286289215,
-0.023604746907949448,
-0.10232755541801453,
-0.12539424002170563,
0.1453009843826294,
-0.04593530297279358,
0.4645295739173889,
-0.006530748680233955,
0.14381399750709534,
0.09278304129838943,
-0.25100889801979065,
-0.11048725247383118,
0.10201209783554077,
0.23601774871349335,
-0.2222333401441574,
-0.5313566327095032,
0.10128911584615707,
-0.15150973200798035,
0.12326406687498093,
0.06304347515106201,
0.3486153483390808,
-0.444472998380661,
-0.13292507827281952,
0.17358212172985077,
0.2311120629310608,
0.11838672310113907,
-0.43635261058807373,
0.1964225471019745,
0.19695140421390533,
0.09318243712186813,
0.060963112860918045,
-0.2578039765357971,
0.02905801683664322,
0.605736494064331,
0.055148251354694366,
0.011677002534270287,
-0.20401440560817719,
0.0942145586013794,
-0.03535234555602074,
-0.07106020301580429,
-0.3228534162044525,
0.4683411717414856,
-0.5359659790992737,
-0.08563470840454102,
0.18196408450603485,
-0.49365538358688354,
-0.30768895149230957,
0.043774642050266266,
-0.2705669105052948,
-0.37087464332580566,
0.4424045979976654,
0.014837975613772869,
-0.2772376835346222,
-0.2721850872039795,
0.2854769825935364,
0.2231404185295105,
0.27874505519866943,
-0.6344666481018066,
0.1173185482621193,
0.30275821685791016,
-0.04710925370454788,
-0.12373441457748413,
0.13976255059242249,
-0.006140517070889473,
-0.09843631088733673,
0.19621044397354126,
0.23284360766410828,
0.20752912759780884,
0.01309007965028286,
0.08444729447364807,
-0.38992178440093994
] |
https://github.com/huggingface/datasets/issues/4323 | Audio can not find value["bytes"] | You can clone the repository (see the guide on [how to contribute](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-create-a-pull-request)) and see how we can make the `Image.encode_example` method work with PCM data.
There might be other ways to approach this problem, but here is what I think is a reasonable one:
I think `Image.encode_example` should be able to take PCM bytes as input and the sampling rate, and return the WAV bytes (built by combining the PCM bytes and the sampling rate info), so that `Image.decode_example` can read it.
To check if the input bytes are PCM data, you can just check if the extension of the `path` is ".pcm".
| ## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
| 103 | Audio can not find value["bytes"]
## Describe the bug
I wrote down _generate_examples like:

but where is the bytes?

## Expected results
value["bytes"] is not None, so i can make datasets with bytes, not path
## bytes looks like:
blah blah~~
\xfe\x03\x00\xfb\x06\x1c\x0bo\x074\x03\xaf\x01\x13\x04\xbc\x06\x8c\x05y\x05,\t7\x08\xaf\x03\xc0\xfe\xe8\xfc\x94\xfe\xb7\xfd\xea\xfa\xd5\xf9$\xf9>\xf9\x1f\xf8\r\xf5F\xf49\xf4\xda\xf5-\xf8\n\xf8k\xf8\x07\xfb\x18\xfd\xd9\xfdv\xfd"\xfe\xcc\x01\x1c\x04\x08\x04@\x04{\x06^\tf\t\x1e\x07\x8b\x06\x02\x08\x13\t\x07\x08 \x06g\x06"\x06\xa0\x03\xc6\x002\xff \xff\x1d\xff\x19\xfd?\xfb\xdb\xfa\xfc\xfa$\xfb}\xf9\xe5\xf7\xf9\xf7\xce\xf8.\xf9b\xf9\xc5\xf9\xc0\xfb\xfa\xfcP\xfc\xba\xfbQ\xfc1\xfe\x9f\xff\x12\x00\xa2\x00\x18\x02Z\x03\x02\x04\xb1\x03\xc5\x03W\x04\x82\x04\x8f\x04U\x04\xb6\x04\x10\x05{\x04\x83\x02\x17\x01\x1d\x00\xa0\xff\xec\xfe\x03\xfe#\xfe\xc2\xfe2\xff\xe6\xfe\x9a\xfe~\x01\x91\x08\xb3\tU\x05\x10\x024\x02\xe4\x05\xa8\x07\xa7\x053\x07I\n\x91\x07v\x02\x95\xfd\xbb\xfd\x96\xff\x01\xfe\x1e\xfb\xbb\xf9S\xf8!\xf8\xf4\xf5\xd6\xf3\xf7\xf3l\xf4d\xf6l\xf7d\xf6b\xf7\xc1\xfa(\xfd\xcf\xfd*\xfdq\xfe\xe9\x01\xa8\x03t\x03\x17\x04B\x07\xce\t\t\t\xeb\x06\x0c\x07\x95\x08\x92\t\xbc\x07O\x06\xfb\x06\xd2\x06U\x04\x00\x02\x92\x00\xdc\x00\x84\x00 \xfeT\xfc\xf1\xfb\x82\xfc\x97\xfb}\xf9\x00\xf8_\xf8\x0b\xf9\xe5\xf8\xe2\xf7\xaa\xf8\xb2\xfa\x10\xfbl\xfa\xf5\xf9Y\xfb\xc0\xfd\xe8\xfe\xec\xfe1\x00\xad\x01\xec\x02E\x03\x13\x03\x9b\x03o\x04\xce\x04\xa8\x04\xb2\x04\x1b\x05\xc0\x05\xd2\x04\xe8\x02z\x01\xbe\x00\xae\x00\x07\x00$\xff|\xff\x8e\x00\x13\x00\x10\xff\x98\xff0\x05{\x0b\x05\t\xaa\x03\x82\x01n\x03
blah blah~~
that function not return None
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:2.2.1
- Platform:ubuntu 18.04
- Python version:3.6.9
- PyArrow version:6.0.1
You can clone the repository (see the guide on [how to contribute](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-create-a-pull-request)) and see how we can make the `Image.encode_example` method work with PCM data.
There might be other ways to approach this problem, but here is what I think is a reasonable one:
I think `Image.encode_example` should be able to take PCM bytes as input and the sampling rate, and return the WAV bytes (built by combining the PCM bytes and the sampling rate info), so that `Image.decode_example` can read it.
To check if the input bytes are PCM data, you can just check if the extension of the `path` is ".pcm".
| [
-0.13980552554130554,
-0.2254793643951416,
-0.17552484571933746,
0.2904757857322693,
0.4382437467575073,
-0.20853981375694275,
0.1709819734096527,
0.20187847316265106,
-0.4539523720741272,
0.7961021661758423,
0.12657104432582855,
0.1679459810256958,
-0.25194692611694336,
-0.27644217014312744,
-0.005841073580086231,
0.029939111322164536,
0.18055085837841034,
0.3859480023384094,
0.1716855764389038,
-0.23299162089824677,
-0.23089660704135895,
0.18397201597690582,
-0.4147663116455078,
-0.006679236888885498,
-0.4576643109321594,
0.012213291600346565,
-0.08092332631349564,
0.1514478325843811,
-0.2385084182024002,
-0.04986565187573433,
-0.047049473971128464,
-0.1703314334154129,
-0.24010463058948517,
0.36235642433166504,
-0.00011066118167946115,
-0.06352268904447556,
0.5729212164878845,
-0.12337545305490494,
-0.09491778910160065,
-0.25794798135757446,
-0.46497026085853577,
0.38277798891067505,
-0.7173598408699036,
-0.18148678541183472,
0.01054774597287178,
0.09037421643733978,
0.08895985037088394,
-0.46046262979507446,
0.20740923285484314,
0.3887069523334503,
0.17762024700641632,
-0.004834441468119621,
0.09647545218467712,
0.16818846762180328,
0.7133271098136902,
0.5572836995124817,
0.15282025933265686,
-0.06439098715782166,
0.20231512188911438,
0.29263946413993835,
0.36074355244636536,
0.22046811878681183,
0.04418247938156128,
0.025097060948610306,
-0.09374453872442245,
0.28908082842826843,
-0.36592569947242737,
-0.29419246315956116,
0.36188340187072754,
0.3123592138290405,
0.2061540186405182,
-0.05930250138044357,
-0.305771142244339,
0.09784684330224991,
-0.12371421605348587,
-0.5246524214744568,
0.3349509835243225,
0.4230276644229889,
-0.34027332067489624,
0.08681085705757141,
-0.30921831727027893,
-0.007179870270192623,
-0.22221319377422333,
0.3084675073623657,
0.06262870132923126,
0.14478349685668945,
-0.25596386194229126,
-0.00656147301197052,
0.14011316001415253,
-0.02601553499698639,
0.025361720472574234,
0.13834024965763092,
-0.18144197762012482,
0.17712250351905823,
-0.09962278604507446,
-0.1132991760969162,
-0.015963315963745117,
-0.046562813222408295,
0.13364222645759583,
-0.33863264322280884,
0.15062715113162994,
-0.10148676484823227,
-0.09789306670427322,
0.4705928564071655,
-0.012110963463783264,
-0.3720155656337738,
-0.11398007720708847,
-0.001129710115492344,
0.32486623525619507,
0.1250336468219757,
0.11891047656536102,
-0.12126759439706802,
-0.11218911409378052,
-0.08412844687700272,
0.07399545609951019,
0.04048307240009308,
0.15860773622989655,
-0.19897358119487762,
-0.4156654477119446,
0.11727310717105865,
-0.27462777495384216,
0.16357244551181793,
0.09248507767915726,
0.3844148516654968,
0.3813604414463043,
0.045761335641145706,
0.014453910291194916,
0.21868005394935608,
0.04389189928770065,
-0.10501901060342789,
-0.16897553205490112,
0.14763720333576202,
-0.06233687326312065,
-0.14137862622737885,
0.19777382910251617,
0.4867473840713501,
0.4207164943218231,
0.11407165974378586,
0.22526335716247559,
-0.3817353844642639,
0.06374955177307129,
-0.13180574774742126,
0.05748060718178749,
0.3131122887134552,
-0.3246082365512848,
0.09103889018297195,
-0.4150606691837311,
0.2755082845687866,
0.042852528393268585,
0.5830186009407043,
-0.12467063218355179,
0.21572794020175934,
0.06112661212682724,
0.24478942155838013,
0.0007995236665010452,
0.19680845737457275,
0.025425732135772705,
0.1558559685945511,
0.19116473197937012,
-0.2752375900745392,
0.1690707504749298,
0.01242874562740326,
-0.36245468258857727,
-0.08798979967832565,
0.2883475124835968,
-0.19857220351696014,
-0.1341131031513214,
-0.18390196561813354,
-0.22755666077136993,
0.18588192760944366,
0.4060494899749756,
0.11702227592468262,
0.05679255351424217,
0.12152262032032013,
-0.21697501838207245,
0.35436904430389404,
0.3793076276779175,
-0.31074461340904236,
-0.28011617064476013,
0.020829185843467712,
0.040353305637836456,
-0.32968446612358093,
0.4106360673904419,
0.08374331146478653,
0.1904640942811966,
-0.1544223129749298,
0.3303215503692627,
0.08839917927980423,
-0.20152553915977478,
0.02398526854813099,
-0.037114277482032776,
-0.20241138339042664,
0.0011355020105838776,
-0.06908200681209564,
-0.02389543130993843,
-0.16356414556503296,
0.11496587842702866,
-0.010450860485434532,
0.14632375538349152,
-0.24598395824432373,
-0.03774254024028778,
0.4060613512992859,
0.5649909377098083,
-0.4504939317703247,
-0.04762635380029678,
-0.2960992455482483,
0.33595284819602966,
-0.15130797028541565,
-0.37270626425743103,
0.004789017140865326,
-0.30248624086380005,
-0.23840539157390594,
-0.18142294883728027,
-0.0765552893280983,
-0.08217759430408478,
-0.06762523949146271,
0.1428401619195938,
0.23612380027770996,
0.057236868888139725,
-0.057526297867298126,
-0.2119334638118744,
-0.17465783655643463,
0.15004190802574158,
-0.08098208159208298,
0.009929029271006584,
0.19040094316005707,
-0.08692821860313416,
-0.2589412033557892,
0.14183521270751953,
0.24337872862815857,
0.19753724336624146,
-0.04818529263138771,
-0.10943226516246796,
0.5192558169364929,
0.22508975863456726,
0.3200554847717285,
-0.07127728313207626,
0.18032224476337433,
0.4056094288825989,
-0.39628866314888,
0.068773053586483,
0.29916343092918396,
0.36406874656677246,
0.06616463512182236,
0.09764343500137329,
-0.1556043177843094,
0.05846736580133438,
0.01752185821533203,
0.09337937831878662,
-0.20543336868286133,
0.2951471507549286,
0.052979808300733566,
0.12817320227622986,
0.010789565742015839,
0.008736401796340942,
0.02350170910358429,
0.22431431710720062,
0.08659087866544724,
-0.5080168843269348,
-0.046907149255275726,
0.7174844741821289,
-0.3568103611469269,
0.06366812437772751,
0.23332732915878296,
-0.09008876234292984,
-0.23458492755889893,
-0.01736939139664173,
0.29102203249931335,
0.44166940450668335,
0.28121665120124817,
0.0822950005531311,
-0.1936488002538681,
-0.17550784349441528,
-0.2229223996400833,
0.3349289000034332,
-0.02949059009552002,
0.1772218495607376,
0.1681317538022995,
-0.15836597979068756,
-0.1689668893814087,
-0.41653862595558167,
0.17067675292491913,
0.08455712348222733,
0.060311295092105865,
-0.3493204116821289,
-0.11934740096330643,
-0.31055155396461487,
-0.012011758983135223,
-0.2595009505748749,
-0.20295818150043488,
-0.05875259265303612,
-0.04843665659427643,
0.3007296323776245,
0.07614605128765106,
-0.2426253706216812,
0.25132840871810913,
0.1496197134256363,
0.22751551866531372,
0.265380859375,
0.32179880142211914,
-0.362066388130188,
0.15920913219451904,
-0.30237796902656555,
0.09787377715110779,
0.010115244425833225,
0.34061199426651,
0.21079637110233307,
-0.3200782239437103,
0.031741656363010406,
-0.056589819490909576,
-0.15039533376693726,
0.09614820033311844,
0.037800081074237823,
0.5034225583076477,
0.013470426201820374,
0.13955606520175934,
0.025721609592437744,
-0.18875113129615784,
0.1473882794380188,
-0.22491216659545898,
-0.38979366421699524,
0.13582387566566467,
0.0936388373374939,
-0.08525840193033218,
-0.47831153869628906,
-0.39288660883903503,
-0.1872396171092987,
-0.11655279994010925,
-0.13838732242584229,
-0.18283186852931976,
0.2891591787338257,
0.1487571746110916,
0.30561158061027527,
0.1580432504415512,
0.03646053373813629,
0.26662740111351013,
-0.5536206960678101,
-0.5931400060653687,
0.3918820023536682,
-0.11631903797388077,
-0.2856922149658203,
-0.07299227267503738,
-0.03358623385429382,
0.34264248609542847,
0.24432113766670227,
0.01105622947216034,
0.03671374171972275,
-0.11921031773090363,
-0.3279459476470947,
-0.057078562676906586,
0.1936565786600113,
0.11177971959114075,
0.08900083601474762,
-0.21653428673744202,
-0.49292775988578796,
0.012797094881534576,
0.1779455542564392,
0.0916186049580574,
0.45926910638809204,
0.24150002002716064,
0.25822651386260986,
0.042873021215200424,
0.33369141817092896,
0.0028446298092603683,
-0.1053825318813324,
0.20010703802108765,
-0.16854648292064667,
0.2778235673904419,
-0.08964625746011734,
0.12168478965759277,
0.47226613759994507,
0.32209569215774536,
-0.2500365972518921,
0.14743547141551971,
0.10183059424161911,
0.08515287935733795,
0.031137406826019287,
0.21985775232315063,
-0.4673644006252289,
0.023951437324285507,
-0.2125750035047531,
-0.06648768484592438,
0.09805488586425781,
-0.0418582558631897,
0.21157070994377136,
0.15189789235591888,
0.1120413988828659,
0.1036868691444397,
-0.15942706167697906,
0.311085969209671,
-0.07041945308446884,
0.024867501109838486,
-0.06929190456867218,
-0.0920424684882164,
0.12495093047618866,
0.15828390419483185,
0.6272163987159729,
-0.1422014683485031,
0.05829012393951416,
0.004479013383388519,
-0.048470012843608856,
0.6187859177589417,
-0.031981587409973145,
0.32825767993927,
-0.030956372618675232,
0.44803011417388916,
0.2874860465526581,
0.08086897432804108,
-0.4645383059978485,
-0.054280832409858704,
-0.016263671219348907,
0.04928532615303993,
-0.3212154805660248,
0.07778474688529968,
0.1473052203655243,
0.15243223309516907,
0.08216804265975952,
-0.00011771265417337418,
-0.28356900811195374,
-0.26074326038360596,
-0.1301037073135376,
-0.2678189277648926,
0.20757503807544708,
0.2752920687198639,
-0.1247798278927803,
-0.4327087998390198,
0.15429028868675232,
-0.272742360830307,
0.15725493431091309,
-0.0439576655626297,
0.4333905279636383,
-0.44317522644996643,
-0.039340436458587646,
0.11204507201910019,
-0.11627960205078125,
0.2282206118106842,
0.11548814177513123,
0.37564823031425476,
0.014233656227588654,
0.08026991039514542,
-0.3931577503681183,
0.23263216018676758,
0.12891046702861786,
-0.2514071762561798,
-0.1255403459072113,
0.244159534573555,
0.27804821729660034,
-0.3591398298740387,
0.19251017272472382,
0.4338487982749939,
0.12140170484781265,
0.06567292660474777,
-0.13827574253082275,
0.2610515058040619,
-0.05020090192556381,
-0.03146975114941597,
0.47116076946258545,
0.22867555916309357,
-0.40996697545051575,
-0.014121797867119312,
-0.15337172150611877,
0.8211248517036438,
0.33195459842681885,
0.061423029750585556,
0.25336983799934387,
-0.35167813301086426,
-0.13029754161834717,
0.02762080729007721,
0.21209926903247833,
0.15755648910999298,
0.03884181007742882,
-0.12788674235343933,
-0.17729158699512482,
0.08901532739400864,
0.27438732981681824,
-0.2974207401275635,
0.1903182715177536,
0.01317044347524643,
0.3833428621292114,
0.10936599224805832,
-0.3693387806415558,
-0.13707853853702545,
0.1012650728225708,
0.04969147592782974,
0.1037558764219284,
-0.0685039609670639,
0.01043824851512909,
-0.01289554126560688,
-0.2381439059972763,
-0.45425713062286377,
-0.3346583843231201,
-0.17302891612052917,
-0.12554937601089478,
-0.3207044303417206,
0.0004840027540922165,
0.24055570363998413,
-0.07185931503772736,
-0.20341253280639648,
-0.00831640511751175,
0.037149786949157715,
0.33946600556373596,
-0.2143353521823883,
0.3209940791130066,
-0.04634343087673187,
0.3422294855117798,
0.07231514155864716,
0.19115185737609863,
0.06939397007226944,
-0.07618536055088043,
-0.3862167298793793,
0.15779715776443481,
-0.03901077061891556,
-0.16923201084136963,
0.1529090404510498,
-0.26707589626312256,
-0.29283326864242554,
0.16921083629131317,
-0.38511744141578674,
-0.06525139510631561,
-0.04661912843585014,
-0.1370796263217926,
0.1873214691877365,
0.16154678165912628,
-0.6162571310997009,
0.1068410873413086,
0.0900367945432663,
-0.1735628843307495,
-0.1463788002729416,
0.21460987627506256,
-0.1267862617969513,
-0.013042805716395378,
0.1967601627111435,
-0.4020272195339203,
-0.07269847393035889,
-0.27846384048461914,
0.39751318097114563,
-0.27410632371902466,
-0.1403990089893341,
0.06763101369142532,
0.022556671872735023,
-0.08371126651763916,
-0.09603424370288849,
-0.13898588716983795,
-0.18184760212898254,
0.16058018803596497,
-0.19111956655979156,
-0.2765192985534668,
-0.438419908285141,
0.24428348243236542,
-0.14051714539527893,
0.3602712154388428,
-0.18964353203773499,
-0.14986467361450195,
0.1483738124370575,
-0.42851704359054565,
-0.3287044167518616,
0.07249334454536438,
-0.3279467523097992,
0.17426371574401855,
-0.028065890073776245,
0.03257908672094345,
-0.05012422427535057,
-0.11917583644390106,
0.23497286438941956,
-0.01589937135577202,
-0.0980425700545311,
-0.1543506681919098,
-0.0983269065618515,
0.15593548119068146,
0.025367697700858116,
0.08268976956605911,
0.06275441497564316,
0.09674583375453949,
-0.3873788118362427,
0.05574606731534004,
0.00838087685406208,
-0.18331637978553772,
-0.11351044476032257,
0.13837353885173798,
-0.13346879184246063,
-0.022896505892276764,
0.24470920860767365,
-0.1705358922481537,
-0.16968944668769836,
0.24309180676937103,
-0.15398256480693817,
0.05113519728183746,
0.22645559906959534,
-0.2627275288105011,
0.06900209933519363,
0.13524991273880005,
-0.4435829520225525,
-0.27014511823654175,
0.46872425079345703,
-0.2736535668373108,
0.24129948019981384,
0.09248258173465729,
0.3302566707134247,
0.02467622607946396,
-0.21011210978031158,
-0.1736401468515396,
0.026473185047507286,
0.3368951380252838,
-0.17284567654132843,
-0.06230008974671364,
-0.2063562124967575,
-0.04365628957748413,
0.05324828252196312,
0.1541096717119217,
0.0032668225467205048,
-0.18972888588905334,
0.024420499801635742,
-0.005826350301504135,
0.2279115915298462,
-0.27281463146209717,
0.08662663400173187,
0.5022061467170715,
-0.30236345529556274,
0.22427569329738617,
-0.1316482424736023,
0.06510256230831146,
0.17428964376449585,
0.6583148241043091,
-0.2571735084056854,
0.40189671516418457,
0.16794374585151672,
-0.09127850830554962,
0.2286224663257599,
-0.010046204552054405,
-0.3530046045780182,
0.2208089530467987,
-0.15050429105758667,
0.2841044068336487,
0.16492971777915955,
0.07923641055822372,
-0.15742535889148712,
0.03939330577850342,
0.013515518978238106,
-0.04986649379134178,
-0.14403420686721802,
-0.06265367567539215,
-0.18762671947479248,
-0.13331124186515808,
-0.2269226610660553,
-0.22501251101493835,
0.2596230208873749,
0.34438836574554443,
-0.035999760031700134,
0.02122310921549797,
-0.10448995232582092,
0.07547004520893097,
0.03501882776618004,
-0.032073408365249634,
0.020140886306762695,
-0.31573110818862915,
0.23293448984622955,
0.21933384239673615,
-0.057305708527565,
0.5830122828483582,
0.21400639414787292,
0.44460055232048035,
0.24533802270889282,
-0.24597936868667603,
0.19859954714775085,
-0.01990179345011711,
-0.25358471274375916,
-0.08911637216806412,
0.3795185685157776,
0.10687027871608734,
0.2991671562194824,
0.08491750061511993,
0.1479969620704651,
-0.1457545906305313,
0.07526284456253052,
0.3504003882408142,
0.12468251585960388,
-0.1331399530172348,
0.054512057453393936,
-0.6205865144729614,
-0.08284240961074829,
-0.22413504123687744,
-0.22099438309669495,
-0.5507252812385559,
-0.0810595154762268,
0.02566802315413952,
-0.20661790668964386,
0.17018145322799683,
0.09336075186729431,
0.07383710145950317,
-0.23421433568000793,
0.1932225078344345,
0.16712671518325806,
0.10721628367900848,
0.02311461605131626,
-0.2735792398452759,
-0.5983046889305115,
-0.03373917192220688,
0.2093004286289215,
-0.023604746907949448,
-0.10232755541801453,
-0.12539424002170563,
0.1453009843826294,
-0.04593530297279358,
0.4645295739173889,
-0.006530748680233955,
0.14381399750709534,
0.09278304129838943,
-0.25100889801979065,
-0.11048725247383118,
0.10201209783554077,
0.23601774871349335,
-0.2222333401441574,
-0.5313566327095032,
0.10128911584615707,
-0.15150973200798035,
0.12326406687498093,
0.06304347515106201,
0.3486153483390808,
-0.444472998380661,
-0.13292507827281952,
0.17358212172985077,
0.2311120629310608,
0.11838672310113907,
-0.43635261058807373,
0.1964225471019745,
0.19695140421390533,
0.09318243712186813,
0.060963112860918045,
-0.2578039765357971,
0.02905801683664322,
0.605736494064331,
0.055148251354694366,
0.011677002534270287,
-0.20401440560817719,
0.0942145586013794,
-0.03535234555602074,
-0.07106020301580429,
-0.3228534162044525,
0.4683411717414856,
-0.5359659790992737,
-0.08563470840454102,
0.18196408450603485,
-0.49365538358688354,
-0.30768895149230957,
0.043774642050266266,
-0.2705669105052948,
-0.37087464332580566,
0.4424045979976654,
0.014837975613772869,
-0.2772376835346222,
-0.2721850872039795,
0.2854769825935364,
0.2231404185295105,
0.27874505519866943,
-0.6344666481018066,
0.1173185482621193,
0.30275821685791016,
-0.04710925370454788,
-0.12373441457748413,
0.13976255059242249,
-0.006140517070889473,
-0.09843631088733673,
0.19621044397354126,
0.23284360766410828,
0.20752912759780884,
0.01309007965028286,
0.08444729447364807,
-0.38992178440093994
] |
https://github.com/huggingface/datasets/issues/4320 | Multi-news dataset loader attempts to strip wrong character from beginning of summaries | Hi ! Thanks for reporting :)
This dataset was simply converted from [tensorflow datasets](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/summarization/multi_news.py)
I think we can just remove the `.strip("- ")` and keep this character | ## Describe the bug
The `multi_news.py` data loader has [a line which attempts to strip `"- "` from the beginning of summaries](https://github.com/huggingface/datasets/blob/aa743886221d76afb409d263e1b136e7a71fe2b4/datasets/multi_news/multi_news.py#L97). The actual character in the multi-news dataset, however, is `"– "`, which is different, e.g. `"– " != "- "`.
I would have just opened a PR to fix the mistake, but I am wondering what the motivation for stripping this character is? AFAICT most approaches just leave it in, e.g. the current SOTA on this dataset, [PRIMERA](https://huggingface.co/allenai/PRIMERA-multinews) (you can see its in the generated summaries of the model in their [example notebook](https://github.com/allenai/PRIMER/blob/main/Evaluation_Example.ipynb)).
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 27 | Multi-news dataset loader attempts to strip wrong character from beginning of summaries
## Describe the bug
The `multi_news.py` data loader has [a line which attempts to strip `"- "` from the beginning of summaries](https://github.com/huggingface/datasets/blob/aa743886221d76afb409d263e1b136e7a71fe2b4/datasets/multi_news/multi_news.py#L97). The actual character in the multi-news dataset, however, is `"– "`, which is different, e.g. `"– " != "- "`.
I would have just opened a PR to fix the mistake, but I am wondering what the motivation for stripping this character is? AFAICT most approaches just leave it in, e.g. the current SOTA on this dataset, [PRIMERA](https://huggingface.co/allenai/PRIMERA-multinews) (you can see its in the generated summaries of the model in their [example notebook](https://github.com/allenai/PRIMER/blob/main/Evaluation_Example.ipynb)).
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.2.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Hi ! Thanks for reporting :)
This dataset was simply converted from [tensorflow datasets](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/summarization/multi_news.py)
I think we can just remove the `.strip("- ")` and keep this character | [
0.019541185349225998,
-0.05293385684490204,
0.06414413452148438,
0.1797841340303421,
0.3484721779823303,
-0.015396974980831146,
0.4901682436466217,
0.30518457293510437,
-0.21673496067523956,
0.280241459608078,
-0.10921745747327805,
0.30264967679977417,
0.15335670113563538,
0.058200038969516754,
-0.0363055095076561,
-0.2292674481868744,
-0.051638685166835785,
0.2947325110435486,
0.08949398994445801,
-0.2831149101257324,
-0.04291538894176483,
0.08104579150676727,
0.036936089396476746,
0.30848264694213867,
-0.16007991135120392,
0.1259452998638153,
0.136808842420578,
-0.07128960639238358,
0.08203970640897751,
-0.10151057690382004,
0.08328823745250702,
-0.013166282325983047,
0.04006430134177208,
0.3723258376121521,
-0.0001238000113517046,
-0.09474758058786392,
0.154793381690979,
0.010943671688437462,
-0.19729898869991302,
-0.4018115997314453,
-0.11490537971258163,
-0.28295591473579407,
0.10996059328317642,
-0.12096884101629257,
0.26547643542289734,
0.04773639887571335,
-0.2576746642589569,
-0.26711559295654297,
0.41771823167800903,
0.3607163727283478,
0.0580579899251461,
0.14734575152397156,
-0.40674889087677,
0.1662873774766922,
-0.20219191908836365,
0.05109352245926857,
-0.08958639204502106,
0.03670197352766991,
-0.27577072381973267,
-0.20304471254348755,
0.04038276895880699,
0.27895230054855347,
-0.025182880461215973,
0.2034919708967209,
-0.2720300555229187,
0.06738947331905365,
0.08705957978963852,
0.1228795126080513,
0.18497595191001892,
0.516242504119873,
0.2715408205986023,
-0.2605920135974884,
-0.212575301527977,
-0.20957988500595093,
0.034899041056632996,
0.030918018892407417,
0.41833147406578064,
0.2934047281742096,
-0.22447192668914795,
0.3863595724105835,
-0.11981938779354095,
0.08680944889783859,
-0.06136855483055115,
0.18109148740768433,
-0.27623310685157776,
0.23069849610328674,
-0.009176802821457386,
0.23554545640945435,
0.2093767523765564,
0.16468125581741333,
-0.017916705459356308,
-0.20810379087924957,
-0.23014971613883972,
0.0532061830163002,
-0.17478543519973755,
0.04336327314376831,
-0.1284562647342682,
-0.3048569858074188,
-0.18543896079063416,
-0.19887873530387878,
-0.031845781952142715,
0.13356490433216095,
-0.22460006177425385,
-0.03822004795074463,
0.42670804262161255,
-0.06297159194946289,
0.14862552285194397,
0.27483659982681274,
0.4682929515838623,
0.19357672333717346,
0.26014092564582825,
-0.14253169298171997,
0.27769118547439575,
0.15413306653499603,
-0.055713266134262085,
0.025780145078897476,
0.13684628903865814,
-0.1464303880929947,
-0.4439544677734375,
0.12109208852052689,
-0.24674832820892334,
-0.32716524600982666,
0.049259837716817856,
-0.045564062893390656,
0.183973029255867,
0.6028274893760681,
-0.00708109512925148,
0.29008519649505615,
-0.13727599382400513,
0.22583889961242676,
-0.1551448404788971,
-0.05129130557179451,
-0.18155214190483093,
-0.006685350090265274,
0.08983299136161804,
0.1758611500263214,
0.025302400812506676,
-0.07987997680902481,
-0.02622220665216446,
-0.007364675402641296,
-0.08944790810346603,
-0.25898054242134094,
0.015463747084140778,
0.5080063343048096,
-0.22507156431674957,
0.41037261486053467,
0.1271856278181076,
-0.2788313031196594,
-0.057274676859378815,
0.1870408058166504,
-0.12789320945739746,
-0.11702458560466766,
-0.22527272999286652,
0.07797613739967346,
-0.08373720943927765,
0.15851476788520813,
-0.41683247685432434,
-0.06542520225048065,
0.2874968945980072,
0.10046814382076263,
0.39630958437919617,
-0.14727991819381714,
-0.24291682243347168,
0.043743085116147995,
-0.033679526299238205,
0.13834282755851746,
-0.3171060085296631,
-0.2165360301733017,
-0.16926224529743195,
-0.29557567834854126,
0.4233134686946869,
0.1070248931646347,
-0.23820380866527557,
0.15715861320495605,
-0.008167199790477753,
0.21898071467876434,
0.063076913356781,
-0.17998471856117249,
-0.34439489245414734,
0.5611405372619629,
-0.1942404806613922,
0.43633797764778137,
0.25054261088371277,
-0.03238891065120697,
-0.1414242833852768,
-0.23940613865852356,
0.006010755896568298,
0.36804574728012085,
0.2479688674211502,
0.32681554555892944,
-0.18915747106075287,
0.021078305318951607,
0.37207096815109253,
0.13483458757400513,
-0.09883497655391693,
-0.10978563874959946,
0.07159123569726944,
0.19623415172100067,
0.6057412028312683,
-0.01524629071354866,
0.06611590832471848,
-0.13704755902290344,
0.21978138387203217,
-0.044526904821395874,
0.39261409640312195,
0.012484200298786163,
-0.3671067953109741,
-0.07709759473800659,
-0.061343155801296234,
0.04762822017073631,
-0.20561091601848602,
-0.2663973867893219,
-0.12502267956733704,
0.022820105776190758,
-0.13018862903118134,
-0.013498276472091675,
-0.09580190479755402,
0.43816861510276794,
-0.024625815451145172,
-0.02401173673570156,
-0.18362422287464142,
0.24190853536128998,
-0.4760058522224426,
0.2011321485042572,
-0.26106736063957214,
0.19698183238506317,
0.12706966698169708,
0.21624362468719482,
-0.4428572952747345,
0.2958791255950928,
-0.05114436894655228,
-0.07870213687419891,
-0.270538866519928,
0.5692427158355713,
0.22874316573143005,
0.32247817516326904,
-0.16931384801864624,
-0.003146827220916748,
0.3292880654335022,
-0.11786963790655136,
0.17535172402858734,
0.5582382678985596,
-0.012725865468382835,
-0.10486152768135071,
-0.3213961720466614,
0.34127724170684814,
-0.40641549229621887,
0.024753667414188385,
-0.24672456085681915,
-0.12387730181217194,
0.343742698431015,
-0.2384788542985916,
-0.3649536371231079,
-0.44324377179145813,
0.3599594533443451,
0.28238341212272644,
0.15368421375751495,
0.17188653349876404,
-0.5752779245376587,
-0.08954951912164688,
0.424094557762146,
-0.05789697915315628,
0.18990015983581543,
0.36191004514694214,
0.005596905946731567,
-0.1940585970878601,
-0.1695413738489151,
0.503362238407135,
0.6136174201965332,
-0.19688206911087036,
-0.12423437833786011,
0.2684118449687958,
0.24679723381996155,
-0.34592586755752563,
0.2007685899734497,
0.27212756872177124,
0.19744354486465454,
0.20761370658874512,
0.2710844576358795,
0.24358494579792023,
-0.33576080203056335,
0.24343764781951904,
-0.01673317886888981,
0.20113633573055267,
-0.40444082021713257,
0.3407905101776123,
-0.48103299736976624,
-0.17534133791923523,
-0.6152331233024597,
-0.5767539143562317,
-0.03355696424841881,
-0.17029617726802826,
0.08482908457517624,
-0.22667196393013,
-0.12020118534564972,
0.19843563437461853,
0.30374205112457275,
0.10522822290658951,
0.04074084758758545,
0.23065854609012604,
-0.2876073718070984,
-0.01633911207318306,
-0.0002108551561832428,
-0.04772216081619263,
-0.018871765583753586,
0.3365931212902069,
-0.4069802761077881,
-0.05369389057159424,
-0.4460334777832031,
-0.08253271132707596,
-0.4795515239238739,
0.049202390015125275,
-0.1069679707288742,
0.15806971490383148,
0.309988796710968,
0.16283506155014038,
0.28156960010528564,
-0.1610420048236847,
0.022607553750276566,
0.033809781074523926,
-0.1744680255651474,
0.3979460597038269,
-0.10571130365133286,
0.024567706510424614,
-0.29646962881088257,
-0.11859842389822006,
-0.09911159425973892,
-0.1820126473903656,
0.18049266934394836,
-0.3320199251174927,
0.011094555258750916,
0.040745288133621216,
-0.17738628387451172,
-0.42233163118362427,
-0.32231518626213074,
0.2170001119375229,
-0.3159209191799164,
-0.18442966043949127,
0.19293008744716644,
0.15127120912075043,
-0.2022344172000885,
-0.22380490601062775,
-0.05811488255858421,
-0.1397160291671753,
0.016432251781225204,
-0.4545937180519104,
-0.07726451754570007,
-0.14802247285842896,
-0.071761354804039,
0.08923257887363434,
0.12272074073553085,
0.14635604619979858,
-0.14523108303546906,
0.10606999695301056,
-0.0183088555932045,
0.11317172646522522,
0.01716998964548111,
0.11081959307193756,
0.414941668510437,
0.03275914117693901,
0.5683244466781616,
0.07746899127960205,
0.12524951994419098,
-0.09114310145378113,
0.054929353296756744,
0.01849503442645073,
0.09085904061794281,
0.12158094346523285,
-0.07326406985521317,
-0.3030228018760681,
0.17377959191799164,
0.0007037520408630371,
0.07381727546453476,
0.4017013907432556,
-0.2984115779399872,
0.045470453798770905,
0.18852268159389496,
0.22032034397125244,
-0.1387261152267456,
-0.18423150479793549,
0.3019125759601593,
-0.1251344084739685,
-0.031732283532619476,
0.2922680079936981,
0.21952387690544128,
0.1488201916217804,
-0.10802208632230759,
-0.27879130840301514,
0.2406189888715744,
-0.038269393146038055,
-0.2780238389968872,
-0.5253172516822815,
0.1295434832572937,
0.052591923624277115,
0.06468279659748077,
0.13883967697620392,
0.3662007451057434,
0.14573431015014648,
-0.2162102460861206,
0.21635326743125916,
0.22199556231498718,
0.6897940635681152,
0.027369296178221703,
-0.06271561235189438,
-0.16628630459308624,
-0.036885328590869904,
-0.33838677406311035,
-0.31311318278312683,
-0.16236531734466553,
0.3013697564601898,
0.11137367784976959,
0.5918067693710327,
-0.10852085798978806,
-0.1773621141910553,
0.4929652512073517,
0.11866913735866547,
-0.11019730567932129,
-0.13926182687282562,
-0.2886863350868225,
-0.3270001709461212,
-0.27211010456085205,
-0.1487613320350647,
-0.16546942293643951,
0.2936016917228699,
-0.16738611459732056,
0.3392312526702881,
0.2073739618062973,
-0.09191536903381348,
0.21485573053359985,
0.06601822376251221,
0.04955931380391121,
0.16768164932727814,
0.2669995129108429,
0.12408068031072617,
0.03892426937818527,
0.1812952756881714,
0.42732200026512146,
-0.07463262975215912,
-0.7348684072494507,
0.017267903313040733,
-0.9031832814216614,
0.385362833738327,
0.3571564555168152,
-0.16649878025054932,
0.06809797883033752,
0.10311000049114227,
0.21159180998802185,
-0.06165004149079323,
-0.21332235634326935,
0.26026010513305664,
0.21047498285770416,
-0.3004065155982971,
-0.2986609935760498,
0.37312424182891846,
-0.09696733951568604,
-0.05164195969700813,
-0.03892078250646591,
-0.2574616074562073,
-0.43108171224594116,
0.2609196901321411,
-0.13456273078918457,
0.9547371864318848,
0.00929776206612587,
0.11484505236148834,
0.06488446891307831,
0.13622024655342102,
0.12019933015108109,
-0.1444835364818573,
-0.011317288503050804,
-0.1445239633321762,
-0.20461800694465637,
-0.28398922085762024,
0.1572195291519165,
0.35128307342529297,
0.3613419532775879,
-0.15939952433109283,
0.09791995584964752,
-0.11419419944286346,
-0.0045357346534729,
0.367324560880661,
0.28740498423576355,
-0.0719466581940651,
-0.3822265863418579,
-0.24005535244941711,
-0.16607548296451569,
-0.22408585250377655,
-0.05582696571946144,
0.08722712844610214,
0.11340492963790894,
-0.04216310381889343,
-0.35712873935699463,
-0.2109038382768631,
-0.113754503428936,
-0.23561090230941772,
0.0786532461643219,
0.1640215665102005,
-0.31961584091186523,
0.05274982377886772,
0.36324021220207214,
0.1927613914012909,
0.03186926245689392,
0.43351632356643677,
0.28676217794418335,
-0.001578405499458313,
-0.002086313907057047,
-0.007494118995964527,
-0.028557710349559784,
0.21626539528369904,
0.01671205461025238,
-0.29513946175575256,
-0.08066246658563614,
-0.06775645166635513,
-0.4408476948738098,
0.06731656193733215,
0.07049666345119476,
0.24796748161315918,
-0.24522089958190918,
-0.16658926010131836,
0.08001086860895157,
0.12659098207950592,
-0.2860068380832672,
0.011404246091842651,
0.02934831753373146,
-0.3517274558544159,
0.16076792776584625,
-0.21419657766819,
-0.407513290643692,
-0.26404935121536255,
0.044093213975429535,
0.31518709659576416,
-0.14601023495197296,
0.547440767288208,
0.21757285296916962,
-0.07244189083576202,
-0.21242862939834595,
-0.062058933079242706,
0.043770868331193924,
-0.4245568513870239,
0.11247844994068146,
-0.12537990510463715,
-0.4091334939002991,
0.0041801840998232365,
0.2812163531780243,
-0.16576780378818512,
-0.03665149211883545,
-0.1677696853876114,
-0.6949549913406372,
0.06706418842077255,
-0.09433281421661377,
0.17788538336753845,
0.01836378499865532,
0.15250292420387268,
-0.04508587718009949,
-0.17751261591911316,
0.27620846033096313,
-0.1602124571800232,
0.2552216351032257,
0.15501859784126282,
0.36296430230140686,
0.07717348635196686,
0.12473467737436295,
0.3376879096031189,
-0.03137798607349396,
0.013461215421557426,
0.14557598531246185,
0.3607562780380249,
-0.11154020577669144,
-0.4158972203731537,
0.19553108513355255,
-0.192966490983963,
-0.19373270869255066,
0.12024422734975815,
0.07814475893974304,
-0.20074105262756348,
-0.19083094596862793,
0.03302611783146858,
0.27463728189468384,
0.1063624769449234,
0.35840776562690735,
0.2073109745979309,
-0.03904329240322113,
-0.3313344717025757,
-0.26576969027519226,
-0.2465328872203827,
0.5458909273147583,
-0.0008071647025644779,
0.29235216975212097,
-0.4137578010559082,
0.00637798011302948,
-0.3606956899166107,
-0.20650872588157654,
-0.1268918812274933,
0.4237944185733795,
-0.03366798907518387,
-0.1469298005104065,
0.14503255486488342,
-0.08920272439718246,
0.4348144233226776,
0.12514516711235046,
-0.4301970303058624,
-0.13330920040607452,
-0.16699588298797607,
-0.003794519230723381,
-0.1058567464351654,
0.15099067986011505,
0.14399737119674683,
-0.2916661202907562,
-0.05278351530432701,
0.3508312702178955,
0.23850178718566895,
0.04098820686340332,
-0.10541974008083344,
-0.0254325233399868,
0.35061702132225037,
-0.14580518007278442,
0.3293113708496094,
0.4418158531188965,
-0.37569308280944824,
0.30030497908592224,
0.33004480600357056,
-0.0016913563013076782,
-0.13131892681121826,
0.2557271122932434,
0.2306540608406067,
0.4930025041103363,
0.19744440913200378,
0.03339315205812454,
-0.04559413343667984,
-0.38970643281936646,
0.3355909585952759,
0.40121254324913025,
-0.4842071533203125,
0.1051366776227951,
0.3133091330528259,
-0.006215997040271759,
-0.09920148551464081,
0.3390789031982422,
-0.24195779860019684,
0.1367616504430771,
-0.06075514107942581,
-0.2433501034975052,
-0.3137359321117401,
0.13267603516578674,
-0.30456018447875977,
0.06445032358169556,
0.006408069282770157,
0.00113774836063385,
0.6607896089553833,
0.1976998746395111,
-0.3497992157936096,
0.06522787362337112,
-0.04585224390029907,
-0.409576952457428,
0.14549000561237335,
-0.38056308031082153,
0.11210265010595322,
0.0671478807926178,
0.17539912462234497,
0.1974528729915619,
0.12599211931228638,
0.32566720247268677,
0.19940854609012604,
0.23194506764411926,
0.30747947096824646,
-0.3806774914264679,
-0.13623540103435516,
0.165776327252388,
0.4842473268508911,
0.15320399403572083,
0.3032575845718384,
0.05228913947939873,
0.15090849995613098,
-0.15073533356189728,
0.2739289700984955,
0.5383456349372864,
0.26308903098106384,
-0.3039022386074066,
0.2731318175792694,
0.060185566544532776,
0.16422706842422485,
-0.22263678908348083,
-0.05003517121076584,
-0.10194508731365204,
0.08818124234676361,
0.39173853397369385,
-0.05385798588395119,
0.14853468537330627,
-0.15634050965309143,
-0.02680458314716816,
0.29550260305404663,
0.24235321581363678,
0.4992753863334656,
0.07698840647935867,
-0.10204601287841797,
-0.19586656987667084,
-0.5604894161224365,
0.15152110159397125,
0.07758264243602753,
0.12925729155540466,
0.2093946486711502,
0.012496482580900192,
0.20279735326766968,
0.15452027320861816,
0.14954683184623718,
0.06880030035972595,
-0.1287383735179901,
-0.2706407308578491,
-0.01355895958840847,
-0.08301496505737305,
0.4540310502052307,
0.02297014370560646,
-0.09763291478157043,
-0.29666072130203247,
0.048848871141672134,
0.3168100118637085,
-0.08431519567966461,
-0.1714172661304474,
-0.0017463043332099915,
-0.033122140914201736,
0.01978471875190735,
-0.0926765650510788,
0.06963223218917847,
0.14474309980869293,
-0.0950218141078949,
-0.23289313912391663,
0.05956024304032326,
-0.2088705599308014,
-0.24154338240623474,
0.466377854347229,
-0.018485914915800095,
0.50218665599823,
-0.04623149335384369,
0.31423109769821167,
-0.2269711196422577,
-0.08895058184862137,
-0.10634295642375946,
-0.22273629903793335,
-0.5899753570556641,
0.26587343215942383,
-0.16482795774936676,
-0.12689512968063354,
0.16573870182037354,
0.4228948950767517,
0.04618120193481445,
0.1569007784128189,
0.020044595003128052,
-0.3046228289604187,
0.2828550338745117,
-0.345836877822876,
-0.20553281903266907,
-0.1614171415567398,
0.17335186898708344,
-0.5563867688179016,
0.021802712231874466,
-1.2703807353973389,
-0.028627954423427582,
0.292153924703598,
-0.281273752450943,
-0.36891934275627136,
0.06298916786909103,
0.03818068653345108,
-0.035004083067178726,
-0.20850133895874023,
0.38304778933525085,
0.29243186116218567,
-0.24892960488796234,
0.18619482219219208,
-0.17371591925621033
] |
https://github.com/huggingface/datasets/issues/4304 | Language code search does direct matches | Thanks for reporting ! I forwarded the issue to the front-end team :)
Will keep you posted !
I also changed the tagging app to suggest two letters code for now. | ## Describe the bug
Hi. Searching for bcp47 tags that are just the language prefix (e.g. `sq` or `da`) excludes datasets that have added extra information in their language metadata (e.g. `sq-AL` or `da-bornholm`). The example codes given in the [tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging) encourages addition of the additional codes ("_expected format is BCP47 tags separated for ';' e.g. 'en-US;fr-FR'_") but this would lead to those datasets being hidden in datasets search.
## Steps to reproduce the bug
1. Add a dataset using a variant tag (e.g. [`sq-AL`](https://huggingface.co/datasets?languages=languages:sq-AL))
2. Look for datasets using the full code
3. Note that they're missing when just the language is searched for (e.g. [`sq`](https://huggingface.co/datasets?languages=languages:sq))
Some datasets are already affected by this - e.g. `AmazonScience/massive` is listed under `sq-AL` but not `sq`.
One workaround is for dataset creators to add an additional root language tag to dataset YAML metadata, but it's unclear how to communicate this. It might be possible to index the search on `languagecode.split('-')[0]` but I wanted to float this issue before trying to write any code :)
## Expected results
Datasets using longer bcp47 tags also appear under searches for just the language code; e.g. Quebecois datasets (`fr-CA`) would come up when looking for French datasets with no region specification (`fr`), or US English (`en-US`) datasets would come up when searching for English datasets (`en`).
## Actual results
The language codes seem to be directly string matched, excluding datasets with specific language tags from non-specific searches.
## Environment info
(web app) | 31 | Language code search does direct matches
## Describe the bug
Hi. Searching for bcp47 tags that are just the language prefix (e.g. `sq` or `da`) excludes datasets that have added extra information in their language metadata (e.g. `sq-AL` or `da-bornholm`). The example codes given in the [tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging) encourages addition of the additional codes ("_expected format is BCP47 tags separated for ';' e.g. 'en-US;fr-FR'_") but this would lead to those datasets being hidden in datasets search.
## Steps to reproduce the bug
1. Add a dataset using a variant tag (e.g. [`sq-AL`](https://huggingface.co/datasets?languages=languages:sq-AL))
2. Look for datasets using the full code
3. Note that they're missing when just the language is searched for (e.g. [`sq`](https://huggingface.co/datasets?languages=languages:sq))
Some datasets are already affected by this - e.g. `AmazonScience/massive` is listed under `sq-AL` but not `sq`.
One workaround is for dataset creators to add an additional root language tag to dataset YAML metadata, but it's unclear how to communicate this. It might be possible to index the search on `languagecode.split('-')[0]` but I wanted to float this issue before trying to write any code :)
## Expected results
Datasets using longer bcp47 tags also appear under searches for just the language code; e.g. Quebecois datasets (`fr-CA`) would come up when looking for French datasets with no region specification (`fr`), or US English (`en-US`) datasets would come up when searching for English datasets (`en`).
## Actual results
The language codes seem to be directly string matched, excluding datasets with specific language tags from non-specific searches.
## Environment info
(web app)
Thanks for reporting ! I forwarded the issue to the front-end team :)
Will keep you posted !
I also changed the tagging app to suggest two letters code for now. | [
-0.03264626860618591,
-0.24687674641609192,
-0.04431280493736267,
0.2275497168302536,
0.08819746971130371,
-0.17440010607242584,
-0.08194832503795624,
0.23672886192798615,
0.08741340041160583,
-0.016721561551094055,
-0.15069177746772766,
0.18932808935642242,
-0.09969824552536011,
0.3627643883228302,
0.19618739187717438,
0.12026397138834,
0.11732452362775803,
0.030106239020824432,
0.043967705219984055,
-0.13767576217651367,
-0.32430118322372437,
0.32194438576698303,
-0.05700845271348953,
0.009279496967792511,
-0.39886757731437683,
0.2197607010602951,
-0.028714865446090698,
0.21347782015800476,
-0.08531676977872849,
-0.2146737426519394,
0.4789450168609619,
-0.23238703608512878,
-0.2195836901664734,
0.16535693407058716,
-0.00012116225116187707,
-0.0895576998591423,
0.2327217161655426,
-0.051239870488643646,
-0.15878228843212128,
-0.24531550705432892,
-0.3315940201282501,
0.21729601919651031,
-0.012772513553500175,
0.3915634751319885,
-0.2767942547798157,
0.17246346175670624,
-0.1082049161195755,
-0.7502942085266113,
0.0945158377289772,
0.40604203939437866,
0.1134859174489975,
0.1806296408176422,
-0.05749824270606041,
0.1377900093793869,
0.16024912893772125,
-0.017359867691993713,
-0.02957800216972828,
0.11523944139480591,
0.7044066190719604,
0.10114800184965134,
-0.04472861438989639,
0.37223172187805176,
0.05413781851530075,
-0.3302818536758423,
-0.16532421112060547,
0.14031971991062164,
-0.06542517989873886,
-0.4862442910671234,
0.47486546635627747,
0.18524518609046936,
0.5992313027381897,
-0.24424421787261963,
-0.456050843000412,
-0.5227274894714355,
-0.47645440697669983,
-0.26918238401412964,
0.3620623052120209,
0.18939197063446045,
-0.03994332253932953,
0.329691082239151,
-0.2727840542793274,
-0.0256204716861248,
0.16280126571655273,
0.11982522904872894,
-0.25942736864089966,
0.34074705839157104,
-0.03024446964263916,
-0.050517357885837555,
-0.10505479574203491,
-0.1252024620771408,
0.10560177266597748,
-0.29700785875320435,
0.023595036938786507,
0.25074857473373413,
-0.29507896304130554,
-0.022903580218553543,
-0.14750346541404724,
0.2214096188545227,
0.2792941927909851,
0.1220090314745903,
-0.0715317577123642,
0.35853198170661926,
-0.5792989730834961,
-0.024850450456142426,
0.19787196815013885,
-0.09003861248493195,
0.30910158157348633,
0.1829942911863327,
0.024985937401652336,
-0.3631964921951294,
0.0076340921223163605,
-0.05457749217748642,
0.14910505712032318,
-0.05982806161046028,
-0.2877601981163025,
0.010926526039838791,
0.13063600659370422,
-0.34729716181755066,
-0.23856806755065918,
0.10554616153240204,
-0.39623236656188965,
-0.15982401371002197,
0.13247820734977722,
0.06420731544494629,
0.17442673444747925,
-0.15983837842941284,
-0.16620491445064545,
0.135345458984375,
-0.15915653109550476,
-0.4094740152359009,
-0.20455127954483032,
0.024670906364917755,
-0.10683247447013855,
0.0038383305072784424,
0.26783859729766846,
-0.09912873804569244,
0.3612903952598572,
0.2915860712528229,
-0.06082037091255188,
0.046696849167346954,
-0.20600567758083344,
-0.0777958333492279,
0.3354439437389374,
0.11410761624574661,
-0.3946971595287323,
0.22392204403877258,
-0.11427390575408936,
-0.27812832593917847,
-0.2591034173965454,
-0.008629150688648224,
-0.25285226106643677,
0.03243447467684746,
-0.15126445889472961,
0.10341398417949677,
-0.2269093096256256,
-0.23884034156799316,
-0.14070862531661987,
0.46407750248908997,
-0.07786919921636581,
-0.13927774131298065,
0.18139079213142395,
-0.04881542921066284,
-0.1772952377796173,
0.119881771504879,
0.35353022813796997,
0.6382179856300354,
-0.5286627411842346,
-0.15771475434303284,
0.2563156485557556,
0.15616688132286072,
0.4147005081176758,
0.09313607215881348,
-0.062175996601581573,
-0.06166159361600876,
-0.38848742842674255,
0.06452563405036926,
-0.10505012422800064,
-0.2975839674472809,
-0.25788572430610657,
-0.11571211367845535,
-0.09178490936756134,
0.3919796347618103,
-0.05499350279569626,
-0.11900065094232559,
-0.25729450583457947,
0.12375902384519577,
0.17006462812423706,
0.15451224148273468,
-0.07919959723949432,
0.024280766025185585,
-0.1888403445482254,
0.10177408158779144,
0.07921180874109268,
0.3113877475261688,
0.19895945489406586,
-0.27103090286254883,
0.2577023506164551,
0.01492412481456995,
0.17984351515769958,
0.020465228706598282,
0.03716959059238434,
0.14565548300743103,
0.18574577569961548,
0.11233805119991302,
0.1029612272977829,
-0.24626585841178894,
-0.29621419310569763,
0.39902469515800476,
-0.009422359988093376,
0.035825736820697784,
-0.06279994547367096,
0.16372500360012054,
0.08934780210256577,
-0.03597402200102806,
-0.5919786691665649,
-0.46637073159217834,
-0.03536105528473854,
-0.15164761245250702,
0.05445997789502144,
0.08780646324157715,
-0.14221327006816864,
0.8086760640144348,
-0.07771135121583939,
0.24264763295650482,
-0.520433783531189,
0.051666662096977234,
0.038535915315151215,
0.07564820349216461,
-0.10289829224348068,
0.37897706031799316,
0.17591379582881927,
-0.009524001739919186,
-0.053094975650310516,
0.05711943656206131,
0.22370032966136932,
-0.004295818507671356,
0.4592781960964203,
0.37162619829177856,
0.45301392674446106,
-0.28870654106140137,
-0.16812990605831146,
0.1344560831785202,
0.054594557732343674,
-0.03434823825955391,
-0.08462437242269516,
0.14474666118621826,
0.3536291718482971,
0.5108644962310791,
0.06284202635288239,
-0.20412126183509827,
0.3415795564651489,
-0.074541375041008,
-0.07972737401723862,
-0.20356589555740356,
0.22063998878002167,
-0.07517772912979126,
0.4506436884403229,
0.29187747836112976,
-0.4009321928024292,
0.2914870083332062,
0.5205265283584595,
0.1633969247341156,
0.011398125439882278,
0.29513925313949585,
-0.34594622254371643,
-0.036214400082826614,
0.07381798326969147,
-0.07738018035888672,
0.0638350397348404,
0.2704103887081146,
0.1345832496881485,
0.08465730398893356,
0.15182964503765106,
-0.22012746334075928,
0.1459369659423828,
0.21651558578014374,
-0.23732750117778778,
0.11315756291151047,
0.345905065536499,
0.19992505013942719,
-0.4049887955188751,
-0.02460877224802971,
-0.18978174030780792,
-0.4386892020702362,
-0.22581937909126282,
0.2637437582015991,
-0.8607850074768066,
-0.23127985000610352,
-0.4483213424682617,
0.09888727962970734,
-0.5045678615570068,
-0.06627994775772095,
0.15150746703147888,
-0.20588359236717224,
-0.12672069668769836,
0.10957223176956177,
-0.01361214928328991,
0.1207721009850502,
-0.3345540165901184,
-0.3898802101612091,
-0.16074863076210022,
-0.019036846235394478,
-0.27842578291893005,
0.021791286766529083,
0.13804660737514496,
-0.14391282200813293,
0.3163992762565613,
-0.23015853762626648,
0.08091706037521362,
-0.42878612875938416,
-0.7174293398857117,
0.21523477137088776,
0.029237376525998116,
0.08306612074375153,
0.07155226916074753,
-0.5797129273414612,
-0.05342426896095276,
-0.002694674301892519,
-0.014613941311836243,
0.23291859030723572,
-0.2702432870864868,
-0.08202669024467468,
0.005821537226438522,
0.18670392036437988,
-0.010240703821182251,
-0.2220422625541687,
-0.33089250326156616,
-0.08445308357477188,
0.07189568132162094,
-0.14390471577644348,
0.12092221528291702,
0.3019513189792633,
-0.3531413972377777,
0.0846903920173645,
-0.7726770043373108,
-0.0027230754494667053,
-0.23430952429771423,
-0.024149097502231598,
0.13393810391426086,
0.04900432378053665,
-0.002975866198539734,
0.10402199625968933,
-0.05453749746084213,
0.22192977368831635,
-0.044676221907138824,
0.10039003193378448,
0.2588120698928833,
-0.19444824755191803,
0.3382530212402344,
0.2127579152584076,
0.2066703885793686,
0.22233061492443085,
0.011471080593764782,
0.01997462473809719,
-0.1866561770439148,
-0.17002372443675995,
0.16450905799865723,
-0.010572608560323715,
0.5657934546470642,
0.10575612634420395,
-0.1902714967727661,
-0.010523643344640732,
0.3180169463157654,
0.25219249725341797,
-0.1022634208202362,
0.3382517099380493,
0.08106043934822083,
0.25382471084594727,
-0.4547273814678192,
-0.1258932501077652,
-0.03307539224624634,
-0.009272754192352295,
0.15731976926326752,
0.35772913694381714,
0.20014247298240662,
-0.0004968857392668724,
-0.047220323234796524,
-0.13372743129730225,
-0.33374208211898804,
-0.03183111920952797,
-0.06030464917421341,
0.12440570443868637,
-0.0025228410959243774,
0.33216392993927,
-0.07978931814432144,
0.0319029800593853,
-0.14966920018196106,
-0.22034619748592377,
0.04282845929265022,
0.046385835856199265,
0.14208705723285675,
0.09216758608818054,
-0.29294928908348083,
-0.3797578513622284,
0.17648181319236755,
0.18452313542366028,
0.24540670216083527,
-0.18126033246517181,
-0.15256188809871674,
0.15909825265407562,
0.168836310505867,
0.3934398889541626,
-0.25587037205696106,
-0.10944032669067383,
-0.2948368191719055,
-0.19981904327869415,
0.2086450755596161,
-0.04929263889789581,
-0.07532045245170593,
0.3397585153579712,
0.3465506136417389,
0.32373812794685364,
-0.18374747037887573,
-0.05418273061513901,
-0.18424910306930542,
0.27558496594429016,
0.2153041660785675,
0.13940419256687164,
-0.33143872022628784,
0.07040262222290039,
0.07425417751073837,
0.10740098357200623,
0.33854252099990845,
0.07888229191303253,
0.13336928188800812,
-0.22392162680625916,
0.13514865934848785,
-0.10399404913187027,
0.06680981069803238,
-0.05617950111627579,
0.2987227737903595,
-0.21442444622516632,
0.35310691595077515,
0.018052931874990463,
0.2823740243911743,
0.12204021215438843,
0.8188311457633972,
-0.041481878608465195,
-0.4956885576248169,
-0.01463739201426506,
-0.2742522358894348,
0.44632089138031006,
0.411122590303421,
0.03069629892706871,
0.18904313445091248,
-0.06918767839670181,
-0.20386742055416107,
-0.0953655019402504,
-0.06356785446405411,
0.09775924682617188,
0.38732609152793884,
-0.4430907070636749,
-0.23564155399799347,
0.4099728465080261,
-0.0801115483045578,
-0.13274385035037994,
0.3696851432323456,
0.42199695110321045,
-0.47111788392066956,
0.091481052339077,
-0.0684477910399437,
0.6782258152961731,
0.20264635980129242,
-0.0761931836605072,
-0.28270816802978516,
-0.29684433341026306,
0.39955976605415344,
0.06442945450544357,
0.13097479939460754,
-0.3028133809566498,
0.00928479339927435,
0.04846826195716858,
-0.022537924349308014,
0.02883688360452652,
0.06663347780704498,
0.08851391077041626,
0.2523692846298218,
0.08676572144031525,
0.298382043838501,
0.3137741684913635,
0.2141767144203186,
0.13863152265548706,
-0.22991082072257996,
0.09427693486213684,
0.02999717742204666,
-0.04525710642337799,
0.441928893327713,
0.25284406542778015,
-0.11517342925071716,
-0.2978491187095642,
-0.4937543272972107,
-0.44394999742507935,
0.21887362003326416,
-0.3076321482658386,
-0.17386724054813385,
0.23629489541053772,
-0.048387154936790466,
0.6886812448501587,
-0.0314316488802433,
0.6528828144073486,
0.15269547700881958,
-0.282620370388031,
0.3542696237564087,
0.42134296894073486,
0.27166125178337097,
0.1825912594795227,
-0.18216170370578766,
-0.0907127857208252,
0.06210276484489441,
-0.06811349093914032,
-0.2920140027999878,
-0.03129604458808899,
-0.21347889304161072,
-0.43192288279533386,
0.1469913125038147,
-0.1566087156534195,
0.30058082938194275,
-0.03643162176012993,
-0.049935534596443176,
0.20838527381420135,
-0.2588179409503937,
0.07315319776535034,
0.07095693051815033,
-0.06866242736577988,
-0.049271926283836365,
-0.03828856721520424,
-0.29428598284721375,
-0.36938777565956116,
0.34653958678245544,
-0.14513695240020752,
0.279752254486084,
0.29897263646125793,
0.2703414261341095,
-0.22190213203430176,
-0.03813725709915161,
-0.014783032238483429,
0.8273308873176575,
-0.4440298080444336,
-0.17223292589187622,
0.19347839057445526,
-0.1466197967529297,
0.11200080811977386,
0.3024401068687439,
-0.17170001566410065,
-0.31444859504699707,
-0.1349603682756424,
-0.04402502626180649,
0.24219419062137604,
0.15030154585838318,
-0.39919784665107727,
-0.20164410769939423,
0.06825379282236099,
0.16888631880283356,
0.18044103682041168,
0.05573835223913193,
-0.19935151934623718,
0.0049013723619282246,
-0.19038107991218567,
0.13459143042564392,
0.039849620312452316,
0.19251826405525208,
0.2976895272731781,
-0.13284172117710114,
-0.05872344970703125,
0.1264648288488388,
-0.029498789459466934,
-0.12263752520084381,
-0.0750468522310257,
0.07195551693439484,
0.09883568435907364,
0.23864442110061646,
-0.05038583651185036,
0.1606864035129547,
0.17659300565719604,
-0.17232666909694672,
0.1847800463438034,
0.10303259640932083,
0.27404487133026123,
-0.012637723237276077,
-0.05626394972205162,
-0.10193554311990738,
0.030955173075199127,
0.02080102451145649,
-0.23952415585517883,
0.1782764047384262,
0.06548392027616501,
-0.0307609885931015,
-0.12259501963853836,
-0.016887716948986053,
0.3483167588710785,
0.08785829693078995,
-0.36054933071136475,
0.15133097767829895,
0.08081621676683426,
-0.1276814341545105,
0.10079643130302429,
0.45566892623901367,
0.07566218823194504,
0.1083376407623291,
-0.12447910010814667,
-0.2811596095561981,
0.1707017421722412,
0.0639166459441185,
-0.4320661425590515,
-0.45647814869880676,
0.1658824384212494,
-0.05505345016717911,
0.1638716161251068,
0.2299763262271881,
0.6243205070495605,
0.19230732321739197,
0.2923603653907776,
-0.03997211903333664,
0.6090297698974609,
-0.06453800946474075,
0.155858114361763,
0.39784443378448486,
0.31031402945518494,
0.16887114942073822,
0.29890674352645874,
0.23571261763572693,
-0.25143250823020935,
0.5653190612792969,
-0.5035583972930908,
0.2778271436691284,
0.002036087214946747,
-0.06231588497757912,
0.24370479583740234,
-0.5537574887275696,
-0.10653634369373322,
-0.08236666023731232,
-0.06982782483100891,
0.18205875158309937,
-0.1805833876132965,
0.31635990738868713,
-0.1169237419962883,
-0.15837620198726654,
0.07119851559400558,
-0.21767111122608185,
-0.11389119178056717,
0.15051144361495972,
-0.06526420265436172,
-0.12294349819421768,
-0.3870704770088196,
-0.05046829581260681,
-0.1363176554441452,
-0.08142946660518646,
0.11729827523231506,
-0.14823393523693085,
-0.10261419415473938,
-0.15421098470687866,
-0.2645610570907593,
-0.2574012577533722,
-0.0667845830321312,
-0.09095548093318939,
0.3767983615398407,
-0.07610379159450531,
-0.2615097165107727,
0.19125083088874817,
-0.106185682117939,
0.06499166786670685,
0.14538902044296265,
0.12406843900680542,
0.03623916953802109,
-0.27911919355392456,
-0.034308917820453644,
-0.03780738264322281,
0.3390386700630188,
0.016223929822444916,
-0.30344709753990173,
0.17381910979747772,
0.043423332273960114,
0.02201256901025772,
-0.20606395602226257,
0.22229759395122528,
0.29086190462112427,
-0.1696266084909439,
0.012966759502887726,
-0.056053414940834045,
0.32210013270378113,
-0.1616755872964859,
-0.017734549939632416,
-0.3084869980812073,
0.12154220789670944,
0.23991037905216217,
0.027099894359707832,
-0.0826856791973114,
0.1417628526687622,
0.03150371462106705,
0.20415350794792175,
0.4893267750740051,
0.34155720472335815,
0.20082801580429077,
-0.24462974071502686,
-0.04398169368505478,
-0.33837899565696716,
-0.01560492068529129,
-0.22055399417877197,
0.10828211903572083,
-0.017459290102124214,
0.019953696057200432,
0.10126341134309769,
0.007868088781833649,
0.09384465217590332,
0.16679279506206512,
0.24271664023399353,
-0.13155633211135864,
-0.1846514195203781,
0.10561077296733856,
0.05869496613740921,
0.0778849869966507,
0.0033032335340976715,
0.04639914631843567,
0.5846669673919678,
-0.07953862100839615,
-0.07950370013713837,
0.049600087106227875,
0.00031110644340515137,
-0.02840038388967514,
-0.5377382040023804,
0.04477357864379883,
0.20343303680419922,
0.20076283812522888,
-0.14085066318511963,
0.14452916383743286,
-0.29859596490859985,
-0.16130301356315613,
-0.3777080178260803,
0.2657611072063446,
-0.21727025508880615,
0.19471292197704315,
0.018508849665522575,
-0.23570947349071503,
-0.04384628310799599,
0.39778420329093933,
0.10442645847797394,
0.01946922391653061,
-0.20047836005687714,
-0.011585562489926815,
-0.0870591327548027,
0.10433925688266754,
-0.09128965437412262,
0.29157403111457825,
0.025721970945596695,
-0.12219366431236267,
-0.12184306979179382,
-0.4736460745334625,
0.25376832485198975,
-0.2586340308189392,
-0.029853736981749535,
-0.2628442943096161,
0.2539743185043335,
0.7812222242355347,
-0.13490921258926392,
-0.37474313378334045,
-0.2615247368812561,
0.20986977219581604,
0.1257135421037674,
-0.03129374235868454,
0.26232990622520447,
-0.005114184692502022,
-0.04042026400566101,
-0.16711673140525818,
-0.3473033308982849,
0.39742353558540344,
0.04477623105049133,
0.1433287411928177,
-0.11443059891462326
] |
https://github.com/huggingface/datasets/issues/4298 | Normalise license names | we'll add the same server-side metadata validation system as for hf.co/models soon-ish
(you can check on hf.co/models that licenses are "clean") | **Is your feature request related to a problem? Please describe.**
When browsing datasets, the Licenses tag cloud (bottom left of e.g. https://huggingface.co/datasets) has multiple variants of the same license. This means the options exclude datasets arbitrarily, giving users artificially low recall. The cause of the dupes is probably due to a bit of variation in metadata.
**Describe the solution you'd like**
I'd like the licenses in metadata to follow the same standard as much as possible, to remove this problem. I'd like to go ahead and normalise the dataset metadata to follow the format & values given in [src/datasets/utils/resources/licenses.json](https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/licenses.json) .
**Describe alternatives you've considered**
None
**Additional context**
None
**Priority**
Low
| 21 | Normalise license names
**Is your feature request related to a problem? Please describe.**
When browsing datasets, the Licenses tag cloud (bottom left of e.g. https://huggingface.co/datasets) has multiple variants of the same license. This means the options exclude datasets arbitrarily, giving users artificially low recall. The cause of the dupes is probably due to a bit of variation in metadata.
**Describe the solution you'd like**
I'd like the licenses in metadata to follow the same standard as much as possible, to remove this problem. I'd like to go ahead and normalise the dataset metadata to follow the format & values given in [src/datasets/utils/resources/licenses.json](https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/licenses.json) .
**Describe alternatives you've considered**
None
**Additional context**
None
**Priority**
Low
we'll add the same server-side metadata validation system as for hf.co/models soon-ish
(you can check on hf.co/models that licenses are "clean") | [
-0.027796141803264618,
0.11047005653381348,
-0.022630242630839348,
-0.06727352738380432,
0.02549498900771141,
0.11576337367296219,
0.32650691270828247,
0.3348146378993988,
-0.059240881353616714,
0.171835795044899,
-0.2845454514026642,
0.24953456223011017,
-0.06713834404945374,
0.12524040043354034,
-0.31507912278175354,
-0.39070749282836914,
0.06935058534145355,
-0.034900963306427,
0.00722891092300415,
-0.0499424934387207,
-0.06237128749489784,
-0.04292929172515869,
0.18290595710277557,
-0.07631640136241913,
-0.11449567973613739,
0.027913879603147507,
-0.1357557475566864,
0.0187494195997715,
-0.2054615318775177,
-0.3490920662879944,
-0.3794981837272644,
0.5042912364006042,
0.20690955221652985,
0.04665791988372803,
-0.00010933595331152901,
-0.2117014080286026,
0.007899552583694458,
-0.07914955168962479,
-0.11377230286598206,
-0.0039702653884887695,
-0.08761920034885406,
0.05717375874519348,
-0.005468920338898897,
-0.0062255412340164185,
-0.16932693123817444,
-0.031150951981544495,
-0.14113658666610718,
-0.14397206902503967,
0.05833089351654053,
-0.3074696362018585,
0.18107029795646667,
-0.02174416184425354,
-0.017642579972743988,
-0.034723639488220215,
0.022739391773939133,
0.32456356287002563,
-0.27394577860832214,
0.5890680551528931,
0.2084890902042389,
-0.09127946943044662,
0.1096867099404335,
0.5735048651695251,
0.04543130844831467,
0.1950627714395523,
0.45135563611984253,
0.09502168744802475,
0.14827291667461395,
-0.2128918170928955,
0.16866257786750793,
0.4774181842803955,
0.552104115486145,
-0.09444639831781387,
-0.4191100597381592,
-0.44993939995765686,
0.19869805872440338,
0.07439778000116348,
-0.12203755229711533,
0.18937242031097412,
0.14357106387615204,
0.298329621553421,
-0.16537998616695404,
-0.10088825225830078,
-0.08548502624034882,
0.06728027015924454,
0.1278795450925827,
0.20864318311214447,
0.13354618847370148,
-0.09869418293237686,
0.4308960437774658,
-0.4183589816093445,
-0.10182323306798935,
-0.15060847997665405,
0.03948458656668663,
0.024377871304750443,
-0.1363563984632492,
-0.22970260679721832,
-0.119188092648983,
0.050016745924949646,
0.4214227795600891,
0.42893266677856445,
0.07613274455070496,
0.13485029339790344,
-0.030640367418527603,
0.18283644318580627,
-0.1319238394498825,
-0.03932512551546097,
0.4482322633266449,
0.08894863724708557,
0.41522616147994995,
0.03240419551730156,
0.17274339497089386,
0.11978930979967117,
-0.14193765819072723,
0.21561691164970398,
-0.19545502960681915,
0.21426817774772644,
0.007450878620147705,
-0.2341148555278778,
-0.03819429129362106,
0.11169563233852386,
-0.10586970299482346,
0.020513903349637985,
0.2021297663450241,
0.22156336903572083,
0.09007672220468521,
0.05328787863254547,
-0.4703463912010193,
-0.029711175709962845,
0.2642252743244171,
-0.1851014792919159,
-0.079639732837677,
-0.266625314950943,
-0.07734532654285431,
0.28452548384666443,
0.4746560752391815,
-0.2757052183151245,
0.26365527510643005,
-0.028313711285591125,
-0.3026575446128845,
-0.10347189754247665,
0.31690382957458496,
0.04901503399014473,
0.14647790789604187,
0.05607547238469124,
-0.3341419994831085,
-0.037843964993953705,
-0.03104676678776741,
-0.09865117818117142,
-0.2841089963912964,
0.07173280417919159,
-0.4698454737663269,
-0.09421142190694809,
-0.23482505977153778,
0.21292191743850708,
-0.09047534316778183,
0.06226998567581177,
-0.10936633497476578,
0.18274268507957458,
-0.13478904962539673,
-0.07827073335647583,
-0.00008142739534378052,
0.20631295442581177,
0.10523878037929535,
-0.15404897928237915,
-0.10164395719766617,
0.34637582302093506,
-0.29047784209251404,
-0.2738378643989563,
-0.0900326669216156,
-0.018118947744369507,
0.09010085463523865,
0.3091343641281128,
-0.21784208714962006,
-0.16372212767601013,
-0.06804406642913818,
0.3829634189605713,
-0.14271533489227295,
-0.3599421977996826,
-0.1116112619638443,
0.14679484069347382,
-0.215666726231575,
-0.14043541252613068,
0.1811138242483139,
0.05755826085805893,
0.37593480944633484,
-0.1491699069738388,
-0.10884800553321838,
0.03113960102200508,
-0.040136128664016724,
0.008527098223567009,
-0.14091040194034576,
-0.13722392916679382,
0.13860425353050232,
-0.1078435629606247,
-0.23060409724712372,
-0.05275221914052963,
0.19514720141887665,
0.008633461780846119,
0.10026507824659348,
-0.3068675696849823,
-0.10418044030666351,
0.3351653814315796,
0.5655884742736816,
0.20147548615932465,
0.04841820150613785,
-0.0600159578025341,
-0.4536252021789551,
0.09181397408246994,
-0.10644523799419403,
0.24872709810733795,
0.009638659656047821,
-0.6381678581237793,
-0.10445491969585419,
-0.1356007307767868,
-0.12473072111606598,
0.1222451776266098,
0.1604602038860321,
0.20797626674175262,
-0.22844897210597992,
-0.35602661967277527,
0.100675567984581,
0.11737287044525146,
-0.09849601984024048,
0.33314576745033264,
-0.14974360167980194,
0.13519147038459778,
-0.12709836661815643,
0.24150151014328003,
-0.05595308914780617,
0.007261313498020172,
0.3553381562232971,
-0.006390749476850033,
0.2126927673816681,
0.34989410638809204,
0.015423445031046867,
0.10353251546621323,
0.2881600260734558,
0.5634430050849915,
0.4408927261829376,
-0.004202499985694885,
0.3166976571083069,
-0.04466456547379494,
0.04333697631955147,
-0.004220284521579742,
-0.6015149354934692,
0.5532872080802917,
0.0076410211622715,
0.06195235252380371,
-0.21486179530620575,
-0.22358079254627228,
0.10253249108791351,
-0.15354683995246887,
-0.21392212808132172,
-0.6522448062896729,
-0.013969901949167252,
0.057491663843393326,
-0.24655550718307495,
0.2110958844423294,
-0.28975924849510193,
0.24095627665519714,
0.33261314034461975,
-0.16415941715240479,
0.40450018644332886,
0.0619751401245594,
-0.026867754757404327,
-0.05294497683644295,
0.40485474467277527,
0.3370687663555145,
0.2992735803127289,
0.30570223927497864,
0.006202537566423416,
-0.15303179621696472,
0.14992934465408325,
-0.1571434587240219,
0.13370667397975922,
-0.12932224571704865,
-0.12409134209156036,
0.10448330640792847,
0.2230033427476883,
-0.06460423022508621,
-0.4076825678348541,
-0.41173383593559265,
0.3852185010910034,
0.004237190820276737,
-0.16200724244117737,
-0.13992983102798462,
-0.44968417286872864,
-0.0890781581401825,
-0.1273379623889923,
-0.13274088501930237,
-0.5088061690330505,
-0.12383055686950684,
0.20214028656482697,
0.4323621392250061,
-0.25657230615615845,
0.33393603563308716,
-0.025071024894714355,
0.39373868703842163,
-0.41088274121284485,
-0.1179475411772728,
-0.231196328997612,
-0.05530102550983429,
-0.12870678305625916,
0.06266139447689056,
0.15361051261425018,
-0.3664928376674652,
0.4103735089302063,
-0.1813487857580185,
0.1386437863111496,
-0.5497126579284668,
-0.7364748120307922,
0.11672471463680267,
0.0476112924516201,
0.06216942518949509,
0.1824255883693695,
0.15166442096233368,
-0.0014449730515480042,
-0.09074263274669647,
0.07878131419420242,
0.22410061955451965,
-0.038829803466796875,
-0.0544719323515892,
-0.03722888603806496,
0.1547834426164627,
-0.19243106245994568,
-0.22207972407341003,
-0.22149501740932465,
-0.06262288987636566,
0.288607656955719,
-0.32674911618232727,
0.2529405951499939,
0.3920744061470032,
-0.3413558304309845,
-0.36688071489334106,
-0.41639649868011475,
0.24229949712753296,
-0.2539588212966919,
0.16915428638458252,
0.1740470677614212,
-0.26549801230430603,
0.0023545771837234497,
0.019442442804574966,
0.18969102203845978,
0.005678433924913406,
-0.14791935682296753,
0.35186105966567993,
-0.3661462366580963,
0.10933630168437958,
0.3965291976928711,
0.0787876695394516,
-0.0459761768579483,
0.024115465581417084,
0.2892587184906006,
-0.08880854398012161,
0.11830113083124161,
-0.14957624673843384,
-0.13935351371765137,
0.043692026287317276,
0.21541447937488556,
0.0890880897641182,
-0.08018641173839569,
-0.027709245681762695,
0.44269055128097534,
-0.135403111577034,
-0.10433313250541687,
0.24053621292114258,
-0.03614167124032974,
-0.00704864040017128,
0.10512395203113556,
-0.04986605793237686,
0.16566140949726105,
-0.07992416620254517,
0.2542933225631714,
0.3295183777809143,
0.1302751898765564,
-0.004735931754112244,
-0.04238094016909599,
-0.010955700650811195,
-0.29554298520088196,
-0.30907613039016724,
0.04959132522344589,
-0.006359610706567764,
0.1521051824092865,
0.22797971963882446,
0.14569306373596191,
-0.23193588852882385,
-0.32924821972846985,
0.30276376008987427,
0.5577410459518433,
-0.12771669030189514,
-0.07023399323225021,
-0.43518486618995667,
0.1574116051197052,
-0.010724447667598724,
0.2694091200828552,
-0.010649345815181732,
0.25387975573539734,
-0.11016689240932465,
0.015897437930107117,
0.07568272203207016,
0.19686827063560486,
0.5767980217933655,
-0.22510097920894623,
0.12067526578903198,
-0.3339192271232605,
0.044256843626499176,
0.3950926959514618,
-0.23747356235980988,
-0.028858670964837074,
-0.2519916296005249,
0.05119800567626953,
0.4749862551689148,
-0.4163568615913391,
-0.4034273028373718,
0.026744743809103966,
-0.10706239193677902,
0.009080272167921066,
-0.153730109333992,
0.10365156829357147,
0.15047910809516907,
-0.39205947518348694,
-0.18894535303115845,
0.0356716588139534,
0.11689464747905731,
-0.2533440887928009,
0.046327587217092514,
0.08309674263000488,
0.1288190484046936,
0.36911195516586304,
0.48473280668258667,
0.29523321986198425,
0.3075266480445862,
0.0008778013288974762,
0.07800254225730896,
0.2537893056869507,
0.537235677242279,
0.09663358330726624,
-0.22693651914596558,
-0.21903422474861145,
0.10979852080345154,
-0.22239281237125397,
0.18082314729690552,
0.3162927031517029,
0.16313780844211578,
0.23856520652770996,
0.35772985219955444,
0.07038682699203491,
-0.4034760296344757,
0.025333736091852188,
-0.0959472805261612,
-0.05841471254825592,
-0.12643760442733765,
-0.3447391092777252,
0.4376648962497711,
0.43061766028404236,
-0.31712692975997925,
0.05423930287361145,
0.1567298173904419,
-0.34078556299209595,
0.08960717171430588,
0.2216569185256958,
0.9699242115020752,
0.0765930786728859,
0.018651526421308517,
-0.3938531279563904,
-0.39372479915618896,
0.5807874798774719,
-0.35493725538253784,
0.15138916671276093,
-0.4652447998523712,
0.047520361840724945,
-0.08761908859014511,
0.2223178744316101,
0.2485119104385376,
0.3861110210418701,
0.13812606036663055,
0.3348761200904846,
0.093247190117836,
0.400463342666626,
0.011948333121836185,
0.5520111918449402,
-0.45660561323165894,
-0.4014817774295807,
0.29732823371887207,
0.12023887038230896,
-0.3050270080566406,
0.24577032029628754,
-0.14406231045722961,
-0.20908164978027344,
-0.021022919565439224,
-0.08819584548473358,
-0.2353639006614685,
-0.117998406291008,
-0.3498148024082184,
-0.050795577466487885,
-0.04571404680609703,
-0.033111993223428726,
0.08657620847225189,
-0.20989280939102173,
0.1581314206123352,
0.4273715913295746,
-0.3720444142818451,
0.11602649092674255,
-0.03386685997247696,
0.1628221869468689,
-0.2191775143146515,
-0.11309891194105148,
0.23374296724796295,
-0.018474165350198746,
-0.1568240374326706,
-0.3279292583465576,
0.08518711477518082,
0.05239114910364151,
-0.5964313745498657,
-0.11292153596878052,
-0.0026331916451454163,
-0.13970690965652466,
0.030874639749526978,
-0.1478623002767563,
-0.1885364055633545,
-0.1310138702392578,
0.14299336075782776,
0.04466976970434189,
-0.15955296158790588,
-0.06055670231580734,
0.2787112593650818,
-0.08376584947109222,
-0.12934450805187225,
0.5018420219421387,
0.0230337493121624,
-0.10162881016731262,
0.07168078422546387,
-0.08003824949264526,
-0.18827910721302032,
-0.2973063290119171,
-0.12125878036022186,
0.03339781612157822,
-0.6169069409370422,
-0.13725923001766205,
0.19441398978233337,
-0.3612361550331116,
0.10786406695842743,
0.07124599814414978,
0.3636670708656311,
0.0765940323472023,
-0.10859310626983643,
-0.09527169913053513,
-0.021372420713305473,
0.13043980300426483,
-0.5102285146713257,
0.3510740399360657,
0.05114693194627762,
-0.06281864643096924,
-0.37681844830513,
-0.39417752623558044,
-0.37710490822792053,
-0.08911789953708649,
0.2763459384441376,
0.006408631801605225,
-0.02066202089190483,
-0.0005174838006496429,
-0.09201689809560776,
-0.26338428258895874,
0.12231428921222687,
0.11586353927850723,
0.07379546761512756,
-0.20562711358070374,
-0.23475779592990875,
0.10053611546754837,
-0.2037070393562317,
0.3135428726673126,
-0.3737107515335083,
-0.003420928493142128,
-0.07005323469638824,
-0.07138913869857788,
0.30333107709884644,
-0.014175701886415482,
0.25827550888061523,
0.5149863362312317,
-0.15440908074378967,
-0.08537020534276962,
0.14651596546173096,
-0.05771349370479584,
0.14353129267692566,
0.0428418293595314,
0.10285477340221405,
0.22081375122070312,
-0.31071311235427856,
0.00607878714799881,
-0.3228234052658081,
0.27351489663124084,
-0.1010245680809021,
0.008142847567796707,
0.20136764645576477,
0.11420190334320068,
-0.15123338997364044,
0.31976479291915894,
0.3155166506767273,
0.30268657207489014,
0.07462659478187561,
-0.45467519760131836,
0.30712971091270447,
0.2237500548362732,
-0.10632454603910446,
-0.5099378824234009,
0.06967529654502869,
0.14587253332138062,
0.06039242818951607,
0.19909372925758362,
0.4908885657787323,
0.30119454860687256,
-0.44393062591552734,
-0.09982596337795258,
0.6215296983718872,
0.10196496546268463,
0.20940475165843964,
0.4931829273700714,
0.16472525894641876,
0.17163152992725372,
0.38632744550704956,
0.03683391213417053,
0.14493264257907867,
-0.17915228009223938,
-0.06658542901277542,
0.1613631546497345,
0.04154425859451294,
0.1011696457862854,
0.34057483077049255,
-0.1856740564107895,
0.005532644689083099,
0.14830324053764343,
0.2817835509777069,
0.34700116515159607,
0.027008961886167526,
0.18072569370269775,
0.15524335205554962,
-0.6637784838676453,
-0.25271594524383545,
0.2856733500957489,
-0.11243882030248642,
-0.20069757103919983,
-0.45404136180877686,
-0.08819900453090668,
-0.15729033946990967,
-0.00966266542673111,
-0.20815116167068481,
0.013155866414308548,
0.3507537543773651,
-0.1300099492073059,
0.02518225461244583,
-0.6122147440910339,
-0.07757503539323807,
0.3142704665660858,
0.4114455580711365,
-0.24315790832042694,
-0.11012808233499527,
0.13828495144844055,
-0.26890286803245544,
0.014139216393232346,
0.03974337503314018,
0.0648241937160492,
-0.1946997195482254,
0.47479447722435,
-0.14234663546085358,
-0.41472622752189636,
0.00480291061103344,
0.1537274271249771,
0.11461806297302246,
0.19905385375022888,
-0.09009568393230438,
0.10531561076641083,
0.15248748660087585,
-0.04460284858942032,
0.11005373299121857,
-0.14164018630981445,
-0.11391344666481018,
0.14475683867931366,
-0.017067745327949524,
0.2829962372779846,
0.04997538775205612,
0.011106196790933609,
-0.03254879266023636,
-0.1062178909778595,
-0.46396785974502563,
0.6647828221321106,
0.1059693694114685,
0.05096924304962158,
-0.3215310573577881,
0.09529520571231842,
0.22964327037334442,
0.1255001425743103,
0.1752277910709381,
-0.17015019059181213,
-0.35251250863075256,
0.26226407289505005,
-0.2872561812400818,
0.0004779696464538574,
-0.012639496475458145,
0.0032525602728128433,
0.014783503487706184,
-0.22863909602165222,
0.2441316545009613,
0.024257976561784744,
-0.11711524426937103,
-0.12942621111869812,
0.057943858206272125,
0.3558287024497986,
-0.23636068403720856,
0.06513921171426773,
-0.31385403871536255,
-0.007752453908324242,
0.17642071843147278,
-0.14763465523719788,
0.32164955139160156,
0.11213932931423187,
-0.11135448515415192,
-0.5049658417701721,
0.22572055459022522,
0.15289625525474548,
0.04857908561825752,
0.40078771114349365,
0.10200762748718262,
0.25173419713974,
0.07711274176836014,
-0.00205899216234684,
-0.1032215803861618,
0.19551295042037964,
-0.11959103494882584,
0.20110923051834106,
0.0576636865735054,
0.09732923656702042,
0.26204004883766174,
-0.03605162724852562,
-0.3389922082424164,
0.31860068440437317,
0.10306383669376373,
0.20823973417282104,
-0.47653713822364807,
0.0683201402425766,
0.2340332567691803,
-0.37020018696784973,
0.11540694534778595,
-0.013290993869304657,
0.050811342895030975,
0.1719498187303543,
-0.0917392298579216,
-0.4739072024822235,
0.44669005274772644,
-0.05752558633685112,
0.13611774146556854,
0.04487698897719383,
0.4338865280151367,
0.29389259219169617,
-0.01859336905181408,
-0.7028767466545105,
-0.01811724156141281,
0.3215315043926239,
-0.02027178928256035,
-0.30660784244537354,
0.07789471745491028,
0.046857722103595734,
-0.26634883880615234,
-0.09397278726100922,
-0.006418362259864807,
0.03335515409708023,
-0.2975175082683563,
-0.002628020942211151,
-0.037595201283693314
] |
https://github.com/huggingface/datasets/issues/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 103 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | [
-0.5941498279571533,
0.015477493405342102,
0.11166349053382874,
0.26067861914634705,
-0.15293064713478088,
-0.13382183015346527,
0.2904721796512604,
0.26813632249832153,
0.08443139493465424,
0.23710545897483826,
0.012762445025146008,
0.13342781364917755,
-0.3677477538585663,
0.02297389693558216,
0.08931602537631989,
-0.20691385865211487,
-0.09014470130205154,
0.43871647119522095,
-0.1709374636411667,
-0.03576568514108658,
0.00004407018423080444,
-0.050081901252269745,
-0.3697966933250427,
-0.09817583858966827,
0.24301084876060486,
0.16282889246940613,
-0.01699395850300789,
0.08755631744861603,
-0.21290412545204163,
-0.5013253688812256,
0.1568906605243683,
0.02908904477953911,
0.4434942901134491,
0.4764750003814697,
-0.00011432912288000807,
0.059015244245529175,
0.5336083769798279,
-0.17219263315200806,
-0.22073358297348022,
-0.36657363176345825,
-0.10427545011043549,
0.029976705089211464,
0.3377232551574707,
-0.11478178948163986,
-0.2951818108558655,
-0.4295990467071533,
0.29646584391593933,
-0.2538520097732544,
0.3996421694755554,
0.27635815739631653,
0.1636175662279129,
0.4095644950866699,
-0.07912702858448029,
-0.0339844785630703,
0.06896886974573135,
0.28792136907577515,
-0.2252509891986847,
0.07076514512300491,
0.030325237661600113,
0.2253849357366562,
-0.11047776788473129,
0.32274723052978516,
-0.1295970380306244,
0.015994500368833542,
0.30160602927207947,
0.02951689064502716,
-0.08431800454854965,
-0.2898899018764496,
-0.010048717260360718,
0.4630512595176697,
0.7597836256027222,
-0.07453157752752304,
-0.05463911592960358,
0.13221856951713562,
0.2434217631816864,
-0.13477091491222382,
0.12883597612380981,
0.24355679750442505,
-0.33536234498023987,
0.13505268096923828,
-0.13847973942756653,
-0.09221909940242767,
-0.23709145188331604,
-0.08459493517875671,
-0.1441577970981598,
0.11296446621417999,
-0.12703263759613037,
0.07471585273742676,
0.1418992131948471,
-0.053142376244068146,
0.010474840179085732,
-0.0828699991106987,
-0.19804425537586212,
-0.04536372795701027,
-0.20527054369449615,
-0.03749920055270195,
0.18019714951515198,
-0.3278352916240692,
-0.11777165532112122,
0.5059677958488464,
0.5098191499710083,
0.07925868034362793,
0.07938776910305023,
0.2004881501197815,
0.08491334319114685,
-0.13235090672969818,
0.11061272025108337,
0.09200391173362732,
0.27003011107444763,
-0.06377798318862915,
0.23269808292388916,
-0.2723049521446228,
-0.2461487203836441,
0.13932651281356812,
0.013297360390424728,
-0.2855452597141266,
0.37220674753189087,
-0.2950875163078308,
-0.12004204839468002,
0.13074706494808197,
-0.476299911737442,
0.0533909797668457,
0.012744912877678871,
0.3302431106567383,
-0.40184253454208374,
0.1187698170542717,
0.26410460472106934,
0.1264963150024414,
-0.2791267931461334,
-0.37290212512016296,
-0.11628448963165283,
-0.04329003021121025,
-0.19774430990219116,
0.02763725072145462,
0.4025922417640686,
-0.08348578214645386,
-0.003210602328181267,
-0.10972592234611511,
-0.14360037446022034,
0.03038354218006134,
0.3005194365978241,
-0.06171378120779991,
0.26618340611457825,
0.28716209530830383,
0.296368807554245,
0.0762532651424408,
0.06090064346790314,
-0.3154712915420532,
-0.05337640643119812,
0.35521844029426575,
-0.025517158210277557,
-0.16385607421398163,
-0.3076990246772766,
0.14133603870868683,
-0.4597538113594055,
0.02631961554288864,
-0.48787012696266174,
0.133246511220932,
-0.45046916604042053,
-0.5213209986686707,
-0.31464678049087524,
-0.14331024885177612,
-0.06318306177854538,
-0.03085983544588089,
0.6371543407440186,
0.654768705368042,
-0.6462321281433105,
-0.043674319982528687,
-0.41951557993888855,
-0.33370643854141235,
0.3038478195667267,
0.036241669207811356,
-0.03720260038971901,
-0.17207011580467224,
-0.285600483417511,
0.09558305144309998,
0.5270481705665588,
0.0318242646753788,
-0.3764595687389374,
0.2826697528362274,
-0.1322067826986313,
-0.06177999824285507,
0.03158557415008545,
0.11875494569540024,
0.2856103777885437,
0.03900282084941864,
-0.5029681921005249,
-0.18636736273765564,
0.12600861489772797,
-0.10855682939291,
-0.3049469292163849,
0.006223395466804504,
0.0530388206243515,
0.2351607233285904,
0.19652175903320312,
0.1202220469713211,
-0.07213514298200607,
0.1775573045015335,
0.14139965176582336,
0.2355889081954956,
0.40795913338661194,
0.20774182677268982,
0.3541073501110077,
0.040003713220357895,
-0.1977529376745224,
-0.170138418674469,
-0.426408588886261,
0.029185563325881958,
0.014318108558654785,
0.18245811760425568,
0.11563895642757416,
0.03886432945728302,
-0.06458708643913269,
-0.0776703804731369,
-0.2305268496274948,
-0.21099771559238434,
0.1521054208278656,
0.23903560638427734,
-0.2236051708459854,
0.09527991712093353,
-0.3134433925151825,
0.07459152489900589,
-0.12095599621534348,
-0.07010098546743393,
-0.23867405951023102,
0.6265288591384888,
-0.22622881829738617,
-0.177688330411911,
-0.046494513750076294,
-0.06347065418958664,
-0.2365189790725708,
-0.04764171689748764,
0.026919959113001823,
0.22154146432876587,
-0.28611552715301514,
0.017531685531139374,
0.022009415552020073,
0.030631110072135925,
0.1895119696855545,
-0.9186623692512512,
0.17141519486904144,
0.15362735092639923,
0.13113455474376678,
-0.11244040727615356,
-0.41270971298217773,
-0.031516507267951965,
0.23279373347759247,
0.1837250292301178,
0.030051983892917633,
0.006989281624555588,
0.027506383135914803,
-0.11495022475719452,
-0.2700667381286621,
-0.10329415649175644,
0.1273014098405838,
0.17744266986846924,
0.17297746241092682,
-0.09715895354747772,
-0.5576843023300171,
-0.15604496002197266,
-0.07183732092380524,
0.23086020350456238,
-0.021668873727321625,
0.09316922724246979,
-0.42331546545028687,
-0.008446000516414642,
0.1549089550971985,
0.127123162150383,
0.1608245074748993,
0.146439328789711,
0.2777131497859955,
0.20642010867595673,
0.05628938600420952,
-0.07766857743263245,
-0.14347556233406067,
-0.045014068484306335,
-0.08987829089164734,
0.14099225401878357,
-0.09620985388755798,
0.2244223952293396,
-0.17529428005218506,
-0.27845045924186707,
0.1916615515947342,
0.42949822545051575,
-0.2637167274951935,
-0.0321696512401104,
-0.4350875914096832,
-0.35439178347587585,
-0.11511225998401642,
0.1664993315935135,
-0.183615043759346,
-0.2178587019443512,
-0.17941932380199432,
0.4941997230052948,
0.005091503262519836,
0.0948796421289444,
-0.3751086890697479,
0.2324288785457611,
0.08199907839298248,
0.2545335292816162,
-0.2815341353416443,
0.07201055437326431,
-0.36317095160484314,
0.160493865609169,
0.31853562593460083,
0.1557280719280243,
0.306570440530777,
-0.14130103588104248,
0.13259895145893097,
-0.284280389547348,
-0.20194658637046814,
0.15598145127296448,
0.24365724623203278,
0.009067476727068424,
0.0448225662112236,
0.39697182178497314,
-0.14751967787742615,
-0.13926255702972412,
0.2854154109954834,
-0.20938581228256226,
-0.16543568670749664,
0.057795241475105286,
-0.006790744140744209,
0.039241399616003036,
-0.23195508122444153,
-0.16037356853485107,
-0.22659483551979065,
-0.5262542963027954,
0.07168809324502945,
-0.07353153824806213,
0.13985997438430786,
0.014315912500023842,
0.1746155321598053,
0.2183089405298233,
-0.03975571319460869,
-0.2611759901046753,
0.0846078023314476,
-0.3063943088054657,
0.31016969680786133,
-0.3783234655857086,
-0.5071271657943726,
0.407318651676178,
0.07029649615287781,
0.04031752049922943,
0.005726450122892857,
-0.847665548324585,
0.14560405910015106,
0.11113613843917847,
-0.009573560208082199,
-0.034235045313835144,
-0.2769560217857361,
0.19303558766841888,
0.0673774778842926,
0.01783030293881893,
-0.07416536659002304,
-0.09768515825271606,
-0.010218344628810883,
-0.25233614444732666,
0.41145363450050354,
0.19157114624977112,
0.3948555886745453,
0.025861579924821854,
0.2563772201538086,
0.387028306722641,
-0.046312954276800156,
0.36766350269317627,
-0.20590290427207947,
0.6197307109832764,
-0.1257539689540863,
-0.017510421574115753,
0.08339390903711319,
0.2419946789741516,
0.15438483655452728,
0.22758221626281738,
0.043643850833177567,
-0.2517350912094116,
-0.38917648792266846,
0.2420559823513031,
0.028245866298675537,
-0.22658087313175201,
0.2855304181575775,
-0.2113332450389862,
-0.025252752006053925,
0.020760562270879745,
0.1417781412601471,
-0.020067404955625534,
-0.27442649006843567,
-0.2842492163181305,
0.4708942770957947,
0.2631100118160248,
0.08573625236749649,
-0.33889272809028625,
0.3438650071620941,
-0.4470086097717285,
0.013889014720916748,
-0.07778951525688171,
0.42287677526474,
-0.15946835279464722,
-0.03882661834359169,
0.1295730024576187,
0.022524124011397362,
0.20131555199623108,
-0.24146504700183868,
0.03480124473571777,
0.39433422684669495,
0.11305108666419983,
-0.3029446601867676,
-0.12396235764026642,
-0.15862295031547546,
-0.13693641126155853,
0.1305016726255417,
-0.005786024034023285,
-0.08700243383646011,
-0.2002401351928711,
0.35902294516563416,
-0.10204008221626282,
-0.23627781867980957,
-0.321455717086792,
-0.11682567000389099,
0.03055107593536377,
0.09811130166053772,
-0.15500453114509583,
-0.15229682624340057,
-0.13542218506336212,
-0.18131108582019806,
-0.0010714568197727203,
-0.06527139991521835,
0.046881504356861115,
0.1905878484249115,
0.0801941305398941,
0.4163573384284973,
0.03470951318740845,
0.28138023614883423,
0.3209669888019562,
0.17421439290046692,
0.453029066324234,
0.3894593119621277,
0.07636886835098267,
-0.10526171326637268,
0.5020317435264587,
-0.14481386542320251,
0.07049641013145447,
0.06611774116754532,
0.1549072563648224,
-0.1441289782524109,
0.3519826829433441,
0.1237688958644867,
-0.3788997232913971,
0.3590792119503021,
0.23354820907115936,
-0.3076377809047699,
-0.37369921803474426,
-0.47556036710739136,
0.4846489131450653,
0.0148654505610466,
0.12767338752746582,
0.21363896131515503,
0.12383566796779633,
0.08296290040016174,
0.0690208300948143,
-0.018518373370170593,
0.8461379408836365,
0.20703215897083282,
0.020221445709466934,
0.34572964906692505,
-0.008784595876932144,
0.1963706910610199,
-0.038313958793878555,
0.04078496992588043,
-0.3314550220966339,
-0.46306082606315613,
-0.1403219848871231,
-0.12683771550655365,
0.13493600487709045,
0.09437112510204315,
-0.3080112040042877,
-0.19335144758224487,
0.3685692548751831,
0.16713349521160126,
0.11537104099988937,
0.1887412816286087,
0.08744629472494125,
0.09381774067878723,
0.09696603566408157,
0.1559842824935913,
-0.1079799085855484,
0.30076274275779724,
0.0019319914281368256,
-0.1442154198884964,
0.019055578857660294,
-0.02729221060872078,
-0.5761522650718689,
0.22594159841537476,
0.19492213428020477,
-0.18425878882408142,
0.03960388898849487,
-0.3388299345970154,
0.30682775378227234,
0.2707858681678772,
-0.3327917456626892,
0.2780110538005829,
-0.2981598675251007,
0.17616796493530273,
0.1080227643251419,
-0.07387810200452805,
0.029421938583254814,
0.2726036310195923,
0.18033483624458313,
-0.27746322751045227,
-0.22083932161331177,
0.2592918276786804,
-0.16181840002536774,
-0.19465474784374237,
0.11989453434944153,
-0.1021934300661087,
0.44489216804504395,
-0.02849486656486988,
0.14309397339820862,
0.02731732651591301,
-0.1559922993183136,
0.04273688420653343,
0.12038716673851013,
0.1310776025056839,
-0.04444221034646034,
-0.012038446962833405,
0.32230839133262634,
-0.13921812176704407,
0.0342220664024353,
0.5261001586914062,
-0.09069712460041046,
0.11059445142745972,
0.5690432786941528,
0.25730422139167786,
-0.11440259218215942,
-0.18746435642242432,
0.12266803532838821,
0.49520254135131836,
-0.30775558948516846,
-0.0661020427942276,
-0.24634723365306854,
0.21116121113300323,
0.43791845440864563,
0.2522174119949341,
0.17086881399154663,
-0.30551227927207947,
-0.22636474668979645,
-0.3340681791305542,
-0.17444302141666412,
0.12094508111476898,
-0.11647352576255798,
0.3103092908859253,
-0.047238197177648544,
0.024752382189035416,
0.19731570780277252,
-0.23245590925216675,
-0.319923460483551,
-0.018440913408994675,
-0.1562662273645401,
0.06948041915893555,
0.12687233090400696,
0.004551198333501816,
0.14665278792381287,
-0.11024758219718933,
0.0012926720082759857,
0.07879763096570969,
-0.3430275619029999,
-0.11623579263687134,
-0.20376242697238922,
0.16076332330703735,
0.10400979965925217,
-0.2984413206577301,
-0.0761578157544136,
-0.04926711320877075,
-0.2699950039386749,
0.09528215229511261,
-0.17359115183353424,
-0.06278328597545624,
-0.16635143756866455,
0.0736265704035759,
0.23169320821762085,
0.16108450293540955,
-0.3707665801048279,
0.3622836172580719,
0.18562191724777222,
0.4587869644165039,
-0.19115087389945984,
0.13046836853027344,
0.062978595495224,
-0.020607486367225647,
-0.34320300817489624,
0.023336227983236313,
-0.02171163260936737,
-0.11293452233076096,
0.4992695748806,
-0.18212968111038208,
0.4434146285057068,
-0.03988036513328552,
0.4819399416446686,
0.3712095618247986,
0.021865928545594215,
-0.05092288926243782,
0.5512433648109436,
0.15831145644187927,
-0.16391663253307343,
0.32028400897979736,
0.11278252303600311,
0.4649907648563385,
0.08314503729343414,
-0.01814863830804825,
-0.17285612225532532,
-0.06714651733636856,
-0.004184752702713013,
0.17307934165000916,
0.3002871870994568,
-0.21643123030662537,
0.21494103968143463,
0.41776251792907715,
-0.21028192341327667,
0.06902678310871124,
0.03345559537410736,
0.21845561265945435,
-0.02595905214548111,
0.2629740238189697,
0.07679340988397598,
0.2135237157344818,
0.05178852751851082,
0.25285443663597107,
-0.04605882614850998,
-0.5343084335327148,
-0.10473449528217316,
0.23263032734394073,
0.006382003426551819,
0.23296430706977844,
0.012746207416057587,
0.19725988805294037,
-0.11626923829317093,
0.045020874589681625,
-0.16583530604839325,
0.20397044718265533,
-0.14182928204536438,
0.17604443430900574,
-0.5118868350982666,
-0.13882878422737122,
-0.08363668620586395,
0.05886266008019447,
0.16773568093776703,
0.04186844825744629,
-0.2277623414993286,
0.27002495527267456,
-0.11640335619449615,
-0.2846756875514984,
-0.21884110569953918,
0.12106073647737503,
0.010668709874153137,
-0.250195175409317,
0.1815730184316635,
0.44431549310684204,
-0.0225498229265213,
0.19341520965099335,
0.42894986271858215,
0.23379933834075928,
0.33234626054763794,
0.2736912965774536,
-0.014530551619827747,
0.23130908608436584,
-0.1597272902727127,
-0.08047638088464737,
0.0173205379396677,
0.4057663083076477,
-0.19506941735744476,
0.1976146697998047,
0.05902288109064102,
-0.15186388790607452,
0.26809412240982056,
-0.2535455524921417,
0.31006497144699097,
-0.013128628954291344,
0.0532384030520916,
-0.19781501591205597,
-0.1422073096036911,
-0.18873055279254913,
-0.4362282454967499,
-0.2252274453639984,
0.09767232835292816,
0.02989274635910988,
-0.0030488658230751753,
-0.0715203508734703,
-0.2767508327960968,
0.05414218455553055,
0.10955427587032318,
0.3713494539260864,
0.4065036177635193,
0.024395905435085297,
0.09291023761034012,
-0.3644466996192932,
-0.8054870963096619,
0.3159627616405487,
-0.1083531379699707,
-0.07632377743721008,
0.1350346952676773,
0.2264098823070526,
-0.11500551551580429,
0.17430377006530762,
-0.06591629981994629,
0.017081931233406067,
-0.03469304367899895,
0.4664405286312103,
-0.3589347004890442,
-0.22990943491458893,
0.22465677559375763,
0.1713314801454544,
-0.2205447256565094,
-0.07848429679870605,
0.254699170589447,
-0.15924035012722015,
0.035000741481781006,
-0.06598274409770966,
0.012320823967456818,
-0.28479984402656555,
0.0995609313249588,
0.2980932593345642,
-0.030174868181347847,
0.4470246732234955,
0.14216718077659607,
-0.254133015871048,
-0.3089752197265625,
0.15210168063640594,
-0.1910654902458191,
-0.04121462255716324,
0.367681086063385,
0.5103720426559448,
-0.05781800299882889,
0.0010656677186489105,
-0.22080503404140472,
-0.04131828621029854,
-0.017686795443296432,
0.041429098695516586,
-0.6576735377311707,
-0.03350695222616196,
-0.1568508893251419,
0.0357261598110199,
0.25588977336883545,
-0.1250770092010498,
0.03526043891906738,
-0.2219291776418686,
-0.3823103904724121,
-0.20974037051200867,
0.3522506356239319,
-0.3263477087020874,
0.1347815990447998,
-0.26608729362487793,
-0.21493172645568848,
-0.1457901895046234,
0.02585529536008835,
-0.47994309663772583,
-0.02198493480682373,
0.29432737827301025,
-0.19707787036895752,
0.35197076201438904,
-0.015186360105872154,
-0.15371045470237732,
0.12182331085205078,
-0.13655608892440796,
0.5629574060440063,
0.02091718092560768,
-0.1748509258031845,
-0.014434924349188805,
-0.1541687548160553
] |
https://github.com/huggingface/datasets/issues/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 37 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | [
-0.6053083539009094,
-0.00001973658800125122,
0.07999341189861298,
0.22531963884830475,
-0.15019583702087402,
-0.17358970642089844,
0.29381129145622253,
0.25926947593688965,
0.08226567506790161,
0.3017258644104004,
0.04615844786167145,
0.022501572966575623,
-0.37967973947525024,
0.05069264769554138,
0.03596046566963196,
-0.19373415410518646,
-0.09156756848096848,
0.3536638021469116,
-0.13706347346305847,
-0.04723589867353439,
-0.07560794800519943,
-0.0037192925810813904,
-0.3999130129814148,
-0.04775655269622803,
0.19619694352149963,
0.1561690866947174,
-0.08291823416948318,
-0.028682105243206024,
-0.25588950514793396,
-0.46367788314819336,
0.20546428859233856,
0.1238134503364563,
0.39292094111442566,
0.44859087467193604,
-0.00011927714513149112,
0.08344066143035889,
0.5539523363113403,
-0.10257808864116669,
-0.11966383457183838,
-0.3844614028930664,
-0.07219090312719345,
-0.009572104550898075,
0.3536314368247986,
-0.09155105799436569,
-0.36708831787109375,
-0.4111126661300659,
0.3057403266429901,
-0.2640911340713501,
0.2740580439567566,
0.2770540416240692,
0.13540296256542206,
0.437546044588089,
-0.1754004806280136,
-0.15052549540996552,
0.16596150398254395,
0.28886669874191284,
-0.16922122240066528,
0.0015854928642511368,
0.14007054269313812,
0.0975441262125969,
-0.0997873917222023,
0.29016461968421936,
-0.0880875289440155,
-0.0970713198184967,
0.2652721107006073,
0.09586358070373535,
-0.1455853283405304,
-0.3172333836555481,
-0.02020343765616417,
0.4698255658149719,
0.8066274523735046,
-0.038470424711704254,
-0.15391656756401062,
0.10134366899728775,
0.23501111567020416,
-0.0339595265686512,
0.193214550614357,
0.24212126433849335,
-0.25191035866737366,
0.1834479123353958,
-0.1799944043159485,
-0.0033695183228701353,
-0.19999073445796967,
0.004100047051906586,
-0.2283172607421875,
0.03968910127878189,
-0.13547739386558533,
0.0785934329032898,
0.14508956670761108,
-0.00031152740120887756,
-0.05617945268750191,
-0.18211711943149567,
-0.2273859977722168,
-0.043469276279211044,
-0.10429616272449493,
0.012223578989505768,
0.23919090628623962,
-0.39242321252822876,
-0.13694366812705994,
0.5188078880310059,
0.4142098128795624,
0.1370665729045868,
0.04426007717847824,
0.20208591222763062,
0.11278179287910461,
-0.17697522044181824,
0.13685612380504608,
0.33830565214157104,
0.30651718378067017,
-0.008687781170010567,
0.320161372423172,
-0.21392714977264404,
-0.1491421014070511,
0.006905645132064819,
-0.13530972599983215,
-0.28987112641334534,
0.3643859624862671,
-0.28851574659347534,
-0.2345031499862671,
0.21118324995040894,
-0.41044989228248596,
0.06375039368867874,
0.012673909775912762,
0.36725664138793945,
-0.35551586747169495,
0.04902518540620804,
0.3241552710533142,
0.13229146599769592,
-0.3283001184463501,
-0.22511790692806244,
-0.1858362853527069,
0.025051210075616837,
-0.23178592324256897,
-0.00030011869966983795,
0.37233614921569824,
0.12341707944869995,
-0.04064628481864929,
-0.1042674258351326,
-0.15854547917842865,
0.00010066106915473938,
0.1751420944929123,
-0.051247987896203995,
0.2113664150238037,
0.3448686897754669,
0.29071590304374695,
0.06076815724372864,
0.018000509589910507,
-0.3365224599838257,
-0.045270342379808426,
0.36676904559135437,
0.12343629449605942,
-0.1177285760641098,
-0.2751760482788086,
0.1298561543226242,
-0.5374484062194824,
0.026424355804920197,
-0.49537405371665955,
0.19115668535232544,
-0.45597341656684875,
-0.3785141706466675,
-0.2894458472728729,
-0.1961873173713684,
0.00814129039645195,
0.030711909756064415,
0.6020914316177368,
0.6777383685112,
-0.5689077377319336,
-0.07934357970952988,
-0.3471742272377014,
-0.43048033118247986,
0.3041681945323944,
-0.011667519807815552,
-0.02886987291276455,
-0.1900770366191864,
-0.32258108258247375,
0.18169723451137543,
0.5332455039024353,
-0.016749437898397446,
-0.3464334011077881,
0.2373519390821457,
-0.17191556096076965,
-0.09113442152738571,
0.06586924195289612,
0.08501461148262024,
0.2090730369091034,
0.06983868777751923,
-0.48312249779701233,
-0.25823938846588135,
0.1423366665840149,
-0.1691528856754303,
-0.32883715629577637,
-0.03861379250884056,
0.02144721895456314,
0.23296774923801422,
0.32374486327171326,
0.025726690888404846,
-0.010055609047412872,
0.09067840874195099,
0.2518521547317505,
0.1675708144903183,
0.3641332685947418,
0.2586051821708679,
0.42937734723091125,
0.030566778033971786,
-0.1940062791109085,
-0.22736066579818726,
-0.3996760845184326,
0.02775997668504715,
0.03866847604513168,
0.20796740055084229,
0.10628020763397217,
-0.003675512969493866,
-0.07638487219810486,
-0.05226769298315048,
-0.28276461362838745,
-0.22606754302978516,
0.10231763124465942,
0.10677572339773178,
-0.27306967973709106,
0.1083705723285675,
-0.2692723274230957,
-0.003244709223508835,
-0.1122831404209137,
0.04929449409246445,
-0.21805299818515778,
0.5863922834396362,
-0.21717612445354462,
-0.1882074773311615,
0.016348473727703094,
-0.014802396297454834,
-0.2500435411930084,
-0.09920640289783478,
0.02940760925412178,
0.15079641342163086,
-0.14914937317371368,
0.08364490419626236,
0.03274252265691757,
-0.05848991870880127,
0.1962769776582718,
-0.8871460556983948,
0.09104230999946594,
0.0646800622344017,
0.03786338493227959,
-0.08868496119976044,
-0.4640701115131378,
0.07945787161588669,
0.2558695077896118,
0.1007627472281456,
-0.02731720358133316,
0.05466018617153168,
-0.02393854781985283,
-0.17681734263896942,
-0.2105386108160019,
-0.18847008049488068,
0.23876455426216125,
0.2301725298166275,
0.18038393557071686,
-0.1655537188053131,
-0.5671559572219849,
-0.13946866989135742,
-0.19854384660720825,
0.12841983139514923,
-0.031029820442199707,
0.03855837136507034,
-0.31209826469421387,
0.12164425104856491,
0.08956941962242126,
0.15987512469291687,
0.07766378670930862,
0.15365809202194214,
0.2215786576271057,
0.247177854180336,
0.057635437697172165,
-0.11653831601142883,
-0.027742736041545868,
0.02524012327194214,
-0.19383347034454346,
0.1477910280227661,
-0.097390316426754,
0.1915714144706726,
-0.10038141161203384,
-0.2489262968301773,
0.1640547662973404,
0.4643542170524597,
-0.37057769298553467,
-0.052332378923892975,
-0.45084795355796814,
-0.30793625116348267,
-0.1031864657998085,
0.1540241837501526,
-0.12417353689670563,
-0.26705822348594666,
-0.17919491231441498,
0.43205592036247253,
-0.12804052233695984,
0.11733201146125793,
-0.45874473452568054,
0.11554285138845444,
0.09024818241596222,
0.25036734342575073,
-0.1605423390865326,
0.16069114208221436,
-0.4006851613521576,
0.1572640836238861,
0.3764462172985077,
0.13055062294006348,
0.3003648519515991,
-0.16340158879756927,
0.12988246977329254,
-0.3050154447555542,
-0.27935320138931274,
0.15997156500816345,
0.23052775859832764,
0.12134741246700287,
0.16843393445014954,
0.19863936305046082,
-0.11549550294876099,
-0.06484141200780869,
0.25934162735939026,
-0.08341343700885773,
-0.19436657428741455,
0.09267287701368332,
0.0020065088756382465,
-0.14173395931720734,
-0.24912309646606445,
-0.1999230682849884,
-0.19687725603580475,
-0.447862833738327,
0.050731249153614044,
-0.13021931052207947,
0.07174498587846756,
0.04596584662795067,
0.22727525234222412,
0.24947413802146912,
-0.12280267477035522,
-0.3184756338596344,
0.14016549289226532,
-0.25988659262657166,
0.36610519886016846,
-0.29868462681770325,
-0.596342921257019,
0.38227707147598267,
-0.05758862942457199,
-0.12859193980693817,
0.06981147825717926,
-0.8463967442512512,
0.07279659062623978,
0.07600849121809006,
0.0417921282351017,
0.06380728632211685,
-0.26514962315559387,
0.1241784319281578,
0.07846979051828384,
0.05823219567537308,
-0.08966666460037231,
-0.04456973075866699,
0.042228467762470245,
-0.3576524555683136,
0.3613866865634918,
0.05277549475431442,
0.25497761368751526,
0.005901794880628586,
0.21062175929546356,
0.46257224678993225,
0.03189624473452568,
0.2665116786956787,
-0.21875901520252228,
0.591966450214386,
-0.016265161335468292,
-0.028902608901262283,
0.1612621247768402,
0.2754818797111511,
0.15488092601299286,
0.2564847469329834,
-0.010680649429559708,
-0.13311809301376343,
-0.3283134698867798,
0.2906187176704407,
0.026072122156620026,
-0.29082202911376953,
0.27817291021347046,
-0.20839035511016846,
0.016771681606769562,
0.10622377693653107,
0.23670288920402527,
0.005519939586520195,
-0.3032809793949127,
-0.32681113481521606,
0.5229390859603882,
0.25180789828300476,
0.026600182056427002,
-0.3201155364513397,
0.308913916349411,
-0.47732341289520264,
0.07581067085266113,
-0.06379297375679016,
0.3610314130783081,
-0.16658322513103485,
-0.058102019131183624,
0.05034442991018295,
0.0274965837597847,
0.3250756859779358,
-0.14828962087631226,
0.05679437518119812,
0.35690099000930786,
0.021633870899677277,
-0.30009445548057556,
-0.21096168458461761,
-0.17917831242084503,
-0.07595566660165787,
0.00048488378524780273,
0.17387805879116058,
-0.02599414438009262,
-0.263702929019928,
0.37843114137649536,
-0.10572590678930283,
-0.20692574977874756,
-0.3332490921020508,
-0.038317371159791946,
0.003832705318927765,
0.14974552392959595,
-0.2176142930984497,
-0.069944828748703,
-0.0821509137749672,
-0.2880372107028961,
-0.06081077456474304,
-0.05404898524284363,
0.07889183610677719,
0.2956705093383789,
0.07707180082798004,
0.4217190742492676,
-0.09203136712312698,
0.3493589162826538,
0.32670915126800537,
0.06356632709503174,
0.45679333806037903,
0.3798556625843048,
0.11041982471942902,
-0.17349103093147278,
0.5066096186637878,
-0.2671569287776947,
0.11517789214849472,
0.09237752854824066,
0.1559915542602539,
-0.13674798607826233,
0.29592180252075195,
0.16499143838882446,
-0.38679593801498413,
0.3540686368942261,
0.23095867037773132,
-0.25467225909233093,
-0.3497827649116516,
-0.4321000277996063,
0.4846554696559906,
0.08482697606086731,
0.10817404091358185,
0.18682226538658142,
0.22829608619213104,
0.00601512286812067,
-0.032628610730171204,
-0.03403817117214203,
0.7370913028717041,
0.211369588971138,
0.017218846827745438,
0.35950544476509094,
-0.03045898675918579,
0.09666463732719421,
-0.008912347257137299,
-0.014281447976827621,
-0.43005436658859253,
-0.49711599946022034,
-0.13864313066005707,
-0.21345771849155426,
0.2612563371658325,
0.061467476189136505,
-0.21523797512054443,
-0.15723085403442383,
0.4016517400741577,
0.1735166609287262,
0.1536722034215927,
0.07218384742736816,
0.040674518793821335,
0.2128371149301529,
0.2075234055519104,
0.112531378865242,
-0.06636832654476166,
0.3000035583972931,
0.015810098499059677,
-0.09654780477285385,
-0.15593209862709045,
-0.027925193309783936,
-0.6183640956878662,
0.21379563212394714,
0.12420695275068283,
-0.21162556111812592,
0.21504932641983032,
-0.39038217067718506,
0.4207865595817566,
0.34031346440315247,
-0.347576379776001,
0.28948259353637695,
-0.27300122380256653,
0.1378871500492096,
0.07049577683210373,
-0.09902647882699966,
0.019044741988182068,
0.2680933177471161,
0.14060984551906586,
-0.2877334952354431,
-0.21093693375587463,
0.12344232201576233,
-0.11022988706827164,
-0.016469452530145645,
0.055711328983306885,
-0.12132464349269867,
0.3865693211555481,
-0.1395692676305771,
0.07105396687984467,
-0.042257606983184814,
-0.08855901658535004,
0.0051414333283901215,
0.09720058739185333,
0.15937986969947815,
-0.06642773002386093,
0.06205293536186218,
0.2900583744049072,
-0.1148497462272644,
0.08352930843830109,
0.4691385328769684,
-0.16726425290107727,
0.04682964086532593,
0.622765302658081,
0.3141691982746124,
-0.11001017689704895,
-0.19810616970062256,
0.17187616229057312,
0.5502778887748718,
-0.2508382201194763,
0.043613966554403305,
-0.3288111686706543,
0.16882793605327606,
0.4884505569934845,
0.2780681550502777,
0.19385623931884766,
-0.49061059951782227,
-0.10205509513616562,
-0.35600000619888306,
-0.11337777972221375,
0.14781710505485535,
-0.14450602233409882,
0.3950255513191223,
-0.10896297544240952,
0.1812957525253296,
0.1719956248998642,
-0.3577340543270111,
-0.2876769006252289,
0.0870961844921112,
-0.08640959858894348,
0.07483647018671036,
0.13247713446617126,
0.0453573502600193,
0.08833777904510498,
-0.21055805683135986,
-0.003696763888001442,
0.057720765471458435,
-0.34772923588752747,
-0.11975592374801636,
-0.25202155113220215,
0.16442181169986725,
0.054415930062532425,
-0.2481926530599594,
0.08525969088077545,
0.051684655249118805,
-0.14736931025981903,
0.10363925993442535,
-0.19990456104278564,
-0.03176644444465637,
-0.11222571134567261,
0.15625236928462982,
0.23996126651763916,
0.14941924810409546,
-0.3147311210632324,
0.3881438970565796,
0.16560418903827667,
0.44754481315612793,
-0.1912037432193756,
0.12993896007537842,
0.09552393108606339,
0.01931142807006836,
-0.24985671043395996,
-0.010133989155292511,
-0.07493813335895538,
-0.03146988898515701,
0.4568178951740265,
-0.24403391778469086,
0.4633411467075348,
0.07775860279798508,
0.5264283418655396,
0.37318289279937744,
-0.09287974238395691,
-0.06421062350273132,
0.4989567697048187,
0.13865543901920319,
-0.20731128752231598,
0.324355810880661,
0.22831398248672485,
0.598673939704895,
0.07644906640052795,
-0.02622891217470169,
-0.1679173856973648,
-0.07369577139616013,
-0.07943864166736603,
0.25595298409461975,
0.2710801661014557,
-0.12766404449939728,
0.3690384030342102,
0.4916299283504486,
-0.18740811944007874,
0.10527355968952179,
0.02302301488816738,
0.2498617321252823,
0.037967175245285034,
0.40332430601119995,
0.09182307124137878,
0.2369764745235443,
0.016860313713550568,
0.33940449357032776,
-0.0166432186961174,
-0.5578362941741943,
0.023107299581170082,
0.17615492641925812,
-0.03426764905452728,
0.20508021116256714,
0.09096676856279373,
0.25377827882766724,
-0.20611262321472168,
0.12869955599308014,
-0.14891311526298523,
0.24763761460781097,
-0.16363337635993958,
0.11969932913780212,
-0.4970202147960663,
-0.14347505569458008,
-0.13031810522079468,
0.050554294139146805,
0.1217246800661087,
0.06226102262735367,
-0.2298131287097931,
0.20224283635616302,
-0.13350810110569,
-0.25636956095695496,
-0.11205685883760452,
0.08987729251384735,
0.04395168274641037,
-0.26963672041893005,
0.08920443058013916,
0.47712844610214233,
-0.050148822367191315,
0.2667551040649414,
0.48656103014945984,
0.23346483707427979,
0.23400138318538666,
0.13763748109340668,
-0.11411033570766449,
0.16945528984069824,
-0.15949013829231262,
-0.10960327088832855,
0.01979922503232956,
0.3834148347377777,
-0.13659340143203735,
0.2174251824617386,
0.046593599021434784,
-0.10706587880849838,
0.29918429255485535,
-0.19205094873905182,
0.26779383420944214,
-0.06570279598236084,
0.1421915888786316,
-0.2017555683851242,
-0.2073765993118286,
-0.11653679609298706,
-0.4867001473903656,
-0.14294366538524628,
0.1287088692188263,
0.10353007912635803,
0.06407672166824341,
-0.0465189591050148,
-0.1814740002155304,
0.033791616559028625,
0.18074877560138702,
0.25032755732536316,
0.4538891017436981,
-0.014026276767253876,
0.04177126660943031,
-0.3341202735900879,
-0.7574346661567688,
0.33353275060653687,
-0.06635773181915283,
-0.18104223906993866,
0.10831447690725327,
0.12471958994865417,
-0.12325384467840195,
0.10495886951684952,
-0.018932834267616272,
0.07930465787649155,
0.0331026166677475,
0.5406762361526489,
-0.4341021776199341,
-0.27576762437820435,
0.12667682766914368,
0.101106196641922,
-0.2080075591802597,
-0.047404415905475616,
0.23970037698745728,
-0.14311105012893677,
-0.011597786098718643,
-0.14676786959171295,
0.07109181582927704,
-0.23705556988716125,
0.07318015396595001,
0.2284746766090393,
0.02877083234488964,
0.43983373045921326,
0.14830052852630615,
-0.2234606295824051,
-0.3829341232776642,
0.14254866540431976,
-0.15144997835159302,
-0.001879952847957611,
0.3111889958381653,
0.517670750617981,
-0.0985528975725174,
-0.030790556222200394,
-0.1602378934621811,
-0.12225033342838287,
0.003932401537895203,
0.0727250799536705,
-0.645121693611145,
-0.02682638168334961,
-0.14562907814979553,
-0.045176949352025986,
0.28447940945625305,
0.024694008752703667,
0.01904672384262085,
-0.16907751560211182,
-0.3298141360282898,
-0.268997460603714,
0.2975930869579315,
-0.3583943843841553,
0.11383569240570068,
-0.2124030739068985,
-0.2697167992591858,
-0.18601930141448975,
0.0097141582518816,
-0.43101534247398376,
0.00848492980003357,
0.3037337362766266,
-0.26051753759384155,
0.3448643982410431,
0.02392451837658882,
-0.015500014647841454,
-0.018163692206144333,
-0.08705758303403854,
0.6294339895248413,
0.08828981220722198,
-0.22198332846164703,
-0.04135055094957352,
-0.17166940867900848
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 102 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | [
-0.26777899265289307,
-0.19306135177612305,
-0.05035468190908432,
0.21162138879299164,
0.2999027967453003,
0.07055168598890305,
0.6779093742370605,
0.335471510887146,
0.13890884816646576,
0.4872552156448364,
0.15024049580097198,
0.33128291368484497,
0.1982172578573227,
-0.3838965892791748,
-0.11130408942699432,
0.02636099047958851,
0.21008574962615967,
0.2211519181728363,
0.09799627959728241,
0.01129605621099472,
-0.17751455307006836,
0.10191670060157776,
-0.002020411193370819,
0.1137174665927887,
-0.5356390476226807,
0.025601154193282127,
-0.048566803336143494,
-0.16970551013946533,
0.08191089332103729,
-0.413898229598999,
0.11706431210041046,
-0.2322988510131836,
0.1634654551744461,
0.638332188129425,
-0.0001184856882900931,
0.07608625292778015,
0.26885557174682617,
-0.15726791322231293,
-0.20991040766239166,
-0.09389041364192963,
-0.1382945477962494,
-0.13552288711071014,
-0.12452677637338638,
-0.4097551107406616,
-0.0365440733730793,
-0.20177367329597473,
-0.06448125839233398,
-0.3826679587364197,
-0.22107280790805817,
0.30417400598526,
0.13567329943180084,
-0.04050830751657486,
0.14652086794376373,
-0.1805744171142578,
0.09192506968975067,
-0.22555820643901825,
-0.4007892906665802,
-0.21103233098983765,
0.018893681466579437,
0.11280196905136108,
0.11415247619152069,
0.33749866485595703,
-0.016268137842416763,
-0.05354982987046242,
-0.028063148260116577,
0.06497149914503098,
0.5522332191467285,
-0.3031120002269745,
0.05090317875146866,
0.16366833448410034,
0.1770268678665161,
-0.24343615770339966,
-0.29527363181114197,
-0.1760011613368988,
0.11852528154850006,
-0.24678221344947815,
0.3819134831428528,
-0.31124749779701233,
-0.21697087585926056,
-0.01653478294610977,
0.11357888579368591,
0.01876956969499588,
0.03518502414226532,
0.1877487599849701,
-0.033356599509716034,
0.18116545677185059,
-0.05000895634293556,
0.20514008402824402,
-0.07096937298774719,
-0.16004399955272675,
0.10443060100078583,
-0.28267401456832886,
0.1555432677268982,
0.05144762992858887,
-0.7197320461273193,
0.017072387039661407,
0.11009860038757324,
-0.5740892887115479,
-0.19722852110862732,
-0.10417428612709045,
-0.17360341548919678,
0.05813134089112282,
0.13809438049793243,
0.3258378505706787,
-0.3228491246700287,
0.22215256094932556,
-0.008961401879787445,
0.14172376692295074,
0.20952144265174866,
0.23142801225185394,
0.19978506863117218,
-0.12130848318338394,
-0.2648591697216034,
-0.1973138451576233,
-0.3578032851219177,
-0.037157315760850906,
0.2764663100242615,
-0.1399421989917755,
-0.6120036840438843,
0.3015879690647125,
-0.2571416199207306,
0.2225395143032074,
0.3637177050113678,
0.46578124165534973,
0.16099992394447327,
-0.24928247928619385,
0.02739068865776062,
0.14330893754959106,
0.005454333499073982,
0.10204756259918213,
-0.18147428333759308,
-0.13151347637176514,
-0.10935872793197632,
0.1256221979856491,
0.19465647637844086,
-0.3070986568927765,
0.14549188315868378,
-0.3069572150707245,
-0.007397562265396118,
-0.10030969232320786,
-0.19761817157268524,
-0.05557720363140106,
0.2342897355556488,
0.24839061498641968,
0.029812920838594437,
0.05922725796699524,
0.17659391462802887,
-0.2656790018081665,
-0.0712474137544632,
0.18419760465621948,
-0.25152838230133057,
-0.15973018109798431,
-0.2966946065425873,
0.13898403942584991,
0.011642996221780777,
0.02698906883597374,
0.1856633722782135,
0.20373858511447906,
0.45598918199539185,
0.027918148785829544,
0.2254096269607544,
0.19315551221370697,
-0.20251518487930298,
-0.1387658566236496,
0.32727399468421936,
0.2465868592262268,
-0.22420430183410645,
-0.3134721517562866,
-0.09514008462429047,
-0.09386396408081055,
-0.08219891041517258,
0.06782424449920654,
0.057549383491277695,
0.18464483320713043,
-0.37646833062171936,
0.2920624017715454,
0.3177117109298706,
-0.18745720386505127,
-0.24595370888710022,
-0.07003186643123627,
-0.12741024792194366,
-0.14953389763832092,
0.3183273375034332,
0.07246477901935577,
0.17188219726085663,
0.08701618760824203,
0.34716564416885376,
0.04365454614162445,
-0.11537688970565796,
-0.11177873611450195,
-0.08457568287849426,
-0.2577616572380066,
0.3251139521598816,
0.16039781272411346,
0.10871665179729462,
0.1043335497379303,
-0.016004852950572968,
-0.3212738037109375,
-0.07759242504835129,
-0.24127590656280518,
0.081741102039814,
0.1856539100408554,
0.5382341742515564,
0.19594544172286987,
0.41027531027793884,
-0.1761276125907898,
-0.30036455392837524,
0.23511973023414612,
0.0705423504114151,
0.11852581053972244,
-0.47371941804885864,
-0.1219218522310257,
0.03174186870455742,
-0.06339133530855179,
0.02025429904460907,
-0.046591322869062424,
0.05375459045171738,
-0.07692334055900574,
-0.005760744214057922,
-0.14509661495685577,
-0.2824338972568512,
0.18719157576560974,
-0.2822614014148712,
0.05718814581632614,
-0.3771567940711975,
0.3255271315574646,
-0.2016383558511734,
-0.2545163929462433,
-0.26615914702415466,
0.3665422201156616,
0.3191078007221222,
-0.14142733812332153,
-0.17788127064704895,
0.33290737867355347,
0.15568728744983673,
-0.16142655909061432,
0.14802899956703186,
0.039548903703689575,
-0.04763364791870117,
-0.15037187933921814,
0.05871683359146118,
0.36816298961639404,
0.22634023427963257,
0.07541278749704361,
0.09582996368408203,
0.27169302105903625,
0.21369436383247375,
0.29469719529151917,
-0.21335165202617645,
-0.00008801743388175964,
0.2921958565711975,
0.08186186850070953,
-0.009435981512069702,
-0.3664703667163849,
0.09566745162010193,
-0.07807481288909912,
0.29263338446617126,
-0.2285069078207016,
-0.03820691257715225,
-0.1297478973865509,
0.13656707108020782,
-0.1019359827041626,
0.08084532618522644,
0.10406884551048279,
-0.20155712962150574,
0.24293926358222961,
0.10200486332178116,
-0.4362456500530243,
0.3610961437225342,
0.06902840733528137,
-0.2717650234699249,
-0.16040807962417603,
-0.018951505422592163,
-0.1800437867641449,
0.2998148500919342,
0.309292733669281,
-0.13133017718791962,
0.18568381667137146,
0.04949053004384041,
-0.13442464172840118,
-0.18915966153144836,
-0.3536972999572754,
0.19992583990097046,
0.22190436720848083,
-0.5465425252914429,
0.22920040786266327,
-0.08845293521881104,
-0.11795945465564728,
-0.057136937975883484,
-0.2740376889705658,
-0.30207815766334534,
-0.16888447105884552,
0.11320724338293076,
-0.010072197765111923,
-0.02682429552078247,
0.5631316900253296,
-0.03143744170665741,
0.34517860412597656,
0.2669050693511963,
-0.2646975517272949,
-0.07720769941806793,
-0.16352781653404236,
-0.03403499722480774,
-0.028873257339000702,
-0.1362820714712143,
-0.2700232267379761,
0.2465086728334427,
0.025235170498490334,
-0.009213196113705635,
-0.34599998593330383,
-0.33339738845825195,
0.1512129008769989,
-0.22940604388713837,
0.1619110405445099,
-0.06678436696529388,
-0.1452292650938034,
0.11495083570480347,
-0.25346773862838745,
0.07623884826898575,
0.036925606429576874,
-0.13635332882404327,
0.022666659206151962,
-0.08255228400230408,
-0.09569137543439865,
-0.20003503561019897,
-0.2439633309841156,
0.038410112261772156,
-0.32593584060668945,
-0.025119468569755554,
-0.094382144510746,
0.1987321376800537,
-0.05545961856842041,
0.12665396928787231,
0.29898786544799805,
-0.027407409623265266,
0.0936589241027832,
-0.2795271873474121,
0.05780552700161934,
0.31600284576416016,
-0.09346698224544525,
-0.2307388335466385,
0.039248134940862656,
-0.07590632885694504,
-0.001287464052438736,
0.0924602821469307,
-0.2826652228832245,
-0.12169160693883896,
-0.02369881607592106,
0.32405102252960205,
0.011571306735277176,
0.17821495234966278,
0.3946533203125,
0.17583176493644714,
-0.0248787272721529,
-0.3753834664821625,
-0.27374911308288574,
0.024701476097106934,
-0.09293826669454575,
0.4036746025085449,
-0.033553339540958405,
0.48041191697120667,
-0.059585027396678925,
0.31951451301574707,
0.33281615376472473,
-0.513225793838501,
0.545478343963623,
-0.19363518059253693,
0.1877729445695877,
0.06580784171819687,
-0.11575199663639069,
0.2827405035495758,
0.01841886341571808,
-0.14895892143249512,
0.04572831466794014,
-0.31472158432006836,
-0.2004714012145996,
-0.0915209949016571,
0.1763618290424347,
-0.20577183365821838,
-0.29396551847457886,
-0.09316107630729675,
-0.21346667408943176,
0.24435439705848694,
-0.06906849145889282,
0.25593504309654236,
-0.28626522421836853,
-0.011031493544578552,
0.25184139609336853,
0.40719640254974365,
0.12555032968521118,
-0.24265165627002716,
0.08925066888332367,
-0.0963275134563446,
-0.33694037795066833,
0.4827108383178711,
0.018491096794605255,
0.5099809169769287,
-0.1719786375761032,
0.07336776703596115,
0.10265509784221649,
0.12344976514577866,
0.8018255233764648,
-0.2557469606399536,
-0.15817055106163025,
0.34230929613113403,
0.3089134991168976,
-0.2554651200771332,
-0.28474369645118713,
-0.18640576303005219,
0.1806022673845291,
0.08689355850219727,
0.5751956701278687,
-0.1090521290898323,
-0.1370633840560913,
0.10941106826066971,
-0.053598202764987946,
-0.07639645040035248,
-0.27224987745285034,
-0.3742818236351013,
-0.053499773144721985,
-0.31804972887039185,
0.0921935960650444,
-0.0947592705488205,
0.4154832661151886,
0.08882971853017807,
0.00463501363992691,
-0.37587302923202515,
0.013571683317422867,
0.08983878791332245,
0.23176130652427673,
0.15322086215019226,
-0.033679522573947906,
0.38318610191345215,
-0.06798722594976425,
0.23925678431987762,
0.4289000630378723,
0.2425881028175354,
-0.025966674089431763,
-0.24988597631454468,
0.43526360392570496,
0.1420716494321823,
0.2369506061077118,
0.285118967294693,
-0.14355051517486572,
0.1513003408908844,
-0.07785339653491974,
0.4545583724975586,
-0.3414159119129181,
0.052820272743701935,
0.41344118118286133,
0.25758129358291626,
-0.31641116738319397,
-0.2541104555130005,
0.42717111110687256,
0.15458175539970398,
0.011562749743461609,
0.2661203444004059,
0.37318891286849976,
-0.21328295767307281,
0.6635655164718628,
-0.027113519608974457,
0.8349599838256836,
0.14172720909118652,
-0.13616448640823364,
0.3292040228843689,
0.019131936132907867,
0.42663729190826416,
-0.26210325956344604,
0.3030056953430176,
-0.3603399693965912,
-0.24956326186656952,
-0.07274548709392548,
-0.07066573947668076,
0.4493255913257599,
0.05573902651667595,
-0.11360825598239899,
0.24711452424526215,
-0.06844392418861389,
0.17384856939315796,
-0.06734669953584671,
-0.031124630942940712,
0.06536160409450531,
-0.5700019598007202,
-0.12437678873538971,
0.10133536159992218,
0.07360785454511642,
0.3620578944683075,
0.04726216569542885,
0.08658353239297867,
-0.4278535842895508,
-0.13014116883277893,
-0.33136942982673645,
0.03417326137423515,
-0.03352031484246254,
0.2654319405555725,
-0.12445880472660065,
-0.23362624645233154,
0.19035731256008148,
-0.28715020418167114,
0.5703136324882507,
-0.10711482167243958,
-0.21008557081222534,
0.35005971789360046,
-0.022541232407093048,
-0.07972826808691025,
-0.10008203238248825,
-0.22469016909599304,
0.33075785636901855,
0.06959057599306107,
-0.3794129490852356,
0.12279227375984192,
0.07053785026073456,
-0.07866528630256653,
-0.026851505041122437,
-0.07235847413539886,
-0.05194288492202759,
-0.22561991214752197,
-0.024504711851477623,
-0.13470453023910522,
0.24777984619140625,
-0.24401140213012695,
0.11266142129898071,
0.08105192333459854,
-0.4638238549232483,
0.2543739080429077,
-0.19651572406291962,
-0.36683180928230286,
-0.07583004236221313,
0.5537817478179932,
-0.02780328318476677,
-0.11053571105003357,
0.2354785054922104,
-0.15818636119365692,
-0.2709081768989563,
-0.05888769403100014,
-0.3328413963317871,
0.23001469671726227,
-0.2249239981174469,
-0.13445889949798584,
0.047276780009269714,
-0.3598707318305969,
-0.07621805369853973,
0.0007363632321357727,
-0.1119203269481659,
0.3196646571159363,
-0.20880922675132751,
-0.14865818619728088,
-0.3978233337402344,
0.06389813125133514,
0.043022822588682175,
0.3486228585243225,
0.014249134808778763,
0.136982724070549,
-0.21627432107925415,
-0.1777758002281189,
-0.25714731216430664,
0.0449540838599205,
-0.2627476155757904,
0.46454542875289917,
-0.2965940833091736,
-0.11602937430143356,
0.2956579327583313,
-0.19686251878738403,
0.12718114256858826,
0.14779424667358398,
-0.08214268088340759,
-0.173961341381073,
-0.1555578112602234,
0.18384522199630737,
0.1633325219154358,
-0.0733252763748169,
-0.4026308059692383,
-0.15899096429347992,
-0.29021450877189636,
-0.281021386384964,
0.38100555539131165,
0.295348584651947,
-0.08490568399429321,
0.21012839674949646,
0.04397259280085564,
-0.0579666867852211,
0.20623207092285156,
0.09285479784011841,
0.18868136405944824,
0.5146371126174927,
0.1700725555419922,
0.3236711919307709,
-0.6910564303398132,
0.22877466678619385,
-0.35316067934036255,
0.20417580008506775,
0.1243714988231659,
0.08114100992679596,
0.1878713071346283,
-0.3068697452545166,
-0.13845306634902954,
-0.19783438742160797,
0.02088657021522522,
0.2984214425086975,
-0.3283817768096924,
-0.24062678217887878,
0.23521524667739868,
0.14958134293556213,
-0.1251097023487091,
-0.054757922887802124,
0.24227450788021088,
-0.2709942162036896,
0.30881980061531067,
0.34534701704978943,
0.34994369745254517,
0.05676226317882538,
-0.3531431555747986,
-0.04046323522925377,
0.36195915937423706,
0.12210877984762192,
-0.049178898334503174,
0.03194623067975044,
0.010166320949792862,
0.24220944941043854,
0.2994846999645233,
0.025217972695827484,
0.36044058203697205,
0.8264206647872925,
-0.1172441765666008,
0.29913970828056335,
0.22480803728103638,
0.030993368476629257,
0.07127640396356583,
-0.09688155353069305,
0.36497220396995544,
-0.1809903383255005,
-0.09527908265590668,
-0.09405621141195297,
-0.0834374874830246,
-0.19620981812477112,
-0.3054339289665222,
0.02892323210835457,
-0.20222224295139313,
-0.04647202417254448,
-0.2253270149230957,
-0.1803993135690689,
0.11057916283607483,
0.08231086283922195,
-0.11304418742656708,
-0.24227389693260193,
0.12900705635547638,
-0.19424785673618317,
0.004464559257030487,
0.134766086935997,
-0.34012699127197266,
0.151482954621315,
-0.2119871973991394,
0.6425343155860901,
0.5679425001144409,
-0.09269879013299942,
0.09704501181840897,
0.22381487488746643,
-0.13543513417243958,
-0.020275697112083435,
0.20938138663768768,
0.6584565043449402,
0.1812102049589157,
-0.08927497267723083,
0.2834925949573517,
0.2227996289730072,
-0.12064222246408463,
0.05029036104679108,
0.12367549538612366,
-0.09015542268753052,
0.036840666085481644,
0.27779659628868103,
0.10099539160728455,
-0.1337871253490448,
-0.4207533895969391,
0.15714631974697113,
0.4895615577697754,
-0.07345151901245117,
0.14637891948223114,
-0.45830485224723816,
0.1374954879283905,
-0.27937716245651245,
0.0074038878083229065,
-0.42248857021331787,
0.04855252802371979,
0.5376592874526978,
-0.18236632645130157,
0.19433116912841797,
0.13328631222248077,
0.038129840046167374,
-0.3240099549293518,
0.18597149848937988,
0.07258099317550659,
0.17638030648231506,
-0.3565991222858429,
-0.06386122107505798,
-0.24630264937877655,
0.3766394853591919,
-0.08091595768928528,
0.04762762039899826,
0.1262306272983551,
0.31785818934440613,
-0.17486616969108582,
-0.16514064371585846,
0.1994992196559906,
-0.03183754161000252,
0.35724368691444397,
0.51789391040802,
-0.3093319833278656,
-0.18663209676742554,
-0.4723144769668579,
-0.08089330792427063,
0.22260823845863342,
-0.29898813366889954,
-0.004689160734415054,
0.000007028691470623016,
-0.05421296879649162,
-0.06992165744304657,
-0.017274565994739532,
0.06815730035305023,
0.020223960280418396,
0.8401679992675781,
-0.019295284524559975,
0.3667726218700409,
-0.1382201910018921,
-0.07565556466579437,
-0.2239338755607605,
-0.20096011459827423,
-0.22261111438274384,
0.23238623142242432,
0.06241413950920105,
0.010919209569692612,
-0.0645749643445015,
-0.3882269561290741,
-0.251338928937912,
0.5986814498901367,
0.1300266832113266,
-0.22778278589248657,
-0.13630948960781097,
0.29502981901168823,
-0.24724814295768738,
0.41000476479530334,
0.055949460715055466,
0.009147543460130692,
0.1543089598417282,
0.5739108920097351,
-0.08881660550832748,
-0.4936056435108185,
0.7542498707771301,
-0.07439468055963516,
-0.12604011595249176,
-0.27251943945884705,
0.37396368384361267,
0.39086073637008667,
0.09060029685497284,
-0.8467719554901123,
-0.03282822668552399,
0.33288562297821045,
-0.1986326277256012,
-0.2221769243478775,
-0.11101451516151428,
-0.032448749989271164,
0.007585596293210983,
-0.0946630910038948,
0.10811829566955566,
-0.10009468346834183,
0.1813538521528244,
0.29819661378860474,
-0.13812951743602753
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 66 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | [
-0.26777899265289307,
-0.19306135177612305,
-0.05035468190908432,
0.21162138879299164,
0.2999027967453003,
0.07055168598890305,
0.6779093742370605,
0.335471510887146,
0.13890884816646576,
0.4872552156448364,
0.15024049580097198,
0.33128291368484497,
0.1982172578573227,
-0.3838965892791748,
-0.11130408942699432,
0.02636099047958851,
0.21008574962615967,
0.2211519181728363,
0.09799627959728241,
0.01129605621099472,
-0.17751455307006836,
0.10191670060157776,
-0.002020411193370819,
0.1137174665927887,
-0.5356390476226807,
0.025601154193282127,
-0.048566803336143494,
-0.16970551013946533,
0.08191089332103729,
-0.413898229598999,
0.11706431210041046,
-0.2322988510131836,
0.1634654551744461,
0.638332188129425,
-0.0001184856882900931,
0.07608625292778015,
0.26885557174682617,
-0.15726791322231293,
-0.20991040766239166,
-0.09389041364192963,
-0.1382945477962494,
-0.13552288711071014,
-0.12452677637338638,
-0.4097551107406616,
-0.0365440733730793,
-0.20177367329597473,
-0.06448125839233398,
-0.3826679587364197,
-0.22107280790805817,
0.30417400598526,
0.13567329943180084,
-0.04050830751657486,
0.14652086794376373,
-0.1805744171142578,
0.09192506968975067,
-0.22555820643901825,
-0.4007892906665802,
-0.21103233098983765,
0.018893681466579437,
0.11280196905136108,
0.11415247619152069,
0.33749866485595703,
-0.016268137842416763,
-0.05354982987046242,
-0.028063148260116577,
0.06497149914503098,
0.5522332191467285,
-0.3031120002269745,
0.05090317875146866,
0.16366833448410034,
0.1770268678665161,
-0.24343615770339966,
-0.29527363181114197,
-0.1760011613368988,
0.11852528154850006,
-0.24678221344947815,
0.3819134831428528,
-0.31124749779701233,
-0.21697087585926056,
-0.01653478294610977,
0.11357888579368591,
0.01876956969499588,
0.03518502414226532,
0.1877487599849701,
-0.033356599509716034,
0.18116545677185059,
-0.05000895634293556,
0.20514008402824402,
-0.07096937298774719,
-0.16004399955272675,
0.10443060100078583,
-0.28267401456832886,
0.1555432677268982,
0.05144762992858887,
-0.7197320461273193,
0.017072387039661407,
0.11009860038757324,
-0.5740892887115479,
-0.19722852110862732,
-0.10417428612709045,
-0.17360341548919678,
0.05813134089112282,
0.13809438049793243,
0.3258378505706787,
-0.3228491246700287,
0.22215256094932556,
-0.008961401879787445,
0.14172376692295074,
0.20952144265174866,
0.23142801225185394,
0.19978506863117218,
-0.12130848318338394,
-0.2648591697216034,
-0.1973138451576233,
-0.3578032851219177,
-0.037157315760850906,
0.2764663100242615,
-0.1399421989917755,
-0.6120036840438843,
0.3015879690647125,
-0.2571416199207306,
0.2225395143032074,
0.3637177050113678,
0.46578124165534973,
0.16099992394447327,
-0.24928247928619385,
0.02739068865776062,
0.14330893754959106,
0.005454333499073982,
0.10204756259918213,
-0.18147428333759308,
-0.13151347637176514,
-0.10935872793197632,
0.1256221979856491,
0.19465647637844086,
-0.3070986568927765,
0.14549188315868378,
-0.3069572150707245,
-0.007397562265396118,
-0.10030969232320786,
-0.19761817157268524,
-0.05557720363140106,
0.2342897355556488,
0.24839061498641968,
0.029812920838594437,
0.05922725796699524,
0.17659391462802887,
-0.2656790018081665,
-0.0712474137544632,
0.18419760465621948,
-0.25152838230133057,
-0.15973018109798431,
-0.2966946065425873,
0.13898403942584991,
0.011642996221780777,
0.02698906883597374,
0.1856633722782135,
0.20373858511447906,
0.45598918199539185,
0.027918148785829544,
0.2254096269607544,
0.19315551221370697,
-0.20251518487930298,
-0.1387658566236496,
0.32727399468421936,
0.2465868592262268,
-0.22420430183410645,
-0.3134721517562866,
-0.09514008462429047,
-0.09386396408081055,
-0.08219891041517258,
0.06782424449920654,
0.057549383491277695,
0.18464483320713043,
-0.37646833062171936,
0.2920624017715454,
0.3177117109298706,
-0.18745720386505127,
-0.24595370888710022,
-0.07003186643123627,
-0.12741024792194366,
-0.14953389763832092,
0.3183273375034332,
0.07246477901935577,
0.17188219726085663,
0.08701618760824203,
0.34716564416885376,
0.04365454614162445,
-0.11537688970565796,
-0.11177873611450195,
-0.08457568287849426,
-0.2577616572380066,
0.3251139521598816,
0.16039781272411346,
0.10871665179729462,
0.1043335497379303,
-0.016004852950572968,
-0.3212738037109375,
-0.07759242504835129,
-0.24127590656280518,
0.081741102039814,
0.1856539100408554,
0.5382341742515564,
0.19594544172286987,
0.41027531027793884,
-0.1761276125907898,
-0.30036455392837524,
0.23511973023414612,
0.0705423504114151,
0.11852581053972244,
-0.47371941804885864,
-0.1219218522310257,
0.03174186870455742,
-0.06339133530855179,
0.02025429904460907,
-0.046591322869062424,
0.05375459045171738,
-0.07692334055900574,
-0.005760744214057922,
-0.14509661495685577,
-0.2824338972568512,
0.18719157576560974,
-0.2822614014148712,
0.05718814581632614,
-0.3771567940711975,
0.3255271315574646,
-0.2016383558511734,
-0.2545163929462433,
-0.26615914702415466,
0.3665422201156616,
0.3191078007221222,
-0.14142733812332153,
-0.17788127064704895,
0.33290737867355347,
0.15568728744983673,
-0.16142655909061432,
0.14802899956703186,
0.039548903703689575,
-0.04763364791870117,
-0.15037187933921814,
0.05871683359146118,
0.36816298961639404,
0.22634023427963257,
0.07541278749704361,
0.09582996368408203,
0.27169302105903625,
0.21369436383247375,
0.29469719529151917,
-0.21335165202617645,
-0.00008801743388175964,
0.2921958565711975,
0.08186186850070953,
-0.009435981512069702,
-0.3664703667163849,
0.09566745162010193,
-0.07807481288909912,
0.29263338446617126,
-0.2285069078207016,
-0.03820691257715225,
-0.1297478973865509,
0.13656707108020782,
-0.1019359827041626,
0.08084532618522644,
0.10406884551048279,
-0.20155712962150574,
0.24293926358222961,
0.10200486332178116,
-0.4362456500530243,
0.3610961437225342,
0.06902840733528137,
-0.2717650234699249,
-0.16040807962417603,
-0.018951505422592163,
-0.1800437867641449,
0.2998148500919342,
0.309292733669281,
-0.13133017718791962,
0.18568381667137146,
0.04949053004384041,
-0.13442464172840118,
-0.18915966153144836,
-0.3536972999572754,
0.19992583990097046,
0.22190436720848083,
-0.5465425252914429,
0.22920040786266327,
-0.08845293521881104,
-0.11795945465564728,
-0.057136937975883484,
-0.2740376889705658,
-0.30207815766334534,
-0.16888447105884552,
0.11320724338293076,
-0.010072197765111923,
-0.02682429552078247,
0.5631316900253296,
-0.03143744170665741,
0.34517860412597656,
0.2669050693511963,
-0.2646975517272949,
-0.07720769941806793,
-0.16352781653404236,
-0.03403499722480774,
-0.028873257339000702,
-0.1362820714712143,
-0.2700232267379761,
0.2465086728334427,
0.025235170498490334,
-0.009213196113705635,
-0.34599998593330383,
-0.33339738845825195,
0.1512129008769989,
-0.22940604388713837,
0.1619110405445099,
-0.06678436696529388,
-0.1452292650938034,
0.11495083570480347,
-0.25346773862838745,
0.07623884826898575,
0.036925606429576874,
-0.13635332882404327,
0.022666659206151962,
-0.08255228400230408,
-0.09569137543439865,
-0.20003503561019897,
-0.2439633309841156,
0.038410112261772156,
-0.32593584060668945,
-0.025119468569755554,
-0.094382144510746,
0.1987321376800537,
-0.05545961856842041,
0.12665396928787231,
0.29898786544799805,
-0.027407409623265266,
0.0936589241027832,
-0.2795271873474121,
0.05780552700161934,
0.31600284576416016,
-0.09346698224544525,
-0.2307388335466385,
0.039248134940862656,
-0.07590632885694504,
-0.001287464052438736,
0.0924602821469307,
-0.2826652228832245,
-0.12169160693883896,
-0.02369881607592106,
0.32405102252960205,
0.011571306735277176,
0.17821495234966278,
0.3946533203125,
0.17583176493644714,
-0.0248787272721529,
-0.3753834664821625,
-0.27374911308288574,
0.024701476097106934,
-0.09293826669454575,
0.4036746025085449,
-0.033553339540958405,
0.48041191697120667,
-0.059585027396678925,
0.31951451301574707,
0.33281615376472473,
-0.513225793838501,
0.545478343963623,
-0.19363518059253693,
0.1877729445695877,
0.06580784171819687,
-0.11575199663639069,
0.2827405035495758,
0.01841886341571808,
-0.14895892143249512,
0.04572831466794014,
-0.31472158432006836,
-0.2004714012145996,
-0.0915209949016571,
0.1763618290424347,
-0.20577183365821838,
-0.29396551847457886,
-0.09316107630729675,
-0.21346667408943176,
0.24435439705848694,
-0.06906849145889282,
0.25593504309654236,
-0.28626522421836853,
-0.011031493544578552,
0.25184139609336853,
0.40719640254974365,
0.12555032968521118,
-0.24265165627002716,
0.08925066888332367,
-0.0963275134563446,
-0.33694037795066833,
0.4827108383178711,
0.018491096794605255,
0.5099809169769287,
-0.1719786375761032,
0.07336776703596115,
0.10265509784221649,
0.12344976514577866,
0.8018255233764648,
-0.2557469606399536,
-0.15817055106163025,
0.34230929613113403,
0.3089134991168976,
-0.2554651200771332,
-0.28474369645118713,
-0.18640576303005219,
0.1806022673845291,
0.08689355850219727,
0.5751956701278687,
-0.1090521290898323,
-0.1370633840560913,
0.10941106826066971,
-0.053598202764987946,
-0.07639645040035248,
-0.27224987745285034,
-0.3742818236351013,
-0.053499773144721985,
-0.31804972887039185,
0.0921935960650444,
-0.0947592705488205,
0.4154832661151886,
0.08882971853017807,
0.00463501363992691,
-0.37587302923202515,
0.013571683317422867,
0.08983878791332245,
0.23176130652427673,
0.15322086215019226,
-0.033679522573947906,
0.38318610191345215,
-0.06798722594976425,
0.23925678431987762,
0.4289000630378723,
0.2425881028175354,
-0.025966674089431763,
-0.24988597631454468,
0.43526360392570496,
0.1420716494321823,
0.2369506061077118,
0.285118967294693,
-0.14355051517486572,
0.1513003408908844,
-0.07785339653491974,
0.4545583724975586,
-0.3414159119129181,
0.052820272743701935,
0.41344118118286133,
0.25758129358291626,
-0.31641116738319397,
-0.2541104555130005,
0.42717111110687256,
0.15458175539970398,
0.011562749743461609,
0.2661203444004059,
0.37318891286849976,
-0.21328295767307281,
0.6635655164718628,
-0.027113519608974457,
0.8349599838256836,
0.14172720909118652,
-0.13616448640823364,
0.3292040228843689,
0.019131936132907867,
0.42663729190826416,
-0.26210325956344604,
0.3030056953430176,
-0.3603399693965912,
-0.24956326186656952,
-0.07274548709392548,
-0.07066573947668076,
0.4493255913257599,
0.05573902651667595,
-0.11360825598239899,
0.24711452424526215,
-0.06844392418861389,
0.17384856939315796,
-0.06734669953584671,
-0.031124630942940712,
0.06536160409450531,
-0.5700019598007202,
-0.12437678873538971,
0.10133536159992218,
0.07360785454511642,
0.3620578944683075,
0.04726216569542885,
0.08658353239297867,
-0.4278535842895508,
-0.13014116883277893,
-0.33136942982673645,
0.03417326137423515,
-0.03352031484246254,
0.2654319405555725,
-0.12445880472660065,
-0.23362624645233154,
0.19035731256008148,
-0.28715020418167114,
0.5703136324882507,
-0.10711482167243958,
-0.21008557081222534,
0.35005971789360046,
-0.022541232407093048,
-0.07972826808691025,
-0.10008203238248825,
-0.22469016909599304,
0.33075785636901855,
0.06959057599306107,
-0.3794129490852356,
0.12279227375984192,
0.07053785026073456,
-0.07866528630256653,
-0.026851505041122437,
-0.07235847413539886,
-0.05194288492202759,
-0.22561991214752197,
-0.024504711851477623,
-0.13470453023910522,
0.24777984619140625,
-0.24401140213012695,
0.11266142129898071,
0.08105192333459854,
-0.4638238549232483,
0.2543739080429077,
-0.19651572406291962,
-0.36683180928230286,
-0.07583004236221313,
0.5537817478179932,
-0.02780328318476677,
-0.11053571105003357,
0.2354785054922104,
-0.15818636119365692,
-0.2709081768989563,
-0.05888769403100014,
-0.3328413963317871,
0.23001469671726227,
-0.2249239981174469,
-0.13445889949798584,
0.047276780009269714,
-0.3598707318305969,
-0.07621805369853973,
0.0007363632321357727,
-0.1119203269481659,
0.3196646571159363,
-0.20880922675132751,
-0.14865818619728088,
-0.3978233337402344,
0.06389813125133514,
0.043022822588682175,
0.3486228585243225,
0.014249134808778763,
0.136982724070549,
-0.21627432107925415,
-0.1777758002281189,
-0.25714731216430664,
0.0449540838599205,
-0.2627476155757904,
0.46454542875289917,
-0.2965940833091736,
-0.11602937430143356,
0.2956579327583313,
-0.19686251878738403,
0.12718114256858826,
0.14779424667358398,
-0.08214268088340759,
-0.173961341381073,
-0.1555578112602234,
0.18384522199630737,
0.1633325219154358,
-0.0733252763748169,
-0.4026308059692383,
-0.15899096429347992,
-0.29021450877189636,
-0.281021386384964,
0.38100555539131165,
0.295348584651947,
-0.08490568399429321,
0.21012839674949646,
0.04397259280085564,
-0.0579666867852211,
0.20623207092285156,
0.09285479784011841,
0.18868136405944824,
0.5146371126174927,
0.1700725555419922,
0.3236711919307709,
-0.6910564303398132,
0.22877466678619385,
-0.35316067934036255,
0.20417580008506775,
0.1243714988231659,
0.08114100992679596,
0.1878713071346283,
-0.3068697452545166,
-0.13845306634902954,
-0.19783438742160797,
0.02088657021522522,
0.2984214425086975,
-0.3283817768096924,
-0.24062678217887878,
0.23521524667739868,
0.14958134293556213,
-0.1251097023487091,
-0.054757922887802124,
0.24227450788021088,
-0.2709942162036896,
0.30881980061531067,
0.34534701704978943,
0.34994369745254517,
0.05676226317882538,
-0.3531431555747986,
-0.04046323522925377,
0.36195915937423706,
0.12210877984762192,
-0.049178898334503174,
0.03194623067975044,
0.010166320949792862,
0.24220944941043854,
0.2994846999645233,
0.025217972695827484,
0.36044058203697205,
0.8264206647872925,
-0.1172441765666008,
0.29913970828056335,
0.22480803728103638,
0.030993368476629257,
0.07127640396356583,
-0.09688155353069305,
0.36497220396995544,
-0.1809903383255005,
-0.09527908265590668,
-0.09405621141195297,
-0.0834374874830246,
-0.19620981812477112,
-0.3054339289665222,
0.02892323210835457,
-0.20222224295139313,
-0.04647202417254448,
-0.2253270149230957,
-0.1803993135690689,
0.11057916283607483,
0.08231086283922195,
-0.11304418742656708,
-0.24227389693260193,
0.12900705635547638,
-0.19424785673618317,
0.004464559257030487,
0.134766086935997,
-0.34012699127197266,
0.151482954621315,
-0.2119871973991394,
0.6425343155860901,
0.5679425001144409,
-0.09269879013299942,
0.09704501181840897,
0.22381487488746643,
-0.13543513417243958,
-0.020275697112083435,
0.20938138663768768,
0.6584565043449402,
0.1812102049589157,
-0.08927497267723083,
0.2834925949573517,
0.2227996289730072,
-0.12064222246408463,
0.05029036104679108,
0.12367549538612366,
-0.09015542268753052,
0.036840666085481644,
0.27779659628868103,
0.10099539160728455,
-0.1337871253490448,
-0.4207533895969391,
0.15714631974697113,
0.4895615577697754,
-0.07345151901245117,
0.14637891948223114,
-0.45830485224723816,
0.1374954879283905,
-0.27937716245651245,
0.0074038878083229065,
-0.42248857021331787,
0.04855252802371979,
0.5376592874526978,
-0.18236632645130157,
0.19433116912841797,
0.13328631222248077,
0.038129840046167374,
-0.3240099549293518,
0.18597149848937988,
0.07258099317550659,
0.17638030648231506,
-0.3565991222858429,
-0.06386122107505798,
-0.24630264937877655,
0.3766394853591919,
-0.08091595768928528,
0.04762762039899826,
0.1262306272983551,
0.31785818934440613,
-0.17486616969108582,
-0.16514064371585846,
0.1994992196559906,
-0.03183754161000252,
0.35724368691444397,
0.51789391040802,
-0.3093319833278656,
-0.18663209676742554,
-0.4723144769668579,
-0.08089330792427063,
0.22260823845863342,
-0.29898813366889954,
-0.004689160734415054,
0.000007028691470623016,
-0.05421296879649162,
-0.06992165744304657,
-0.017274565994739532,
0.06815730035305023,
0.020223960280418396,
0.8401679992675781,
-0.019295284524559975,
0.3667726218700409,
-0.1382201910018921,
-0.07565556466579437,
-0.2239338755607605,
-0.20096011459827423,
-0.22261111438274384,
0.23238623142242432,
0.06241413950920105,
0.010919209569692612,
-0.0645749643445015,
-0.3882269561290741,
-0.251338928937912,
0.5986814498901367,
0.1300266832113266,
-0.22778278589248657,
-0.13630948960781097,
0.29502981901168823,
-0.24724814295768738,
0.41000476479530334,
0.055949460715055466,
0.009147543460130692,
0.1543089598417282,
0.5739108920097351,
-0.08881660550832748,
-0.4936056435108185,
0.7542498707771301,
-0.07439468055963516,
-0.12604011595249176,
-0.27251943945884705,
0.37396368384361267,
0.39086073637008667,
0.09060029685497284,
-0.8467719554901123,
-0.03282822668552399,
0.33288562297821045,
-0.1986326277256012,
-0.2221769243478775,
-0.11101451516151428,
-0.032448749989271164,
0.007585596293210983,
-0.0946630910038948,
0.10811829566955566,
-0.10009468346834183,
0.1813538521528244,
0.29819661378860474,
-0.13812951743602753
] |
https://github.com/huggingface/datasets/issues/4284 | Issues in processing very large datasets | Hi ! `datasets` doesn't load the dataset in memory. Instead it uses memory mapping to load your dataset from your disk (it is stored as arrow files). Do you know at what point you have RAM issues exactly ?
How big are your graph_data_train dictionaries btw ? | ## Describe the bug
I'm trying to add a feature called "subgraph" to CNN/DM dataset (modifications on run_summarization.py of Huggingface Transformers script) --- I'm not quite sure if I'm doing it the right way, though--- but the main problem appears when the training starts where the error ` [OSError: [Errno 12] Cannot allocate memory]` appears. I suppose this problem roots in RAM issues and how the dataset is loaded during training, but I have no clue of what I can do to fix it. Observing the dataset's cache directory, I see that it takes ~600GB of memory and that's why I believe special care is needed when loading it into the memory.
Here are my modifications to `run_summarization.py` code.
```
# loading pre-computed dictionary where keys are 'id' of article and values are corresponding subgraph
graph_data_train = get_graph_data('train')
graph_data_validation = get_graph_data('val')
...
...
with training_args.main_process_first(desc="train dataset map pre-processing"):
train_dataset = train_dataset.map(
preprocess_function_train,
batched=True,
num_proc=data_args.preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=not data_args.overwrite_cache,
desc="Running tokenizer on train dataset",
)
```
And here is the modified preprocessed function:
```
def preprocess_function_train(examples):
inputs, targets, sub_graphs, ids = [], [], [], []
for i in range(len(examples[text_column])):
if examples[text_column][i] is not None and examples[summary_column][i] is not None:
# if examples['doc_id'][i] in graph_data.keys():
inputs.append(examples[text_column][i])
targets.append(examples[summary_column][i])
sub_graphs.append(graph_data_train[examples['id'][i]])
ids.append(examples['id'][i])
inputs = [prefix + inp for inp in inputs]
model_inputs = tokenizer(inputs, max_length=data_args.max_source_length, padding=padding, truncation=True,
sub_graphs=sub_graphs, ids=ids)
# Setup the tokenizer for targets
with tokenizer.as_target_tokenizer():
labels = tokenizer(targets, max_length=max_target_length, padding=padding, truncation=True)
# If we are padding here, replace all tokenizer.pad_token_id in the labels by -100 when we want to ignore
# padding in the loss.
if padding == "max_length" and data_args.ignore_pad_token_for_loss:
labels["input_ids"] = [
[(l if l != tokenizer.pad_token_id else -100) for l in label] for label in labels["input_ids"]
]
model_inputs["labels"] = labels["input_ids"]
return model_inputs
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
| 47 | Issues in processing very large datasets
## Describe the bug
I'm trying to add a feature called "subgraph" to CNN/DM dataset (modifications on run_summarization.py of Huggingface Transformers script) --- I'm not quite sure if I'm doing it the right way, though--- but the main problem appears when the training starts where the error ` [OSError: [Errno 12] Cannot allocate memory]` appears. I suppose this problem roots in RAM issues and how the dataset is loaded during training, but I have no clue of what I can do to fix it. Observing the dataset's cache directory, I see that it takes ~600GB of memory and that's why I believe special care is needed when loading it into the memory.
Here are my modifications to `run_summarization.py` code.
```
# loading pre-computed dictionary where keys are 'id' of article and values are corresponding subgraph
graph_data_train = get_graph_data('train')
graph_data_validation = get_graph_data('val')
...
...
with training_args.main_process_first(desc="train dataset map pre-processing"):
train_dataset = train_dataset.map(
preprocess_function_train,
batched=True,
num_proc=data_args.preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=not data_args.overwrite_cache,
desc="Running tokenizer on train dataset",
)
```
And here is the modified preprocessed function:
```
def preprocess_function_train(examples):
inputs, targets, sub_graphs, ids = [], [], [], []
for i in range(len(examples[text_column])):
if examples[text_column][i] is not None and examples[summary_column][i] is not None:
# if examples['doc_id'][i] in graph_data.keys():
inputs.append(examples[text_column][i])
targets.append(examples[summary_column][i])
sub_graphs.append(graph_data_train[examples['id'][i]])
ids.append(examples['id'][i])
inputs = [prefix + inp for inp in inputs]
model_inputs = tokenizer(inputs, max_length=data_args.max_source_length, padding=padding, truncation=True,
sub_graphs=sub_graphs, ids=ids)
# Setup the tokenizer for targets
with tokenizer.as_target_tokenizer():
labels = tokenizer(targets, max_length=max_target_length, padding=padding, truncation=True)
# If we are padding here, replace all tokenizer.pad_token_id in the labels by -100 when we want to ignore
# padding in the loss.
if padding == "max_length" and data_args.ignore_pad_token_for_loss:
labels["input_ids"] = [
[(l if l != tokenizer.pad_token_id else -100) for l in label] for label in labels["input_ids"]
]
model_inputs["labels"] = labels["input_ids"]
return model_inputs
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
Hi ! `datasets` doesn't load the dataset in memory. Instead it uses memory mapping to load your dataset from your disk (it is stored as arrow files). Do you know at what point you have RAM issues exactly ?
How big are your graph_data_train dictionaries btw ? | [
-0.16354887187480927,
-0.2687242329120636,
0.020451102405786514,
0.48325544595718384,
0.4122942090034485,
0.1014910414814949,
-0.06181507185101509,
0.24080584943294525,
-0.028643010184168816,
0.15085627138614655,
0.014923040755093098,
0.0726357027888298,
-0.23145993053913116,
-0.23283018171787262,
0.005722942762076855,
-0.24911195039749146,
0.16619890928268433,
-0.12045639753341675,
-0.16335082054138184,
0.13290587067604065,
-0.36097264289855957,
-0.19751271605491638,
-0.09067345410585403,
-0.33550548553466797,
-0.6500330567359924,
-0.3723124563694,
-0.053633227944374084,
0.2742757797241211,
0.11496523022651672,
-0.42939361929893494,
-0.19906054437160492,
-0.023821081966161728,
-0.11826308816671371,
0.6194427609443665,
-0.00012105580390198156,
0.056909382343292236,
-0.006118759512901306,
-0.03560883551836014,
-0.2892788052558899,
0.26009032130241394,
0.28653258085250854,
-0.45978471636772156,
0.1196666955947876,
-0.19931194186210632,
0.16534024477005005,
-0.11617527902126312,
-0.06795372813940048,
-0.19688880443572998,
0.4927520751953125,
0.21492137014865875,
0.13619351387023926,
0.26422110199928284,
-0.011544879525899887,
0.007581415586173534,
-0.06396394222974777,
0.15805889666080475,
0.09657911211252213,
0.027581311762332916,
-0.04140423238277435,
-0.25669848918914795,
-0.196483314037323,
0.16956745088100433,
-0.025830518454313278,
0.16116757690906525,
0.3520032465457916,
-0.020312059670686722,
-0.10365919023752213,
-0.3838121294975281,
0.09880103170871735,
0.053532443940639496,
-0.12850403785705566,
-0.1431427299976349,
-0.27744731307029724,
-0.4052683711051941,
-0.14105971157550812,
-0.5004163384437561,
0.10129336267709732,
0.23798468708992004,
-0.18611684441566467,
-0.0704086422920227,
-0.16936244070529938,
-0.25974979996681213,
-0.13535739481449127,
0.0741414874792099,
-0.1526346057653427,
0.010899238288402557,
-0.09969522804021835,
0.07178152352571487,
0.4530763328075409,
-0.07597343623638153,
-0.31280842423439026,
0.08203376084566116,
0.09696592390537262,
0.1844632476568222,
-0.4521104693412781,
0.1337292641401291,
-0.0328688845038414,
-0.3886619210243225,
0.18945294618606567,
-0.06952962279319763,
0.11364392936229706,
0.0418039932847023,
-0.01633627340197563,
0.02812138944864273,
0.0033915042877197266,
0.40731143951416016,
-0.6970540881156921,
0.5046619772911072,
0.20141664147377014,
0.03366299718618393,
-0.22799266874790192,
0.08165232837200165,
-0.32521381974220276,
-0.11753585934638977,
0.19824564456939697,
-0.15470296144485474,
0.10234346985816956,
0.15468697249889374,
-0.17100383341312408,
0.3600617051124573,
-0.07738656550645828,
-0.008989416062831879,
0.051259055733680725,
0.3915596902370453,
-0.18695209920406342,
0.21939006447792053,
0.10865731537342072,
0.13339367508888245,
-0.4348174035549164,
0.27418550848960876,
-0.20921654999256134,
0.1918250173330307,
-0.35996514558792114,
0.25488153100013733,
0.16923029720783234,
-0.018072661012411118,
0.059225402772426605,
-0.2590382397174835,
0.052217401564121246,
-0.3499869406223297,
0.08019788563251495,
-0.32727617025375366,
0.17780113220214844,
0.3441224694252014,
-0.2236049622297287,
0.07122678309679031,
0.15860675275325775,
0.42483681440353394,
0.10769901424646378,
0.3242807388305664,
-0.08506756275892258,
-0.5387804508209229,
0.1653563529253006,
0.07668978720903397,
-0.1943853497505188,
0.1924302875995636,
-0.19999003410339355,
0.2975802719593048,
0.6446771621704102,
0.2043185979127884,
-0.12351111322641373,
0.08351580798625946,
-0.45414745807647705,
-0.20754539966583252,
0.38918372988700867,
0.5602484345436096,
-0.1252935528755188,
-0.04949419945478439,
0.0883389562368393,
0.010081728920340538,
0.2615160346031189,
0.46091774106025696,
0.04817507788538933,
0.04245321452617645,
0.12998737394809723,
-0.121676504611969,
0.05722592771053314,
-0.05892525240778923,
-0.619295597076416,
0.09533113986253738,
-0.16764728724956512,
0.17937247455120087,
0.07746695727109909,
0.25656864047050476,
-0.016214266419410706,
0.14654137194156647,
0.32161450386047363,
0.36204952001571655,
-0.05010022222995758,
0.21397466957569122,
-0.39814820885658264,
-0.3064166307449341,
0.1422489732503891,
0.30340197682380676,
0.2875548005104065,
0.1852051317691803,
-0.11314146965742111,
-0.0268818661570549,
0.2841796875,
0.08709169924259186,
-0.11802934855222702,
0.17604286968708038,
-0.09350453317165375,
0.13707995414733887,
0.024455590173602104,
-0.29712435603141785,
-0.0811060294508934,
0.3085249662399292,
0.2022222876548767,
0.09153509140014648,
-0.09236814081668854,
0.09027290344238281,
-0.08789176493883133,
0.10688110440969467,
-0.02772393450140953,
-0.20876112580299377,
0.04457037150859833,
-0.058847323060035706,
-0.019679220393300056,
-0.143940269947052,
-0.24352921545505524,
0.2709578573703766,
-0.31689175963401794,
0.1835576593875885,
-0.2775164842605591,
0.1443060040473938,
0.013196108862757683,
-0.195838063955307,
-0.1687573492527008,
0.12293539941310883,
-0.07452448457479477,
0.004025812726467848,
-0.2719883620738983,
0.19207310676574707,
0.08996504545211792,
-0.17639435827732086,
-0.23439306020736694,
0.11995890736579895,
0.07865053415298462,
0.11318086087703705,
0.1794377863407135,
-0.030258048325777054,
0.09054422378540039,
-0.10813768208026886,
0.048084989190101624,
0.08056187629699707,
0.014089692384004593,
0.21777886152267456,
0.12979835271835327,
-0.06162387132644653,
0.07585729658603668,
0.15393970906734467,
0.16901980340480804,
-0.20976804196834564,
0.3367573916912079,
0.14725276827812195,
0.22693853080272675,
0.08682151883840561,
-0.15127980709075928,
-0.31309860944747925,
0.05365607142448425,
-0.055477991700172424,
0.22443893551826477,
0.24728572368621826,
-0.09038697928190231,
0.14330443739891052,
-0.08402719348669052,
0.02267792448401451,
0.337955117225647,
0.06439149379730225,
-0.1266358494758606,
0.2338288426399231,
0.10005026310682297,
-0.039013031870126724,
0.01853056252002716,
0.4309791326522827,
0.3110770583152771,
0.18053790926933289,
0.17903417348861694,
0.15810346603393555,
-0.19193130731582642,
0.03577418252825737,
0.23772308230400085,
0.43195611238479614,
-0.24544106423854828,
0.2520562708377838,
-0.12486983090639114,
-0.08017244935035706,
0.03175809606909752,
0.13795442879199982,
-0.20202985405921936,
-0.10219692438840866,
-0.11249986290931702,
0.13271379470825195,
-0.20157358050346375,
0.11288022994995117,
-0.07573334872722626,
0.39081627130508423,
0.18230071663856506,
-0.07662562280893326,
0.32336360216140747,
-0.1533270627260208,
-0.04476378858089447,
-0.07045002281665802,
0.27099138498306274,
-0.2680566608905792,
0.31211623549461365,
0.0783924013376236,
-0.19323144853115082,
0.17615187168121338,
-0.2966271638870239,
0.08442458510398865,
0.044340819120407104,
0.05990472435951233,
-0.23783573508262634,
0.2393725961446762,
0.10172854363918304,
-0.32920461893081665,
0.19969603419303894,
-0.06318307667970657,
-0.19915418326854706,
0.23887446522712708,
0.10854265838861465,
-0.05419246479868889,
-0.10162147879600525,
-0.3513781726360321,
-0.31783053278923035,
-0.6438425183296204,
0.3942052721977234,
-0.02655356377363205,
0.28505319356918335,
0.48087865114212036,
0.2651418447494507,
-0.06880473345518112,
0.11851808428764343,
0.23358216881752014,
-0.16583094000816345,
-0.17690667510032654,
0.408596932888031,
-0.022550800815224648,
-0.16053231060504913,
-0.14923453330993652,
-0.3987264037132263,
0.055948227643966675,
0.6113033294677734,
-0.7697915434837341,
-0.08845634758472443,
-0.3283713161945343,
-0.22510375082492828,
-0.1918812245130539,
0.11138979345560074,
0.08860447257757187,
-0.03132059425115585,
0.059334173798561096,
0.05579838156700134,
-0.3023581802845001,
0.057451117783784866,
0.19935157895088196,
0.03900611400604248,
-0.19051510095596313,
0.7167900800704956,
0.20911714434623718,
0.7112119197845459,
-0.05437282472848892,
0.11263251304626465,
0.29068541526794434,
0.03442852571606636,
0.14884063601493835,
-0.047596849501132965,
-0.3918114900588989,
0.12446308881044388,
-0.17714923620224,
-0.14357250928878784,
0.0651564747095108,
0.07078109681606293,
-0.3543432056903839,
-0.027798186987638474,
-0.05881698057055473,
-0.06460743397474289,
-0.35431182384490967,
0.31209811568260193,
-0.20675906538963318,
0.3199704885482788,
-0.11611007153987885,
0.19062796235084534,
-0.3491540551185608,
-0.15501859784126282,
-0.16200554370880127,
-0.1015879213809967,
0.19576263427734375,
-0.14506609737873077,
-0.37049445509910583,
-0.0005183808971196413,
-0.4523445963859558,
0.07665061950683594,
0.05677911639213562,
0.39139556884765625,
-0.14784260094165802,
-0.28912243247032166,
0.06487585604190826,
0.08816023170948029,
0.4668534994125366,
0.2273252308368683,
-0.15510672330856323,
0.020487472414970398,
-0.5670885443687439,
-0.3809506893157959,
-0.02051541395485401,
0.06239742413163185,
0.4334154725074768,
0.08292759954929352,
0.34939831495285034,
-0.23803672194480896,
0.04091745987534523,
0.35267704725265503,
0.18690375983715057,
-0.2874909043312073,
-0.267839252948761,
-0.4243699014186859,
-0.3454197645187378,
-0.5037269592285156,
0.1803475320339203,
0.2936883270740509,
0.11594787985086441,
0.23547223210334778,
0.14822110533714294,
-0.11434268951416016,
-0.013891278766095638,
0.2363242357969284,
0.12092077732086182,
0.26224371790885925,
0.13557486236095428,
0.3047387897968292,
0.2744339108467102,
-0.10585792362689972,
0.4440409541130066,
0.650132954120636,
-0.21036671102046967,
-0.3694940507411957,
0.16396301984786987,
0.12346285581588745,
0.3305093050003052,
0.48563164472579956,
0.05396760255098343,
-0.08066483587026596,
0.22613178193569183,
0.3351457715034485,
-0.46013790369033813,
0.47878026962280273,
0.3161930739879608,
0.007889398373663425,
-0.33445435762405396,
-0.5407705903053284,
0.2759191691875458,
0.2699117660522461,
0.07071730494499207,
0.15142829716205597,
-0.21720381081104279,
-0.11338780075311661,
0.4400908350944519,
0.08304206281900406,
0.9583319425582886,
-0.14079006016254425,
0.38243362307548523,
0.27230304479599,
0.21823139488697052,
0.3166576623916626,
-0.3537181615829468,
0.43520283699035645,
-0.2733336389064789,
-0.5525519847869873,
0.17890778183937073,
-0.0917496532201767,
-0.1592351198196411,
0.2031985968351364,
0.26128801703453064,
0.11676377058029175,
-0.2803042232990265,
-0.1262580156326294,
-0.09230970591306686,
0.36551976203918457,
0.10072944313287735,
-0.3859553337097168,
-0.2445632517337799,
0.04020530730485916,
-0.16769930720329285,
0.004901416599750519,
-0.08425445109605789,
0.13506510853767395,
0.015458296984434128,
0.024186916649341583,
-0.27726781368255615,
-0.08848051726818085,
-0.429927259683609,
0.24385720491409302,
-0.028006207197904587,
-0.09626976400613785,
0.08800403773784637,
0.07580263912677765,
-0.08899712562561035,
0.3174144923686981,
0.24385040998458862,
0.12335486710071564,
-0.20529162883758545,
0.1001725122332573,
0.052832022309303284,
0.1577526181936264,
0.4503667950630188,
-0.09480440616607666,
-0.14394977688789368,
-0.03327140957117081,
-0.05172610282897949,
-0.22605586051940918,
-0.4103979170322418,
0.02972518280148506,
0.2625620663166046,
-0.12762965261936188,
-0.04052242636680603,
-0.05067117512226105,
-0.23436470329761505,
-0.04836788773536682,
0.06513940542936325,
0.21762758493423462,
-0.40115317702293396,
0.41278842091560364,
0.006802171468734741,
-0.3026528060436249,
-0.017169397324323654,
0.17957726120948792,
0.15496636927127838,
-0.23356984555721283,
0.4594998061656952,
0.3511441648006439,
-0.09263207018375397,
-0.06663891673088074,
-0.14934185147285461,
0.23008006811141968,
-0.16393202543258667,
0.23858363926410675,
-0.009438654407858849,
-0.3884962797164917,
-0.1902477741241455,
-0.16442431509494781,
0.19605684280395508,
-0.09094681590795517,
-0.07543602585792542,
-0.15591858327388763,
-0.833739161491394,
0.140633225440979,
0.03554971143603325,
0.28262874484062195,
-0.012130361050367355,
-0.185214564204216,
-0.22674518823623657,
0.6815464496612549,
-0.19494101405143738,
-0.09016765654087067,
-0.16241900622844696,
0.1244882121682167,
-0.10506324470043182,
-0.34097278118133545,
0.26649022102355957,
0.06311632692813873,
-0.0007380582392215729,
0.14673152565956116,
-0.13607868552207947,
-0.08157336711883545,
-0.09628991782665253,
0.1476549357175827,
-0.06887909770011902,
-0.3714196979999542,
-0.023204229772090912,
-0.2812192440032959,
-0.12343630194664001,
-0.3619222939014435,
0.32068413496017456,
0.19127020239830017,
-0.05535458028316498,
-0.02512548491358757,
0.19012950360774994,
0.07216989248991013,
0.2779853940010071,
0.39276570081710815,
-0.048480868339538574,
0.33416804671287537,
0.2838023900985718,
0.0718652680516243,
0.16534042358398438,
-0.09521164000034332,
-0.3654991090297699,
-0.17856153845787048,
0.09518890082836151,
-0.17497017979621887,
0.228998601436615,
-0.29648512601852417,
-0.1459043174982071,
0.08503083884716034,
0.18390558660030365,
0.3804525136947632,
0.03357943147420883,
0.002464834600687027,
0.340334415435791,
0.12056823819875717,
-0.032895565032958984,
-0.12319457530975342,
0.5483198165893555,
-0.19222114980220795,
0.11841993033885956,
0.51043301820755,
-0.13438306748867035,
0.1876421570777893,
-0.24749599397182465,
0.19344770908355713,
0.23374363780021667,
-0.027920454740524292,
0.2971760928630829,
0.06996232271194458,
-0.08797870576381683,
-0.07219748198986053,
0.13187462091445923,
0.2439173012971878,
0.2928353548049927,
0.4130821228027344,
0.21424666047096252,
0.42088186740875244,
0.05526702105998993,
-0.188078373670578,
0.04625923931598663,
-0.4261581003665924,
-0.2715316712856293,
0.3341720402240753,
-0.22691047191619873,
0.26268282532691956,
-0.3409242331981659,
0.2575320601463318,
0.07673104852437973,
-0.29801145195961,
-0.18259017169475555,
0.23011736571788788,
-0.3917684853076935,
0.07664404809474945,
0.1824823021888733,
-0.11285195499658585,
-0.0707656741142273,
-0.004006069153547287,
0.11548170447349548,
-0.4360787272453308,
0.33167046308517456,
0.0964476466178894,
-0.28271567821502686,
0.11552845686674118,
0.08643046021461487,
0.3950936198234558,
0.32691073417663574,
-0.2907435894012451,
0.13704484701156616,
0.32964661717414856,
-0.03391856700181961,
0.035739313811063766,
0.08466606587171555,
0.42347452044487,
0.4666966497898102,
-0.33746352791786194,
0.2518617510795593,
0.20223216712474823,
0.0482211634516716,
-0.20567747950553894,
0.23411238193511963,
0.010583117604255676,
0.4447265565395355,
0.1279269903898239,
-0.05299089848995209,
-0.09182218462228775,
0.007918357849121094,
0.007362205535173416,
-0.027507510036230087,
-0.30703338980674744,
-0.0025227144360542297,
-0.07953817397356033,
-0.26146620512008667,
-0.1286698877811432,
0.03937825933098793,
-0.47321444749832153,
-0.09341830760240555,
0.46289747953414917,
-0.28692129254341125,
0.1992608904838562,
0.06302335858345032,
-0.0026798807084560394,
-0.27487966418266296,
0.7049822211265564,
0.30761897563934326,
0.13047288358211517,
-0.34963321685791016,
0.10946394503116608,
-0.5753384232521057,
0.41426295042037964,
-0.11180800199508667,
0.009946739301085472,
0.19934777915477753,
0.0597873255610466,
-0.0987737700343132,
0.12315403670072556,
-0.12089137732982635,
-0.2956615388393402,
-0.13722538948059082,
0.2030806690454483,
-0.5121052265167236,
-0.2248685210943222,
-0.1492597609758377,
0.05211349576711655,
0.12601238489151,
-0.18961289525032043,
-0.04471166804432869,
-0.16812007129192352,
-0.10411693155765533,
-0.0448678582906723,
-0.1944625973701477,
-0.36307695508003235,
0.619933009147644,
0.3123915195465088,
0.15157610177993774,
0.4238152503967285,
0.052340611815452576,
-0.3402509391307831,
-0.3015020191669464,
-0.1625729352235794,
-0.18179106712341309,
-0.01185869425535202,
0.176449716091156,
0.4674069285392761,
-0.15738548338413239,
-0.09543995559215546,
-0.24622036516666412,
0.02454947866499424,
-0.08589641749858856,
-0.3589039146900177,
0.053148433566093445,
0.044711075723171234,
0.29047319293022156,
0.3000012934207916,
0.3207933008670807,
0.26767072081565857,
-0.016677506268024445,
0.16345283389091492,
-0.2363635003566742,
-0.29330864548683167,
0.4582197666168213,
-0.05086689814925194,
-0.32939642667770386,
-0.20197589695453644,
0.10293590277433395,
0.25162020325660706,
0.07922862470149994,
-0.5294726490974426,
-0.02707410603761673,
0.04783250391483307,
-0.08265114575624466,
-0.5597711801528931,
0.19684749841690063,
-0.2557139992713928,
-0.27244773507118225,
0.011829540133476257,
0.28302985429763794,
-0.2701393961906433,
-0.17649848759174347,
0.12203967571258545,
-0.1623406559228897
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 23 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | [
-0.10092616081237793,
0.2100123167037964,
-0.05182547867298126,
0.225194051861763,
-0.10977950692176819,
-0.057623766362667084,
0.26807302236557007,
0.3371184766292572,
-0.07926475256681442,
0.20631450414657593,
0.12442069500684738,
0.5698287487030029,
0.4415481984615326,
0.36525383591651917,
-0.054642945528030396,
-0.174275204539299,
0.3567140996456146,
0.08401378989219666,
0.13056033849716187,
-0.09094522148370743,
-0.2684163451194763,
0.5139861702919006,
-0.2818470895290375,
0.11310712993144989,
-0.0024433457292616367,
-0.10887622088193893,
-0.4653172791004181,
-0.11985450237989426,
-0.03645387291908264,
-0.14488808810710907,
0.04225227236747742,
0.10935713350772858,
-0.3286173343658447,
0.2559750974178314,
-0.00010964124521706253,
-0.2272859513759613,
-0.07731311023235321,
0.04767414927482605,
-0.2789718210697174,
-0.3162000775337219,
-0.044422697275877,
-0.33082202076911926,
0.03825300186872482,
-0.2663816213607788,
0.11193033307790756,
-0.048500046133995056,
-0.1596236228942871,
0.0479489341378212,
0.19416706264019012,
0.050365693867206573,
0.22433103621006012,
-0.024319835007190704,
0.3201378881931305,
0.06275249272584915,
0.16288961470127106,
-0.02390969544649124,
-0.34197548031806946,
0.019826825708150864,
0.3297080397605896,
-0.07667793333530426,
0.21100792288780212,
0.2544214725494385,
-0.010653259232640266,
-0.15013979375362396,
-0.3070981800556183,
0.12397574633359909,
0.11981873214244843,
-0.219658762216568,
0.17825853824615479,
0.5026724934577942,
0.14278465509414673,
-0.25041231513023376,
-0.4591214954853058,
-0.2557523250579834,
0.05901791527867317,
-0.055780597031116486,
0.23028191924095154,
0.30587515234947205,
0.12496624886989594,
-0.06258650124073029,
0.13674715161323547,
-0.0829632580280304,
0.1441458910703659,
0.08993390202522278,
-0.3396267294883728,
-0.12123696506023407,
-0.04308769851922989,
-0.055992670357227325,
-0.3348177671432495,
-0.18332278728485107,
0.3674878776073456,
-0.18487147986888885,
-0.08345934748649597,
0.08524774014949799,
-0.461315393447876,
-0.08451864868402481,
-0.17316895723342896,
-0.2783447802066803,
-0.1413930207490921,
-0.29237455129623413,
0.2139350175857544,
0.003963476046919823,
-0.297067254781723,
0.16543126106262207,
-0.04582690820097923,
-0.16064020991325378,
-0.07105789333581924,
0.11887051910161972,
-0.19034941494464874,
0.049726568162441254,
0.10941646993160248,
-0.10038278251886368,
0.005285893566906452,
-0.17629994451999664,
-0.36261096596717834,
-0.13050082325935364,
0.38574278354644775,
-0.11654587835073471,
-0.2995653450489044,
0.3059236705303192,
-0.07185384631156921,
-0.07941421121358871,
-0.1124265119433403,
0.0002453252673149109,
-0.25478944182395935,
-0.11531361192464828,
0.09440688788890839,
0.14511708915233612,
-0.09633813053369522,
-0.2837238907814026,
-0.19599869847297668,
-0.0018883906304836273,
-0.0740690678358078,
0.027600567787885666,
0.1374996453523636,
0.17946606874465942,
0.34645476937294006,
0.36600252985954285,
-0.14624275267124176,
0.014255326241254807,
-0.023246947675943375,
-0.1170395016670227,
-0.03675266355276108,
0.1816740483045578,
-0.14490002393722534,
-0.0827707052230835,
-0.07366563379764557,
-0.18738840520381927,
0.013131655752658844,
0.2109992802143097,
-0.3556283116340637,
0.10638898611068726,
-0.29023945331573486,
0.2481042891740799,
0.1234382838010788,
-0.032620906829833984,
0.21043848991394043,
0.21762613952159882,
-0.03182094544172287,
-0.24347510933876038,
0.07930711656808853,
-0.07524954527616501,
0.22783228754997253,
-0.14166317880153656,
0.197404146194458,
0.21186724305152893,
-0.48805394768714905,
-0.04049641638994217,
0.08844796568155289,
0.2922271192073822,
-0.12414547055959702,
-0.04762880876660347,
0.0830383449792862,
-0.16094079613685608,
-0.11688287556171417,
0.1702493578195572,
0.12874571979045868,
-0.15256156027317047,
-0.239328533411026,
-0.13479992747306824,
0.2676387429237366,
0.03787983953952789,
0.006389930844306946,
-0.3533119857311249,
-0.04668516293168068,
-0.0439302958548069,
0.04779154062271118,
0.07717545330524445,
-0.24492961168289185,
-0.1222812682390213,
-0.4172747731208801,
-0.12730497121810913,
-0.0025544948875904083,
0.29014942049980164,
-0.0009165853261947632,
0.0009975805878639221,
0.022759638726711273,
-0.31044766306877136,
0.14458291232585907,
-0.006436426192522049,
-0.09935759752988815,
0.21361073851585388,
0.3118121922016144,
-0.023068562150001526,
0.1324470341205597,
0.1610926389694214,
-0.3506331741809845,
-0.08690090477466583,
-0.558369517326355,
-0.02209261804819107,
-0.11338481307029724,
-0.07203159481287003,
-0.13777703046798706,
-0.04064343497157097,
0.10771475732326508,
0.13248653709888458,
0.1803770810365677,
-0.10721191763877869,
-0.07951509207487106,
0.12589074671268463,
-0.1651870310306549,
-0.21910642087459564,
-0.2010670155286789,
0.1932186633348465,
-0.2639107406139374,
0.1504637897014618,
-0.2711705267429352,
-0.08591506630182266,
0.2815196216106415,
0.21441155672073364,
0.32261425256729126,
-0.19855812191963196,
-0.039736825972795486,
0.4925365447998047,
0.06793790310621262,
-0.16572745144367218,
0.05558716133236885,
0.2825045585632324,
0.2520304024219513,
0.21658146381378174,
0.003945367410778999,
0.04857544228434563,
-0.06295482069253922,
-0.007212404161691666,
0.03496747463941574,
0.500636100769043,
-0.1590486764907837,
0.1358138620853424,
0.10220322012901306,
0.19622471928596497,
0.19674035906791687,
-0.27097466588020325,
0.056384794414043427,
-0.2297937124967575,
0.1597505360841751,
-0.06144968792796135,
0.327412486076355,
-0.1586163192987442,
-0.35116302967071533,
0.2731758952140808,
0.5077378153800964,
-0.019368499517440796,
-0.06868361681699753,
0.06767664104700089,
0.09054003655910492,
0.10099674016237259,
0.09687286615371704,
-0.00376279279589653,
0.21526497602462769,
0.18156123161315918,
-0.32016876339912415,
0.13183273375034332,
0.1795663684606552,
-0.15392234921455383,
0.3975910246372223,
0.2093745768070221,
-0.31107330322265625,
0.03763842582702637,
0.17286580801010132,
0.21105097234249115,
-0.1523113250732422,
-0.01562630385160446,
0.37765663862228394,
0.0923076942563057,
-0.09319673478603363,
0.2744852602481842,
-0.15194019675254822,
-0.19205155968666077,
-0.10307774692773819,
-0.3751797676086426,
-0.2876754105091095,
-0.18994280695915222,
0.1777268350124359,
0.05131114274263382,
-0.08554151654243469,
0.5102548003196716,
0.4035283029079437,
0.2855919897556305,
-0.2668795585632324,
0.365606427192688,
-0.48953086137771606,
-0.06055912747979164,
-0.21882662177085876,
0.18884767591953278,
0.10311325639486313,
-0.33251652121543884,
0.10176816582679749,
-0.2111886590719223,
-0.10724189132452011,
-0.46676668524742126,
-0.5108633637428284,
0.11275927722454071,
-0.2909986972808838,
0.2711436450481415,
0.08237317204475403,
0.05068513751029968,
-0.466966450214386,
-0.25742173194885254,
0.19384409487247467,
0.06465225666761398,
-0.17468476295471191,
0.18954280018806458,
-0.15107600390911102,
-0.32820236682891846,
-0.1720156967639923,
-0.2811829745769501,
-0.1255698800086975,
-0.05732342600822449,
0.3623307943344116,
-0.18166466057300568,
0.23320318758487701,
0.36937278509140015,
-0.17604054510593414,
-0.2582164704799652,
0.08087565749883652,
0.14302626252174377,
-0.34056177735328674,
-0.23061054944992065,
0.17333383858203888,
-0.23314549028873444,
-0.30261164903640747,
0.02004840597510338,
-0.007577994838356972,
0.3305046558380127,
-0.14472176134586334,
-0.42140334844589233,
-0.1518365442752838,
0.021427512168884277,
0.023900460451841354,
0.12350832670927048,
0.09734977781772614,
0.21525654196739197,
0.28028032183647156,
-0.08905196934938431,
-0.22898432612419128,
-0.31881946325302124,
0.02778775990009308,
0.2785305976867676,
0.4463622570037842,
-0.35512757301330566,
0.15927886962890625,
-0.11358918249607086,
-0.03144810348749161,
-0.004351891577243805,
0.3506535291671753,
0.17724627256393433,
0.04103294759988785,
0.09795878827571869,
-0.21389591693878174,
-0.12060736864805222,
0.018646148964762688,
-0.28662821650505066,
0.10551485419273376,
0.3142366409301758,
-0.29229605197906494,
0.0847824215888977,
-0.1306319236755371,
0.057581428438425064,
-0.6104726195335388,
-0.3238411545753479,
-0.20883451402187347,
-0.16821597516536713,
0.36370253562927246,
0.32688581943511963,
0.04882501810789108,
-0.06607264280319214,
-0.0494036003947258,
0.3029881715774536,
0.013230554759502411,
0.10566087067127228,
-0.11519303172826767,
-0.3425935208797455,
-0.07027600705623627,
-0.19494828581809998,
0.3684501051902771,
-0.3872961699962616,
0.2316998839378357,
0.05729483440518379,
0.09879357367753983,
-0.01773396134376526,
0.21633486449718475,
0.7720746994018555,
0.07921331375837326,
-0.47358542680740356,
0.26806148886680603,
-0.15699312090873718,
-0.1349526196718216,
-0.3505120873451233,
-0.04496864974498749,
0.0335654579102993,
0.41518038511276245,
0.006893053650856018,
-0.4184962511062622,
-0.03084677830338478,
0.2092839479446411,
0.17725424468517303,
-0.2559620141983032,
-0.08660384267568588,
-0.273369699716568,
-0.04379567503929138,
0.025122174993157387,
-0.29492852091789246,
-0.10605062544345856,
0.14959493279457092,
0.04460449516773224,
0.10252736508846283,
-0.04641669988632202,
-0.25199830532073975,
0.25130409002304077,
0.33605629205703735,
0.33973246812820435,
-0.21378400921821594,
0.4847933053970337,
-0.181284099817276,
0.28172656893730164,
0.4496484100818634,
0.4115253686904907,
-0.01812225580215454,
-0.38255569338798523,
0.11749882251024246,
-0.572148859500885,
0.24784976243972778,
0.18195918202400208,
0.14670847356319427,
0.33945050835609436,
-0.11644504964351654,
0.03167346492409706,
0.10100701451301575,
-0.12317192554473877,
0.26985448598861694,
-0.005205534398555756,
-0.3811216950416565,
-0.29119378328323364,
0.31671416759490967,
-0.21131201088428497,
-0.15680238604545593,
0.546593189239502,
0.3255326747894287,
-0.04957805573940277,
0.8692589402198792,
-0.17326629161834717,
0.8559393286705017,
0.0735439583659172,
-0.20924773812294006,
0.27363693714141846,
-0.41889309883117676,
0.2268696129322052,
-0.03318621590733528,
0.1795358955860138,
-0.5019339919090271,
-0.08841413259506226,
0.09921656548976898,
0.09900693595409393,
0.2656605839729309,
0.22110265493392944,
-0.10617504268884659,
0.1902991384267807,
0.0010178238153457642,
-0.3593476712703705,
-0.04596949368715286,
-0.05530714988708496,
0.23938271403312683,
-0.07562705874443054,
-0.14239002764225006,
0.09994073212146759,
0.023876521736383438,
-0.006532594561576843,
-0.12160307168960571,
0.04347040504217148,
-0.19481147825717926,
-0.0330936461687088,
-0.024810507893562317,
0.06449045985937119,
-0.05390287935733795,
-0.016658052802085876,
0.4378454387187958,
-0.4568096399307251,
0.009295076131820679,
0.09524894505739212,
0.6670408248901367,
0.04886315390467644,
-0.15883880853652954,
0.3587813973426819,
0.22094741463661194,
-0.02641969919204712,
0.24269890785217285,
0.06262752413749695,
0.1265898048877716,
0.027121610939502716,
0.04644537717103958,
0.04304301366209984,
-0.15514789521694183,
0.19234946370124817,
-0.3443816304206848,
-0.09503620862960815,
0.2435641884803772,
-0.27132198214530945,
0.0498700849711895,
-0.348345547914505,
0.2933453321456909,
-0.46737566590309143,
0.14639116823673248,
0.02725226804614067,
0.08812330663204193,
0.26671838760375977,
-0.007242683321237564,
-0.046931128948926926,
-0.2838767468929291,
-0.1984838843345642,
-0.06194954365491867,
0.19774788618087769,
0.45839059352874756,
-0.03145366534590721,
0.026639103889465332,
-0.0819447711110115,
-0.04770401865243912,
0.0862911120057106,
-0.2968995273113251,
-0.0015538213774561882,
0.05607621371746063,
-0.21271800994873047,
0.21139223873615265,
0.8396196961402893,
0.1446298360824585,
0.1651255488395691,
0.22569988667964935,
-0.3633263111114502,
0.04407922923564911,
-0.0063331350684165955,
0.22655954957008362,
-0.08166101574897766,
0.276352196931839,
0.2498502880334854,
-0.27740582823753357,
0.1408756524324417,
-0.317577064037323,
0.2241612672805786,
-0.2019473910331726,
0.33192354440689087,
-0.7157121896743774,
-0.05491571128368378,
0.04449327662587166,
-0.20442862808704376,
0.17311838269233704,
-0.16759145259857178,
0.05049339681863785,
-0.2098580300807953,
-0.3488282263278961,
0.13062021136283875,
0.12872715294361115,
0.049299925565719604,
-0.29658904671669006,
-0.006610766053199768,
-0.06987924873828888,
-0.16775816679000854,
-0.1875578910112381,
0.03893142193555832,
0.10395285487174988,
0.13345645368099213,
-0.2040732353925705,
0.08632722496986389,
-0.33462727069854736,
-0.134990394115448,
0.1036275327205658,
0.020276173949241638,
0.34921184182167053,
0.05220545455813408,
-0.2873457670211792,
0.028498180210590363,
0.05019759014248848,
0.03483937308192253,
-0.38490962982177734,
-0.05357001721858978,
0.6435757875442505,
-0.2771757245063782,
0.09910650551319122,
0.02511432208120823,
0.1701028198003769,
0.2966196835041046,
-0.2951370179653168,
0.014473004266619682,
0.19824108481407166,
0.27211448550224304,
-0.5340194702148438,
-0.14210347831249237,
0.3219991624355316,
0.09464622288942337,
0.057393383234739304,
0.14990414679050446,
0.460808128118515,
-0.19781494140625,
-0.021104231476783752,
0.1160215511918068,
0.2872007489204407,
0.028604140505194664,
0.02815615013241768,
0.4072286784648895,
0.14679604768753052,
0.44841623306274414,
0.5110232830047607,
0.21051082015037537,
-0.33243006467819214,
0.25043171644210815,
-0.058113448321819305,
0.06183799356222153,
-0.14198336005210876,
0.0930759459733963,
0.17394155263900757,
-0.1292765885591507,
0.462166428565979,
-0.3282720148563385,
-0.016349636018276215,
0.11689499020576477,
0.09023448079824448,
-0.2595866024494171,
0.02488899603486061,
-0.2258998453617096,
-0.024454224854707718,
-0.10123400390148163,
-0.19591861963272095,
0.027566295117139816,
-0.12591977417469025,
-0.10012009739875793,
0.41262006759643555,
-0.031653501093387604,
-0.0714585930109024,
0.03209136798977852,
0.31616759300231934,
0.1369594931602478,
-0.059496134519577026,
-0.04670221358537674,
-0.25615420937538147,
0.23818320035934448,
0.40624305605888367,
-0.15131539106369019,
0.2619270086288452,
0.12622931599617004,
-0.33691489696502686,
0.12258811295032501,
0.34349337220191956,
0.11926020681858063,
0.0682731568813324,
-0.09396375715732574,
-0.13311024010181427,
-0.03158261254429817,
-0.08485262840986252,
0.24231678247451782,
0.15543197095394135,
0.3483056128025055,
0.3779921531677246,
0.15388670563697815,
0.09778373688459396,
-0.08549334108829498,
0.11030188202857971,
0.09094482660293579,
0.040227197110652924,
-0.31819435954093933,
-0.040631331503391266,
-0.19214554131031036,
-0.37322092056274414,
-0.10984434187412262,
-0.14964497089385986,
-0.18108220398426056,
-0.031566523015499115,
0.04588823765516281,
0.13256704807281494,
-0.06913831830024719,
0.1820523738861084,
0.14015968143939972,
0.15742391347885132,
0.05455983430147171,
0.33578088879585266,
0.11969879269599915,
-0.3121221959590912,
-0.47239452600479126,
-0.22091567516326904,
0.14718618988990784,
-0.016654644161462784,
0.27529776096343994,
0.36657896637916565,
0.13280613720417023,
0.3440549373626709,
-0.11124876141548157,
0.06122293323278427,
-0.04460087791085243,
-0.37918052077293396,
0.29894277453422546,
-0.5998271703720093,
-0.09177316725254059,
-0.11270385980606079,
0.061964958906173706,
-0.019757941365242004,
0.23781254887580872,
0.2866753339767456,
0.037119507789611816,
-0.03907334432005882,
-0.16018134355545044,
0.023921005427837372,
0.19646582007408142,
0.0704030841588974,
0.3648020625114441,
0.17927251756191254,
-0.09760643541812897,
-0.043698884546756744,
-0.3078193962574005,
0.20536071062088013,
-0.08007147163152695,
-0.13646669685840607,
0.5880197286605835,
-0.06848187744617462,
0.15883293747901917,
0.29218098521232605,
-0.5144423842430115,
0.1098296120762825,
0.6035783886909485,
0.0952700823545456,
-0.11863978952169418,
-0.4994300901889801,
0.3075222373008728,
0.37892216444015503,
0.1986837089061737,
0.1321588009595871,
0.31105685234069824,
-0.08761389553546906,
0.35790595412254333,
-0.38783061504364014,
-0.2611925005912781,
0.41512376070022583,
-0.283166766166687,
0.003510843962430954,
-0.07722395658493042,
0.284359335899353,
-0.2573527991771698,
-0.10236942768096924,
-0.607306718826294,
-0.2867359220981598,
0.3671973943710327,
-0.3029932975769043,
-0.1535065472126007,
0.034565072506666183,
-0.07723750174045563,
0.19647543132305145,
0.00007393956184387207,
0.8225835561752319,
0.2425956130027771,
-0.14394508302211761,
0.08583801984786987,
0.14137999713420868
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 132 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | [
-0.10977411270141602,
0.13261598348617554,
-0.0441398024559021,
0.25150153040885925,
-0.2379205971956253,
-0.02383936569094658,
0.2634884715080261,
0.3610416352748871,
0.006400706246495247,
0.17647454142570496,
0.0964336097240448,
0.48493990302085876,
0.454989492893219,
0.4911121129989624,
-0.14810433983802795,
-0.16044771671295166,
0.38682782649993896,
0.027673669159412384,
0.2539488673210144,
-0.035651206970214844,
-0.2659469246864319,
0.46727314591407776,
-0.21744340658187866,
0.09999266266822815,
0.0964771956205368,
-0.13982991874217987,
-0.48477616906166077,
-0.05791398137807846,
0.005419381894171238,
0.007424087263643742,
0.18091042339801788,
0.16052141785621643,
-0.3850035071372986,
0.2002614438533783,
-0.00011393206659704447,
-0.1369350105524063,
-0.08837853372097015,
0.02660665474832058,
-0.23192143440246582,
-0.2157825082540512,
0.05296148359775543,
-0.26178938150405884,
-0.12288767099380493,
-0.2755649983882904,
0.09811296314001083,
0.055066656321287155,
-0.14911110699176788,
-0.2618978023529053,
0.1818794161081314,
-0.1573999673128128,
0.15255960822105408,
-0.023807648569345474,
0.36759287118911743,
0.18675769865512848,
0.0815775990486145,
-0.10159344971179962,
-0.22930556535720825,
0.0033497540280222893,
0.2247365266084671,
0.01184835471212864,
0.2578727900981903,
0.30361998081207275,
-0.06889074295759201,
-0.290493369102478,
-0.3472493886947632,
0.16646559536457062,
0.16014604270458221,
-0.26734304428100586,
0.024835646152496338,
0.4789612293243408,
-0.010928325355052948,
-0.23555967211723328,
-0.5180102586746216,
-0.3433980941772461,
0.03870764002203941,
-0.14295744895935059,
0.12423138320446014,
0.23044453561306,
0.17461851239204407,
-0.022312898188829422,
0.320792555809021,
-0.18246138095855713,
0.1485363095998764,
0.16527339816093445,
-0.35175928473472595,
-0.01043052226305008,
0.017013318836688995,
-0.06926452368497849,
-0.3648292124271393,
-0.10319136083126068,
0.443592369556427,
-0.3173169493675232,
-0.0160326287150383,
0.010505931451916695,
-0.42818450927734375,
-0.15001167356967926,
-0.27369633316993713,
-0.3439183235168457,
-0.09565432369709015,
-0.28818249702453613,
0.29855746030807495,
0.022994184866547585,
-0.23303447663784027,
0.1407809555530548,
-0.10064145922660828,
-0.05587174370884895,
-0.0019866526126861572,
0.11795835942029953,
-0.22353853285312653,
0.08699023723602295,
0.03664975240826607,
-0.08245772123336792,
-0.0008302252972498536,
-0.10002365708351135,
-0.34170103073120117,
-0.07235853374004364,
0.49226659536361694,
-0.024717792868614197,
-0.38598158955574036,
0.2369077056646347,
-0.13121116161346436,
-0.07154204696416855,
-0.08433409780263901,
-0.06664661318063736,
-0.17341673374176025,
0.13046741485595703,
0.10173390805721283,
0.17043252289295197,
-0.055720940232276917,
-0.21832849085330963,
-0.16283255815505981,
-0.08140520751476288,
0.04569095000624657,
0.10777516663074493,
0.042782995849847794,
0.10756050050258636,
0.3035515546798706,
0.2609868347644806,
-0.049385055899620056,
0.12936605513095856,
-0.06967420876026154,
-0.14299361407756805,
0.042201247066259384,
0.11697492003440857,
-0.23676840960979462,
-0.1403558999300003,
-0.017765317112207413,
-0.24846263229846954,
0.058054424822330475,
0.19933727383613586,
-0.4056648015975952,
-0.023291882127523422,
-0.23361651599407196,
0.2024969607591629,
0.11317455768585205,
-0.015943124890327454,
0.13853678107261658,
0.24778443574905396,
0.06111464649438858,
-0.23136714100837708,
0.05629698187112808,
-0.10612396895885468,
0.18153685331344604,
-0.16667631268501282,
0.21628157794475555,
0.19653479754924774,
-0.41224488615989685,
-0.013401437550783157,
-0.12869609892368317,
0.39668869972229004,
-0.1489105224609375,
0.05868295580148697,
0.04439844563603401,
-0.0683441236615181,
-0.15637336671352386,
0.2003963142633438,
0.13042719662189484,
-0.2321341633796692,
-0.37492188811302185,
-0.1660817712545395,
0.26568877696990967,
0.15569311380386353,
0.10866332799196243,
-0.3345250189304352,
-0.11527267098426819,
-0.10899066925048828,
0.13170327246189117,
0.020808065310120583,
-0.24195614457130432,
-0.21714970469474792,
-0.43252506852149963,
-0.21248959004878998,
0.1553421914577484,
0.18012572824954987,
-0.025526855140924454,
0.0034711286425590515,
-0.12083331495523453,
-0.251054048538208,
0.2326430082321167,
-0.00007865950465202332,
-0.14834533631801605,
0.10105250775814056,
0.3779265582561493,
-0.1242135614156723,
0.11745283007621765,
0.1150914654135704,
-0.5746988654136658,
-0.030064338818192482,
-0.6786447763442993,
-0.14491991698741913,
-0.1288169026374817,
-0.2518348693847656,
-0.03845164179801941,
-0.08486927300691605,
0.040375664830207825,
0.15744391083717346,
0.17506439983844757,
-0.13488368690013885,
-0.0455273762345314,
-0.038564909249544144,
-0.2609846591949463,
-0.26881223917007446,
-0.19273614883422852,
0.23964686691761017,
-0.22866372764110565,
0.24537904560565948,
-0.2683628499507904,
0.006145183462649584,
0.2477332353591919,
0.2455507516860962,
0.35656633973121643,
-0.26204201579093933,
0.08870553970336914,
0.5120711326599121,
0.038057729601860046,
-0.21774424612522125,
-0.05381685495376587,
0.25023332238197327,
0.2662847340106964,
0.29507118463516235,
0.023923123255372047,
0.0712919682264328,
-0.08481581509113312,
-0.07740367949008942,
0.07365807890892029,
0.48270511627197266,
-0.1446058303117752,
0.21926729381084442,
0.10144197940826416,
0.08805129677057266,
0.03449929505586624,
-0.21842359006404877,
-0.009266683831810951,
-0.31172695755958557,
0.022941630333662033,
-0.13896483182907104,
0.29888206720352173,
-0.14704573154449463,
-0.3462938964366913,
0.4355352222919464,
0.5409054160118103,
-0.00424819253385067,
-0.0848381444811821,
0.10143862664699554,
0.19923537969589233,
0.09702501446008682,
0.07527033984661102,
-0.0725451409816742,
0.2485429048538208,
0.19286909699440002,
-0.29877665638923645,
0.10671377182006836,
0.26679351925849915,
-0.0843672975897789,
0.444307804107666,
0.2617068886756897,
-0.24534478783607483,
0.12429051846265793,
0.18163566291332245,
0.2464805394411087,
-0.12663725018501282,
-0.07814091444015503,
0.3060941696166992,
0.0027536889538168907,
-0.12900446355342865,
0.2617794871330261,
-0.12705360352993011,
-0.22757917642593384,
-0.1454593390226364,
-0.4518144428730011,
-0.26385441422462463,
-0.22477781772613525,
0.21221625804901123,
0.13785143196582794,
-0.18526683747768402,
0.5181918144226074,
0.42279595136642456,
0.3277258574962616,
-0.21184569597244263,
0.3134726881980896,
-0.5174564123153687,
0.029742088168859482,
-0.12393946200609207,
0.15987826883792877,
0.11709190905094147,
-0.41797974705696106,
0.03873246908187866,
-0.17860537767410278,
-0.08909732103347778,
-0.41927608847618103,
-0.6379324197769165,
0.11060947924852371,
-0.32920414209365845,
0.16546177864074707,
0.08033429086208344,
0.2013358175754547,
-0.4030195474624634,
-0.42292213439941406,
0.1720823347568512,
0.2590760886669159,
-0.17361319065093994,
0.15418700873851776,
-0.059935301542282104,
-0.34879520535469055,
-0.10165055096149445,
-0.2814890742301941,
-0.21105729043483734,
-0.11673371493816376,
0.3086923658847809,
-0.24949175119400024,
0.29055196046829224,
0.3692629635334015,
-0.17210468649864197,
-0.3150829076766968,
0.0722794234752655,
0.11121317744255066,
-0.2756536304950714,
-0.24713101983070374,
0.16707053780555725,
-0.15065762400627136,
-0.1349560022354126,
-0.1657998412847519,
-0.1401343047618866,
0.37819749116897583,
-0.18449059128761292,
-0.3242150545120239,
-0.0957910344004631,
0.050080835819244385,
-0.053921885788440704,
0.1956447809934616,
0.1437063068151474,
0.22381684184074402,
0.38186532258987427,
-0.02048320695757866,
-0.15271547436714172,
-0.22782793641090393,
0.04838667809963226,
0.28520336747169495,
0.39308351278305054,
-0.3543853163719177,
0.05086261406540871,
-0.016963234171271324,
0.03353724256157875,
0.17707671225070953,
0.3453836441040039,
0.10434531420469284,
0.17411278188228607,
0.08588637411594391,
-0.24354460835456848,
-0.16713885962963104,
-0.07154688984155655,
-0.22879987955093384,
0.06675367802381516,
0.2377081662416458,
-0.35011687874794006,
0.03948231041431427,
-0.06200041621923447,
0.03153369575738907,
-0.5189902782440186,
-0.3875523507595062,
-0.1719101518392563,
-0.22657150030136108,
0.3533695638179779,
0.31543445587158203,
-0.015554789453744888,
0.007304888218641281,
-0.010859088972210884,
0.39771947264671326,
0.016903787851333618,
0.152217298746109,
-0.12305726110935211,
-0.3153352737426758,
-0.3102191984653473,
-0.14135590195655823,
0.4627586007118225,
-0.35997846722602844,
0.19816769659519196,
0.17593206465244293,
-0.01551237516105175,
-0.12978002429008484,
0.1527130901813507,
0.76607745885849,
0.08292583376169205,
-0.5135414600372314,
0.29402512311935425,
-0.08659964799880981,
-0.10367634892463684,
-0.3375144898891449,
0.05751339718699455,
0.0035667517222464085,
0.4307490885257721,
0.2280939519405365,
-0.5632209777832031,
-0.014934859238564968,
0.10153503715991974,
0.24259406328201294,
-0.2797352373600006,
-0.12396809458732605,
-0.22872759401798248,
-0.002382732927799225,
-0.026244616135954857,
-0.231155127286911,
-0.07753623276948929,
0.23200160264968872,
0.07966100424528122,
0.09324735403060913,
-0.16512437164783478,
-0.3843829929828644,
0.2328847199678421,
0.18009695410728455,
0.40591588616371155,
-0.17305797338485718,
0.4700661897659302,
-0.18908895552158356,
0.38644859194755554,
0.3785928785800934,
0.4198213815689087,
0.04605439305305481,
-0.20231473445892334,
-0.015420965850353241,
-0.42913123965263367,
0.3105562627315521,
0.32043445110321045,
0.18226765096187592,
0.3888297379016876,
0.0009927060455083847,
0.08389779925346375,
0.06259635835886002,
-0.19352617859840393,
0.1843181997537613,
0.030634839087724686,
-0.4366152882575989,
-0.3393150568008423,
0.2915221154689789,
-0.2039181888103485,
-0.22919337451457977,
0.49746832251548767,
0.37800294160842896,
-0.09863266348838806,
0.8824443221092224,
-0.15710914134979248,
0.9794387221336365,
0.20373351871967316,
-0.14599546790122986,
0.3811953365802765,
-0.12242960184812546,
0.14762245118618011,
-0.04261830449104309,
0.18529731035232544,
-0.4120439291000366,
-0.1451178789138794,
0.08604057878255844,
0.08160744607448578,
0.28152117133140564,
0.2387799471616745,
-0.15534469485282898,
0.2907501459121704,
0.035853832960128784,
-0.3333657383918762,
-0.07733606547117233,
0.017763696610927582,
0.17833246290683746,
-0.07154172658920288,
-0.17390687763690948,
-0.0036962535232305527,
0.06125696375966072,
-0.006148442625999451,
-0.10249873995780945,
0.0029743481427431107,
-0.16963458061218262,
-0.057489652186632156,
0.06230129301548004,
0.076731838285923,
-0.20527875423431396,
0.040925946086645126,
0.30936747789382935,
-0.4988071322441101,
0.01723155751824379,
0.08384086191654205,
0.7103009819984436,
0.06597132980823517,
0.0027816612273454666,
0.23453734815120697,
0.34220314025878906,
-0.08481116592884064,
0.2973732650279999,
-0.0815068930387497,
0.14577962458133698,
0.057147711515426636,
0.08380498737096786,
0.04326949641108513,
-0.11875800788402557,
0.2134898453950882,
-0.3214099705219269,
-0.17910636961460114,
0.2767014801502228,
-0.2891272008419037,
0.004289812408387661,
-0.19423404335975647,
0.22040343284606934,
-0.4162173569202423,
0.08399565517902374,
0.024260111153125763,
0.06666296720504761,
0.23951584100723267,
-0.08362092077732086,
-0.014378994703292847,
-0.24669192731380463,
-0.1777970790863037,
0.0938921868801117,
0.32564130425453186,
0.45603498816490173,
-0.12056633830070496,
0.04652342200279236,
-0.022440379485487938,
-0.04552839696407318,
0.028622020035982132,
-0.09919250011444092,
0.05720328539609909,
0.051808297634124756,
-0.23118796944618225,
0.08579810708761215,
0.7464830279350281,
0.23145745694637299,
0.22851702570915222,
0.12218983471393585,
-0.3248083293437958,
-0.009010258130729198,
0.20989662408828735,
0.2423282265663147,
-0.014630746096372604,
0.2803834080696106,
0.21819256246089935,
-0.4034712612628937,
0.11860241740942001,
-0.28277885913848877,
0.16590119898319244,
-0.08925311267375946,
0.2588101923465729,
-0.6593567132949829,
-0.006508532911539078,
0.12194197624921799,
-0.22841711342334747,
0.1578783541917801,
-0.1771123707294464,
0.14593924582004547,
-0.1767701506614685,
-0.30788111686706543,
0.1345810443162918,
0.10287068039178848,
0.12738937139511108,
-0.14279668033123016,
0.030755143612623215,
0.02601059153676033,
-0.1779376119375229,
-0.12359309196472168,
-0.06083996593952179,
0.21221107244491577,
0.15331923961639404,
-0.317443311214447,
0.06407380849123001,
-0.35821062326431274,
-0.10397447645664215,
0.07003386318683624,
-0.04811634123325348,
0.31145399808883667,
0.14272946119308472,
-0.3573385775089264,
0.0014678463339805603,
0.17813627421855927,
0.04658394306898117,
-0.4318418502807617,
0.04426676034927368,
0.7221924662590027,
-0.22779466211795807,
-0.05428570881485939,
-0.004493757616728544,
0.16197741031646729,
0.25658661127090454,
-0.2838602662086487,
-0.009699513204395771,
0.07735037803649902,
0.2426292896270752,
-0.5789575576782227,
-0.04792851209640503,
0.2664563059806824,
0.008286742493510246,
0.14208845794200897,
0.23974856734275818,
0.40031492710113525,
-0.21915966272354126,
-0.03738474100828171,
0.12882757186889648,
0.26182687282562256,
0.16714459657669067,
0.10109986364841461,
0.3663032650947571,
0.17525294423103333,
0.5033139586448669,
0.4916253387928009,
0.2436361461877823,
-0.18274104595184326,
0.145769864320755,
0.06381586194038391,
-0.009002504870295525,
-0.10790140181779861,
0.004191040992736816,
0.2079651802778244,
0.018078193068504333,
0.3652294874191284,
-0.17470329999923706,
0.10083737224340439,
0.1459258496761322,
0.16384586691856384,
-0.20911484956741333,
0.08158612251281738,
-0.3186056613922119,
0.0914066806435585,
-0.01172463595867157,
-0.2274351418018341,
-0.0038577094674110413,
-0.20792517066001892,
-0.13538721203804016,
0.3794545829296112,
-0.1710144430398941,
-0.06998421251773834,
-0.08316181600093842,
0.19974055886268616,
0.09391015768051147,
-0.02839048206806183,
0.09096205979585648,
-0.22730916738510132,
0.3274764120578766,
0.49017128348350525,
-0.20897455513477325,
0.33161747455596924,
0.30978262424468994,
-0.44711723923683167,
0.07624734938144684,
0.3841513395309448,
0.1532023698091507,
-0.01717393845319748,
-0.20640285313129425,
-0.05492481216788292,
0.05411713570356369,
-0.16572816669940948,
0.16093532741069794,
-0.012051120400428772,
0.25637194514274597,
0.18608494102954865,
0.24456004798412323,
0.07070471346378326,
-0.08849477022886276,
0.06816864013671875,
0.1879158765077591,
0.10018180310726166,
-0.3758580684661865,
0.0644887164235115,
-0.23107686638832092,
-0.34526485204696655,
0.0030518267303705215,
-0.1659972369670868,
-0.21167713403701782,
-0.1408899575471878,
0.07026546448469162,
0.06898268312215805,
-0.0767303854227066,
0.22141437232494354,
0.11565673351287842,
0.24517633020877838,
0.046258386224508286,
0.21542197465896606,
0.013439346104860306,
-0.3520793914794922,
-0.418101966381073,
-0.1978958249092102,
0.13207732141017914,
0.03977847099304199,
0.34100964665412903,
0.3438514173030853,
0.1442616581916809,
0.4004646837711334,
-0.09094759821891785,
0.07271040230989456,
-0.049363210797309875,
-0.46249884366989136,
0.2876476049423218,
-0.5645509958267212,
-0.02656460925936699,
-0.09176510572433472,
0.09168218821287155,
-0.003529820591211319,
0.11346549540758133,
0.2303837090730667,
0.07328324019908905,
-0.06452549248933792,
-0.051995374262332916,
0.20138275623321533,
0.17954088747501373,
-0.20147454738616943,
0.24027910828590393,
0.19412337243556976,
-0.19241780042648315,
-0.07068116962909698,
-0.3504210114479065,
0.2710878551006317,
-0.04992901161313057,
-0.2259751260280609,
0.5704766511917114,
-0.003579474985599518,
0.24587109684944153,
0.21075531840324402,
-0.5354070663452148,
0.09114973247051239,
0.5161125659942627,
0.19000722467899323,
-0.23571424186229706,
-0.577559769153595,
0.4134140908718109,
0.280997097492218,
0.2135034054517746,
0.10660688579082489,
0.4640430212020874,
-0.11836004257202148,
0.3973371684551239,
-0.3557237982749939,
-0.2840926945209503,
0.4370099902153015,
-0.25620582699775696,
0.030055545270442963,
-0.010047854855656624,
0.28278523683547974,
-0.18069514632225037,
0.01976177655160427,
-0.49862349033355713,
-0.3273220956325531,
0.33982187509536743,
-0.3813391625881195,
-0.1946467161178589,
-0.02207004278898239,
-0.012406785041093826,
0.0612323172390461,
-0.05043764412403107,
0.784917950630188,
0.19742771983146667,
-0.2776809632778168,
-0.004824142903089523,
0.08772586286067963
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 107 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | [
-0.06960289925336838,
0.22964784502983093,
-0.010089937597513199,
0.040228843688964844,
-0.18348701298236847,
-0.10421352833509445,
0.3193838894367218,
0.37284165620803833,
-0.008460492826998234,
0.15323305130004883,
0.08122049272060394,
0.31265565752983093,
0.5082783699035645,
0.2665570378303528,
-0.11585858464241028,
-0.24597281217575073,
0.3876904845237732,
0.15908971428871155,
0.06665951758623123,
-0.16444003582000732,
-0.21584734320640564,
0.3688810467720032,
-0.19248685240745544,
0.22960472106933594,
0.11792762577533722,
-0.0768633782863617,
-0.4602320194244385,
-0.1250719130039215,
0.00002773664891719818,
-0.13602043688297272,
0.039347656071186066,
0.36871957778930664,
-0.2468782365322113,
0.25354692339897156,
-0.00010786405619001016,
-0.1946755349636078,
-0.046492137014865875,
0.11437119543552399,
-0.285014271736145,
-0.21179954707622528,
0.011488180607557297,
-0.27607491612434387,
-0.15551045536994934,
-0.18350863456726074,
0.07816724479198456,
0.0257270485162735,
-0.12054426968097687,
-0.17187394201755524,
0.020281679928302765,
-0.18789228796958923,
0.20113223791122437,
-0.06930892169475555,
0.2001214474439621,
0.09862086921930313,
0.29869627952575684,
0.19084110856056213,
-0.31602486968040466,
-0.13596589863300323,
0.25590839982032776,
-0.07964110374450684,
0.1724494993686676,
0.3941914141178131,
-0.0020531248301267624,
-0.15847977995872498,
-0.1582525372505188,
0.08563680946826935,
0.07430262118577957,
-0.07544921338558197,
0.16201886534690857,
0.7886561751365662,
0.24690282344818115,
-0.20674708485603333,
-0.46675553917884827,
-0.2679789960384369,
-0.0074331145733594894,
0.0001956019550561905,
0.16897016763687134,
0.2789773941040039,
0.20358870923519135,
-0.012046229094266891,
0.2613489627838135,
-0.17300675809383392,
0.12634022533893585,
0.15967786312103271,
-0.4020986258983612,
-0.2846068739891052,
-0.029331859201192856,
-0.0341491624712944,
-0.4117085039615631,
-0.20794087648391724,
0.14182446897029877,
-0.21362729370594025,
-0.12143935263156891,
-0.04868611693382263,
-0.2751648724079132,
-0.1530783623456955,
-0.119207002222538,
-0.22203576564788818,
0.05753251165151596,
-0.4127492308616638,
0.20001894235610962,
0.027483206242322922,
-0.39037492871284485,
0.1110265925526619,
0.017032582312822342,
-0.32242053747177124,
-0.0602530911564827,
0.044566985219717026,
-0.13087308406829834,
0.15369153022766113,
0.17029620707035065,
-0.061894431710243225,
0.13384805619716644,
-0.056472424417734146,
-0.499198853969574,
-0.17162629961967468,
0.37129515409469604,
-0.19372685253620148,
-0.35021087527275085,
0.38838639855384827,
-0.019887296482920647,
-0.12361916899681091,
-0.20793388783931732,
0.05395226180553436,
-0.1510804146528244,
0.08657880127429962,
0.09976859390735626,
0.16041570901870728,
-0.12026508897542953,
-0.2795262336730957,
-0.15374788641929626,
0.020188435912132263,
-0.004678569734096527,
0.16871634125709534,
0.08842895925045013,
0.12862057983875275,
0.1250649094581604,
0.33507201075553894,
-0.1154179722070694,
0.15226979553699493,
0.02391895465552807,
-0.25013819336891174,
0.08669452369213104,
0.12422153353691101,
-0.31812867522239685,
-0.09288936853408813,
-0.10424509644508362,
-0.1033547967672348,
-0.03324175626039505,
0.21404576301574707,
-0.33736279606819153,
0.1700287014245987,
-0.3033411204814911,
0.25537601113319397,
0.12503570318222046,
-0.05666913092136383,
0.20183402299880981,
0.25733327865600586,
-0.13823461532592773,
-0.2928125858306885,
0.20274929702281952,
-0.12589600682258606,
0.20242515206336975,
-0.15171445906162262,
0.06065718084573746,
0.32419678568840027,
-0.473702996969223,
-0.03575526922941208,
0.09647070616483688,
0.3526403605937958,
-0.0959911122918129,
-0.021430548280477524,
-0.09935881197452545,
-0.049141086637973785,
-0.10730070620775223,
0.1985851377248764,
0.07828272134065628,
-0.25582823157310486,
-0.1632888913154602,
-0.03931594640016556,
0.2789353132247925,
0.09055027365684509,
0.010014675557613373,
-0.3963422477245331,
0.0106874480843544,
-0.16157852113246918,
-0.09948787093162537,
-0.09880789369344711,
-0.15940265357494354,
-0.1323215812444687,
-0.434815913438797,
-0.21684418618679047,
-0.06770592927932739,
0.18187958002090454,
0.04357903450727463,
-0.14676201343536377,
0.07487650960683823,
-0.041521210223436356,
0.32286813855171204,
-0.10068286955356598,
-0.042454756796360016,
0.15007992088794708,
0.37709957361221313,
0.01724996045231819,
0.1662048101425171,
0.17613252997398376,
-0.3448503315448761,
-0.11112076789140701,
-0.5325239896774292,
-0.1221325546503067,
0.14520013332366943,
-0.25508445501327515,
-0.03148530796170235,
-0.20185433328151703,
0.10340402275323868,
0.10972987115383148,
0.20366166532039642,
-0.04705393314361572,
-0.19234393537044525,
0.07302315533161163,
-0.18223021924495697,
-0.10452635586261749,
-0.13595595955848694,
0.23216648399829865,
-0.016664959490299225,
0.19952534139156342,
-0.17842720448970795,
0.10729643702507019,
0.20817115902900696,
0.19099459052085876,
0.3404945135116577,
-0.15375089645385742,
0.026267340406775475,
0.39476361870765686,
0.06886278837919235,
-0.13208545744419098,
0.015377864241600037,
0.32800135016441345,
0.3196363151073456,
0.21303102374076843,
0.174467533826828,
0.056509941816329956,
0.006123029626905918,
-0.08780019730329514,
-0.060697950422763824,
0.4383126497268677,
-0.08520369231700897,
0.10170519351959229,
0.08155588805675507,
0.06020309776067734,
0.044443801045417786,
-0.23751670122146606,
0.014431783929467201,
-0.27393972873687744,
0.12227152287960052,
-0.058064233511686325,
0.23783831298351288,
-0.1290927231311798,
-0.2389456182718277,
0.3914746344089508,
0.648289144039154,
-0.010083433240652084,
-0.09385278075933456,
0.16281983256340027,
0.11308793723583221,
0.09302745014429092,
0.22936096787452698,
-0.11914853006601334,
0.2146209478378296,
0.20940381288528442,
-0.3093630075454712,
0.12465785443782806,
0.16295909881591797,
-0.13013502955436707,
0.3430814743041992,
0.26113155484199524,
-0.14606042206287384,
0.03179994970560074,
0.1446855217218399,
0.2648163139820099,
-0.17505133152008057,
-0.23999913036823273,
0.25730377435684204,
-0.10932034254074097,
-0.15004107356071472,
0.24837572872638702,
-0.14950783550739288,
-0.03203197568655014,
-0.06680586189031601,
-0.24178223311901093,
-0.24835512042045593,
-0.27630361914634705,
0.1566922813653946,
0.06835250556468964,
-0.17537152767181396,
0.27206024527549744,
0.12484763562679291,
0.3851287364959717,
-0.36902448534965515,
0.3286459743976593,
-0.4920905828475952,
0.12173653393983841,
-0.2863214313983917,
0.17104454338550568,
0.03286563232541084,
-0.3764328360557556,
0.17744474112987518,
-0.20749950408935547,
-0.16733771562576294,
-0.5746417045593262,
-0.6637227535247803,
0.24951665103435516,
-0.31249570846557617,
0.03632964566349983,
0.17373473942279816,
0.09232581406831741,
-0.6263769268989563,
-0.2311522662639618,
0.08069435507059097,
0.1109648048877716,
-0.14109031856060028,
0.14819447696208954,
-0.16760650277137756,
-0.11856459826231003,
-0.1557626873254776,
-0.3343430459499359,
-0.08980235457420349,
-0.1443949043750763,
0.37803828716278076,
-0.2561933696269989,
0.21441398561000824,
0.48771190643310547,
-0.2778661847114563,
-0.24575668573379517,
-0.09965009987354279,
0.2701761722564697,
-0.42998549342155457,
-0.20346610248088837,
0.12198925763368607,
-0.26560983061790466,
-0.3593103885650635,
-0.05142558366060257,
-0.09147759526968002,
0.3019786775112152,
-0.03173842281103134,
-0.409145712852478,
-0.064921073615551,
0.0692015066742897,
0.0029040835797786713,
0.015995420515537262,
0.18169116973876953,
0.27900224924087524,
0.18833792209625244,
-0.10440435260534286,
-0.2142486274242401,
-0.1808733195066452,
0.07794926315546036,
0.24588057398796082,
0.46590277552604675,
-0.27168506383895874,
0.05551988631486893,
0.02899579331278801,
0.1235661506652832,
0.06318925321102142,
0.457559734582901,
0.3480701446533203,
0.20208095014095306,
0.21170832216739655,
-0.24316102266311646,
0.058754533529281616,
0.16097265481948853,
-0.21326705813407898,
0.10626429319381714,
0.3341737985610962,
-0.2246905267238617,
0.06856966018676758,
-0.06538234651088715,
0.030824169516563416,
-0.5297793745994568,
-0.4418599605560303,
-0.09203367680311203,
-0.24060291051864624,
0.2859290540218353,
0.30979660153388977,
0.19403114914894104,
-0.07769783586263657,
-0.13115763664245605,
0.4596409797668457,
0.22735629975795746,
0.202264666557312,
-0.08723453432321548,
-0.3523530662059784,
-0.04855632781982422,
-0.15099862217903137,
0.449171781539917,
-0.3587692975997925,
0.31889328360557556,
0.02066519483923912,
-0.05042806267738342,
-0.026772215962409973,
0.031255222856998444,
0.5746678709983826,
0.03548789024353027,
-0.4375721216201782,
0.26894888281822205,
-0.13308197259902954,
0.024452554062008858,
-0.3724321722984314,
-0.09054222702980042,
-0.19661979377269745,
0.23314346373081207,
-0.13130305707454681,
-0.6180849671363831,
-0.21509647369384766,
0.12597961723804474,
0.038097187876701355,
-0.19766639173030853,
-0.21983863413333893,
-0.21335096657276154,
-0.07235278189182281,
-0.06791031360626221,
-0.3726087510585785,
-0.06971251964569092,
0.1390257030725479,
-0.08687607198953629,
0.06977115571498871,
-0.13844271004199982,
-0.14377039670944214,
0.29671043157577515,
0.17714588344097137,
0.36296507716178894,
-0.07768110185861588,
0.3815392851829529,
-0.1740056723356247,
0.3287402391433716,
0.5683435797691345,
0.3478132486343384,
0.044608525931835175,
-0.11532950401306152,
0.18726643919944763,
-0.5689079761505127,
0.25461289286613464,
0.4183627665042877,
0.2751154899597168,
0.3500734865665436,
0.027387265115976334,
0.10560264438390732,
-0.11485937982797623,
0.024005131796002388,
0.24261559545993805,
-0.16836918890476227,
-0.5273300409317017,
-0.264907568693161,
0.2989828586578369,
-0.10071994364261627,
-0.21941421926021576,
0.4401063323020935,
0.7184061408042908,
-0.03788287192583084,
0.8356879353523254,
-0.08697076886892319,
1.0262868404388428,
0.04216359555721283,
0.04335084185004234,
0.2748911678791046,
-0.3377823829650879,
0.29721248149871826,
-0.2469857931137085,
0.057025156915187836,
-0.4488586187362671,
-0.15273812413215637,
-0.005170172080397606,
0.09507617354393005,
0.4571220874786377,
0.18323791027069092,
0.011249292641878128,
0.2882121503353119,
0.0976339727640152,
-0.09000681340694427,
-0.06591209024190903,
-0.0019938983023166656,
0.013591866940259933,
-0.12468722462654114,
-0.04029001295566559,
0.13761398196220398,
-0.028208009898662567,
0.08818245679140091,
-0.21074217557907104,
-0.02348518744111061,
-0.22818642854690552,
-0.11127583682537079,
0.03768835961818695,
0.006650649011135101,
0.06740343570709229,
-0.15007169544696808,
0.40833112597465515,
-0.34891265630722046,
0.15525783598423004,
-0.19354335963726044,
0.7438076138496399,
0.17750810086727142,
-0.14989137649536133,
0.24803423881530762,
0.15788504481315613,
0.00003959241439588368,
0.2723705470561981,
-0.08247428387403488,
0.2571636736392975,
-0.009115491062402725,
0.025854073464870453,
0.059294238686561584,
-0.18698184192180634,
0.1805787831544876,
-0.3997625708580017,
-0.2153988629579544,
0.38538533449172974,
-0.2461228221654892,
0.18161705136299133,
-0.15182821452617645,
0.2774573266506195,
-0.29907479882240295,
0.1574232429265976,
0.03793017193675041,
0.10435812175273895,
0.21049734950065613,
0.13122619688510895,
-0.05751559138298035,
-0.3873956501483917,
-0.1699642539024353,
0.0519762746989727,
0.025397472083568573,
0.40921750664711,
-0.0946321114897728,
-0.11461994796991348,
-0.07707224786281586,
-0.08550383150577545,
0.24152782559394836,
-0.2572833001613617,
-0.21583089232444763,
0.13518871366977692,
-0.23808810114860535,
0.17527799308300018,
0.7735230922698975,
0.13827311992645264,
0.045573197305202484,
0.2408798485994339,
-0.31711119413375854,
0.06053285300731659,
0.1505354940891266,
-0.017824489623308182,
-0.04524517431855202,
0.46066519618034363,
0.11094751954078674,
-0.32858312129974365,
0.04728160798549652,
-0.3610383868217468,
0.12995195388793945,
-0.0037908032536506653,
0.2519104480743408,
-0.746868371963501,
-0.031001202762126923,
-0.0802561342716217,
-0.19814172387123108,
0.1880062371492386,
-0.15045739710330963,
-0.076339952647686,
-0.19589972496032715,
-0.425317645072937,
0.15179041028022766,
0.14237749576568604,
0.10350044071674347,
-0.1528235673904419,
-0.04545120149850845,
-0.019471652805805206,
-0.14139650762081146,
-0.09342275559902191,
0.0016971789300441742,
0.14499717950820923,
0.241354838013649,
-0.036018792539834976,
0.08829085528850555,
-0.3178386092185974,
-0.04842603951692581,
0.23093506693840027,
0.1359749734401703,
0.17184045910835266,
0.11427126824855804,
-0.28120851516723633,
-0.0013339444994926453,
-0.00012782824342139065,
0.2056274712085724,
-0.16827239096164703,
-0.007853265851736069,
0.5881765484809875,
-0.1308361291885376,
0.17277087271213531,
-0.01614992879331112,
0.13834695518016815,
0.33216580748558044,
-0.2772146165370941,
-0.1656866818666458,
0.2568792402744293,
0.27021679282188416,
-0.3807605803012848,
-0.18491718173027039,
0.10315801203250885,
0.059897590428590775,
0.0647839605808258,
0.21120452880859375,
0.5977259874343872,
-0.2737564444541931,
-0.027000561356544495,
0.14363911747932434,
0.18241585791110992,
-0.08419480919837952,
-0.06969405710697174,
0.3393564820289612,
0.011217329651117325,
0.5447095036506653,
0.44116878509521484,
0.2687281668186188,
-0.28715744614601135,
0.14400029182434082,
0.02567373961210251,
0.03023308329284191,
-0.02505071461200714,
0.14994056522846222,
0.19283965229988098,
-0.17806081473827362,
0.5613917708396912,
-0.13517871499061584,
0.1588914841413498,
0.028327569365501404,
0.17643874883651733,
-0.3791714310646057,
0.24826586246490479,
-0.29889026284217834,
-0.022374561056494713,
-0.1865384578704834,
-0.23651492595672607,
0.04946383461356163,
-0.20359013974666595,
-0.03366151079535484,
0.2512712776660919,
-0.13358838856220245,
-0.17833159863948822,
-0.019544415175914764,
0.38677406311035156,
0.1532830148935318,
0.028518088161945343,
-0.02526807226240635,
-0.1014406606554985,
0.13487550616264343,
0.4785364866256714,
-0.15865235030651093,
0.20124389231204987,
0.008098870515823364,
-0.33698132634162903,
0.19474075734615326,
0.30691108107566833,
0.013771940022706985,
0.06964321434497833,
-0.12957707047462463,
-0.1931058019399643,
-0.047250378876924515,
-0.013804394751787186,
0.23525258898735046,
0.01736975461244583,
0.2774948477745056,
0.26266711950302124,
0.24019353091716766,
0.09484751522541046,
-0.06028003618121147,
0.007041532546281815,
0.002891644835472107,
0.022817300632596016,
-0.3785490393638611,
0.08258503675460815,
-0.12513525784015656,
-0.1042194813489914,
0.01899847574532032,
-0.14166513085365295,
-0.1990327537059784,
-0.16326744854450226,
0.15220089256763458,
0.19356021285057068,
0.047665856778621674,
0.04018721729516983,
0.12277324497699738,
0.20916593074798584,
-0.17148318886756897,
0.2552039623260498,
-0.06069277226924896,
-0.3017764687538147,
-0.2546449899673462,
-0.16822552680969238,
0.08301485329866409,
-0.08003240823745728,
0.1634853035211563,
0.29312047362327576,
0.11408047378063202,
0.43470263481140137,
-0.12824752926826477,
0.0673774927854538,
-0.06336139142513275,
-0.3583950996398926,
0.3047115206718445,
-0.43388527631759644,
-0.02637508139014244,
-0.07594612240791321,
0.08894062787294388,
-0.10467822849750519,
0.11152523010969162,
0.4254395663738251,
0.15845640003681183,
-0.03922586515545845,
-0.22608718276023865,
0.0958637148141861,
0.21475255489349365,
-0.15209315717220306,
0.23033778369426727,
0.21079888939857483,
-0.22646170854568481,
-0.11801380664110184,
-0.47560611367225647,
0.12290090322494507,
0.005739692598581314,
-0.13472440838813782,
0.5090207457542419,
-0.26169905066490173,
0.12473103404045105,
0.39418336749076843,
-0.6035912036895752,
0.1646508425474167,
0.5223117470741272,
0.07605938613414764,
0.021526791155338287,
-0.5713093280792236,
0.38316813111305237,
0.37636083364486694,
0.10311002284288406,
0.13080568611621857,
0.24999937415122986,
0.01041797548532486,
0.3519027829170227,
-0.37139177322387695,
-0.3835071921348572,
0.4825025200843811,
-0.29132896661758423,
0.03622138127684593,
-0.05292576551437378,
0.37732434272766113,
-0.2167602777481079,
-0.05736803263425827,
-0.6232241988182068,
-0.24042466282844543,
0.31086480617523193,
-0.32807686924934387,
-0.11161480844020844,
-0.04909948632121086,
-0.11348351836204529,
0.005228541791439056,
-0.11402760446071625,
0.7575461864471436,
0.09283898025751114,
-0.22801107168197632,
0.03609142825007439,
0.12562024593353271
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 18 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | [
-0.12276582419872284,
0.12948358058929443,
-0.05313251167535782,
0.24361321330070496,
-0.11152802407741547,
-0.057337187230587006,
0.1977686583995819,
0.2891440689563751,
-0.11566062271595001,
0.21282553672790527,
0.1821909099817276,
0.4630889594554901,
0.37812355160713196,
0.3454267084598541,
-0.051765263080596924,
-0.30288487672805786,
0.3833730220794678,
0.11995216459035873,
0.29034844040870667,
-0.00973290205001831,
-0.2617138922214508,
0.4804411828517914,
-0.31116417050361633,
0.14562416076660156,
0.06062626466155052,
-0.11753392964601517,
-0.47414013743400574,
-0.08850071579217911,
-0.06959784775972366,
-0.1171177551150322,
0.0329107791185379,
0.17386263608932495,
-0.29921045899391174,
0.22727647423744202,
-0.00011150359932798892,
-0.17673860490322113,
-0.09575113654136658,
0.03828471153974533,
-0.21033664047718048,
-0.26247698068618774,
-0.057299043983221054,
-0.33496418595314026,
-0.11456988751888275,
-0.25425663590431213,
0.07505997270345688,
-0.10844068974256516,
-0.14599913358688354,
0.017954625189304352,
0.09321558475494385,
0.06807319074869156,
0.19371065497398376,
-0.029637500643730164,
0.37441593408584595,
0.08648756146430969,
0.19342638552188873,
-0.057539671659469604,
-0.35958385467529297,
-0.010052589699625969,
0.30069810152053833,
-0.026359882205724716,
0.27618446946144104,
0.17682841420173645,
-0.03545336425304413,
-0.16639521718025208,
-0.31577953696250916,
0.17273691296577454,
0.1293562650680542,
-0.19156016409397125,
0.17328694462776184,
0.4257301092147827,
0.09661304205656052,
-0.2577461898326874,
-0.45729315280914307,
-0.26398977637290955,
0.007360505871474743,
-0.15202170610427856,
0.21170872449874878,
0.26566001772880554,
0.10558508336544037,
-0.04885724559426308,
0.17607150971889496,
-0.1050131767988205,
0.14700105786323547,
0.09973220527172089,
-0.32171815633773804,
-0.11793377995491028,
0.017078246921300888,
-0.017778582870960236,
-0.3173137903213501,
-0.19649387896060944,
0.43145883083343506,
-0.20869922637939453,
-0.08047798275947571,
0.013919543474912643,
-0.3882032334804535,
-0.09695538878440857,
-0.11941694468259811,
-0.2539885938167572,
-0.13745883107185364,
-0.22145847976207733,
0.0988515317440033,
0.0020827259868383408,
-0.2735094428062439,
0.12314966320991516,
-0.13318274915218353,
-0.1584864854812622,
-0.06404995173215866,
0.2421088069677353,
-0.2459203153848648,
0.12635433673858643,
0.053903136402368546,
-0.10448621958494186,
0.07530546188354492,
-0.21878980100154877,
-0.3298303782939911,
-0.10256225615739822,
0.42738574743270874,
-0.0753173753619194,
-0.3060820698738098,
0.305389940738678,
-0.08334584534168243,
-0.0859624445438385,
-0.12770353257656097,
0.03607778251171112,
-0.26586928963661194,
0.0010918788611888885,
0.10065828263759613,
0.10812254250049591,
-0.1107572689652443,
-0.24367374181747437,
-0.20032131671905518,
0.03388075903058052,
-0.06947680562734604,
0.05053462088108063,
0.0993649959564209,
0.201851949095726,
0.2790077030658722,
0.3210917115211487,
-0.1651395857334137,
0.020787611603736877,
-0.04320073127746582,
-0.15672840178012848,
-0.029700450599193573,
0.15575848519802094,
-0.1895795464515686,
-0.17279762029647827,
-0.14576610922813416,
-0.22526778280735016,
0.05604647845029831,
0.22628217935562134,
-0.29347023367881775,
0.07041400671005249,
-0.2920823395252228,
0.24869346618652344,
0.10287593305110931,
-0.06481031328439713,
0.20236454904079437,
0.20364384353160858,
-0.12152541428804398,
-0.2953958809375763,
0.11920355260372162,
-0.06610671430826187,
0.2310607135295868,
-0.1415511965751648,
0.2451857030391693,
0.2159568965435028,
-0.47617343068122864,
0.016927585005760193,
0.17295286059379578,
0.2636411190032959,
-0.09492140263319016,
-0.07162933051586151,
0.08443108201026917,
-0.19262343645095825,
-0.17093846201896667,
0.10193419456481934,
0.14325372874736786,
-0.2198542356491089,
-0.24689826369285583,
-0.17202918231487274,
0.23589201271533966,
0.05058300495147705,
0.16647805273532867,
-0.33762723207473755,
-0.09371142834424973,
-0.01916465349495411,
0.08470762521028519,
0.017014887183904648,
-0.3435075283050537,
-0.16356748342514038,
-0.4360639452934265,
-0.10055941343307495,
-0.004532024264335632,
0.26118212938308716,
0.010210204869508743,
-0.006782881915569305,
-0.0073441192507743835,
-0.21492567658424377,
0.16539444029331207,
0.0191701240837574,
-0.13703565299510956,
0.22731919586658478,
0.3431302011013031,
0.002491779625415802,
0.09014008194208145,
0.02781251072883606,
-0.35899776220321655,
-0.07529737055301666,
-0.5677218437194824,
-0.08948896825313568,
-0.10921913385391235,
-0.08655566722154617,
-0.1470208764076233,
-0.026053955778479576,
0.11513733863830566,
0.1055307686328888,
0.15904982388019562,
0.014906786382198334,
-0.055512141436338425,
0.028620794415473938,
-0.18176932632923126,
-0.23877361416816711,
-0.23349399864673615,
0.18727804720401764,
-0.27484026551246643,
0.17027531564235687,
-0.325153112411499,
-0.05798877030611038,
0.12583450973033905,
0.29459330439567566,
0.3319777846336365,
-0.23582573235034943,
0.05492173880338669,
0.502961277961731,
0.102829210460186,
-0.19553504884243011,
0.13016122579574585,
0.23939594626426697,
0.22229698300361633,
0.22659125924110413,
-0.020664384588599205,
0.017814770340919495,
-0.08609317988157272,
0.02778499573469162,
-0.03669382631778717,
0.5197257399559021,
-0.12420877814292908,
0.09515184164047241,
0.12643258273601532,
0.07722128182649612,
0.19518932700157166,
-0.28447726368904114,
0.06352777034044266,
-0.21436069905757904,
0.15275564789772034,
-0.016078025102615356,
0.3517082929611206,
-0.16988793015480042,
-0.4633826017379761,
0.24173963069915771,
0.5189924240112305,
-0.023586105555295944,
-0.12542995810508728,
0.08665726333856583,
0.12438073754310608,
0.1088784858584404,
0.06798198819160461,
-0.059879980981349945,
0.2594277858734131,
0.23693041503429413,
-0.33020198345184326,
0.16721881926059723,
0.2142619490623474,
-0.1110280230641365,
0.4038083851337433,
0.27490565180778503,
-0.39188963174819946,
0.1239856407046318,
0.24217861890792847,
0.22904542088508606,
-0.10303974896669388,
-0.07953743636608124,
0.37449008226394653,
0.06151864677667618,
-0.08571696281433105,
0.24306924641132355,
-0.11561619490385056,
-0.23697417974472046,
-0.20998577773571014,
-0.34979549050331116,
-0.24073141813278198,
-0.11524274200201035,
0.18400314450263977,
0.10393454134464264,
-0.08437642455101013,
0.5287848114967346,
0.3818041980266571,
0.19579759240150452,
-0.3022131323814392,
0.25160154700279236,
-0.4906478226184845,
0.04785006120800972,
-0.19303646683692932,
0.19693200290203094,
0.0936819314956665,
-0.35983535647392273,
0.16087476909160614,
-0.222664475440979,
-0.12198454886674881,
-0.5356273651123047,
-0.5556455850601196,
0.08642402291297913,
-0.2615894675254822,
0.23826466500759125,
0.14165398478507996,
0.0404229462146759,
-0.40782690048217773,
-0.3700217306613922,
0.22492867708206177,
0.11875107884407043,
-0.2064417451620102,
0.20146602392196655,
-0.16140370070934296,
-0.335888534784317,
-0.1385357826948166,
-0.367756724357605,
-0.08066476136445999,
-0.08213349431753159,
0.3650192618370056,
-0.10254648327827454,
0.22897402942180634,
0.32892969250679016,
-0.1298050880432129,
-0.2909534275531769,
0.09790617227554321,
0.11536338180303574,
-0.25188949704170227,
-0.17697659134864807,
0.09449346363544464,
-0.16455239057540894,
-0.22528178989887238,
0.02620021626353264,
-0.04814609885215759,
0.21187680959701538,
-0.12973973155021667,
-0.386756956577301,
-0.23605969548225403,
0.041324373334646225,
0.12410300970077515,
0.16939565539360046,
0.07761763781309128,
0.28976354002952576,
0.310903400182724,
-0.10272865742444992,
-0.16652937233448029,
-0.4273248314857483,
-0.018026046454906464,
0.3021513819694519,
0.4634048342704773,
-0.3625275790691376,
0.1608627438545227,
-0.1240992546081543,
0.002347908914089203,
0.00948074460029602,
0.35066094994544983,
0.15150339901447296,
-0.005268672481179237,
0.07181316614151001,
-0.2306974232196808,
-0.12774857878684998,
0.031617697328329086,
-0.231650710105896,
0.058543331921100616,
0.2887188196182251,
-0.2942008078098297,
0.11259479820728302,
-0.14881888031959534,
0.10613739490509033,
-0.5178532600402832,
-0.3060033619403839,
-0.18658268451690674,
-0.16084949672222137,
0.38703858852386475,
0.27805033326148987,
0.01246245950460434,
-0.13570809364318848,
-0.05616537109017372,
0.29398664832115173,
0.0258512943983078,
0.06574591994285583,
-0.07852921634912491,
-0.3588760197162628,
-0.010373502969741821,
-0.1426103711128235,
0.4229326844215393,
-0.2860358953475952,
0.24891626834869385,
0.13016431033611298,
0.09981890767812729,
0.005323044955730438,
0.21264348924160004,
0.7972442507743835,
0.03156159818172455,
-0.46880078315734863,
0.3024396598339081,
-0.11979788541793823,
-0.03198830783367157,
-0.328299880027771,
-0.031343359500169754,
-0.01861780323088169,
0.4379775822162628,
0.13886117935180664,
-0.45208266377449036,
-0.01882876642048359,
0.2419733852148056,
0.2381824105978012,
-0.24592918157577515,
-0.0748213455080986,
-0.2716241478919983,
-0.06318939477205276,
-0.01228620670735836,
-0.20785701274871826,
-0.07406555861234665,
0.2199372798204422,
0.1136169284582138,
0.11062152683734894,
-0.07900628447532654,
-0.264473021030426,
0.26042822003364563,
0.28371715545654297,
0.35723915696144104,
-0.20247696340084076,
0.4377829134464264,
-0.22434082627296448,
0.30112123489379883,
0.47908949851989746,
0.390208899974823,
0.005343081429600716,
-0.4359077215194702,
0.09989933669567108,
-0.523630678653717,
0.22567112743854523,
0.17784500122070312,
0.1896972954273224,
0.37720832228660583,
-0.06648462265729904,
0.0849999189376831,
0.12258878350257874,
-0.10409528017044067,
0.27610939741134644,
-0.01576896943151951,
-0.38892456889152527,
-0.30843386054039,
0.247321218252182,
-0.20230001211166382,
-0.169266939163208,
0.4423813819885254,
0.35343533754348755,
-0.04969745874404907,
0.9052367210388184,
-0.2352704405784607,
0.9310004115104675,
0.05047951638698578,
-0.24256250262260437,
0.2710793614387512,
-0.43280845880508423,
0.2700551748275757,
-0.12036101520061493,
0.2359977662563324,
-0.5181068778038025,
-0.15770533680915833,
0.09009099006652832,
0.0877590924501419,
0.26244938373565674,
0.20516005158424377,
-0.1191251277923584,
0.25237321853637695,
0.0436985045671463,
-0.35194265842437744,
-0.020038476213812828,
-0.020182102918624878,
0.2961995005607605,
-0.004585849121212959,
-0.14601266384124756,
0.041638605296611786,
0.023005332797765732,
-0.026411648839712143,
-0.13828077912330627,
0.03294038400053978,
-0.15941548347473145,
-0.04296056181192398,
-0.03067738190293312,
0.05302736908197403,
-0.1027330756187439,
-0.03692907094955444,
0.4355754852294922,
-0.46926558017730713,
-0.0758378803730011,
0.17023146152496338,
0.6946991086006165,
0.029281940311193466,
-0.11474011838436127,
0.38616225123405457,
0.2650390565395355,
-0.07256034761667252,
0.27864566445350647,
-0.0025957608595490456,
0.15737764537334442,
0.028179824352264404,
0.051774777472019196,
0.10213811695575714,
-0.18306083977222443,
0.08699162304401398,
-0.3640327453613281,
-0.09797646105289459,
0.3637434244155884,
-0.27580004930496216,
0.011018803343176842,
-0.3319993019104004,
0.25653335452079773,
-0.49599504470825195,
0.12396200001239777,
-0.015869945287704468,
0.12256453186273575,
0.22129970788955688,
-0.03144228830933571,
-0.060014475136995316,
-0.27073347568511963,
-0.26296746730804443,
-0.0734708160161972,
0.18351814150810242,
0.4372509717941284,
-0.01574040576815605,
0.00162433460354805,
-0.052229635417461395,
-0.1351684331893921,
0.02559535764157772,
-0.29002606868743896,
-0.012624750845134258,
0.13091835379600525,
-0.23703372478485107,
0.29338905215263367,
0.8270550966262817,
0.18495965003967285,
0.13772669434547424,
0.21033288538455963,
-0.31686657667160034,
0.026809806004166603,
-0.054611772298812866,
0.2906484007835388,
-0.09155121445655823,
0.4083646237850189,
0.34138208627700806,
-0.2920484244823456,
0.13483160734176636,
-0.30034273862838745,
0.18792571127414703,
-0.24795037508010864,
0.3039076626300812,
-0.7324169874191284,
-0.02141590416431427,
0.004602018743753433,
-0.22800131142139435,
0.1704416424036026,
-0.17756670713424683,
0.05210302025079727,
-0.1815684735774994,
-0.33948490023612976,
0.14128893613815308,
0.10979554057121277,
0.05720085650682449,
-0.30144283175468445,
0.02268258109688759,
0.000537969172000885,
-0.14572635293006897,
-0.21045169234275818,
0.07252701371908188,
0.12507224082946777,
0.09212826937437057,
-0.23616193234920502,
0.14393842220306396,
-0.42633354663848877,
-0.15499790012836456,
0.12474045902490616,
0.027930743992328644,
0.3446727395057678,
0.08300867676734924,
-0.32316622138023376,
0.012060783803462982,
0.053854189813137054,
0.028484582901000977,
-0.3018508553504944,
-0.012894436717033386,
0.6438711881637573,
-0.24836312234401703,
0.053495731204748154,
-0.0040791817009449005,
0.2113294154405594,
0.291475772857666,
-0.28188690543174744,
0.05934049189090729,
0.2022075653076172,
0.23973655700683594,
-0.5671168565750122,
-0.1197178065776825,
0.3210221529006958,
0.05382337421178818,
0.07694403827190399,
0.1798095703125,
0.46857157349586487,
-0.17390643060207367,
-0.027017660439014435,
0.1347605586051941,
0.2508200705051422,
0.0013564378023147583,
-0.022929953411221504,
0.4606136679649353,
0.16503891348838806,
0.42462873458862305,
0.5513442158699036,
0.25177720189094543,
-0.27537983655929565,
0.23971696197986603,
-0.0021750032901763916,
0.02447078377008438,
-0.16318926215171814,
0.09367115795612335,
0.12728160619735718,
-0.14045856893062592,
0.5015015006065369,
-0.3174087107181549,
0.04527607187628746,
0.07314048707485199,
0.11200546473264694,
-0.28183382749557495,
0.046042438596487045,
-0.18671151995658875,
0.05586940050125122,
-0.0803971141576767,
-0.18642905354499817,
-0.010648294351994991,
-0.08578215539455414,
-0.11905820667743683,
0.381788432598114,
-0.030439116060733795,
-0.07187066972255707,
0.05092032253742218,
0.3453858494758606,
0.09941355884075165,
-0.06428980827331543,
0.002672361209988594,
-0.24250325560569763,
0.21316927671432495,
0.39353448152542114,
-0.2334594428539276,
0.28760501742362976,
0.17209875583648682,
-0.3992300033569336,
0.14642153680324554,
0.2673487663269043,
0.08483751863241196,
-0.0173957422375679,
-0.12463937699794769,
-0.1140994280576706,
-0.05458776280283928,
-0.07534191012382507,
0.17282691597938538,
0.10039486736059189,
0.30055880546569824,
0.3896976411342621,
0.12701702117919922,
0.09348375350236893,
-0.09596443176269531,
0.15933802723884583,
0.09317770600318909,
0.010614333674311638,
-0.4173464775085449,
0.04775005206465721,
-0.14167676866054535,
-0.40484997630119324,
-0.0838073343038559,
-0.11052411049604416,
-0.07046408951282501,
-0.04189034178853035,
-0.0069494713097810745,
0.1371660679578781,
-0.03854682296514511,
0.22131510078907013,
0.1282762587070465,
0.20916667580604553,
-0.0657714456319809,
0.3741941750049591,
0.12073470652103424,
-0.30541813373565674,
-0.4476359486579895,
-0.1793346256017685,
0.19134874641895294,
0.07216300815343857,
0.2102835476398468,
0.4021540582180023,
0.143010213971138,
0.3653486967086792,
-0.16241690516471863,
-0.03667575120925903,
0.0012711463496088982,
-0.3429921865463257,
0.33625683188438416,
-0.5514025688171387,
-0.08411434292793274,
-0.08612145483493805,
0.09532222151756287,
0.029171518981456757,
0.17755085229873657,
0.26296287775039673,
0.09223788976669312,
-0.033522676676511765,
-0.17071442306041718,
0.07083284854888916,
0.23196250200271606,
0.03559345006942749,
0.33947625756263733,
0.14832012355327606,
-0.04698067903518677,
-0.1070331260561943,
-0.2787627875804901,
0.22175560891628265,
-0.03018367476761341,
-0.2635972201824188,
0.5513607263565063,
-0.09223397076129913,
0.15290847420692444,
0.3110048472881317,
-0.5364216566085815,
0.1412922441959381,
0.567595362663269,
0.11730794608592987,
-0.058751266449689865,
-0.4865899085998535,
0.3406101167201996,
0.3336188793182373,
0.21852858364582062,
0.12420322000980377,
0.3331138491630554,
-0.09437170624732971,
0.3457238972187042,
-0.4066908359527588,
-0.31581780314445496,
0.42388415336608887,
-0.23378776013851166,
0.003408122807741165,
-0.04639206826686859,
0.2940775752067566,
-0.22560694813728333,
-0.09923992305994034,
-0.6285579800605774,
-0.32949528098106384,
0.3771769106388092,
-0.2876974642276764,
-0.15820813179016113,
-0.012071363627910614,
-0.1471601128578186,
0.174089714884758,
0.031704213470220566,
0.8797950744628906,
0.20919963717460632,
-0.1017347201704979,
0.0753023624420166,
0.1399412602186203
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 26 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | [
-0.11615030467510223,
0.17626681923866272,
-0.09981423616409302,
0.2082638442516327,
-0.11751602590084076,
-0.06794482469558716,
0.2634466290473938,
0.3842659592628479,
-0.06823371350765228,
0.22681362926959991,
0.0829307809472084,
0.5433101654052734,
0.36969220638275146,
0.3744897246360779,
-0.0723104476928711,
-0.16549427807331085,
0.2737470865249634,
0.07906463742256165,
0.07428128272294998,
-0.07374972850084305,
-0.2772864103317261,
0.48639142513275146,
-0.24787573516368866,
0.12635990977287292,
-0.017300207167863846,
-0.06895530223846436,
-0.42307090759277344,
-0.08188264816999435,
-0.07766138762235641,
-0.11285534501075745,
0.02362307719886303,
0.09057758748531342,
-0.2878530025482178,
0.2855876088142395,
-0.00010396112338639796,
-0.20402424037456512,
-0.10290102660655975,
0.016639137640595436,
-0.27457529306411743,
-0.31556540727615356,
-0.06250027567148209,
-0.2827524244785309,
-0.02282685413956642,
-0.30790576338768005,
0.028330951929092407,
-0.07461855560541153,
-0.1330297887325287,
0.0362827405333519,
0.2423201948404312,
0.1091766357421875,
0.2800571918487549,
-0.036608245223760605,
0.30844998359680176,
0.08724543452262878,
0.1979925036430359,
-0.07201622426509857,
-0.3100850582122803,
0.04937710985541344,
0.27564775943756104,
-0.03701327368617058,
0.1984851360321045,
0.33457449078559875,
-0.007339395582675934,
-0.16636353731155396,
-0.3395024240016937,
0.12373820692300797,
0.1451827883720398,
-0.21426644921302795,
0.19941192865371704,
0.4345284402370453,
0.14069750905036926,
-0.22936749458312988,
-0.4140453040599823,
-0.19500118494033813,
0.08710155636072159,
0.006551558151841164,
0.1302558183670044,
0.2665211856365204,
0.09741254150867462,
-0.021102014929056168,
0.1986636072397232,
-0.09720322489738464,
0.0871020257472992,
0.13603642582893372,
-0.3380749523639679,
-0.019010186195373535,
-0.05549374595284462,
-0.04202984273433685,
-0.3384498357772827,
-0.18629363179206848,
0.34552231431007385,
-0.1355033665895462,
-0.05224717780947685,
0.08498664200305939,
-0.4293118417263031,
-0.09276334941387177,
-0.11339037865400314,
-0.26036587357521057,
-0.0867140144109726,
-0.3093690276145935,
0.20949794352054596,
0.038483619689941406,
-0.188008651137352,
0.1611952930688858,
-0.09837216138839722,
-0.1684166043996811,
-0.01190115511417389,
0.093889519572258,
-0.17741703987121582,
0.08359561115503311,
0.031826432794332504,
-0.10862088948488235,
-0.0003450149670243263,
-0.19781415164470673,
-0.31151866912841797,
-0.08075413107872009,
0.4885980486869812,
-0.11682960391044617,
-0.27895480394363403,
0.2509899437427521,
-0.07575993984937668,
-0.08632487058639526,
-0.10228463262319565,
0.11806225776672363,
-0.23997516930103302,
-0.11478454619646072,
0.08837170898914337,
0.144852876663208,
-0.10704649984836578,
-0.2465524673461914,
-0.26021331548690796,
0.004785928875207901,
-0.04281529411673546,
-0.004518225789070129,
0.13957719504833221,
0.14150157570838928,
0.32516977190971375,
0.31796351075172424,
-0.14869961142539978,
0.0040554143488407135,
0.017821481451392174,
-0.13417160511016846,
0.04990258067846298,
0.1909596174955368,
-0.13172534108161926,
-0.07387374341487885,
-0.036743391305208206,
-0.1831255853176117,
0.045073531568050385,
0.2513374090194702,
-0.400246798992157,
0.06462278962135315,
-0.28065359592437744,
0.2998209297657013,
0.15513786673545837,
-0.02617906779050827,
0.17022603750228882,
0.23668934404850006,
0.015869058668613434,
-0.2360413372516632,
0.08489702641963959,
-0.05271002650260925,
0.21439749002456665,
-0.1937699317932129,
0.2260841280221939,
0.1470685452222824,
-0.4692808985710144,
-0.012461032718420029,
0.051617495715618134,
0.26569727063179016,
-0.1624746024608612,
-0.045370038598775864,
0.043752145022153854,
-0.10417490452528,
-0.10102055966854095,
0.23618601262569427,
0.13499189913272858,
-0.17795519530773163,
-0.2616647779941559,
-0.13261647522449493,
0.188661590218544,
0.020289158448576927,
0.004023700952529907,
-0.3284064829349518,
-0.058731868863105774,
0.022426357492804527,
0.05003691464662552,
0.06955553591251373,
-0.1957745999097824,
-0.07453664392232895,
-0.4424242377281189,
-0.13584686815738678,
-0.009146038442850113,
0.26063278317451477,
0.03825658932328224,
-0.051779188215732574,
0.0433984212577343,
-0.28374770283699036,
0.21699699759483337,
-0.032263245433568954,
-0.08472585678100586,
0.1967955380678177,
0.3808196485042572,
-0.09527325630187988,
0.150528684258461,
0.04979563504457474,
-0.37536776065826416,
-0.07864135503768921,
-0.5623027086257935,
-0.006164468824863434,
-0.20380796492099762,
-0.16361336410045624,
-0.21554601192474365,
-0.05453314632177353,
0.10034942626953125,
0.10100899636745453,
0.25832808017730713,
-0.0975089967250824,
-0.08103173226118088,
0.05356201156973839,
-0.17085960507392883,
-0.19621306657791138,
-0.1490837037563324,
0.13883627951145172,
-0.2625718414783478,
0.18884894251823425,
-0.28816863894462585,
-0.08000539243221283,
0.23418590426445007,
0.20182490348815918,
0.3368150293827057,
-0.18749205768108368,
-0.009929049760103226,
0.4728311598300934,
-0.02427200973033905,
-0.12815627455711365,
0.04447299987077713,
0.18075643479824066,
0.15717338025569916,
0.1908341944217682,
-0.03731972724199295,
0.06461629271507263,
-0.03449965640902519,
0.01360880583524704,
0.03236980736255646,
0.5313247442245483,
-0.12473154067993164,
0.11224562674760818,
0.08884480595588684,
0.16046689450740814,
0.18855804204940796,
-0.28172677755355835,
0.07457801699638367,
-0.24570581316947937,
0.08612237125635147,
-0.032770879566669464,
0.2651010751724243,
-0.1466149389743805,
-0.338649183511734,
0.3058730661869049,
0.5816286206245422,
-0.001849869266152382,
0.021254736930131912,
0.050000760704278946,
0.060307253152132034,
0.08390222489833832,
0.12564851343631744,
-0.009595997631549835,
0.18655449151992798,
0.228782519698143,
-0.23181894421577454,
0.12758299708366394,
0.21993021667003632,
-0.15222203731536865,
0.4072505831718445,
0.1439535915851593,
-0.2241392433643341,
0.11135102808475494,
0.19732211530208588,
0.1349935382604599,
-0.19366279244422913,
0.018907885998487473,
0.3170987665653229,
0.12710794806480408,
-0.14640817046165466,
0.24635569751262665,
-0.1314220279455185,
-0.1791524887084961,
-0.0768754631280899,
-0.36734122037887573,
-0.2598347067832947,
-0.16534210741519928,
0.22163677215576172,
0.07016892731189728,
-0.14880222082138062,
0.4860241413116455,
0.44069188833236694,
0.24511504173278809,
-0.21363995969295502,
0.31294065713882446,
-0.4735954999923706,
-0.05629483982920647,
-0.17639797925949097,
0.2618391215801239,
0.04079577326774597,
-0.281930148601532,
0.10800229758024216,
-0.24825774133205414,
-0.07684992253780365,
-0.4382803440093994,
-0.5131916403770447,
0.05587800219655037,
-0.35068774223327637,
0.2944268584251404,
0.0944472998380661,
0.16028079390525818,
-0.4880571961402893,
-0.29575565457344055,
0.1734084188938141,
0.0852152556180954,
-0.1876087635755539,
0.15541717410087585,
-0.10477393865585327,
-0.21302814781665802,
-0.18043853342533112,
-0.34855109453201294,
-0.2095429003238678,
-0.11276312172412872,
0.36117690801620483,
-0.17965544760227203,
0.24949441850185394,
0.3568112254142761,
-0.1382678747177124,
-0.1979295015335083,
0.08032502979040146,
0.17367476224899292,
-0.37527334690093994,
-0.23538775742053986,
0.1732625514268875,
-0.24018728733062744,
-0.32937872409820557,
0.0034920312464237213,
-0.025879403576254845,
0.3786914050579071,
-0.1570194959640503,
-0.3531203269958496,
-0.1406114399433136,
0.02956295944750309,
0.024611305445432663,
0.10314847528934479,
0.10472199320793152,
0.26196756958961487,
0.21663331985473633,
-0.15488243103027344,
-0.24342754483222961,
-0.19019360840320587,
0.00019613653421401978,
0.22067973017692566,
0.3922329545021057,
-0.3820081949234009,
0.19948810338974,
-0.05492589250206947,
-0.011212468147277832,
-0.049906931817531586,
0.37659984827041626,
0.19019344449043274,
0.03894121199846268,
0.1284618228673935,
-0.21151116490364075,
-0.1767994463443756,
0.024863943457603455,
-0.2375769317150116,
0.04925274848937988,
0.3221205174922943,
-0.30076339840888977,
0.0745566263794899,
-0.11796141415834427,
0.005583707243204117,
-0.6239776015281677,
-0.3436453342437744,
-0.17257030308246613,
-0.08374495804309845,
0.3155999183654785,
0.35629746317863464,
0.008677437901496887,
-0.09427018463611603,
-0.02398727461695671,
0.28298699855804443,
0.05856810137629509,
0.03887224197387695,
-0.13169115781784058,
-0.33097636699676514,
-0.04595963656902313,
-0.2426130175590515,
0.40554529428482056,
-0.3332296311855316,
0.1591719686985016,
0.08744806051254272,
0.06763989478349686,
-0.02515134960412979,
0.09735678136348724,
0.7164914011955261,
0.08937837183475494,
-0.42463964223861694,
0.26109054684638977,
-0.12634825706481934,
-0.14481930434703827,
-0.28153377771377563,
-0.07380592823028564,
0.026415415108203888,
0.3970375061035156,
0.0751614049077034,
-0.4663994610309601,
-0.04491831362247467,
0.22456340491771698,
0.1660795360803604,
-0.2599889636039734,
-0.09429611265659332,
-0.32935383915901184,
-0.09985341876745224,
-0.03197795897722244,
-0.2078593373298645,
-0.05322984606027603,
0.21638868749141693,
0.05087597668170929,
0.027674313634634018,
-0.10408461838960648,
-0.322885125875473,
0.23853807151317596,
0.346938818693161,
0.3414720892906189,
-0.122884601354599,
0.41654011607170105,
-0.2262594997882843,
0.2684837579727173,
0.40101855993270874,
0.41348081827163696,
0.0292402021586895,
-0.3360217213630676,
0.0764676183462143,
-0.5280936360359192,
0.2640617787837982,
0.17524461448192596,
0.04675310105085373,
0.3676149845123291,
-0.11915910243988037,
0.07372307032346725,
0.08861538022756577,
-0.051923565566539764,
0.25879809260368347,
0.01730380207300186,
-0.3657248318195343,
-0.24382250010967255,
0.3588813245296478,
-0.21411806344985962,
-0.21819834411144257,
0.4823053777217865,
0.3102608621120453,
-0.11935010552406311,
0.8210311532020569,
-0.14553183317184448,
0.8783847093582153,
0.0601361058652401,
-0.18355119228363037,
0.33861926198005676,
-0.3682383894920349,
0.22646872699260712,
-0.021831868216395378,
0.16888658702373505,
-0.507012665271759,
-0.15081967413425446,
0.12439492344856262,
0.1321374624967575,
0.2759355306625366,
0.2736016511917114,
-0.12134380638599396,
0.1601068675518036,
-0.006141155958175659,
-0.32189854979515076,
-0.0465412437915802,
0.014220766723155975,
0.2288789302110672,
-0.056647587567567825,
-0.21429294347763062,
0.15530136227607727,
-0.0027067363262176514,
-0.07044379413127899,
-0.10394871234893799,
0.04005158320069313,
-0.20871718227863312,
-0.08980648219585419,
0.05179581046104431,
0.08431421965360641,
-0.13125382363796234,
0.013707466423511505,
0.30245253443717957,
-0.5209811329841614,
-0.08701552450656891,
0.06050548702478409,
0.6082137823104858,
0.07820162922143936,
-0.1257762908935547,
0.35140159726142883,
0.18944242596626282,
-0.0254022516310215,
0.21887539327144623,
0.03662183880805969,
0.17070372402668,
0.000919245183467865,
-0.0007780790328979492,
0.10601308941841125,
-0.11595521867275238,
0.11723464727401733,
-0.2481515258550644,
-0.06478187441825867,
0.21181276440620422,
-0.31535622477531433,
-0.013217538595199585,
-0.26066794991493225,
0.25727880001068115,
-0.4795151650905609,
0.19319312274456024,
0.020772162824869156,
0.020955396816134453,
0.2562415897846222,
0.02721605822443962,
-0.11161357909440994,
-0.2626626193523407,
-0.11200395971536636,
-0.028198737651109695,
0.2058791220188141,
0.47595348954200745,
-0.020377008244395256,
0.0013227537274360657,
-0.1412910670042038,
-0.049577854573726654,
0.14856566488742828,
-0.29539400339126587,
-0.010686813853681087,
0.10539863258600235,
-0.20044657588005066,
0.20037809014320374,
0.7700161933898926,
0.16512608528137207,
0.16867339611053467,
0.1945609152317047,
-0.33373305201530457,
-0.03541950136423111,
0.07229416817426682,
0.1993987262248993,
-0.05376200005412102,
0.33456236124038696,
0.2656870484352112,
-0.28071022033691406,
0.1656959354877472,
-0.40302574634552,
0.20272384583950043,
-0.217681422829628,
0.3391774296760559,
-0.7107681035995483,
-0.08173573762178421,
0.08815588802099228,
-0.17679119110107422,
0.24818429350852966,
-0.13679741322994232,
0.026898914948105812,
-0.3023573160171509,
-0.32710689306259155,
0.09889485687017441,
0.07006367295980453,
0.0756755843758583,
-0.2830738425254822,
-0.038754723966121674,
-0.06978873908519745,
-0.10711958259344101,
-0.10962489247322083,
0.01741686835885048,
0.12237495183944702,
0.1525786817073822,
-0.18416845798492432,
0.07491391897201538,
-0.3010079264640808,
-0.1721455454826355,
0.08259161561727524,
-0.030977293848991394,
0.25514814257621765,
0.10217887163162231,
-0.29902517795562744,
0.0326380729675293,
0.0915176123380661,
0.03041940927505493,
-0.3581732511520386,
0.0029034093022346497,
0.5847669243812561,
-0.2755575180053711,
0.00828574225306511,
-0.029857739806175232,
0.19681528210639954,
0.21689045429229736,
-0.24805384874343872,
0.007187958806753159,
0.17175385355949402,
0.33853253722190857,
-0.5861016511917114,
-0.0802975594997406,
0.26796048879623413,
0.014702817425131798,
0.14782968163490295,
0.14207032322883606,
0.32479870319366455,
-0.14625290036201477,
0.03355882689356804,
0.16823473572731018,
0.21731823682785034,
0.05221995711326599,
0.012362467125058174,
0.3951948285102844,
0.1159704178571701,
0.401932954788208,
0.5160573124885559,
0.25440701842308044,
-0.251804918050766,
0.2612200677394867,
-0.08615034073591232,
0.09671850502490997,
-0.1473429799079895,
0.0412573516368866,
0.1256568729877472,
-0.051285624504089355,
0.38478314876556396,
-0.2725304961204529,
-0.004317328333854675,
0.08280237019062042,
0.11531596630811691,
-0.22208461165428162,
0.055216945707798004,
-0.2410237342119217,
0.009938022121787071,
-0.047625746577978134,
-0.2435319721698761,
0.014095831662416458,
-0.16381718218326569,
-0.0923810601234436,
0.3353589177131653,
-0.09263923764228821,
-0.07532648742198944,
-0.0073745474219322205,
0.2863304316997528,
0.13936163485050201,
-0.024141542613506317,
-0.027977412566542625,
-0.2495366632938385,
0.23437729477882385,
0.4089655876159668,
-0.20495733618736267,
0.2477422058582306,
0.139907568693161,
-0.28720492124557495,
0.08954314887523651,
0.34080153703689575,
0.07963941991329193,
0.027226410806179047,
-0.10797585546970367,
-0.07089797407388687,
-0.05711027607321739,
-0.12606576085090637,
0.15615488588809967,
0.10170870274305344,
0.3310679793357849,
0.3840508759021759,
0.2008049190044403,
0.1834612637758255,
-0.16020798683166504,
0.13084301352500916,
0.1642361283302307,
0.021769842132925987,
-0.2868918180465698,
-0.07141482084989548,
-0.17649932205677032,
-0.35881507396698,
-0.11387395858764648,
-0.20908501744270325,
-0.1937677562236786,
-0.007502608932554722,
0.03654196113348007,
0.06937366724014282,
-0.04229187220335007,
0.09437482059001923,
0.17085029184818268,
0.18032020330429077,
0.07683372497558594,
0.24960468709468842,
0.19894489645957947,
-0.33923035860061646,
-0.44112420082092285,
-0.29638007283210754,
0.16423973441123962,
0.02401452511548996,
0.2551875412464142,
0.2840351164340973,
0.16741934418678284,
0.30840247869491577,
-0.0916726291179657,
0.05697996914386749,
-0.008916120044887066,
-0.31670740246772766,
0.25722387433052063,
-0.5916234254837036,
-0.06710387766361237,
-0.061567410826683044,
0.08572633564472198,
0.026674658060073853,
0.16226941347122192,
0.26362675428390503,
0.016762007027864456,
0.03805430978536606,
-0.1896512359380722,
-0.010362710803747177,
0.1949940174818039,
-0.00670146569609642,
0.3379686772823334,
0.10899461805820465,
-0.10204176604747772,
-0.14028936624526978,
-0.24337872862815857,
0.18912456929683685,
-0.06363184750080109,
-0.18650397658348083,
0.5584610104560852,
0.03543492406606674,
0.2717224359512329,
0.3334325850009918,
-0.46090617775917053,
0.11518790572881699,
0.5874646306037903,
0.12167592346668243,
-0.10043308883905411,
-0.4577449858188629,
0.33132049441337585,
0.4072268009185791,
0.1447763442993164,
0.03198790177702904,
0.33809930086135864,
-0.11917315423488617,
0.3695591986179352,
-0.3933902978897095,
-0.3590604364871979,
0.45528408885002136,
-0.28345614671707153,
-0.04193255677819252,
-0.05821966752409935,
0.32024842500686646,
-0.21625232696533203,
-0.12231747061014175,
-0.5871609449386597,
-0.24597597122192383,
0.3565889596939087,
-0.2592828571796417,
-0.14364750683307648,
0.04622938483953476,
-0.057450804859399796,
0.21736399829387665,
-0.016300445422530174,
0.7663825750350952,
0.24643030762672424,
-0.14278070628643036,
0.02772602066397667,
0.058896563947200775
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 81 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | [
-0.1998205929994583,
0.2370985448360443,
-0.07848262041807175,
0.038383178412914276,
-0.046374768018722534,
-0.11212185770273209,
0.2615799903869629,
0.4792061150074005,
-0.09289385378360748,
0.19852226972579956,
0.0985918641090393,
0.5298962593078613,
0.29294079542160034,
0.4118289649486542,
-0.16993044316768646,
-0.2390240728855133,
0.32204726338386536,
0.0963062271475792,
0.03739292174577713,
-0.029769761487841606,
-0.2773749530315399,
0.400669664144516,
-0.2001982033252716,
0.2162719964981079,
0.010720068588852882,
-0.15856486558914185,
-0.36107921600341797,
-0.06461954861879349,
-0.2465391308069229,
-0.259797066450119,
-0.043891437351703644,
0.13366609811782837,
-0.1141781136393547,
0.23894912004470825,
-0.00010322983143851161,
-0.19389083981513977,
-0.016215026378631592,
0.04794687777757645,
-0.34730565547943115,
-0.25579673051834106,
-0.013947702944278717,
-0.2987167537212372,
0.13251711428165436,
-0.24050813913345337,
0.0040542930364608765,
-0.13446247577667236,
-0.10441809892654419,
0.07304762303829193,
0.23474383354187012,
0.11156117171049118,
0.2914760708808899,
-0.06303708255290985,
0.2146608978509903,
-0.04824940860271454,
0.0782303512096405,
-0.05390863120555878,
-0.30294322967529297,
0.06460921466350555,
0.28510522842407227,
-0.08144520968198776,
0.11128327250480652,
0.36931800842285156,
0.029392926022410393,
-0.1277955174446106,
-0.19314339756965637,
0.11358587443828583,
0.2679797112941742,
-0.18325398862361908,
0.13811549544334412,
0.3778248727321625,
0.18636788427829742,
-0.26222318410873413,
-0.5149416923522949,
-0.1850477159023285,
0.0676453709602356,
-0.09084227681159973,
0.07055824995040894,
0.22912493348121643,
0.06812076270580292,
-0.020227443426847458,
0.24320507049560547,
-0.136850506067276,
0.049481555819511414,
0.043137017637491226,
-0.4447057247161865,
0.061241962015628815,
-0.034647054970264435,
-0.0955071821808815,
-0.29793763160705566,
-0.2101937234401703,
0.39863207936286926,
-0.026599537581205368,
-0.01137479767203331,
0.014763751067221165,
-0.30549943447113037,
-0.18372181057929993,
-0.04891593009233475,
-0.24018290638923645,
-0.0670299157500267,
-0.23460789024829865,
0.10664290934801102,
-0.0033506006002426147,
-0.286381334066391,
0.06896217167377472,
-0.015890046954154968,
-0.2115444391965866,
0.03262312337756157,
0.03923596814274788,
-0.09058681130409241,
0.1374671906232834,
0.19843630492687225,
-0.11607616394758224,
-0.026300624012947083,
-0.22506649792194366,
-0.3707793056964874,
0.014577342197299004,
0.5224707126617432,
-0.1758761703968048,
-0.26547715067863464,
0.15061821043491364,
0.004803050309419632,
0.0059803263284265995,
-0.1979891061782837,
0.16392642259597778,
-0.19763542711734772,
0.06467687338590622,
0.11896911263465881,
0.12776274979114532,
-0.09406920522451401,
-0.20200800895690918,
-0.2299276739358902,
-0.0103677399456501,
-0.04358907788991928,
-0.02997373603284359,
0.06074574962258339,
0.14642082154750824,
0.2042163759469986,
0.3688274919986725,
-0.21080733835697174,
0.035442814230918884,
0.014567626640200615,
-0.024755271151661873,
0.06584906578063965,
0.1762523353099823,
-0.210921511054039,
-0.06271304935216904,
0.08308126032352448,
-0.153211772441864,
-0.014336943626403809,
0.33697232604026794,
-0.2739042639732361,
0.026677187532186508,
-0.29116103053092957,
0.2905391454696655,
0.15078195929527283,
-0.05627467483282089,
0.27112558484077454,
0.313082754611969,
-0.08272098749876022,
-0.2508012056350708,
0.01298832893371582,
-0.0867590457201004,
0.15030790865421295,
-0.09849654138088226,
0.11039777845144272,
0.20541703701019287,
-0.5166163444519043,
-0.018816951662302017,
0.1282576024532318,
0.22343863546848297,
-0.07755739241838455,
0.01891942322254181,
0.002997149247676134,
-0.23002499341964722,
-0.07331560552120209,
0.17737282812595367,
0.10128279775381088,
-0.1410936862230301,
-0.18372684717178345,
-0.08397012203931808,
0.13710050284862518,
-0.07392255961894989,
0.07638213783502579,
-0.2898011803627014,
-0.06712298840284348,
-0.10257381945848465,
0.0498880110681057,
-0.0017457734793424606,
-0.17008088529109955,
0.053648099303245544,
-0.4612776041030884,
-0.24230986833572388,
-0.0028641000390052795,
0.21991406381130219,
0.11948060989379883,
0.023789547383785248,
-0.039098165929317474,
-0.14339806139469147,
0.23538810014724731,
-0.05188538506627083,
-0.08704542368650436,
0.11321534961462021,
0.4571612775325775,
-0.20647282898426056,
0.08759944885969162,
0.11145509034395218,
-0.24227175116539001,
-0.10718343406915665,
-0.489631712436676,
0.046379853039979935,
-0.09937752783298492,
-0.23561592400074005,
-0.30221083760261536,
-0.1086316779255867,
0.11516717076301575,
0.09076184779405594,
0.2523515522480011,
-0.030642427504062653,
-0.1306033730506897,
0.0369819737970829,
-0.22880150377750397,
-0.14305423200130463,
-0.13393594324588776,
0.19148100912570953,
-0.25828078389167786,
0.08755858242511749,
-0.2627544105052948,
-0.08793531358242035,
0.23680108785629272,
0.1528705656528473,
0.3169934153556824,
-0.1752401441335678,
0.04661400243639946,
0.49323225021362305,
-0.033064816147089005,
-0.10961377620697021,
0.06310877948999405,
0.24898338317871094,
0.17885860800743103,
0.2892472445964813,
-0.049383558332920074,
0.09783142805099487,
-0.08270123600959778,
0.1208643987774849,
-0.1750694215297699,
0.5863133668899536,
-0.08994299173355103,
0.10965345054864883,
0.1741369366645813,
0.20303833484649658,
0.12562498450279236,
-0.27118077874183655,
-0.006189154461026192,
-0.26539304852485657,
-0.05621888116002083,
-0.02941194549202919,
0.21198219060897827,
-0.12108486890792847,
-0.4394429624080658,
0.3950173258781433,
0.605895459651947,
0.008781995624303818,
0.045127660036087036,
0.1463058888912201,
0.00006915628910064697,
0.0329013355076313,
0.16189171373844147,
0.031175319105386734,
0.17163196206092834,
0.25894856452941895,
-0.13913485407829285,
0.16277292370796204,
0.20020268857479095,
-0.16364549100399017,
0.47805196046829224,
0.08938752114772797,
-0.1905718296766281,
0.0034319721162319183,
0.2120599001646042,
0.15658284723758698,
-0.16200804710388184,
0.052074942737817764,
0.26803869009017944,
0.18765902519226074,
-0.12357842922210693,
0.17313936352729797,
-0.12383615970611572,
-0.11792336404323578,
-0.09652339667081833,
-0.2809500992298126,
-0.18243300914764404,
-0.23363925516605377,
0.2391783446073532,
0.10031519830226898,
-0.11308477818965912,
0.4769405126571655,
0.4171311855316162,
0.29370754957199097,
-0.2029820680618286,
0.4174235165119171,
-0.48508408665657043,
-0.1683722883462906,
-0.09153076261281967,
0.2957088053226471,
0.15368101000785828,
-0.26385629177093506,
0.06902283430099487,
-0.25721853971481323,
-0.1692384034395218,
-0.4552708566188812,
-0.5544629693031311,
0.04835053160786629,
-0.3250362277030945,
0.19495949149131775,
0.14836998283863068,
0.23365110158920288,
-0.38765692710876465,
-0.2195432335138321,
0.162663072347641,
0.03920988738536835,
-0.27322453260421753,
0.12517745792865753,
-0.24011029303073883,
-0.06097729876637459,
-0.20878680050373077,
-0.37209054827690125,
-0.14339813590049744,
-0.19453546404838562,
0.39883148670196533,
-0.2503170967102051,
0.18813371658325195,
0.31508496403694153,
-0.08689567446708679,
-0.2711874842643738,
0.1164872869849205,
0.09509927034378052,
-0.32672807574272156,
-0.21622882783412933,
0.14599229395389557,
-0.23994307219982147,
-0.3150315582752228,
0.010705653578042984,
0.04602430760860443,
0.32791152596473694,
-0.1918356865644455,
-0.3293858766555786,
-0.22596138715744019,
-0.05894738435745239,
0.036940108984708786,
0.0848526880145073,
0.07017087191343307,
0.3200860619544983,
0.34172382950782776,
-0.22936022281646729,
-0.0971224457025528,
-0.2173166573047638,
-0.02869012951850891,
0.2196539044380188,
0.29193249344825745,
-0.3193596303462982,
0.23045843839645386,
0.04610485956072807,
0.1900871992111206,
-0.03412202373147011,
0.34298333525657654,
0.0846758633852005,
0.11437158286571503,
0.14558742940425873,
-0.29171088337898254,
-0.09733817726373672,
0.09468329697847366,
-0.22638872265815735,
0.11753357946872711,
0.3279750645160675,
-0.3075985014438629,
0.038040727376937866,
-0.08109908550977707,
0.09541746973991394,
-0.5904291868209839,
-0.3252352774143219,
-0.10269425064325333,
-0.19938188791275024,
0.3439450263977051,
0.2739740014076233,
0.07968445867300034,
-0.12358073890209198,
0.03454528748989105,
0.299058198928833,
0.09185636043548584,
0.17729529738426208,
-0.13130450248718262,
-0.27113476395606995,
0.07455506175756454,
-0.293396532535553,
0.3953532576560974,
-0.3127346336841583,
0.16191792488098145,
0.051690686494112015,
-0.0793585255742073,
-0.07126405835151672,
0.0740106850862503,
0.6153531074523926,
0.06149885058403015,
-0.456537663936615,
0.32257241010665894,
-0.10857987403869629,
-0.20679821074008942,
-0.28906014561653137,
-0.1432071030139923,
0.021137254312634468,
0.35112878680229187,
0.05727970972657204,
-0.4595966041088104,
-0.14023734629154205,
0.19424980878829956,
0.10173652321100235,
-0.1775456964969635,
0.043837644159793854,
-0.3760182857513428,
-0.10740626603364944,
-0.07803639024496078,
-0.09362853318452835,
-0.01969171315431595,
0.17647705972194672,
-0.12322751432657242,
0.03919713571667671,
-0.15510836243629456,
-0.330252081155777,
0.18369610607624054,
0.37652358412742615,
0.35898303985595703,
-0.11210121214389801,
0.3146762549877167,
-0.16570276021957397,
0.2556402087211609,
0.473626971244812,
0.37271133065223694,
0.053351812064647675,
-0.3569556176662445,
0.19249877333641052,
-0.4365503191947937,
0.2218945026397705,
0.31726035475730896,
0.09033253788948059,
0.3283292055130005,
-0.11193181574344635,
0.11879588663578033,
0.012525352649390697,
-0.040074966847896576,
0.2129872739315033,
-0.015170134603977203,
-0.41010525822639465,
-0.22882874310016632,
0.33552250266075134,
-0.10927017033100128,
-0.26881980895996094,
0.43902134895324707,
0.33647769689559937,
-0.06883363425731659,
0.815900444984436,
-0.12408328801393509,
0.909247875213623,
-0.14469903707504272,
-0.1250181496143341,
0.2554859519004822,
-0.3581867218017578,
0.30845925211906433,
-0.033233802765607834,
0.17770011723041534,
-0.5289089679718018,
-0.18415094912052155,
0.0733640119433403,
0.1555420458316803,
0.26724621653556824,
0.19811466336250305,
-0.23470096290111542,
0.15446752309799194,
-0.07894393801689148,
-0.33569371700286865,
0.03441796451807022,
0.02524210512638092,
0.09357327967882156,
-0.06126082316040993,
-0.29601436853408813,
0.161289244890213,
-0.08549605309963226,
-0.08133701980113983,
-0.08537463843822479,
-0.023314695805311203,
-0.22001340985298157,
-0.05731428414583206,
0.021533839404582977,
-0.00006553903222084045,
-0.13651594519615173,
-0.09454997628927231,
0.28257450461387634,
-0.512003481388092,
-0.06905312836170197,
0.06826185435056686,
0.6774793267250061,
0.027744963765144348,
-0.09880232810974121,
0.32766011357307434,
0.07345911860466003,
0.03075086697936058,
0.31823277473449707,
0.07028187811374664,
0.16227102279663086,
-0.04116053506731987,
0.0551520511507988,
0.16958847641944885,
-0.2065601795911789,
0.11658476293087006,
-0.321128249168396,
-0.022834450006484985,
0.19628562033176422,
-0.2507754862308502,
-0.008790893480181694,
-0.20049232244491577,
0.22784265875816345,
-0.4297381341457367,
0.2021624594926834,
-0.06507490575313568,
0.05042048543691635,
0.1660923808813095,
0.08954824507236481,
-0.10950565338134766,
-0.20650921761989594,
-0.11890599876642227,
-0.02083311229944229,
0.15206606686115265,
0.4163092374801636,
-0.022749226540327072,
0.04177337884902954,
-0.17176321148872375,
-0.006388764828443527,
0.2911374568939209,
-0.2668011486530304,
0.014643118716776371,
0.03549252450466156,
-0.23772282898426056,
0.20391353964805603,
0.7473661303520203,
0.11979836225509644,
0.20840930938720703,
0.06260216236114502,
-0.2800326943397522,
-0.04083307459950447,
0.09091086685657501,
0.049757666885852814,
-0.008118197321891785,
0.32248011231422424,
0.32765114307403564,
-0.32329118251800537,
0.023839328438043594,
-0.4280060827732086,
0.20707257091999054,
-0.13518549501895905,
0.3182058036327362,
-0.7495481967926025,
-0.08512233942747116,
-0.06820674985647202,
-0.17061851918697357,
0.2382204532623291,
-0.12760911881923676,
-0.025214385241270065,
-0.2964409291744232,
-0.3112500011920929,
0.09401040524244308,
0.07662069797515869,
0.07301992177963257,
-0.23221153020858765,
0.08224757760763168,
-0.17973725497722626,
-0.09123124927282333,
-0.040199100971221924,
-0.015006760135293007,
0.0942533016204834,
0.19801944494247437,
-0.15098270773887634,
0.10936462879180908,
-0.25103652477264404,
-0.22844862937927246,
0.1524772197008133,
0.06587933003902435,
0.2136690616607666,
0.2256595939397812,
-0.34810614585876465,
0.02556079626083374,
0.1858634352684021,
0.14740592241287231,
-0.2377626746892929,
0.05000240355730057,
0.47430890798568726,
-0.18893131613731384,
-0.02061084844172001,
-0.047338977456092834,
0.21755719184875488,
0.23912550508975983,
-0.19190488755702972,
0.025607483461499214,
0.10885334014892578,
0.35558146238327026,
-0.5912420749664307,
-0.04215516895055771,
0.13548874855041504,
0.07693065702915192,
0.14459922909736633,
0.17177075147628784,
0.3766643702983856,
-0.15416550636291504,
0.1885601431131363,
0.2204146385192871,
0.1299227476119995,
-0.05315089225769043,
0.098444864153862,
0.4626907706260681,
0.11206561326980591,
0.36466050148010254,
0.49405425786972046,
0.19054320454597473,
-0.22101634740829468,
0.1996484398841858,
-0.022308439016342163,
0.16762933135032654,
-0.07336366176605225,
0.15823787450790405,
0.08921460807323456,
-0.07832733541727066,
0.3205738663673401,
-0.23179751634597778,
0.021440662443637848,
0.012837454676628113,
0.22713351249694824,
-0.15557095408439636,
0.016999609768390656,
-0.3525320887565613,
0.06597739458084106,
-0.09880897402763367,
-0.23620784282684326,
-0.05974723771214485,
-0.17236429452896118,
-0.06220630928874016,
0.26253944635391235,
-0.08567067980766296,
-0.13587641716003418,
0.008095968514680862,
0.3445335924625397,
0.13029295206069946,
0.06372988969087601,
-0.11660632491111755,
-0.3045167624950409,
0.2261764109134674,
0.4951324164867401,
-0.20861473679542542,
0.2591778635978699,
0.11890832334756851,
-0.31676149368286133,
0.1280456781387329,
0.4280245900154114,
0.15613383054733276,
0.08640497922897339,
-0.17896714806556702,
0.04795822873711586,
-0.1423756182193756,
-0.10841426998376846,
0.14730066061019897,
-0.05056304484605789,
0.4315105974674225,
0.44033706188201904,
0.13425026834011078,
0.18668974936008453,
-0.1280892938375473,
0.1956932693719864,
-0.02354593202471733,
-0.0012819282710552216,
-0.28713375329971313,
-0.056882940232753754,
-0.06670092046260834,
-0.3671121299266815,
-0.05611757934093475,
-0.16464152932167053,
-0.23720157146453857,
-0.01926565170288086,
0.030931666493415833,
0.1439066380262375,
-0.02325509674847126,
0.05483957752585411,
0.16729553043842316,
0.29272353649139404,
0.031105872243642807,
0.2463090866804123,
0.24542400240898132,
-0.3015080690383911,
-0.473949670791626,
-0.25666308403015137,
0.13690319657325745,
0.08164645731449127,
0.26835381984710693,
0.2701210677623749,
0.10801732540130615,
0.32142817974090576,
0.003997866064310074,
0.015675775706768036,
-0.1257496029138565,
-0.30436232686042786,
0.2747912108898163,
-0.6239219307899475,
-0.051515523344278336,
0.08259234577417374,
0.0182341281324625,
-0.012357639148831367,
0.08938979357481003,
0.30531972646713257,
-0.003631182014942169,
0.07720891386270523,
-0.14990974962711334,
0.024246811866760254,
0.15239253640174866,
0.12202508747577667,
0.32559734582901,
0.24384267628192902,
-0.15431803464889526,
-0.08654145896434784,
-0.37025126814842224,
0.10525484383106232,
-0.08852045983076096,
-0.3041945695877075,
0.5256758332252502,
0.009936517104506493,
0.3350534439086914,
0.3159712553024292,
-0.5402684211730957,
0.05712338909506798,
0.5804581642150879,
0.13550762832164764,
-0.07790540158748627,
-0.5299726128578186,
0.28972259163856506,
0.41757968068122864,
0.12203246355056763,
0.011403565295040607,
0.3557327091693878,
-0.03484254330396652,
0.3436461091041565,
-0.46225500106811523,
-0.3549788296222687,
0.4449535012245178,
-0.20655739307403564,
-0.0866890698671341,
0.021047886461019516,
0.2236778438091278,
-0.18452930450439453,
-0.10188332945108414,
-0.6000646352767944,
-0.1756214201450348,
0.26359957456588745,
-0.19452092051506042,
-0.22370870411396027,
-0.035688843578100204,
-0.06311871111392975,
0.21283681690692902,
-0.16045525670051575,
0.808232307434082,
0.25244757533073425,
-0.1558462232351303,
-0.12812106311321259,
-0.037536293268203735
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some kind of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 161 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some kind of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | [
-0.24651433527469635,
0.26373547315597534,
-0.023661011829972267,
0.21830013394355774,
-0.21930648386478424,
-0.05686478316783905,
0.3280346393585205,
0.3779309093952179,
0.08045811951160431,
0.2415490299463272,
0.09365814924240112,
0.49885639548301697,
0.2551301419734955,
0.5303799510002136,
-0.06396550685167313,
-0.09015224874019623,
0.325535386800766,
-0.0044635385274887085,
0.12804025411605835,
-0.03075055405497551,
-0.2717444896697998,
0.31854185461997986,
-0.17069533467292786,
0.10034031420946121,
0.14763328433036804,
-0.051316797733306885,
-0.340076744556427,
-0.14044201374053955,
0.024403784424066544,
-0.05845670774579048,
0.025278856977820396,
0.14395849406719208,
-0.24873976409435272,
0.3095026910305023,
-0.00011278419697191566,
-0.09882901608943939,
-0.12369242310523987,
0.023299621418118477,
-0.2795455753803253,
-0.2613474130630493,
-0.15545082092285156,
-0.31336086988449097,
-0.09003221988677979,
-0.22249892354011536,
0.10963820666074753,
0.06623990833759308,
-0.05050203204154968,
-0.19820959866046906,
0.10545909404754639,
-0.09669610857963562,
0.15988783538341522,
0.019577234983444214,
0.22316108644008636,
0.19540682435035706,
0.09341315925121307,
0.14727634191513062,
-0.2537224292755127,
0.09588688611984253,
0.462507426738739,
0.1167321503162384,
0.24962830543518066,
0.36931273341178894,
-0.02740630879998207,
-0.08563224971294403,
-0.13760241866111755,
0.021823283284902573,
0.05601941794157028,
-0.1984991729259491,
0.043749816715717316,
0.603976845741272,
0.14589440822601318,
-0.20376265048980713,
-0.5380609035491943,
-0.3240000605583191,
-0.0011298509780317545,
-0.08388511836528778,
0.0627177506685257,
0.3347620666027069,
0.1946733146905899,
0.01330593042075634,
0.18336038291454315,
-0.20249967277050018,
0.11140379309654236,
0.1543954461812973,
-0.33761823177337646,
-0.01369522511959076,
0.0405772440135479,
0.022182650864124298,
-0.5208470821380615,
-0.030533097684383392,
0.3766731321811676,
-0.2171308547258377,
0.02193618379533291,
-0.13463623821735382,
-0.438381552696228,
-0.1660839319229126,
-0.24502813816070557,
-0.28363001346588135,
0.06900223344564438,
-0.2364523857831955,
0.3107926547527313,
0.029120100662112236,
-0.1090041995048523,
0.19646203517913818,
0.024970252066850662,
-0.2063477784395218,
-0.15131494402885437,
0.1522323489189148,
-0.06566943228244781,
0.0011350780259817839,
-0.038970619440078735,
-0.03782755136489868,
0.07623015344142914,
-0.10043928772211075,
-0.3985808193683624,
-0.08532427251338959,
0.4456769824028015,
-0.10396386682987213,
-0.23721246421337128,
0.2277388721704483,
-0.06325653195381165,
-0.08849865198135376,
-0.06605199724435806,
-0.07542424649000168,
-0.19338272511959076,
0.03187273442745209,
0.007825039327144623,
0.22103340923786163,
-0.08300991356372833,
-0.3024752736091614,
-0.16569849848747253,
-0.16978377103805542,
-0.015154514461755753,
0.14158578217029572,
0.10856570303440094,
0.1613205373287201,
0.2510259449481964,
0.29604703187942505,
-0.1945321410894394,
-0.004047282040119171,
0.1095191091299057,
-0.12453660368919373,
0.020925842225551605,
0.1512616127729416,
-0.18609066307544708,
-0.1657249629497528,
-0.17087268829345703,
-0.07279094308614731,
-0.11083213984966278,
0.2972281873226166,
-0.4596523642539978,
-0.04750581458210945,
-0.23742182552814484,
0.19843237102031708,
0.08547703176736832,
-0.0002174079418182373,
0.011389151215553284,
0.3455345332622528,
-0.040357284247875214,
-0.34947580099105835,
0.06725666671991348,
-0.10514646768569946,
0.09440873563289642,
-0.1524631679058075,
0.20737552642822266,
0.18988628685474396,
-0.40311846137046814,
-0.06441881507635117,
0.13948243856430054,
0.4016962945461273,
-0.2000286877155304,
0.022710014134645462,
-0.12245546281337738,
0.014744527637958527,
-0.09747747331857681,
0.12994076311588287,
0.2826479971408844,
-0.21564388275146484,
-0.3728437125682831,
-0.17289060354232788,
0.26614910364151,
0.04760441184043884,
0.1195959746837616,
-0.24766623973846436,
-0.02248249389231205,
-0.11252504587173462,
0.03218623995780945,
0.1239657923579216,
-0.27763479948043823,
-0.12429565191268921,
-0.43428152799606323,
-0.18895433843135834,
0.10446396470069885,
0.31114691495895386,
0.09716932475566864,
-0.04391922801733017,
0.03572821244597435,
-0.2507980465888977,
0.19891119003295898,
-0.12459470331668854,
-0.1504865288734436,
0.11558438837528229,
0.3400847017765045,
-0.09438209235668182,
-0.01117160078138113,
0.11993222683668137,
-0.5113479495048523,
-0.02016974426805973,
-0.480747252702713,
-0.18449555337429047,
-0.049989715218544006,
-0.21866080164909363,
0.017051994800567627,
-0.1767183542251587,
0.05873597413301468,
0.13080699741840363,
0.09889547526836395,
-0.00503946840763092,
-0.1713797152042389,
-0.04868167266249657,
-0.3462551236152649,
-0.022502752020955086,
-0.2621510326862335,
0.28142333030700684,
-0.37716948986053467,
0.163748636841774,
-0.29601287841796875,
-0.00846217479556799,
0.24775353074073792,
0.26899638772010803,
0.15968066453933716,
-0.295868843793869,
0.12653256952762604,
0.4190405607223511,
0.007945486344397068,
-0.22661368548870087,
0.03789423778653145,
0.39657315611839294,
0.22898878157138824,
0.23160356283187866,
0.06487809866666794,
0.014589473605155945,
-0.07147448509931564,
-0.10507911443710327,
0.02278771623969078,
0.5012703537940979,
-0.19654962420463562,
0.19350582361221313,
0.09641562402248383,
0.06378569453954697,
-0.020891869440674782,
-0.2044622004032135,
-0.15581747889518738,
-0.05103040114045143,
0.028790902346372604,
0.05154092237353325,
0.38197392225265503,
-0.0007546115666627884,
-0.47071555256843567,
0.2842002809047699,
0.6101773977279663,
0.047881077975034714,
0.022521328181028366,
0.12241048365831375,
0.07926121354103088,
0.02614324539899826,
0.08115124702453613,
-0.036920174956321716,
0.3295617997646332,
0.20622457563877106,
-0.2297951579093933,
0.07451848685741425,
0.2381097376346588,
-0.08777720481157303,
0.3242399990558624,
0.23800241947174072,
-0.23106494545936584,
0.06113499030470848,
0.22497327625751495,
0.22452645003795624,
-0.06413813680410385,
-0.07366493344306946,
0.3079415261745453,
-0.06903671473264694,
-0.14824484288692474,
0.3484630286693573,
-0.04882669076323509,
-0.15070562064647675,
-0.317373663187027,
-0.31591281294822693,
-0.39439764618873596,
-0.19449482858181,
0.187185600399971,
-0.006288610398769379,
-0.20137467980384827,
0.49766960740089417,
0.3696839213371277,
0.49219679832458496,
-0.43848592042922974,
0.20129157602787018,
-0.40067848563194275,
-0.030778948217630386,
-0.18103614449501038,
0.11173981428146362,
0.27370867133140564,
-0.3602745831012726,
0.06952214241027832,
-0.2749195098876953,
-0.13977831602096558,
-0.37279120087623596,
-0.654081404209137,
0.10863984376192093,
-0.3097655773162842,
0.28118330240249634,
0.05390505865216255,
0.07793746143579483,
-0.34855759143829346,
-0.48768696188926697,
0.08758899569511414,
0.16071952879428864,
-0.13885025680065155,
0.1671292930841446,
-0.09641283750534058,
-0.21969226002693176,
-0.04810560494661331,
-0.39542409777641296,
-0.22493429481983185,
-0.19751298427581787,
0.3646848201751709,
-0.29138171672821045,
0.2552696466445923,
0.4017502963542938,
-0.1770493984222412,
-0.4493889808654785,
0.06405553966760635,
0.21726787090301514,
-0.2537969946861267,
-0.3298187851905823,
0.13914191722869873,
-0.14452147483825684,
-0.17467378079891205,
-0.17296524345874786,
-0.0015062224119901657,
0.47492948174476624,
0.016588440164923668,
-0.37674397230148315,
-0.06996048986911774,
0.03967955708503723,
-0.04840877652168274,
0.09695329517126083,
0.177840918302536,
0.17167848348617554,
0.3100685775279999,
-0.011154519394040108,
-0.10888475179672241,
-0.2872765064239502,
0.03252353519201279,
0.1705576777458191,
0.40677136182785034,
-0.28418195247650146,
0.07122473418712616,
0.055003222078084946,
0.12836691737174988,
0.06956787407398224,
0.2733133137226105,
0.12499675899744034,
0.17588141560554504,
0.20361430943012238,
-0.2583177089691162,
-0.15209899842739105,
0.28007039427757263,
-0.21839120984077454,
-0.001798270270228386,
0.31416553258895874,
-0.27833041548728943,
0.07395508885383606,
-0.08284931629896164,
0.08197079598903656,
-0.5850556492805481,
-0.3868868350982666,
-0.08520685881376266,
-0.162147656083107,
0.37546777725219727,
0.3243810832500458,
0.009261846542358398,
-0.13031546771526337,
-0.014802059158682823,
0.3977317214012146,
0.22880537807941437,
0.10300318896770477,
0.0006175408489070833,
-0.38676971197128296,
-0.05691719055175781,
-0.12059428542852402,
0.4611397385597229,
-0.45454832911491394,
0.29606881737709045,
0.17230798304080963,
-0.037178248167037964,
-0.119549959897995,
0.15300902724266052,
0.6196565628051758,
0.11178786307573318,
-0.510798990726471,
0.10224376618862152,
0.01886734366416931,
-0.030407531186938286,
-0.364711731672287,
0.11862041056156158,
-0.038002077490091324,
0.4328221380710602,
0.15396182239055634,
-0.5492379665374756,
-0.08362855762243271,
0.19428573548793793,
0.2870803475379944,
-0.2192377746105194,
-0.057534996420145035,
-0.23929272592067719,
-0.05147039517760277,
-0.018879299983382225,
-0.24834111332893372,
-0.048849474638700485,
0.09662303328514099,
0.19788242876529694,
0.07053801417350769,
-0.30320632457733154,
-0.3522835373878479,
0.18337085843086243,
0.2827076017856598,
0.29243218898773193,
-0.18857593834400177,
0.4865524172782898,
-0.17542657256126404,
0.3051728904247284,
0.48775172233581543,
0.45307064056396484,
-0.046369653195142746,
-0.316098690032959,
0.08702357113361359,
-0.4449516534805298,
0.37360766530036926,
0.3112175464630127,
0.21235217154026031,
0.1830483376979828,
-0.04738939553499222,
-0.012146756052970886,
-0.08037645369768143,
0.003927280660718679,
0.15971364080905914,
0.008143355138599873,
-0.5099031925201416,
-0.4300795793533325,
0.3082036077976227,
-0.023380178958177567,
-0.20230291783809662,
0.5592085123062134,
0.349887490272522,
-0.07936384528875351,
0.7759513854980469,
-0.060835935175418854,
1.009362816810608,
0.1364630162715912,
0.009180508553981781,
0.2607249915599823,
-0.41290098428726196,
0.1904595047235489,
-0.14639975130558014,
0.16159391403198242,
-0.4620922803878784,
-0.25214871764183044,
0.055637091398239136,
-0.07087201625108719,
0.31790047883987427,
0.3416609764099121,
-0.044044628739356995,
0.3306710422039032,
0.10214698314666748,
-0.24623942375183105,
-0.102449931204319,
0.16516809165477753,
0.16251040995121002,
-0.019198846071958542,
-0.17382948100566864,
0.03598969429731369,
-0.12888720631599426,
-0.02416881173849106,
-0.1652708351612091,
-0.050912044942379,
-0.19814367592334747,
-0.06921808421611786,
0.006233960390090942,
-0.007275199517607689,
-0.1630667895078659,
0.007484482601284981,
0.37436598539352417,
-0.535953938961029,
0.04033409804105759,
0.08172480016946793,
0.7047069072723389,
0.0926702544093132,
0.019381966441869736,
0.24905051290988922,
0.29020196199417114,
0.08197399973869324,
0.2956676781177521,
-0.11285430192947388,
0.22570016980171204,
0.03939264267683029,
0.1749424934387207,
-0.029343880712985992,
-0.11283845454454422,
0.022878393530845642,
-0.36468273401260376,
-0.1721583753824234,
0.3137724995613098,
-0.3173043727874756,
0.06495195627212524,
-0.04755799472332001,
0.30950552225112915,
-0.3520594835281372,
0.08716684579849243,
0.04858524352312088,
0.06406644731760025,
0.38475072383880615,
-0.03475632891058922,
-0.08743323385715485,
-0.28491801023483276,
-0.37822088599205017,
0.027068592607975006,
0.19925226271152496,
0.3858458399772644,
-0.16874495148658752,
0.032415181398391724,
-0.03294430673122406,
0.08207181841135025,
0.2609049677848816,
-0.1982179582118988,
-0.08937547355890274,
-0.0351712591946125,
-0.2722318768501282,
0.17809855937957764,
0.8716592192649841,
0.23664994537830353,
0.10282638669013977,
0.2442489117383957,
-0.24891680479049683,
0.020076105371117592,
0.21848726272583008,
0.13127946853637695,
0.12050481140613556,
0.30597424507141113,
0.21428081393241882,
-0.503869354724884,
0.21943528950214386,
-0.3030405044555664,
0.12872837483882904,
-0.10739661008119583,
0.25485092401504517,
-0.7205203771591187,
0.0026460252702236176,
-0.06342817842960358,
-0.2547597885131836,
0.09046503901481628,
-0.23351414501667023,
-0.0034003527835011482,
-0.16834360361099243,
-0.33501607179641724,
0.15497668087482452,
0.16068610548973083,
0.17770612239837646,
-0.23709918558597565,
0.017954766750335693,
0.038809336721897125,
-0.1500435322523117,
-0.09758579730987549,
0.03987354785203934,
0.1691100001335144,
0.20341849327087402,
-0.18056124448776245,
0.12763622403144836,
-0.33965569734573364,
-0.02820727974176407,
0.05496394634246826,
0.0236961767077446,
0.3561147451400757,
0.21742260456085205,
-0.2528277039527893,
0.06602057814598083,
0.027258548885583878,
0.1134980320930481,
-0.3447810411453247,
0.12429185956716537,
0.6071692705154419,
-0.19423963129520416,
0.07854650914669037,
0.01143060252070427,
0.12750649452209473,
0.43068981170654297,
-0.313821017742157,
-0.10658977180719376,
0.12767329812049866,
0.2625744342803955,
-0.5081149339675903,
-0.0980125144124031,
0.20122765004634857,
0.01281869225203991,
0.07273724675178528,
0.29835209250450134,
0.5322174429893494,
-0.04204344004392624,
-0.17333297431468964,
0.14951848983764648,
0.18592169880867004,
0.10799036920070648,
0.21113136410713196,
0.33659255504608154,
0.0810118317604065,
0.36582449078559875,
0.5399615168571472,
0.2636890113353729,
-0.16711115837097168,
0.1474737972021103,
-0.02164848893880844,
0.15685077011585236,
-0.03726476430892944,
-0.09058991074562073,
0.2613663077354431,
0.056145038455724716,
0.4928801953792572,
-0.3044995665550232,
0.17773142457008362,
0.05859629437327385,
0.11360020935535431,
-0.28389886021614075,
-0.09093017876148224,
-0.3850732445716858,
0.1270800232887268,
-0.10219386219978333,
-0.1210913136601448,
0.0063908156007528305,
-0.1682502031326294,
-0.1108127236366272,
0.3589646518230438,
-0.13536404073238373,
-0.1490427851676941,
-0.13656122982501984,
0.27602970600128174,
0.23370105028152466,
-0.08421829342842102,
0.0523931160569191,
-0.14346182346343994,
0.32606497406959534,
0.37147924304008484,
-0.24644802510738373,
0.2293548434972763,
-0.0009640306234359741,
-0.3449874818325043,
0.17200708389282227,
0.39412635564804077,
0.11568388342857361,
0.01708461530506611,
-0.15664616227149963,
-0.12866172194480896,
-0.014128312468528748,
-0.033268578350543976,
0.08898524194955826,
-0.019346486777067184,
0.26328372955322266,
0.25643184781074524,
0.20913857221603394,
0.07189018279314041,
-0.021329062059521675,
0.13962006568908691,
0.027343183755874634,
-0.07114952802658081,
-0.45788779854774475,
0.10017826408147812,
-0.12756140530109406,
-0.3202979862689972,
0.010797198861837387,
-0.09910788387060165,
-0.20203420519828796,
-0.09650144726037979,
0.0718766525387764,
0.07935225963592529,
-0.03830697014927864,
0.13901372253894806,
0.10328610241413116,
0.26554280519485474,
0.11918246746063232,
0.2835191786289215,
0.0460369810461998,
-0.39297059178352356,
-0.32730281352996826,
-0.26893654465675354,
0.11480261385440826,
0.006802361458539963,
0.2790833115577698,
0.2825324833393097,
0.12417392432689667,
0.3691152036190033,
-0.0380081832408905,
-0.05802337825298309,
-0.017915409058332443,
-0.4425643980503082,
0.27603262662887573,
-0.5905793905258179,
-0.13678213953971863,
-0.15841925144195557,
0.04792296141386032,
-0.06482771784067154,
0.18634486198425293,
0.2529899477958679,
0.06607745587825775,
-0.060822777450084686,
-0.1380358636379242,
0.09435071051120758,
0.3389398157596588,
-0.14101342856884003,
0.321180135011673,
0.1552206575870514,
-0.1836370825767517,
-0.014770165085792542,
-0.41868650913238525,
0.18513154983520508,
-0.14911982417106628,
-0.3638261556625366,
0.6328369975090027,
-0.1829831749200821,
0.24973681569099426,
0.2117089480161667,
-0.473110169172287,
-0.022817468270659447,
0.4757067561149597,
0.09919850528240204,
-0.1470697522163391,
-0.449575275182724,
0.2927302122116089,
0.4290305972099304,
0.13953889906406403,
0.18906797468662262,
0.46249672770500183,
-0.06895564496517181,
0.3393705189228058,
-0.4508510231971741,
-0.20030145347118378,
0.38933733105659485,
-0.1940922737121582,
0.050012070685625076,
-0.11423920094966888,
0.2831505835056305,
-0.1369805932044983,
0.0636717826128006,
-0.8173651099205017,
-0.31439638137817383,
0.391589879989624,
-0.3800583481788635,
-0.10602258145809174,
0.034879207611083984,
0.0662837028503418,
-0.03461546450853348,
-0.05586434528231621,
0.786125659942627,
-0.003737635910511017,
-0.28857749700546265,
0.011626023799180984,
0.10856044292449951
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 69 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | [
-0.0945751965045929,
0.16495636105537415,
-0.10625572502613068,
0.18077713251113892,
-0.1605587601661682,
-0.1824280321598053,
0.29297998547554016,
0.37215590476989746,
-0.028136203065514565,
0.23731845617294312,
0.08153854310512543,
0.4941644072532654,
0.34432289004325867,
0.3875860869884491,
-0.12196767330169678,
-0.1653727889060974,
0.17919155955314636,
0.10589034855365753,
0.07386555522680283,
-0.0472118966281414,
-0.2771565020084381,
0.3801194429397583,
-0.18645226955413818,
0.10330575704574585,
-0.004490973427891731,
-0.04428486526012421,
-0.3907569944858551,
-0.005322113633155823,
-0.09898275882005692,
-0.0645502358675003,
-0.01601419597864151,
0.13967357575893402,
-0.2838135063648224,
0.3003937005996704,
-0.0000995150621747598,
-0.21225157380104065,
-0.15242747962474823,
-0.002219419926404953,
-0.2837035655975342,
-0.29155516624450684,
-0.035060349851846695,
-0.28645941615104675,
-0.03054738976061344,
-0.2509913146495819,
-0.04637257754802704,
-0.05345272645354271,
-0.10356475412845612,
0.05136621743440628,
0.26750218868255615,
0.036676354706287384,
0.3120249807834625,
-0.02916465699672699,
0.23431925475597382,
0.12067325413227081,
0.13090333342552185,
-0.06132490932941437,
-0.33413517475128174,
0.01940080150961876,
0.3119702935218811,
-0.04991655796766281,
0.13856257498264313,
0.3251017928123474,
-0.0055235810577869415,
-0.19122099876403809,
-0.23568418622016907,
0.0744585245847702,
0.17424961924552917,
-0.22081542015075684,
0.14143355190753937,
0.4658581018447876,
0.13533522188663483,
-0.18470695614814758,
-0.395630419254303,
-0.24892470240592957,
0.04583325609564781,
0.06232234090566635,
0.10769319534301758,
0.20274686813354492,
0.02513541281223297,
-0.01858384534716606,
0.18887017667293549,
-0.07619918882846832,
0.028824582695961,
0.13506659865379333,
-0.3899894952774048,
-0.0035596489906311035,
-0.042661990970373154,
-0.06548704952001572,
-0.2960284352302551,
-0.18059128522872925,
0.30209091305732727,
-0.12021143734455109,
0.03620903193950653,
0.039872247725725174,
-0.40970340371131897,
-0.1138768121600151,
0.017633739858865738,
-0.24997735023498535,
-0.045987047255039215,
-0.25386661291122437,
0.28731998801231384,
0.07859034091234207,
-0.11284900456666946,
0.14998382329940796,
-0.08336089551448822,
-0.17190569639205933,
-0.007785096764564514,
-0.03408229723572731,
-0.13990719616413116,
0.0614166334271431,
0.036595914512872696,
-0.10832393914461136,
0.013972223736345768,
-0.16204197704792023,
-0.3057863116264343,
-0.08201508969068527,
0.4653052091598511,
-0.07054673880338669,
-0.2174636721611023,
0.21380946040153503,
-0.11336573213338852,
-0.05184371769428253,
-0.06661877036094666,
0.122042216360569,
-0.2203942835330963,
-0.11443830281496048,
0.058581747114658356,
0.14976459741592407,
-0.10005147010087967,
-0.20403428375720978,
-0.23561660945415497,
-0.0316648930311203,
-0.10930467396974564,
0.010914798825979233,
0.169051393866539,
0.22058434784412384,
0.2682306170463562,
0.313667893409729,
-0.1328616738319397,
0.06510122120380402,
0.08339274674654007,
-0.12834115326404572,
0.08893265575170517,
0.16093525290489197,
-0.10892444849014282,
-0.16075828671455383,
-0.07681882381439209,
-0.17200838029384613,
0.0074271634221076965,
0.2754973769187927,
-0.2969546318054199,
0.04269829019904137,
-0.1943316012620926,
0.31908199191093445,
0.1497664898633957,
-0.015243008732795715,
0.15772753953933716,
0.3432924151420593,
0.0023642554879188538,
-0.19670134782791138,
0.008833073079586029,
0.035159576684236526,
0.1710897982120514,
-0.18216313421726227,
0.18801148235797882,
0.18599499762058258,
-0.4384118616580963,
0.04386909306049347,
0.07066237926483154,
0.29915177822113037,
-0.16940641403198242,
-0.035027142614126205,
0.005248818546533585,
-0.06484844535589218,
-0.010335409082472324,
0.26528114080429077,
0.1284436285495758,
-0.15785077214241028,
-0.27086758613586426,
-0.10157248377799988,
0.09264689683914185,
0.04495949298143387,
0.04762430489063263,
-0.2658827006816864,
-0.04090462997555733,
-0.08958780020475388,
0.0071425288915634155,
0.095194973051548,
-0.1525670886039734,
-0.03489052876830101,
-0.4874158501625061,
-0.15663275122642517,
-0.049247801303863525,
0.2992258369922638,
0.01953631266951561,
-0.09080434590578079,
0.017667651176452637,
-0.29526588320732117,
0.18669089674949646,
-0.06957763433456421,
-0.08975545316934586,
0.1368982493877411,
0.378584623336792,
-0.11276495456695557,
0.08173609524965286,
0.05576334148645401,
-0.3548687994480133,
-0.06399764120578766,
-0.543381929397583,
0.038131192326545715,
-0.13295452296733856,
-0.21735243499279022,
-0.221199631690979,
-0.0977143868803978,
0.09379957616329193,
0.11735591292381287,
0.3114745616912842,
-0.06123465299606323,
-0.09323342144489288,
-0.06692633032798767,
-0.13570678234100342,
-0.15042439103126526,
-0.20410217344760895,
0.11385831236839294,
-0.2185574322938919,
0.11839699745178223,
-0.2645217478275299,
-0.03549926355481148,
0.2293483316898346,
0.2160777449607849,
0.32594478130340576,
-0.13577181100845337,
0.08485953509807587,
0.41330018639564514,
-0.0712658017873764,
-0.17756588757038116,
0.007369674742221832,
0.19746270775794983,
0.15817475318908691,
0.2416897416114807,
-0.02351338230073452,
0.08451323211193085,
-0.04788537696003914,
-0.00993587076663971,
-0.05068571865558624,
0.5310103893280029,
-0.06928710639476776,
0.13024258613586426,
0.11147338151931763,
0.11582177132368088,
0.09135255217552185,
-0.33117958903312683,
0.061013057827949524,
-0.22922806441783905,
0.020845822989940643,
0.02563747577369213,
0.2371455579996109,
-0.07358763366937637,
-0.3782959580421448,
0.3890349268913269,
0.5959153175354004,
0.04237319156527519,
0.09615775942802429,
0.0250200517475605,
0.12091314047574997,
0.07192111760377884,
0.09564962983131409,
-0.03551609069108963,
0.11596394330263138,
0.28380149602890015,
-0.1808018535375595,
0.07455288618803024,
0.1882956326007843,
-0.16994406282901764,
0.37435632944107056,
0.11309173703193665,
-0.13923153281211853,
0.06875240802764893,
0.22120939195156097,
0.10506854206323624,
-0.2182842493057251,
-0.04181371629238129,
0.25694724917411804,
0.11396878957748413,
-0.13344301283359528,
0.19895575940608978,
-0.06826002895832062,
-0.1529252529144287,
0.0037117870524525642,
-0.30801141262054443,
-0.19120652973651886,
-0.17878948152065277,
0.2732313275337219,
0.05972984433174133,
-0.23532810807228088,
0.4440498650074005,
0.43041855096817017,
0.34798645973205566,
-0.2753501236438751,
0.23403261601924896,
-0.4255046844482422,
-0.05835789069533348,
-0.16655853390693665,
0.31497088074684143,
0.07007653266191483,
-0.2602821886539459,
0.13055557012557983,
-0.2047944962978363,
-0.06180866062641144,
-0.4030604958534241,
-0.5852488279342651,
0.051416363567113876,
-0.3518231511116028,
0.30177056789398193,
0.0622427873313427,
0.1933707594871521,
-0.4906286597251892,
-0.2931060492992401,
0.1549197882413864,
0.13698196411132812,
-0.22069868445396423,
0.1503322422504425,
-0.06399885565042496,
-0.16792622208595276,
-0.1788977086544037,
-0.3754979074001312,
-0.11323639005422592,
-0.20277796685695648,
0.4285014867782593,
-0.19670552015304565,
0.2596758008003235,
0.2657119929790497,
-0.09076352417469025,
-0.2190188616514206,
0.1336601823568344,
0.23013192415237427,
-0.35619646310806274,
-0.20277537405490875,
0.20797739923000336,
-0.2806919515132904,
-0.3336564898490906,
-0.08231282234191895,
-0.0546652153134346,
0.40313950181007385,
-0.13509660959243774,
-0.3119739890098572,
-0.18681208789348602,
0.033900514245033264,
0.040740955621004105,
0.1352308988571167,
0.12388359755277634,
0.306939959526062,
0.20544925332069397,
-0.22216691076755524,
-0.23706495761871338,
-0.13754802942276,
0.06835915148258209,
0.1587042510509491,
0.3804444968700409,
-0.3390129506587982,
0.1482965350151062,
-0.0006984099745750427,
0.08623644709587097,
-0.07118773460388184,
0.40410494804382324,
0.17633548378944397,
0.10695487260818481,
0.1088382676243782,
-0.23413914442062378,
-0.17784136533737183,
0.041737642139196396,
-0.2321944236755371,
0.06930146366357803,
0.3243110179901123,
-0.24559712409973145,
-0.004153463989496231,
-0.14618024230003357,
-0.017564591020345688,
-0.6171478629112244,
-0.3598750829696655,
-0.09451039880514145,
-0.028323695063591003,
0.29666760563850403,
0.3583485782146454,
0.03106842190027237,
-0.06229235976934433,
0.014393137767910957,
0.26526734232902527,
0.08091656863689423,
0.08266539871692657,
-0.1591067910194397,
-0.3087905943393707,
0.07328490167856216,
-0.27846837043762207,
0.40615707635879517,
-0.31541427969932556,
0.041333623230457306,
0.10065416991710663,
-0.034735143184661865,
-0.08684152364730835,
0.05885826423764229,
0.6433228254318237,
0.09586525708436966,
-0.4333057403564453,
0.2399839460849762,
-0.14441531896591187,
-0.11325807124376297,
-0.15970046818256378,
-0.051071275025606155,
0.013099849224090576,
0.38778093457221985,
0.0871591866016388,
-0.5786216855049133,
-0.019672339782118797,
0.14077091217041016,
0.142506942152977,
-0.20534667372703552,
-0.09205979108810425,
-0.33112236857414246,
-0.14224810898303986,
-0.059153228998184204,
-0.15084704756736755,
-0.03405746817588806,
0.20379188656806946,
0.0862809494137764,
-0.02223995141685009,
-0.14742423593997955,
-0.3167271614074707,
0.27795761823654175,
0.40620315074920654,
0.27650344371795654,
-0.11163660883903503,
0.3957831859588623,
-0.2022666186094284,
0.250298410654068,
0.36624670028686523,
0.41332700848579407,
0.07426910102367401,
-0.27674368023872375,
0.1032387763261795,
-0.4965808391571045,
0.31453949213027954,
0.24956612288951874,
0.08163776993751526,
0.316546231508255,
-0.12346279621124268,
0.06688299775123596,
0.061092860996723175,
-0.10969933867454529,
0.1473768949508667,
-0.0427011139690876,
-0.3269956409931183,
-0.2844073474407196,
0.3591325879096985,
-0.23537977039813995,
-0.30516254901885986,
0.42248615622520447,
0.3373744487762451,
-0.10248353332281113,
0.7656227946281433,
-0.04423695057630539,
0.9396674036979675,
0.0619281642138958,
-0.13434180617332458,
0.4234229624271393,
-0.3800213932991028,
0.18873059749603271,
-0.07104963064193726,
0.14262011647224426,
-0.4865730106830597,
-0.10366538912057877,
0.12859056890010834,
0.11987626552581787,
0.228665292263031,
0.33797335624694824,
-0.101512610912323,
0.11355231702327728,
0.021097786724567413,
-0.3130268156528473,
-0.002377004362642765,
0.11699660122394562,
0.16593804955482483,
-0.11102917790412903,
-0.2770543694496155,
0.18695993721485138,
0.05258795619010925,
-0.15182049572467804,
-0.10302090644836426,
-0.028918229043483734,
-0.2555292546749115,
-0.034022681415081024,
0.11414864659309387,
0.06438080966472626,
-0.17674419283866882,
-0.012327615171670914,
0.25702232122421265,
-0.5343413949012756,
-0.048542849719524384,
0.07109426707029343,
0.5158628225326538,
0.11519166827201843,
-0.11255556344985962,
0.30081072449684143,
0.1985650658607483,
-0.01892375759780407,
0.25293290615081787,
-0.03836272284388542,
0.18495218455791473,
-0.05266746133565903,
-0.0013163015246391296,
0.0670715942978859,
-0.1052636057138443,
0.09294526278972626,
-0.3322980999946594,
-0.043685875833034515,
0.22536440193653107,
-0.3051196336746216,
-0.042816102504730225,
-0.15664158761501312,
0.20128431916236877,
-0.4313046336174011,
0.22361668944358826,
-0.029734358191490173,
0.07937174290418625,
0.16369135677814484,
0.07494169473648071,
-0.10552186518907547,
-0.25318223237991333,
-0.15464508533477783,
-0.011601906269788742,
0.21964263916015625,
0.36626559495925903,
-0.04040858894586563,
-0.04829470440745354,
-0.18581882119178772,
-0.06812125444412231,
0.2099350541830063,
-0.2763136923313141,
-0.050033748149871826,
0.08806653320789337,
-0.29978105425834656,
0.16563884913921356,
0.769018828868866,
0.16843579709529877,
0.12789855897426605,
0.20359502732753754,
-0.2573232352733612,
-0.05518246442079544,
0.1275448203086853,
0.1948687732219696,
-0.038352999836206436,
0.31104105710983276,
0.2946297228336334,
-0.3124387264251709,
0.17960748076438904,
-0.47040826082229614,
0.1546531617641449,
-0.14751176536083221,
0.32269054651260376,
-0.6918421983718872,
-0.13565108180046082,
0.05980526655912399,
-0.15623947978019714,
0.2693353593349457,
-0.13706421852111816,
-0.04127739742398262,
-0.35070517659187317,
-0.3065609335899353,
0.09278534352779388,
0.06671562790870667,
0.042889147996902466,
-0.24243679642677307,
-0.023051775991916656,
-0.13397596776485443,
-0.12517137825489044,
-0.0408991277217865,
-0.010618945583701134,
0.14243395626544952,
0.07087966799736023,
-0.20645765960216522,
0.07780223339796066,
-0.3135579824447632,
-0.19430550932884216,
0.11712556332349777,
-0.06143262982368469,
0.24079087376594543,
0.04476240649819374,
-0.3085493743419647,
0.010061308741569519,
0.19124118983745575,
0.10804824531078339,
-0.3080611228942871,
0.04344869405031204,
0.5534461736679077,
-0.16250823438167572,
-0.009007032960653305,
-0.07807941734790802,
0.16591069102287292,
0.172832190990448,
-0.19059620797634125,
-0.011147343553602695,
0.12520365417003632,
0.3859746754169464,
-0.6042981147766113,
-0.061675041913986206,
0.18357200920581818,
-0.058416686952114105,
0.24124112725257874,
0.21588310599327087,
0.301035076379776,
-0.10459904372692108,
0.04634750261902809,
0.1260034143924713,
0.18903259932994843,
0.02657933160662651,
-0.06223775073885918,
0.32786837220191956,
0.012909259647130966,
0.4055568277835846,
0.5518016815185547,
0.26951345801353455,
-0.22204425930976868,
0.22997939586639404,
-0.08656644076108932,
0.12148457765579224,
-0.15926656126976013,
0.05746014788746834,
0.07550065964460373,
0.025796957314014435,
0.4153178930282593,
-0.24722808599472046,
0.016049064695835114,
0.06087253987789154,
0.13482849299907684,
-0.2603427469730377,
0.06982066482305527,
-0.17779169976711273,
0.06017700582742691,
-0.06042658910155296,
-0.26390498876571655,
0.00322108156979084,
-0.2010897994041443,
-0.10690316557884216,
0.3142533302307129,
-0.13280270993709564,
-0.059339236468076706,
-0.08023576438426971,
0.2833545207977295,
0.10218869149684906,
0.049986813217401505,
0.00020032934844493866,
-0.22922974824905396,
0.20992910861968994,
0.48279887437820435,
-0.2012549638748169,
0.27523770928382874,
0.14494632184505463,
-0.23428097367286682,
0.07284976541996002,
0.31865495443344116,
0.05898512527346611,
0.02484505996108055,
-0.12262304127216339,
-0.02367393672466278,
-0.09358467161655426,
-0.1568128615617752,
0.008842894807457924,
0.08337036520242691,
0.3818904459476471,
0.4156995713710785,
0.22144271433353424,
0.2144203782081604,
-0.2149936705827713,
0.13638685643672943,
0.2043149769306183,
-0.03761626407504082,
-0.3035878837108612,
-0.10313879698514938,
-0.13308122754096985,
-0.3278201222419739,
-0.07175756245851517,
-0.20116287469863892,
-0.17114388942718506,
0.012809490785002708,
-0.015287455171346664,
0.07922042161226273,
-0.030726173892617226,
0.06847706437110901,
0.18362611532211304,
0.2817246615886688,
0.1066431850194931,
0.19470730423927307,
0.21828728914260864,
-0.35146012902259827,
-0.3783021569252014,
-0.37598904967308044,
0.16219788789749146,
-0.013949863612651825,
0.20278595387935638,
0.2530253231525421,
0.19092805683612823,
0.3716298043727875,
0.024772122502326965,
-0.026946157217025757,
0.0028325007297098637,
-0.3255464434623718,
0.20256860554218292,
-0.5814429521560669,
-0.05633099749684334,
-0.008624911308288574,
0.0491303913295269,
0.03824128210544586,
0.09461195021867752,
0.22412651777267456,
0.07225067913532257,
0.11336327344179153,
-0.18023134768009186,
0.015294946730136871,
0.20775820314884186,
0.0030146129429340363,
0.3083553910255432,
0.16040830314159393,
-0.10886161029338837,
-0.16135933995246887,
-0.31972432136535645,
0.16712689399719238,
0.009377063252031803,
-0.2188766747713089,
0.49391478300094604,
0.11799289286136627,
0.30398139357566833,
0.36455219984054565,
-0.47688546776771545,
0.12725655734539032,
0.5479243993759155,
0.17117467522621155,
-0.03543425723910332,
-0.4595731794834137,
0.330589234828949,
0.41124024987220764,
0.12831822037696838,
-0.04081394895911217,
0.3923977315425873,
-0.1397233009338379,
0.305160254240036,
-0.39243924617767334,
-0.31321921944618225,
0.44871246814727783,
-0.2935207486152649,
-0.037875495851039886,
-0.02851717546582222,
0.28183674812316895,
-0.1704481542110443,
-0.05930108577013016,
-0.5897086262702942,
-0.26413238048553467,
0.30159488320350647,
-0.2711641192436218,
-0.10296931862831116,
0.06316706538200378,
-0.09468653798103333,
0.14947070181369781,
-0.07418067753314972,
0.7340410947799683,
0.16787269711494446,
-0.1753612607717514,
-0.02463442087173462,
-0.0034318212419748306
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | Datasets are not tracked in this repository anymore. I think we must move this thread to the [discussions tab of the dataset](https://huggingface.co/datasets/openbookqa/discussions) | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 22 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Datasets are not tracked in this repository anymore. I think we must move this thread to the [discussions tab of the dataset](https://huggingface.co/datasets/openbookqa/discussions) | [
-0.11451636254787445,
0.1542971432209015,
-0.07824108004570007,
0.25563374161720276,
-0.15302704274654388,
-0.04252130910754204,
0.2703089416027069,
0.31803998351097107,
-0.016885705292224884,
0.2164829969406128,
0.1081155464053154,
0.5026225447654724,
0.36024612188339233,
0.4207337498664856,
-0.011467541567981243,
-0.14746826887130737,
0.32347530126571655,
0.030109748244285583,
0.10492067039012909,
-0.03746211901307106,
-0.2280413955450058,
0.5449784398078918,
-0.30878835916519165,
0.1062159389257431,
0.021970201283693314,
-0.11303821951150894,
-0.424366295337677,
-0.16229158639907837,
-0.0938049778342247,
-0.1221744567155838,
0.07728932052850723,
0.12474614381790161,
-0.34093615412712097,
0.33323922753334045,
-0.00010686714085750282,
-0.2292112559080124,
-0.09590272605419159,
0.0264804158359766,
-0.26792198419570923,
-0.31209200620651245,
-0.06979968398809433,
-0.250093549489975,
-0.02043650485575199,
-0.23181328177452087,
0.032589390873909,
0.0014848080463707447,
-0.09452009946107864,
-0.03546005114912987,
0.2015315592288971,
0.049501243978738785,
0.24588575959205627,
-0.018463464453816414,
0.34981203079223633,
0.08472020924091339,
0.17799390852451324,
-0.027577809989452362,
-0.3396666646003723,
0.02842646650969982,
0.3471376299858093,
-0.0004813307896256447,
0.15277208387851715,
0.37922367453575134,
0.03022422082722187,
-0.18392314016819,
-0.2853391766548157,
0.11727315187454224,
0.06373722851276398,
-0.23045983910560608,
0.2011418342590332,
0.48017314076423645,
0.1322331577539444,
-0.2555122971534729,
-0.4361187219619751,
-0.24098899960517883,
0.02802737057209015,
-0.04106464236974716,
0.17227321863174438,
0.2093752920627594,
0.09532882273197174,
-0.023769531399011612,
0.16225534677505493,
-0.16845770180225372,
0.08946812152862549,
0.08362117409706116,
-0.3432871699333191,
-0.0832437127828598,
-0.08678462356328964,
-0.052168965339660645,
-0.3469299077987671,
-0.1946706622838974,
0.3063761293888092,
-0.1303362250328064,
-0.04043153300881386,
0.11706474423408508,
-0.46166902780532837,
-0.13225685060024261,
-0.08744081109762192,
-0.25392502546310425,
-0.060944683849811554,
-0.26843690872192383,
0.21521754562854767,
0.038926862180233,
-0.2800382077693939,
0.14128340780735016,
-0.06854352355003357,
-0.14100034534931183,
0.0393199548125267,
0.05948955565690994,
-0.16533438861370087,
0.14046314358711243,
0.1356949508190155,
-0.11062901467084885,
0.0009298110380768776,
-0.17441734671592712,
-0.3633297383785248,
-0.07776521891355515,
0.46201592683792114,
-0.16006113588809967,
-0.2900196313858032,
0.25754719972610474,
-0.03947541117668152,
-0.09411577135324478,
-0.054487306624650955,
0.08049921691417694,
-0.2348128855228424,
-0.10952319949865341,
0.11370572447776794,
0.0800940990447998,
-0.07212826609611511,
-0.33184614777565,
-0.23148712515830994,
-0.030227717012166977,
-0.03508547693490982,
0.08545470237731934,
0.1597643345594406,
0.11367203295230865,
0.3309839069843292,
0.2975362241268158,
-0.1141185611486435,
0.01936144381761551,
-0.032133664935827255,
-0.11143814027309418,
-0.0028787627816200256,
0.11956992745399475,
-0.19255128502845764,
-0.12035983800888062,
-0.05914047732949257,
-0.1519848108291626,
0.016279436647892,
0.18648627400398254,
-0.40040820837020874,
0.08651779592037201,
-0.2576844096183777,
0.27404990792274475,
0.17026089131832123,
-0.07803893089294434,
0.13318981230258942,
0.3113855719566345,
-0.026240967214107513,
-0.26137691736221313,
0.10125134140253067,
-0.005126286298036575,
0.2293281853199005,
-0.125944122672081,
0.27155911922454834,
0.17912441492080688,
-0.4327477812767029,
-0.058507077395915985,
0.06937044858932495,
0.3023603558540344,
-0.18935427069664001,
-0.03901785984635353,
0.03811643272638321,
-0.1515807807445526,
-0.13880112767219543,
0.21598900854587555,
0.13218797743320465,
-0.1902482807636261,
-0.2391587793827057,
-0.19326701760292053,
0.2132834941148758,
-0.0033509302884340286,
0.0021813660860061646,
-0.3456801772117615,
-0.03226855769753456,
-0.0028811669908463955,
0.08719778805971146,
0.05991697311401367,
-0.26141980290412903,
-0.09723290055990219,
-0.4186711609363556,
-0.2237165868282318,
-0.05918236821889877,
0.2568688988685608,
0.0189669206738472,
-0.085611991584301,
0.03812674060463905,
-0.28973492980003357,
0.19181855022907257,
-0.022297490388154984,
-0.09048610180616379,
0.2009783387184143,
0.3758714199066162,
-0.030813686549663544,
0.13575561344623566,
0.04612617939710617,
-0.44313549995422363,
-0.0924966037273407,
-0.54557204246521,
-0.024288058280944824,
-0.17028115689754486,
-0.1305810958147049,
-0.20211827754974365,
-0.059414200484752655,
0.10149288922548294,
0.12070946395397186,
0.21284659206867218,
-0.10784885287284851,
-0.05646281689405441,
0.09743143618106842,
-0.24907328188419342,
-0.1905277967453003,
-0.21088983118534088,
0.18985615670681,
-0.3466953933238983,
0.15925423800945282,
-0.28932422399520874,
-0.08233392238616943,
0.24344122409820557,
0.22832825779914856,
0.33407488465309143,
-0.20251715183258057,
0.011139907874166965,
0.4581979513168335,
-0.012067481875419617,
-0.14734315872192383,
0.13064461946487427,
0.27448922395706177,
0.22218115627765656,
0.13953085243701935,
-0.03641119599342346,
0.0666123777627945,
-0.05510120093822479,
0.004560515284538269,
-0.000852242112159729,
0.48517143726348877,
-0.14481118321418762,
0.16407769918441772,
0.08275008201599121,
0.16652902960777283,
0.183084636926651,
-0.24948842823505402,
0.04283907264471054,
-0.22178767621517181,
0.16546252369880676,
-0.12649020552635193,
0.32490524649620056,
-0.20258057117462158,
-0.3303976058959961,
0.29296448826789856,
0.6022899150848389,
0.019782569259405136,
0.008439619094133377,
0.10832805931568146,
0.03861267492175102,
0.03475015610456467,
0.15346990525722504,
-0.033053770661354065,
0.13457533717155457,
0.20792704820632935,
-0.21461963653564453,
0.10378171503543854,
0.24355432391166687,
-0.12973327934741974,
0.4254128336906433,
0.17978407442569733,
-0.28030452132225037,
0.06502015888690948,
0.17522546648979187,
0.1542099565267563,
-0.2009301781654358,
-0.0463540144264698,
0.33187466859817505,
0.06339042633771896,
-0.13005098700523376,
0.24537034332752228,
-0.13501709699630737,
-0.1809813380241394,
-0.1606823354959488,
-0.363231897354126,
-0.34358733892440796,
-0.17199228703975677,
0.2087896764278412,
0.07771050184965134,
-0.08313636481761932,
0.4619506001472473,
0.40425536036491394,
0.32527241110801697,
-0.32005658745765686,
0.38926732540130615,
-0.5622004866600037,
-0.04418323561549187,
-0.19386273622512817,
0.21076321601867676,
0.10049133747816086,
-0.34057116508483887,
0.17675277590751648,
-0.2557688355445862,
-0.10491413623094559,
-0.4323787987232208,
-0.5463423728942871,
0.08527962863445282,
-0.313848614692688,
0.270531564950943,
0.09029022604227066,
0.12177764624357224,
-0.43065762519836426,
-0.2594159245491028,
0.14394551515579224,
0.06986925005912781,
-0.23607783019542694,
0.12705986201763153,
-0.13813933730125427,
-0.19813679158687592,
-0.14477330446243286,
-0.3238338828086853,
-0.15504825115203857,
-0.08734627813100815,
0.37560778856277466,
-0.2195231169462204,
0.23182988166809082,
0.404330849647522,
-0.21695828437805176,
-0.1417435258626938,
0.026592466980218887,
0.20054905116558075,
-0.3612704277038574,
-0.2785376310348511,
0.13234803080558777,
-0.2227480113506317,
-0.25088274478912354,
0.0648437887430191,
0.014689892530441284,
0.35373032093048096,
-0.2087198793888092,
-0.3950798511505127,
-0.14986194670200348,
0.02758285216987133,
0.030179638415575027,
0.11993540078401566,
0.09159225225448608,
0.28036952018737793,
0.21988125145435333,
-0.11263661831617355,
-0.19745784997940063,
-0.3351510763168335,
-0.020679153501987457,
0.217788428068161,
0.4368613660335541,
-0.29822206497192383,
0.20975211262702942,
-0.015242686495184898,
0.04866144433617592,
0.03435893729329109,
0.4070330560207367,
0.1656421571969986,
0.09162887930870056,
0.08965125679969788,
-0.24655523896217346,
-0.17387348413467407,
0.060160908848047256,
-0.24759116768836975,
0.04018467664718628,
0.3065594434738159,
-0.25418969988822937,
0.11211325973272324,
-0.1390523612499237,
0.04825456067919731,
-0.5900216102600098,
-0.3591623306274414,
-0.2096589058637619,
-0.11914516985416412,
0.3483179807662964,
0.31095802783966064,
0.019784286618232727,
-0.0804368406534195,
-0.05023746192455292,
0.3480874300003052,
0.0791361927986145,
0.06357906758785248,
-0.1129278615117073,
-0.3589227497577667,
-0.04972066357731819,
-0.2679354250431061,
0.4050654172897339,
-0.3794352114200592,
0.19041691720485687,
0.020588357001543045,
0.09926313906908035,
-0.00005077570676803589,
0.14954368770122528,
0.7357568740844727,
0.12271330505609512,
-0.4203506112098694,
0.2545565962791443,
-0.10947474837303162,
-0.046346455812454224,
-0.2643076181411743,
-0.011326201260089874,
-0.002215724438428879,
0.39605146646499634,
0.04946071654558182,
-0.4863663911819458,
-0.06475144624710083,
0.2560718357563019,
0.11408200860023499,
-0.2591829299926758,
-0.03553357347846031,
-0.2791776657104492,
-0.06724365055561066,
-0.008630018681287766,
-0.21786338090896606,
-0.03893866017460823,
0.19642987847328186,
0.10820330679416656,
0.09294044971466064,
-0.06771084666252136,
-0.32206085324287415,
0.22029513120651245,
0.3036569654941559,
0.3397139608860016,
-0.09803657978773117,
0.43065768480300903,
-0.1461317241191864,
0.26542577147483826,
0.38626378774642944,
0.41140633821487427,
0.028810307383537292,
-0.41724568605422974,
0.0800430029630661,
-0.5255903005599976,
0.30700424313545227,
0.21620489656925201,
0.10039535909891129,
0.3837791085243225,
-0.013285096734762192,
0.055514127016067505,
0.048972856253385544,
-0.045573942363262177,
0.2577723264694214,
0.029736172407865524,
-0.4098641276359558,
-0.23659832775592804,
0.3616667091846466,
-0.19913190603256226,
-0.18503957986831665,
0.5708943605422974,
0.36324936151504517,
-0.1144738495349884,
0.7941112518310547,
-0.18379837274551392,
0.9137608408927917,
0.05314752832055092,
-0.20312288403511047,
0.26331260800361633,
-0.42177528142929077,
0.21368949115276337,
0.005091331899166107,
0.17047147452831268,
-0.49873292446136475,
-0.09344400465488434,
0.09716005623340607,
0.13066869974136353,
0.299787700176239,
0.1849326193332672,
-0.09636569768190384,
0.21110941469669342,
0.01754789799451828,
-0.3049972951412201,
-0.08651629835367203,
-0.039286430925130844,
0.2390601634979248,
-0.07891035079956055,
-0.1759236752986908,
0.13969674706459045,
-0.026450589299201965,
0.006016865372657776,
-0.13910263776779175,
0.05432660132646561,
-0.1569165736436844,
-0.07859337329864502,
-0.025951728224754333,
0.025891240686178207,
-0.1401689052581787,
-0.03464774042367935,
0.35935038328170776,
-0.5054159760475159,
-0.00847304705530405,
0.05952185019850731,
0.6572107076644897,
0.00824769213795662,
-0.1885424256324768,
0.3698984384536743,
0.14076612889766693,
-0.05381643772125244,
0.23252654075622559,
0.05575959384441376,
0.14971162378787994,
-0.0022777244448661804,
0.0544419065117836,
0.07276883721351624,
-0.10581165552139282,
0.09896381199359894,
-0.30639350414276123,
-0.08362922072410583,
0.2784532904624939,
-0.2540944814682007,
0.03929721191525459,
-0.23525112867355347,
0.363134503364563,
-0.4767240881919861,
0.1702192723751068,
0.08343040198087692,
0.026909789070487022,
0.18787755072116852,
0.024846993386745453,
-0.05446168780326843,
-0.22944171726703644,
-0.17986947298049927,
-0.08021260797977448,
0.11242647469043732,
0.46175286173820496,
0.05644191429018974,
0.004083171486854553,
-0.10022864490747452,
-0.011551473289728165,
0.1699918806552887,
-0.3576032519340515,
-0.0041973888874053955,
0.11860312521457672,
-0.217582106590271,
0.18930906057357788,
0.8928378224372864,
0.1359010636806488,
0.08601821213960648,
0.20444051921367645,
-0.324638694524765,
-0.004567321389913559,
0.08978614211082458,
0.1933862417936325,
-0.0362778939306736,
0.3046799302101135,
0.1972794234752655,
-0.29214397072792053,
0.15253491699695587,
-0.3633948564529419,
0.20959559082984924,
-0.24832040071487427,
0.302794486284256,
-0.652563214302063,
-0.0674835741519928,
0.1090564951300621,
-0.1759665459394455,
0.18742981553077698,
-0.21106140315532684,
0.014413373544812202,
-0.24246490001678467,
-0.31175804138183594,
0.11461109668016434,
0.06645706295967102,
0.09590215981006622,
-0.3249298930168152,
-0.037804678082466125,
-0.06313295662403107,
-0.1141640692949295,
-0.13751234114170074,
0.040769144892692566,
0.17890490591526031,
0.173854798078537,
-0.21176056563854218,
0.09889119118452072,
-0.3232595920562744,
-0.13898369669914246,
0.18212032318115234,
-0.013671964406967163,
0.29726067185401917,
0.08666962385177612,
-0.31474247574806213,
0.033989645540714264,
0.09149547666311264,
0.11141659319400787,
-0.31456953287124634,
-0.04357510805130005,
0.6045904159545898,
-0.2780342102050781,
0.0373915396630764,
0.06687931716442108,
0.15268933773040771,
0.224725604057312,
-0.3032975196838379,
0.01856951229274273,
0.19658812880516052,
0.2994144558906555,
-0.5185253620147705,
-0.10703390836715698,
0.29679039120674133,
0.06628017872571945,
0.09830470383167267,
0.13253872096538544,
0.3481971025466919,
-0.10992777347564697,
0.060457743704319,
0.1555875539779663,
0.2570684850215912,
0.03218916803598404,
0.07649160921573639,
0.32070299983024597,
0.133640319108963,
0.4247097074985504,
0.5476855039596558,
0.26003605127334595,
-0.21451619267463684,
0.21206946671009064,
-0.12983563542366028,
0.06736460328102112,
-0.16491079330444336,
0.07782775163650513,
0.1581992208957672,
-0.08205239474773407,
0.41360723972320557,
-0.2899631857872009,
0.02198553830385208,
0.09155836701393127,
0.07384853810071945,
-0.18662375211715698,
0.00838861707597971,
-0.2657201290130615,
-0.008679978549480438,
-0.10121899843215942,
-0.2155173122882843,
-0.005287851206958294,
-0.14026965200901031,
-0.11968977004289627,
0.3691362142562866,
-0.06695239245891571,
-0.1004948616027832,
0.007764145731925964,
0.3229694366455078,
0.1216072291135788,
-0.04312857985496521,
-0.07540718466043472,
-0.31504684686660767,
0.27536341547966003,
0.44507020711898804,
-0.16586701571941376,
0.302613765001297,
0.0775822177529335,
-0.32473042607307434,
0.11832877993583679,
0.4213855564594269,
0.04331802576780319,
-0.03412158787250519,
-0.08858814835548401,
-0.06997285038232803,
-0.06398914754390717,
-0.11125890165567398,
0.17668195068836212,
0.11426382511854172,
0.2793758511543274,
0.338753342628479,
0.14626218378543854,
0.13111251592636108,
-0.11499763280153275,
0.10690747201442719,
0.08137727528810501,
0.038742274045944214,
-0.31940406560897827,
-0.011522598564624786,
-0.2955503463745117,
-0.33571094274520874,
-0.16381776332855225,
-0.18328887224197388,
-0.17879265546798706,
-0.031868357211351395,
0.03646708279848099,
0.05274791270494461,
-0.0894773080945015,
0.11783792078495026,
0.15179131925106049,
0.2104404866695404,
0.0346013568341732,
0.3047069311141968,
0.1268383264541626,
-0.31725481152534485,
-0.48117709159851074,
-0.2817997932434082,
0.12295491248369217,
0.1081276535987854,
0.30798956751823425,
0.3075273036956787,
0.176808163523674,
0.3414880335330963,
-0.1108316034078598,
0.06963291764259338,
-0.09459567815065384,
-0.3180931508541107,
0.25598785281181335,
-0.5591749548912048,
-0.0306929312646389,
-0.05467955768108368,
0.0791412815451622,
0.018661152571439743,
0.21189963817596436,
0.27405795454978943,
0.05104353278875351,
-0.04087310656905174,
-0.15718857944011688,
0.044400110840797424,
0.1727590560913086,
-0.08071830868721008,
0.33882153034210205,
0.11467982083559036,
-0.1449425220489502,
-0.07970058917999268,
-0.2890293598175049,
0.19172954559326172,
-0.07371742278337479,
-0.1921636462211609,
0.5833443403244019,
-0.051071349531412125,
0.24127939343452454,
0.28956395387649536,
-0.5179286003112793,
0.12492497265338898,
0.6157610416412354,
0.10820218920707703,
-0.12250225245952606,
-0.4978572130203247,
0.34733688831329346,
0.39714187383651733,
0.14815954864025116,
0.1461155116558075,
0.3298288881778717,
-0.0756804347038269,
0.34282150864601135,
-0.3711795210838318,
-0.32678839564323425,
0.421883225440979,
-0.26666587591171265,
0.019678648561239243,
-0.052999917417764664,
0.3448292315006256,
-0.19163069128990173,
-0.16293245553970337,
-0.6998165249824524,
-0.2657907009124756,
0.352296382188797,
-0.2327045500278473,
-0.12516199052333832,
0.08185078203678131,
-0.05058714374899864,
0.1969894915819168,
-0.019555263221263885,
0.8322911262512207,
0.2824178636074066,
-0.12242861092090607,
0.08987033367156982,
0.11900828778743744
] |
https://github.com/huggingface/datasets/issues/4271 | A typo in docs of datasets.disable_progress_bar | Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | ## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable". | 17 | A typo in docs of datasets.disable_progress_bar
## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable".
Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | [
-0.22290819883346558,
0.11560988426208496,
-0.19579319655895233,
-0.23320059478282928,
0.19839467108249664,
-0.018810249865055084,
0.28558120131492615,
0.20070995390415192,
-0.1886855512857437,
0.378559947013855,
0.23634150624275208,
0.3476189970970154,
0.17510855197906494,
0.32316911220550537,
-0.18070088326931,
0.05159899964928627,
0.06622812151908875,
0.2353440821170807,
-0.11923819780349731,
0.09760555624961853,
-0.21562711894512177,
-0.07873811572790146,
-0.31349244713783264,
0.1610257774591446,
-0.09994761645793915,
-0.09284451603889465,
0.1751972883939743,
-0.049498312175273895,
-0.2045598328113556,
-0.5483783483505249,
0.22110430896282196,
0.3761090040206909,
-0.0865870788693428,
0.29332005977630615,
-0.00009844011219684035,
-0.057040996849536896,
0.5775173902511597,
0.222453773021698,
-0.19673292338848114,
0.08046510815620422,
-0.43077352643013,
-0.30136945843696594,
0.28304818272590637,
-0.14670833945274353,
0.19214090704917908,
-0.24883250892162323,
0.08415830135345459,
-0.24866105616092682,
0.1549878567457199,
-0.05734126642346382,
0.40147316455841064,
0.2081192433834076,
-0.02532968297600746,
-0.2618824541568756,
0.2603500187397003,
-0.1614137887954712,
-0.2056249976158142,
-0.016526013612747192,
0.15982195734977722,
-0.11953200399875641,
-0.34579670429229736,
0.49126553535461426,
0.059971921145915985,
0.19637919962406158,
0.1573542058467865,
-0.14663919806480408,
0.13033762574195862,
-0.27717453241348267,
0.19343805313110352,
-0.038937732577323914,
0.601419985294342,
-0.41541725397109985,
-0.222956582903862,
-0.10941755771636963,
-0.06369027495384216,
-0.12334524840116501,
0.15020112693309784,
-0.013638926669955254,
0.04192158952355385,
0.14715813100337982,
-0.27015161514282227,
-0.30619803071022034,
-0.08272524923086166,
-0.011446811258792877,
-0.10122634470462799,
-0.14485889673233032,
-0.11635001003742218,
-0.006801486015319824,
-0.1413290947675705,
0.15410996973514557,
0.22761578857898712,
0.19750355184078217,
-0.20224303007125854,
-0.11009376496076584,
-0.30849334597587585,
-0.04501999542117119,
0.21449050307273865,
0.2353127896785736,
0.14436188340187073,
0.34071189165115356,
-0.1676325798034668,
0.07521294057369232,
0.021918021142482758,
0.07019435614347458,
0.15964670479297638,
0.045062415301799774,
0.25798335671424866,
-0.20540805160999298,
0.4524989128112793,
-0.054758526384830475,
0.039789970964193344,
0.039935629814863205,
0.35438984632492065,
-0.40410956740379333,
0.20709539949893951,
0.10545828938484192,
0.24791286885738373,
-0.34031227231025696,
-0.34612998366355896,
0.16263751685619354,
0.023788273334503174,
-0.10358748584985733,
0.08719382435083389,
0.13703955709934235,
0.07653013616800308,
-0.11709745973348618,
-0.03126281872391701,
0.07497022300958633,
-0.07143615931272507,
-0.02738621085882187,
-0.3959888517856598,
0.017286648973822594,
-0.38364431262016296,
0.04231873154640198,
0.11065705120563507,
0.05702390894293785,
0.2533673346042633,
0.18575498461723328,
-0.21991582214832306,
0.0625755786895752,
0.18195241689682007,
-0.022124523296952248,
0.07675793766975403,
0.42624661326408386,
-0.004502438008785248,
0.05078131705522537,
0.1107555478811264,
0.1094929575920105,
0.13623422384262085,
0.4180847704410553,
-0.04183974117040634,
-0.27139589190483093,
-0.3101014792919159,
0.3273426294326782,
-0.14310422539710999,
-0.12705707550048828,
-0.07563566416501999,
0.2846860885620117,
0.059021223336458206,
-0.09329143166542053,
0.17527984082698822,
-0.004514586180448532,
-0.3644673526287079,
-0.054544296115636826,
0.17074339091777802,
0.19923953711986542,
-0.46455854177474976,
-0.002277147024869919,
0.021049367263913155,
-0.37015625834465027,
0.22992199659347534,
0.10187071561813354,
-0.2559893727302551,
0.028194434940814972,
-0.15945255756378174,
0.24634908139705658,
0.08113334327936172,
-0.06755359470844269,
-0.43855997920036316,
0.06787123531103134,
-0.10447472333908081,
-0.35026684403419495,
-0.10987811535596848,
-0.11365536600351334,
-0.009698405861854553,
-0.09850351512432098,
-0.17271210253238678,
-0.14338195323944092,
0.05087371543049812,
0.003946436569094658,
-0.22655194997787476,
-0.2833844721317291,
0.07458478212356567,
0.04833999648690224,
0.2092752903699875,
0.31544387340545654,
0.2383388876914978,
-0.15003830194473267,
0.3119239807128906,
0.08040952682495117,
0.1723848283290863,
0.2401205450296402,
0.19440805912017822,
-0.19404913485050201,
0.033945344388484955,
-0.16262459754943848,
-0.07782986015081406,
0.10233128815889359,
-0.020758436992764473,
-0.11408723890781403,
0.12425962090492249,
-0.2556542754173279,
-0.21330422163009644,
-0.10448723286390305,
-0.1440044492483139,
0.06491293758153915,
0.3117051124572754,
-0.039433643221855164,
-0.14699845016002655,
-0.02569185569882393,
-0.2340419739484787,
0.11733052134513855,
-0.4386589527130127,
-0.059164293110370636,
0.163555309176445,
0.1668175905942917,
0.04831019043922424,
-0.17523592710494995,
0.11351452767848969,
0.10769891738891602,
0.09868082404136658,
0.22195906937122345,
-0.23934638500213623,
0.3838447332382202,
0.007542000152170658,
0.3230956792831421,
0.2562795877456665,
0.24597811698913574,
-0.029355211183428764,
-0.10851959884166718,
-0.05672360211610794,
0.15340223908424377,
-0.006178479641675949,
0.15447190403938293,
-0.21950781345367432,
0.004194967448711395,
0.11987191438674927,
0.122764453291893,
0.11534754931926727,
0.01918361894786358,
0.2718316316604614,
-0.043785229325294495,
-0.20710720121860504,
-0.2595624625682831,
0.09564340114593506,
0.13997066020965576,
0.20699481666088104,
-0.18486572802066803,
-0.17891830205917358,
0.16803820431232452,
0.45173245668411255,
0.1967926323413849,
-0.05578044801950455,
0.11697353422641754,
-0.22573760151863098,
-0.14569392800331116,
0.20709417760372162,
0.31066882610321045,
0.39540934562683105,
0.3480888903141022,
0.32412707805633545,
0.07253788411617279,
-0.06724303215742111,
-0.3431687653064728,
0.030323848128318787,
0.20308125019073486,
0.05031932517886162,
0.19520962238311768,
0.23485560715198517,
-0.06982313841581345,
-0.6493470072746277,
-0.10621006786823273,
-0.14163587987422943,
0.288013219833374,
-0.18496906757354736,
-0.11966744810342789,
-0.14827877283096313,
-0.1180233284831047,
0.1744605004787445,
0.10235501080751419,
-0.021668314933776855,
-0.29441073536872864,
0.24111409485340118,
0.3402286767959595,
-0.1540091186761856,
0.3583958148956299,
0.0669749528169632,
0.1544666886329651,
-0.0029257144778966904,
0.4372777044773102,
-0.30277472734451294,
-0.14785660803318024,
0.005910255014896393,
0.23215407133102417,
-0.05792564898729324,
0.002186836674809456,
0.29428672790527344,
-0.03458566963672638,
0.08418683707714081,
-0.4045013189315796,
-0.16870242357254028,
0.1775902658700943,
-0.04225517064332962,
-0.02551043964922428,
0.07911597192287445,
0.16761326789855957,
-0.14120148122310638,
0.3309120237827301,
0.03621537238359451,
-0.205503910779953,
-0.15715914964675903,
-0.15586964786052704,
-0.18783803284168243,
-0.023664571344852448,
-0.2994591295719147,
-0.09557271748781204,
-0.0734071210026741,
-0.39052826166152954,
0.05124334990978241,
-0.07120982557535172,
-0.056776441633701324,
0.24475985765457153,
-0.08928103744983673,
0.17594848573207855,
0.13136474788188934,
-0.0752425268292427,
-0.3427344262599945,
-0.49180904030799866,
0.07089388370513916,
-0.21911610662937164,
-0.399593710899353,
0.10599803924560547,
0.17484340071678162,
0.0068282149732112885,
-0.03870892524719238,
-0.42719340324401855,
-0.12497061491012573,
-0.4003724157810211,
-0.005422480404376984,
-0.24459615349769592,
-0.0012617651373147964,
0.3866793215274811,
0.023280924186110497,
-0.3557697832584381,
-0.21999827027320862,
-0.31496965885162354,
0.1457192599773407,
0.01853705756366253,
0.025449588894844055,
-0.31643766164779663,
0.026676664128899574,
0.057299111038446426,
0.3319735527038574,
0.13143904507160187,
0.028877107426524162,
0.28640449047088623,
-0.044711120426654816,
0.21109655499458313,
-0.1811901032924652,
-0.14639702439308167,
0.10718804597854614,
-0.09833692014217377,
0.007291045039892197,
0.19931620359420776,
-0.001683143898844719,
-0.2961041331291199,
-0.07059062272310257,
-0.012136563658714294,
-0.04340607672929764,
-0.1468663364648819,
-0.40335309505462646,
-0.17861469089984894,
0.17366644740104675,
0.22202320396900177,
0.21573379635810852,
-0.120216965675354,
0.06438031792640686,
-0.016624674201011658,
0.13687624037265778,
0.2725927233695984,
-0.2774915397167206,
-0.29351088404655457,
0.12515093386173248,
-0.42727982997894287,
0.066910520195961,
-0.06665492802858353,
0.052924346178770065,
-0.11388145387172699,
-0.045538950711488724,
0.30159807205200195,
0.013238128274679184,
0.5144579410552979,
-0.20615459978580475,
0.07519383728504181,
0.14703121781349182,
0.1833646595478058,
-0.12561725080013275,
-0.16013728082180023,
-0.13915178179740906,
0.42054420709609985,
0.17225170135498047,
0.2091965675354004,
0.11869064718484879,
-0.1667543202638626,
0.17391866445541382,
-0.11857201904058456,
0.0033989250659942627,
-0.4570697844028473,
-0.36586323380470276,
-0.14378982782363892,
-0.26505669951438904,
0.22203385829925537,
0.06961521506309509,
0.009297041222453117,
-0.31156593561172485,
-0.3361247181892395,
-0.03561411052942276,
-0.16264009475708008,
-0.21782611310482025,
0.14677229523658752,
0.15174144506454468,
0.03703160956501961,
0.11944924294948578,
0.07742494344711304,
0.2860686779022217,
0.22202536463737488,
0.054684996604919434,
0.2460038810968399,
-0.09420381486415863,
0.3663346767425537,
-0.3723059296607971,
0.055349718779325485,
0.27752581238746643,
-0.2776344418525696,
0.3160749673843384,
-0.1080191433429718,
0.2467014640569687,
-0.12872712314128876,
-0.20209218561649323,
0.34268414974212646,
-0.03044343739748001,
-0.11226638406515121,
-0.12963728606700897,
0.2883542776107788,
0.007510032504796982,
-0.16235801577568054,
0.20254740118980408,
0.024932026863098145,
-0.08344143629074097,
-0.2756839990615845,
-0.037532173097133636,
0.7426770329475403,
-0.033421069383621216,
-0.1380348950624466,
0.13582217693328857,
-0.22830148041248322,
0.3219832479953766,
0.11197471618652344,
0.16420762240886688,
-0.43151065707206726,
-0.33732378482818604,
-0.038050808012485504,
-0.05932334437966347,
0.23917236924171448,
-0.16029776632785797,
-0.19082967936992645,
0.08650299161672592,
-0.2639378607273102,
0.1703820675611496,
-0.06540119647979736,
-0.026587486267089844,
-0.06515660136938095,
-0.13065262138843536,
-0.14154885709285736,
0.3012910485267639,
0.07155091315507889,
0.19333377480506897,
-0.09223044663667679,
0.11688851565122604,
0.20738551020622253,
0.10618524253368378,
-0.32461076974868774,
0.016440093517303467,
0.21500460803508759,
0.08174450695514679,
-0.08718588948249817,
-0.38320934772491455,
0.11614996194839478,
0.0054055675864219666,
0.6305172443389893,
-0.07230393588542938,
-0.3233569264411926,
0.21857552230358124,
0.057213589549064636,
0.1549282670021057,
-0.011060194112360477,
0.13516736030578613,
0.17203497886657715,
-0.32761815190315247,
-0.3141825199127197,
0.04166484996676445,
0.024580247700214386,
-0.29005563259124756,
-0.14109306037425995,
0.10097401589155197,
0.17135164141654968,
-0.10223186016082764,
0.15170422196388245,
0.09416447579860687,
0.2594318687915802,
-0.38056957721710205,
0.3122287690639496,
0.2116456925868988,
-0.001375882769934833,
0.30588477849960327,
-0.04338483139872551,
-0.2855195999145508,
-0.1058218777179718,
0.3746669888496399,
-0.04719161242246628,
0.08850491046905518,
0.270576536655426,
0.029798287898302078,
-0.33887094259262085,
-0.3901633322238922,
0.025991290807724,
0.2903997302055359,
-0.21817442774772644,
0.0928385853767395,
0.03650497645139694,
0.21903185546398163,
0.07736002653837204,
0.16536307334899902,
-0.17085696756839752,
0.19034233689308167,
-0.18446728587150574,
-0.2126486748456955,
-0.38215917348861694,
-0.07560564577579498,
-0.3617582321166992,
0.16747967898845673,
-0.1170220896601677,
0.24228279292583466,
0.1642131209373474,
-0.20955389738082886,
-0.4828254282474518,
0.10439126193523407,
-0.19167400896549225,
0.022348247468471527,
-0.06161502003669739,
-0.03953058272600174,
0.010797584429383278,
-0.10949347913265228,
0.15963858366012573,
-0.01782071962952614,
-0.4208228886127472,
-0.3760546147823334,
-0.050563253462314606,
0.05426424741744995,
-0.055359452962875366,
-0.09167585521936417,
0.07084940373897552,
-0.012427653186023235,
-0.3808491826057434,
0.15952160954475403,
0.14950264990329742,
0.1893191933631897,
0.12647321820259094,
0.3020824193954468,
0.03827677667140961,
0.08951778709888458,
0.012457367032766342,
-0.17263811826705933,
0.14466765522956848,
0.05769563466310501,
-0.053925611078739166,
0.12441636621952057,
-0.006587285548448563,
-0.027644913643598557,
0.22754722833633423,
0.13343730568885803,
0.08456461876630783,
0.5008337497711182,
-0.07541695982217789,
-0.3013421297073364,
0.12360100448131561,
-0.07679875940084457,
0.5261979103088379,
0.07863370329141617,
-0.14876693487167358,
-0.16117551922798157,
0.13985544443130493,
0.4366425573825836,
-0.3916788399219513,
0.026351530104875565,
0.37075698375701904,
-0.009995429776608944,
0.18428027629852295,
-0.0014266520738601685,
0.13255201280117035,
0.13035014271736145,
0.08710740506649017,
0.3760235011577606,
0.11322591453790665,
-0.3436233401298523,
-0.039817795157432556,
0.2131977528333664,
-0.07414836436510086,
0.023858491331338882,
0.35037848353385925,
0.3093511462211609,
-0.027631931006908417,
0.5311971306800842,
0.12515337765216827,
0.4083537459373474,
0.34861862659454346,
0.3187233507633209,
-0.20996370911598206,
-0.17978960275650024,
-0.017430145293474197,
0.20282314717769623,
-0.12878523766994476,
-0.3652982711791992,
0.07426254451274872,
0.18211610615253448,
-0.08463147282600403,
-0.21869561076164246,
-0.0993850976228714,
0.041551366448402405,
-0.15984714031219482,
-0.17650386691093445,
-0.3403104841709137,
-0.1716901957988739,
0.08378362655639648,
0.04256350174546242,
-0.014187812805175781,
0.3499748110771179,
0.29284942150115967,
-0.18148358166217804,
0.05097644776105881,
-0.35451337695121765,
0.07944084703922272,
0.12340383976697922,
0.23864704370498657,
0.055332887917757034,
-0.10030915588140488,
-0.19324906170368195,
0.12643387913703918,
0.1035623848438263,
0.379452109336853,
0.10347556322813034,
0.16060401499271393,
-0.011744504794478416,
-0.2521679699420929,
0.06222713366150856,
-0.278515487909317,
-0.1765381395816803,
0.1747400164604187,
-0.0017379596829414368,
0.04840734601020813,
0.21791520714759827,
0.25993794202804565,
-0.2537437379360199,
0.45774614810943604,
0.14524434506893158,
0.11619389057159424,
-0.5175255537033081,
0.23946067690849304,
0.1341308057308197,
-0.2854539453983307,
0.04188790172338486,
-0.0961223915219307,
-0.1465478241443634,
-0.01574818417429924,
0.4080807864665985,
-0.19233883917331696,
0.0866931900382042,
-0.2239239364862442,
0.1954144835472107,
-0.1504463106393814,
0.2595668137073517,
0.16375668346881866,
0.33103084564208984,
-0.10815185308456421,
-0.3316085636615753,
-0.5028625130653381,
0.17780792713165283,
0.17434480786323547,
0.19253817200660706,
-0.053607240319252014,
0.037888675928115845,
-0.317045658826828,
0.3019823431968689,
0.41046422719955444,
-0.10937272012233734,
0.020970989018678665,
-0.20245561003684998,
-0.21623346209526062,
0.11667044460773468,
0.06777799129486084,
-0.012189103290438652,
-0.0920969620347023,
-0.19044354557991028,
0.18126575648784637,
-0.002027551643550396,
0.20228224992752075,
0.04104989767074585,
0.03287684917449951,
0.08952392637729645,
-0.09685118496417999,
0.49128153920173645,
0.13406965136528015,
0.10447940975427628,
-0.24037620425224304,
0.012431589886546135,
-0.1672590672969818,
-0.24889115989208221,
-0.4418729245662689,
0.1446118950843811,
-0.08211268484592438,
0.3392777442932129,
-0.08533235639333725,
0.0772201418876648,
0.006714953575283289,
0.4047267436981201,
0.18070831894874573,
0.3794817328453064,
-0.2791652977466583,
0.30833402276039124,
0.18318411707878113,
0.17536957561969757,
-0.2353348433971405,
-0.2150653898715973,
0.09856626391410828,
0.31129464507102966,
-0.29426783323287964,
-0.454636812210083,
0.5019863843917847,
-0.215287446975708,
-0.37237080931663513,
-0.07641690224409103,
0.2796092629432678,
0.20183880627155304,
-0.34451499581336975,
-0.32531994581222534,
0.007864594459533691,
0.1736469566822052,
-0.023992404341697693,
-0.24829404056072235,
0.40069642663002014,
-0.24154800176620483,
0.14525440335273743,
0.023825999349355698,
0.27988576889038086,
0.3750072419643402,
0.047112882137298584,
-0.07585267722606659,
-0.23731069266796112
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɜːd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wûrd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɝd/ | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 38 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɜːd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wûrd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɝd/ | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 100 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 26 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 18 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 32 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 88 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | [
-0.2923785448074341,
-0.041403546929359436,
-0.1572301685810089,
0.2814290523529053,
0.0499909445643425,
-0.028551850467920303,
0.16257955133914948,
0.545356035232544,
0.28651800751686096,
0.07778171449899673,
-0.16878914833068848,
0.2441956251859665,
-0.18494205176830292,
-0.04901827126741409,
-0.042837824672460556,
0.0211600661277771,
-0.05280108004808426,
-0.16825085878372192,
-0.21537241339683533,
-0.053267136216163635,
-0.23708131909370422,
0.1817009449005127,
-0.10967811942100525,
-0.18582405149936676,
0.20694103837013245,
-0.11403202265501022,
0.17602431774139404,
0.2468896210193634,
-0.3102564811706543,
-0.35323983430862427,
-0.030722560361027718,
-0.06134156510233879,
0.14081594347953796,
0.28845396637916565,
-0.0001048582125804387,
-0.03333163633942604,
0.42383724451065063,
-0.21577408909797668,
-0.3314879536628723,
-0.2955610156059265,
-0.3213742971420288,
-0.2894916832447052,
-0.026883885264396667,
-0.3024510145187378,
0.2805395722389221,
-0.0974685549736023,
-0.18210814893245697,
-0.205216184258461,
0.21409821510314941,
0.3210103213787079,
0.3282191753387451,
0.13499195873737335,
0.2758905291557312,
-0.12219124287366867,
0.3785415589809418,
-0.04135742038488388,
0.022433215752243996,
0.43319031596183777,
0.311367005109787,
0.1489267796278,
-0.05188252776861191,
0.3362361192703247,
-0.14884696900844574,
0.1204843521118164,
0.1093100756406784,
0.010718900710344315,
0.02706235647201538,
-0.2118668556213379,
0.2079150378704071,
0.2775227427482605,
0.4446953237056732,
-0.24168458580970764,
-0.43177950382232666,
-0.3021028935909271,
-0.0022347294725477695,
-0.3895505964756012,
0.21961495280265808,
0.41271650791168213,
-0.19989953935146332,
0.10162792354822159,
-0.0287260003387928,
-0.02847300097346306,
-0.039980195462703705,
0.24928995966911316,
-0.05669407546520233,
0.18955886363983154,
0.05228989198803902,
0.04407105594873428,
0.10136358439922333,
-0.2609741687774658,
0.1998424530029297,
-0.20820191502571106,
-0.19803644716739655,
0.06473476439714432,
-0.2194782942533493,
-0.19523358345031738,
0.10803820192813873,
0.19818933308124542,
0.3190004527568817,
0.15784676373004913,
-0.15188899636268616,
0.01153232716023922,
0.13610143959522247,
0.025356518104672432,
0.2678481638431549,
0.08251023292541504,
-0.4023614823818207,
0.3246602416038513,
0.26979291439056396,
0.4571753740310669,
0.16384901106357574,
0.21683844923973083,
0.1461557298898697,
-0.28150469064712524,
0.06956362724304199,
0.11311081051826477,
0.17033231258392334,
-0.2363537698984146,
-0.4247172176837921,
0.13165880739688873,
-0.2067680060863495,
-0.04320215433835983,
0.10492877662181854,
0.35662877559661865,
-0.15815967321395874,
-0.00428970530629158,
0.12224783003330231,
0.039548154920339584,
-0.14035196602344513,
-0.163093701004982,
-0.16128280758857727,
0.3140997886657715,
0.0655127465724945,
-0.25267526507377625,
0.3126744031906128,
-0.16972079873085022,
0.38886696100234985,
-0.08082637935876846,
-0.024546004831790924,
-0.19689728319644928,
0.17513272166252136,
-0.11825832724571228,
0.08169195055961609,
0.43360286951065063,
0.04492912068963051,
0.04132421314716339,
0.15522843599319458,
-0.17079442739486694,
-0.10182130336761475,
0.17245282232761383,
-0.2603505849838257,
-0.183922678232193,
-0.14280535280704498,
0.33759960532188416,
-0.13247323036193848,
0.0025364719331264496,
-0.23546922206878662,
-0.09458363056182861,
0.16204197704792023,
-0.02501242607831955,
0.03444252163171768,
-0.1668991595506668,
0.07620272040367126,
-0.16735658049583435,
0.11246400326490402,
0.45947080850601196,
-0.3991844952106476,
0.0404924675822258,
-0.337788850069046,
-0.17002370953559875,
0.11895563453435898,
0.16104423999786377,
-0.36459508538246155,
0.3503321409225464,
-0.24743202328681946,
-0.02560994029045105,
0.51023930311203,
-0.39399978518486023,
-0.7960934042930603,
0.22914788126945496,
-0.31735455989837646,
0.177420973777771,
-0.05896652489900589,
0.15133501589298248,
0.26997995376586914,
-0.003805367276072502,
0.1388985812664032,
0.07703619450330734,
0.03562905639410019,
0.02643066830933094,
-0.3412954807281494,
-0.07258253544569016,
0.2134069949388504,
0.15278509259223938,
0.1383558213710785,
-0.06041046231985092,
0.20977632701396942,
0.2546502649784088,
0.4838971793651581,
0.08620291203260422,
0.022373907268047333,
0.18035566806793213,
0.2710554897785187,
-0.06430906057357788,
-0.028673451393842697,
-0.07478823512792587,
-0.330537885427475,
0.17436638474464417,
-0.3938857614994049,
-0.05322670936584473,
-0.5412219166755676,
-0.003851410001516342,
-0.4744914770126343,
0.062113650143146515,
-0.12188754975795746,
-0.16654381155967712,
0.23349449038505554,
0.15619321167469025,
0.051501739770174026,
-0.05454205721616745,
0.0063396356999874115,
0.4334278106689453,
-0.09732278436422348,
0.05993190407752991,
-0.2802319824695587,
0.19947278499603271,
-0.1803949922323227,
-0.043506260961294174,
0.09274198114871979,
-0.19000324606895447,
0.22612333297729492,
-0.12496589869260788,
-0.2060064673423767,
0.3546816110610962,
0.2581912577152252,
0.026221729815006256,
-0.12454269081354141,
-0.039717212319374084,
0.21343863010406494,
-0.18121318519115448,
0.1068691685795784,
0.23666490614414215,
0.32652416825294495,
0.1463148295879364,
-0.37871620059013367,
0.29511988162994385,
-0.09924072027206421,
-0.07881256192922592,
0.060969166457653046,
-0.08102843165397644,
0.28460174798965454,
-0.06520354747772217,
-0.031954891979694366,
-0.23039087653160095,
0.33366504311561584,
0.3264438211917877,
-0.08497583866119385,
-0.13839200139045715,
-0.05072303116321564,
0.09558334201574326,
0.5174320340156555,
0.017486564815044403,
0.20393016934394836,
0.13887931406497955,
0.0767974704504013,
-0.09633993357419968,
0.06870037317276001,
0.408471018075943,
0.5065783262252808,
0.21156209707260132,
-0.0887182354927063,
0.03731425851583481,
0.10058582574129105,
-0.20708642899990082,
0.2609805762767792,
0.0298948734998703,
0.027534019201993942,
0.23425832390785217,
0.23642411828041077,
-0.014486475847661495,
-0.19838553667068481,
-0.3359374403953552,
0.06401721388101578,
0.37884053587913513,
-0.1485496163368225,
-0.10370250791311264,
-0.3071557283401489,
-0.006581146270036697,
-0.19265952706336975,
0.022493410855531693,
-0.05463052913546562,
-0.34868282079696655,
-0.022169075906276703,
0.308495432138443,
-0.1978917121887207,
0.06632905453443527,
-0.27897191047668457,
-0.06924755871295929,
0.2657969295978546,
-0.1872234344482422,
0.08097918331623077,
0.02637573890388012,
-0.14233219623565674,
0.14070576429367065,
0.3288150727748871,
0.05199259892106056,
0.3806818723678589,
0.049975261092185974,
-0.18718740344047546,
-0.4483879506587982,
-0.35149791836738586,
-0.042016901075839996,
-0.06957758218050003,
0.27819180488586426,
0.3377686142921448,
0.280673623085022,
0.07782384753227234,
-0.09017139673233032,
-0.03135760873556137,
0.1613830178976059,
-0.20405811071395874,
-0.05404911935329437,
0.04954776540398598,
-0.0426512286067009,
-0.21270059049129486,
-0.44190099835395813,
-0.39720824360847473,
-0.48707032203674316,
-0.10893584787845612,
0.021360192447900772,
0.23132380843162537,
0.028614874929189682,
0.06578712910413742,
0.1142568439245224,
0.1020718365907669,
0.11039778590202332,
-0.17501677572727203,
-0.25331911444664,
0.3172066807746887,
-0.35649070143699646,
-0.477579265832901,
0.05099082365632057,
-0.10093450546264648,
0.02533789724111557,
0.09239538013935089,
-0.5353687405586243,
0.128605917096138,
-0.02623106725513935,
0.10332980751991272,
-0.04804486036300659,
-0.12538154423236847,
0.14243020117282867,
0.02013785019516945,
-0.09262211620807648,
-0.26797962188720703,
-0.02128756418824196,
-0.139828622341156,
-0.21928390860557556,
0.39466238021850586,
-0.15724733471870422,
0.31647273898124695,
0.07660776376724243,
0.3585456609725952,
0.2280852347612381,
0.017938237637281418,
0.3332448899745941,
0.28915393352508545,
0.22085854411125183,
-0.08624846488237381,
-0.3794330656528473,
-0.03274394944310188,
0.11292178928852081,
0.04067232459783554,
0.24874915182590485,
-0.2000153660774231,
-0.42751187086105347,
-0.18043853342533112,
0.05770343169569969,
-0.35848578810691833,
-0.24403953552246094,
-0.0020133312791585922,
0.16966739296913147,
0.013136163353919983,
0.1596021056175232,
0.11763522773981094,
-0.1616302877664566,
0.02678469568490982,
-0.047141920775175095,
0.15505242347717285,
-0.06660757213830948,
0.12338847666978836,
-0.08237329870462418,
0.04427611455321312,
-0.17722517251968384,
0.13644854724407196,
0.10747998207807541,
0.40741103887557983,
0.07303734123706818,
0.03518466651439667,
-0.07738615572452545,
-0.3007650375366211,
0.5904008746147156,
-0.01122569851577282,
0.311517596244812,
-0.06563818454742432,
-0.02289901301264763,
-0.2910361886024475,
-0.07352092862129211,
-0.3277398943901062,
-0.06197263300418854,
0.34221166372299194,
0.22505012154579163,
-0.38328656554222107,
0.13267990946769714,
-0.03955502063035965,
0.017154963687062263,
-0.04862403869628906,
-0.19538453221321106,
-0.11428017914295197,
-0.571102499961853,
-0.4278566539287567,
-0.02541608363389969,
0.09934075176715851,
0.3440416157245636,
-0.18900293111801147,
-0.10461871325969696,
0.10348653793334961,
0.01295236125588417,
0.07712624222040176,
0.018063709139823914,
0.29493507742881775,
0.09690995514392853,
0.3318150043487549,
0.011120729148387909,
0.41932010650634766,
0.30447328090667725,
0.6435573101043701,
-0.015318576246500015,
-0.1343490481376648,
0.1597364842891693,
-0.020629040896892548,
-0.34050050377845764,
0.2576614320278168,
-0.1682245433330536,
0.0227816104888916,
0.1810477375984192,
0.11716251075267792,
0.158318892121315,
0.21471808850765228,
0.06385650485754013,
0.08437087386846542,
-0.37095579504966736,
-0.141998291015625,
0.4147662818431854,
-0.012218019925057888,
0.012635938823223114,
0.31763628125190735,
-0.10659559071063995,
-0.2798045873641968,
-0.03693548962473869,
0.10257906466722488,
0.7800723314285278,
0.1858661025762558,
-0.034606676548719406,
0.282118558883667,
-0.13296130299568176,
0.341800719499588,
-0.0415530800819397,
0.24863924086093903,
-0.28297027945518494,
-0.1942824125289917,
-0.09004247188568115,
-0.23665045201778412,
0.13830658793449402,
-0.09448248147964478,
-0.2990509271621704,
0.1529107242822647,
-0.12150530517101288,
-0.071225106716156,
-0.05936192721128464,
0.49987637996673584,
-0.17537425458431244,
-0.15680474042892456,
-0.32712316513061523,
0.2737341821193695,
-0.09683740139007568,
0.2338029444217682,
-0.20792919397354126,
-0.21790839731693268,
-0.28948572278022766,
-0.39074110984802246,
-0.3588908314704895,
0.11203015595674515,
-0.13200153410434723,
0.2717316150665283,
-0.07103174924850464,
-0.09115293622016907,
0.14664007723331451,
0.019914783537387848,
-0.07888416945934296,
0.3375187814235687,
-0.14085951447486877,
0.1794108748435974,
-0.09324228018522263,
-0.08565571159124374,
0.15788112580776215,
0.15664434432983398,
0.20432116091251373,
-0.2265358865261078,
-0.13992176949977875,
0.007269259542226791,
-0.029890041798353195,
-0.1234370768070221,
0.07833375036716461,
0.09073290228843689,
-0.01676994562149048,
-0.2758491635322571,
-0.27245479822158813,
-0.060994505882263184,
-0.23195402324199677,
-0.2816798985004425,
0.20175203680992126,
0.17624032497406006,
-0.16823841631412506,
0.1158103495836258,
0.2009875476360321,
-0.3794732093811035,
-0.28833872079849243,
0.5457724928855896,
-0.04043176770210266,
-0.06736768037080765,
0.39091092348098755,
0.09005893766880035,
-0.2963806986808777,
-0.310783714056015,
-0.037955090403556824,
-0.26150938868522644,
-0.21313384175300598,
0.25088241696357727,
-0.21040813624858856,
0.12902067601680756,
-0.0178530253469944,
0.12058345973491669,
0.12689906358718872,
0.1804380714893341,
0.10884721577167511,
-0.6116679310798645,
-0.17526528239250183,
0.20967890322208405,
-0.17572954297065735,
0.2425876259803772,
-0.26359355449676514,
0.008667033165693283,
-0.13110819458961487,
0.013107525184750557,
-0.4092979431152344,
0.11191446334123611,
-0.22261929512023926,
0.05585688725113869,
0.013702046126127243,
-0.02350599318742752,
0.08040930330753326,
0.22769072651863098,
0.2788037657737732,
0.3992195129394531,
-0.18748965859413147,
-0.31541261076927185,
-0.11939901113510132,
0.11755499988794327,
-0.031357306987047195,
-0.25167784094810486,
0.07362260669469833,
-0.3280540108680725,
-0.11593496799468994,
0.14962846040725708,
0.1397647261619568,
0.05216009169816971,
-0.019696690142154694,
-0.17783306539058685,
0.41269251704216003,
-0.158147394657135,
-0.05522511526942253,
0.15885841846466064,
-0.02192298322916031,
-0.024020850658416748,
-0.049936529248952866,
0.21508930623531342,
0.04442070424556732,
-0.02629687264561653,
-0.37478700280189514,
-0.0220181941986084,
0.09990158677101135,
0.19122612476348877,
0.4644663333892822,
-0.13491016626358032,
0.0058610402047634125,
0.2534859776496887,
0.18394775688648224,
0.3492342531681061,
-0.18223580718040466,
-0.0716564878821373,
0.13425728678703308,
0.3312247395515442,
-0.4762812554836273,
-0.020640719681978226,
0.05479545518755913,
0.14873181283473969,
0.08259662985801697,
0.2200610339641571,
-0.08534006029367447,
-0.05474691838026047,
0.01489478349685669,
0.10330773890018463,
0.5140697956085205,
0.039964888244867325,
0.1417970508337021,
0.3999735116958618,
-0.2559893727302551,
-0.06303846836090088,
0.20880301296710968,
0.04335177317261696,
0.19734157621860504,
0.3940804600715637,
-0.17141997814178467,
0.33113735914230347,
-0.16259977221488953,
-0.025640662759542465,
-0.043791405856609344,
-0.4208478331565857,
0.031086120754480362,
0.3115212917327881,
-0.016123168170452118,
0.2678171992301941,
0.04467850551009178,
-0.14457938075065613,
0.10714339464902878,
0.03901024907827377,
-0.17587733268737793,
0.3037647008895874,
-0.18623855710029602,
-0.03473331779241562,
-0.12792013585567474,
-0.3328615427017212,
-0.12312369048595428,
0.12049813568592072,
0.07758492231369019,
-0.2718222737312317,
0.1905571073293686,
0.3381194472312927,
-0.20071585476398468,
-0.5028097629547119,
-0.10382426530122757,
0.004649195820093155,
0.04736971855163574,
-0.38748297095298767,
0.10317211598157883,
0.43175894021987915,
0.05664655193686485,
0.0653752014040947,
0.08411981165409088,
0.37489092350006104,
0.5216264724731445,
0.06213126331567764,
-0.16112537682056427,
0.039663054049015045,
-0.04100240767002106,
-0.09686847031116486,
0.3038143813610077,
0.10332528501749039,
0.08061197400093079,
0.3594599664211273,
0.24206310510635376,
-0.23650501668453217,
0.17379362881183624,
0.13688251376152039,
0.03942655771970749,
-0.08726736903190613,
0.2431357502937317,
-0.08798598498106003,
0.23015770316123962,
-0.3438950479030609,
-0.06294486671686172,
-0.38411077857017517,
-0.2050081491470337,
0.19444197416305542,
0.05380528047680855,
0.28030306100845337,
-0.14834436774253845,
0.10350725799798965,
-0.19397252798080444,
0.3162059485912323,
0.26609864830970764,
0.3846205174922943,
-0.213784322142601,
-0.04690593108534813,
-0.5024276971817017,
0.17247295379638672,
-0.3469964861869812,
-0.12957768142223358,
-0.14558802545070648,
0.22403065860271454,
-0.11839956790208817,
0.20479916036128998,
0.07481686770915985,
0.10877786576747894,
-0.01993950828909874,
0.18254001438617706,
-0.3406279981136322,
-0.23789961636066437,
0.1222531646490097,
-0.006202977150678635,
0.10469554364681244,
-0.4333772361278534,
0.1686771959066391,
-0.4030477702617645,
0.20821115374565125,
-0.3700031638145447,
-0.13819462060928345,
-0.04054044932126999,
0.2870666980743408,
0.3991276025772095,
0.2666448652744293,
0.4219020903110504,
-0.17218035459518433,
-0.46238216757774353,
-0.5068791508674622,
-0.21783173084259033,
-0.12177998572587967,
0.19865015149116516,
0.2184196412563324,
0.6369154453277588,
0.02968878112733364,
-0.07460390031337738,
-0.10336130112409592,
0.4448700547218323,
-0.1308683156967163,
-0.05804584547877312,
-0.19728370010852814,
-0.14362050592899323,
-0.10961572080850601,
0.06565576791763306,
-0.0511649027466774,
0.14834433794021606,
-0.02193724364042282,
0.3588075339794159,
-0.3942275047302246,
-0.38564664125442505,
0.6613801121711731,
-0.38818010687828064,
-0.15961907804012299,
-0.10090485215187073,
0.2502729892730713,
-0.12183154374361038,
-0.1491239070892334,
-0.4552607536315918,
0.2276090681552887,
0.42876291275024414,
-0.012890860438346863,
-0.1326039433479309,
0.15058854222297668,
-0.07818339765071869,
0.13073547184467316,
-0.038689855486154556,
0.43133604526519775,
0.06741666793823242,
-0.22081582248210907,
0.09336760640144348,
-0.1452368199825287
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.