GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nlp_preprocessing/setup.WSL.sh at master · YoungKwonJo/nlp_preprocessing

Expand file tree

/

setup.WSL.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
44 lines (39 loc) · 1.25 KB
/

setup.WSL.sh

Copy path

File metadata and controls

executable file
·
44 lines (39 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/bin/bash
# Install and register conda.
cd /tmp
curl -o miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x ./miniconda.sh
./miniconda.sh -b -p ~/.conda
echo 'export PATH="$HOME/.conda/bin:$PATH"' >> $HOME/.bashrc
source ~/.bashrc
# Create a new virtual environment for pytorch and konlpy.
conda create -y --name konlpy python=3.6 numpy pyyaml scipy ipython mkl
source activate konlpy
sudo apt install -y openjdk-8-jdk g++ build-essential autoconf automake
pip install torch jpype1 konlpy
# Install Mecab.
curl -LO https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.1.tar.gz
tar -zxf mecab-0.996-ko-0.9.1.tar.gz
cd mecab-0.996-ko-0.9.1
./configure
make
make check
sudo make install
sudo ldconfig
# Install mecab-ko-dic.
cd /tmp
curl -LO https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.1-20150920.tar.gz
tar -zxf mecab-ko-dic-2.0.1-20150920.tar.gz
cd mecab-ko-dic-2.0.1-20150920
./autogen.sh
./configure
make
sudo sh -c 'echo "dicdir=/usr/local/lib/mecab/dic/mecab-ko-dic" > /usr/local/etc/mecabrc'
sudo make install
sudo ldconfig
# Install mecab-python.
cd /tmp
git clone https://bitbucket.org/eunjeon/mecab-python-0.996.git
cd mecab-python-0.996
python setup.py build
python setup.py install
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.