Open DataStrategist opened 2 years ago
Hi all! I'm Amit from R4ds :)
Anyway, was giving this repo a go, and trying to run the example on the readme, and hitting this bug:
> emotion <- hf_load_dataset( "emotion", + split = "test", + as_tibble = TRUE, + label_name = "int2str" + ) Using custom data configuration default Reusing dataset emotion (C:\Users\mexin\.cache\huggingface\datasets\emotion\default\0.0.0\348f63ca8e27b3713b6c04d723efe6d824a56fb3d1449794716c0f0296072705) 100%|██████████| 3/3 [00:00<00:00, 600.13it/s] Using custom data configuration default Reusing dataset emotion (C:\Users\mexin\.cache\huggingface\datasets\emotion\default\0.0.0\348f63ca8e27b3713b6c04d723efe6d824a56fb3d1449794716c0f0296072705) Error in as.integer(hf_data$label) : cannot coerce type 'environment' to vector of type 'integer'
Chased the error to here: https://github.com/farach/huggingfaceR/blob/ccd66f19ca731d2d9dac4f84f0cb46e40b94d780/R/datasets.R#L65. However, restarting session cleared it right up. Maybe first-time use pains? Will continue to monitor it.
Hey Amit, sorry we missed this - we've all had a pretty busy summer and are just now getting a bit of time to push the first release over the line. Have you been able to recreate the error?
Hi all! I'm Amit from R4ds :)
Anyway, was giving this repo a go, and trying to run the example on the readme, and hitting this bug:
Chased the error to here: https://github.com/farach/huggingfaceR/blob/ccd66f19ca731d2d9dac4f84f0cb46e40b94d780/R/datasets.R#L65. However, restarting session cleared it right up. Maybe first-time use pains? Will continue to monitor it.