diff --git a/examples/api/pom.xml b/examples/api/pom.xml index c2002ae..9d366a3 100644 --- a/examples/api/pom.xml +++ b/examples/api/pom.xml @@ -12,7 +12,7 @@ com.github.vinhkhuc jfasttext - 0.4 + 0.5 - \ No newline at end of file + diff --git a/examples/cmd/jfasttext-classification-example.sh b/examples/cmd/jfasttext-classification-example.sh index ccb0350..7f8f10a 100755 --- a/examples/cmd/jfasttext-classification-example.sh +++ b/examples/cmd/jfasttext-classification-example.sh @@ -29,7 +29,9 @@ mkdir -p "${DATADIR}" if [ ! -f "${DATADIR}/dbpedia.train" ] then - wget -c "https://github.com/le-scientifique/torchDatasets/raw/master/dbpedia_csv.tar.gz" -O "${DATADIR}/dbpedia_csv.tar.gz" + CONFIRM=$(curl -sc /tmp/gcookie "https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k" | grep -o 'confirm=[^&]*' | sed 's/confirm=//') + wget --load-cookies /tmp/gcookie "https://drive.google.com/uc?export=download&confirm=$CONFIRM&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k" -O "${DATADIR}/dbpedia_csv.tar.gz" + rm -rf /tmp/gcookie tar -xzvf "${DATADIR}/dbpedia_csv.tar.gz" -C "${DATADIR}" cat "${DATADIR}/dbpedia_csv/train.csv" | normalize_text > "${DATADIR}/dbpedia.train" cat "${DATADIR}/dbpedia_csv/test.csv" | normalize_text > "${DATADIR}/dbpedia.test"