INSTALL GUIDE - fingeredman/teanaps GitHub Wiki

Install Guide

Docker for Everyone

  • Docker 이미지λ₯Ό ν™œμš©ν•΄ κ°€μƒν™˜κ²½μ„ κ΅¬μ„±ν•˜μ—¬ TEANAPSλ₯Ό ν™œμš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

  • Docker ν™œμš©λ°©λ²•μ€ κ°€μ΄λ“œ λ¬Έμ„œλ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”. (Windows/macOS)

    이미지 λ‹€μš΄λ‘œλ“œ (μ΅œμ‹  이미지 μ—…λ°μ΄νŠΈ)

    Windows CMD or macOS Terminal :

    docker pull fingeredman/teanaps-ubuntu:latest
    

    μ»¨ν…Œμ΄λ„ˆ 생성 및 μ‹€ν–‰

    Windows CMD or macOS Terminal :

    docker run -it -p 8888:8888 --name teanaps-ubuntu fingeredman/teanaps-ubuntu:latest
    

    μ»¨ν…Œμ΄λ„ˆ 생성 및 μ‹€ν–‰ (Local 폴더 μ—°κ²°)

    Windows CMD or macOS Terminal :

    docker run -it -p 8888:8888 -v [Local 폴더 경둜]:/home/teanaps_home/workspace/local --name teanaps-ubuntu fingeredman/teanaps-ubuntu:latest
    

    Notes :

    • [Local 폴더 경둜]에 곡백이 ν¬ν•¨λ˜λŠ” 경우 전체 경둜λ₯Ό ν°λ”°μ˜΄ν‘œ("C:\Windows...")둜 κ°μ‹Έμ£Όμ„Έμš”.

    μ»¨ν…Œμ΄λ„ˆ ν™˜κ²½μ—μ„œ Local ν™˜κ²½μœΌλ‘œ λ‚˜κ°€κΈ°

    Windows CMD or macOS Terminal :

    exit
    

    μ»¨ν…Œμ΄λ„ˆ μ‹œμž‘ 및 μ»¨ν…Œμ΄λ„ˆ 접속

    Windows CMD or macOS Terminal :

    docker start teanaps-ubuntu
    docker attach teanaps-ubuntu
    

    μ»¨ν…Œμ΄λ„ˆ μ’…λ£Œ

    Windows CMD or macOS Terminal :

    docker container stop teanaps-ubuntu
    

    μ»¨ν…Œμ΄λ„ˆ μ‚­μ œ

    Windows CMD or macOS Terminal :

    docker container rm teanaps-ubuntu
    

    TEANAPS 라이브러리 μ—…λ°μ΄νŠΈ

    Windows CMD or macOS Terminal :

    cd /home/teanaps_home/anaconda3/lib/python3.7/site-packages
    rm -r teanaps
    git clone https://github.com/fingeredman/teanaps.git
    

    μ»¨ν…Œμ΄λ„ˆ λ‚΄ Jupyter Notebook μ‹€ν–‰

    Windows CMD or macOS Terminal :

    jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root
    

    Notes :

    • λͺ…λ Ήμ–΄ μ‹€ν–‰ ν›„ μ•„λž˜ μΆœν˜„ν•˜λŠ” URL을 Local ν™˜κ²½μ˜ Chrome λΈŒλΌμš°μ €μ— μž…λ ₯ν•˜λ©΄ Jupyter Notebook에 접속할 수 μžˆμŠ΅λ‹ˆλ‹€.
    • Local ν™˜κ²½μ— 별도 μ„€μΉ˜λœ Jupyter Notebook이 μ‹€ν–‰λ˜κ³  μžˆλ‹€λ©΄ μ’…λ£Œν•΄μ£Όμ„Έμš”.

Requirements

  • PyTorch - conda install pytorch=1.6.0

  • Gensim - pip install gensim==3.8.3

  • NLTK - pip install nltk

    Python Code (in Jupyter Notebook) :

    import nltk
    nltk.download('punkt')
    nltk.download('averaged_perceptron_tagger')
    nltk.download('wordnet')
    nltk.download('omw-1.4')
    
  • Plotly - pip install plotly==2.7.0

  • PyLDAvis - pip install pyldavis==2.1.2

  • Wordcloud - pip install wordcloud

  • xlwt - pip install xlwt

  • Jpype - pip install jpype1==0.7.1

  • KoNLPy - pip install konlpy==0.5.1

  • newspaper - pip install newspaper3k

  • sumy - pip install sumy

  • SoyNLP - pip install soynlp

  • PyTorch-CRF - pip install pytorch-crf

  • PyTorch-Transformers - pip install pytorch-transformers

  • Transformers - pip install transformers

  • GluonNLP - pip install gluonnlp

  • pytorch-pretrained-bert - pip install pytorch-pretrained-bert

  • mxnet - pip install --upgrade mxnet>=1.5.0

    • M1 Mac μ‚¬μš©μžμ˜ 경우 링크 μ°Έμ‘°ν•˜μ—¬ λ³„λ„μ„€μΉ˜ ν•„μš”ν•¨ (LINK)
  • iGraph - pip install python-igraph

  • pdfminer - pip install pdfminer

  • docx2txt - pip install docx2txt

  • python-pptx - pip install python-pptx

  • networkx - pip install networkx

  • hdbscan - pip install hdbscan

  • Korean Sentence Splitter - pip install kss

  • JobLib - pip install joblib==1.1.0

  • mecab - Install MeCab for Mac/Linux, or Windows

    • Windows 운영체제 μ„€μΉ˜ μ‹œ ν˜„μž¬ 파이썬 버전이 3.8인 경우 *.whl 파일 λ‹€μš΄λ‘œλ“œ (Link)