Skip to content

DeepLearningCollege/intQA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

모두연 슬기로운 챗봇의 코드를 공유하기위한 리포지토리입니다. 기존의 SQuAD 솔루션들에 Reinforcement Learning을 적용하여 Mnemonic Reader에서의 RL 접근법을 일반화 해보는 실험을 하기로 했습니다.

기존의 SQuAD 솔루션 내용은 obryanlouis/qa를 참조했습니다.

슬기로운 챗봇 환경 세팅

pip based setup

Environment setup

git clone https://github.com/DeepLearningCollege/intQA.git
cd intQA
virtualenv -p python3 envIntQA
source envIntQA/bin/activate

Install spaCy

pip install -U spacy
python -m spacy download en

Install pytorch

https://pytorch.org 에서 맞는 환경을 선택한 후 나오는 커맨드를 사용한다.

Install cove

설치

mkdir ext
cd ext
git clone https://github.com/salesforce/cove.git
cd cove
pip install -r requirements.txt
python setup.py develop

설치 확인

# python test/example.py #왠지 안됨...

Install Tensorflow

설치

텐서플로우1.4 인스톨 가이드 CUDA8, CUDNN7이 미리 인스톨 되어있어야함.

  1. Installing TensorFlow on Ubuntu 클릭
  2. pip install tensorflow-gpu==1.4
  3. 아래중에 자기 파이썬 환경과 맞는 (페이지에서 Installing with virtualenv step 6를 참고) 하여 whl 파일을 찾는다
    • python 3.4 with GPU - https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0rc1-cp34-cp34m-linux_x86_64.whl
    • python 3.5 with GPU - https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0rc1-cp35-cp35m-linux_x86_64.whl
    • python 3.6 with GPU - https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0rc1-cp36-cp36m-linux_x86_64.whl
    • CUDA9 tensorflow whl 파일은 링크 참조
  4. 다음 명령어 실행 (<WHL_FILE_FROM_STEP_3>를 step3에서 찾은 whl과 치환한다) pip install --ignore-installed --upgrade <WHL_FILE_FROM_STEP_3>

설치 확인

# 파이썬 쉘에서 GPU이름이 나오는지 확인
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

Install obryanlouis/qa

pip install boto3
python3 setup.py

About

TensorFlow Models for the Stanford Question Answering Dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 51.8%
  • Python 47.6%
  • Other 0.6%