From 7fe2c86dbec1204d61c548cd7e0cb82f12147e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafi=C5=84ski?= Date: Sun, 27 Mar 2022 23:00:49 +0200 Subject: [PATCH] Zaktualizuj 'download.sh' --- download.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/download.sh b/download.sh index 32b363c..f189b54 100644 --- a/download.sh +++ b/download.sh @@ -5,9 +5,9 @@ dataset_operation() { len2=$(($len1/10)) len3=$(($len2*2)) len4=$(($len3+1)) - head -n $len2 imdb_top_1000.csv.shuf > imdb_top_1000.csv.test - head -n $len3 imdb_top_1000.csv.shuf | tail -n $len2 > imdb_top_1000.csv.dev - tail -n +$len4 imdb_top_1000.csv.shuf > imdb_top_1000.csv.train + head -n $len2 imdb_top_1000.csv.shuf > imdb_top_1000_test.csv + head -n $len3 imdb_top_1000.csv.shuf | tail -n $len2 > imdb_top_1000_dev.csv + tail -n +$len4 imdb_top_1000.csv.shuf > imdb_top_1000_train.csv rm imdb_top_1000.csv.shuf wc -l imdb_top_1000.csv.* }