FileNotFoundError: [Errno 2] No such file or directory: ‘/content/drive/My Drive/NLP_C4_W3_Colabs/data/data.txt’
Why is this?
How I do load my own data to colabs and allow it to be read by the python code? I tried creating a folder named “data” in my google drive “colab notebooks” folder but it still can’t find the data file in data/data.txt
From the error you are getting, it seems like you didn’t create a short cut to NLP_C4_W3_Colabs folder which has all the relevant (data) files needed to run the lab.
Hi Mubisi.
Here I am trying to following the instruction and add NLP_C4_W3_colabs fold, but I don’t see the option of “add shortcut” in my dropdown menu. do you know where it went wrong?
For me the confusing part is how to figure out the relative path in google drive when trying to mount. Here drive.mount(‘/content/drive/’, force_remount=True). how to figure out what is the root path of “/” in my google drive?
for example, here is the fold of “my coleb” in my google drive. how do I mount the “data” folder so that coleb can read files in it?