Skip to content

Using Google Drive as a data source

Isaac Schifferer edited this page May 23, 2024 · 1 revision

When running silnlp on data held in a Google drive then there is an additional complication caused by the space in the path. The Google drive top level folders are "My Drive", "Other Computers" and "Shared drives" and they all contain a space. You can Download Google Drive for desktop and install it.

Then map the Google Drive to G:\ and the data is in G:\Shared Drives\Gutenberg Unfortunately this won't work because of the space in the path:

set SIL_NLP_DATA_PATH=G:\Shared drives\Gutenberg

A workaround is to create a directory link then set SIL_NLP_DATA_PATH to the directory link.

To create the directory link open a command prompt and use this command:

mklink /D C:\Gutenberg "G:\Shared drives\Gutenberg"

This should create the link in C:\ drive and it will look like a folder named "Gutenberg", but it should act like a shortcut to "G:\Shared drives\Gutenberg"

Then this works as the setting for the environment variable:

set SIL_NLP_DATA_PATH=C:\Gutenberg