Zaktualizuj 'download.sh'

This commit is contained in:
Szymon Parafiński 2022-03-27 23:00:49 +02:00
parent a98b89468b
commit 7fe2c86dbe

View File

@ -5,9 +5,9 @@ dataset_operation() {
len2=$(($len1/10)) len2=$(($len1/10))
len3=$(($len2*2)) len3=$(($len2*2))
len4=$(($len3+1)) len4=$(($len3+1))
head -n $len2 imdb_top_1000.csv.shuf > imdb_top_1000.csv.test 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.csv.dev 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.csv.train tail -n +$len4 imdb_top_1000.csv.shuf > imdb_top_1000_train.csv
rm imdb_top_1000.csv.shuf rm imdb_top_1000.csv.shuf
wc -l imdb_top_1000.csv.* wc -l imdb_top_1000.csv.*
} }