File size: 1,034 Bytes
2b7bf83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash

# Copyright 2020 Tomoki Hayashi
#  MIT License (https://opensource.org/licenses/MIT)

# Download JSSS Corpus

# shellcheck disable=SC1091
. ./path.sh || exit 1

download_dir=$1

# check arguments
if [ $# != 1 ]; then
    echo "Usage: $0 <download_dir>"
    exit 1
fi

set -euo pipefail

url="https://drive.google.com/a/g.sp.m.is.nagoya-u.ac.jp/uc?id=1NyiZCXkYTdYBNtD1B-IMAYCVa-0SQsKX"
if [ ! -e "${download_dir}/jsss_ver1" ]; then
    utils/download_from_google_drive.sh "${url}" "${download_dir}" zip
    echo "Successfully downloaded JSSS corpus."
else
    echo "Already exists. Skipped."
fi

cwd=$(pwd)
if [ ! -e "${download_dir}/JSSSLabel" ]; then
    echo "Downloading full-context labels for jsut v1.1..."
    cd "${download_dir}"
    git clone https://github.com/kan-bayashi/JSSSLabel
    for name in long-form short-form simplification summarization; do
        cp -vr JSSSLabel/${name} jsss_ver1
    done
    cd "${cwd}"
    echo "Successfully downloaded JSSS label."
else
    echo "Already exists. Skipped."
fi