-
Notifications
You must be signed in to change notification settings - Fork 6
/
requirements.sh
72 lines (62 loc) · 1.49 KB
/
requirements.sh
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
conda install python=3.8.5 -y
pip install transformers==4.11.0
pip install datasets==1.15.1
pip install torch==1.10.0
pip install optuna==2.10.0
pip install numpy
pip install pandas
pip3 install sklearn
pip install matplotlib
pip install seaborn
pip install jupyter jupytext notebook ipykernel environment_kernels
pip install python-dotenv
apt-get install tmux -y
pip install wandb
# for rouge
pip install rouge-score
pip install absl-py
pip install nltk
pip install numpy
pip install six=1.14
# for viz
pip install pyvis
pip install networkx
pip install bertviz
pip install jupyter-dash
pip install plotly
pip install jupyter-dash
pip install streamlit==1.1.0
pip install elasticsearch
# ### NLP task
pip install tweepy==3.9.0
pip install konlpy
install mecab
apt install g++ -y
apt update
apt install default-jre -y
apt install default-jdk -y
apt install npm -y
apt install nodejs
apt-get install build-essentials
npm cache clean -f
npm install -g n
n stable # lts, lastest, 14.15.4
wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz
tar xvfz mecab-0.996-ko-0.9.2.tar.gz
cd mecab-0.996-ko-0.9.2
./configure
make
make check
make install
ldconfig
cd ~
wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gz
tar xvfz mecab-ko-dic-2.1.1-20180720.tar.gz
cd mecab-ko-dic-2.1.1-20180720
./configure
make
make install
cd ~
apt install curl
bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
pip install mecab-python