Skip to content

NLP project that is a Question and Answer system.

Notifications You must be signed in to change notification settings

liangeric/nlpQ-A

Repository files navigation

Natural Language Processing Question & Answer System

This is a NLP project that is a Question and Answer system created by Eric Liang, Samarth Gowda, Melissa Yang, and Raymond Yang.

Click here to watch out final progress report and a complete overview of our final system.

Click here to see our initial progress report/project overview.

Note that our data files have been zipped above, to use the data files you can simply unzip the two data files locally.

Create Conda Environment

Create the conda environment conda env create --file environment.yml

Update / Install new packages

  1. Go to environment.yml
  2. Under dependencies, add a package by its name (for example, - numpy or - spacy)
  3. Run conda env update -f environment.yml

Basic conda info

  • Show all your conda env conda env list
  • Show dependencies (libraries) in current conda env conda list
  • Activate conda env conda activate nlp_qa
  • Deactivate conda env conda deactivate
  • Remove conda env conda env remove -n nlp_qa

Be sure you are always operating in the same conda environment. Everytime we need to add a new pacakage, add it in the environment.yml, run the above command. Everytime you pull from GitHub, run the command conda env update -f environment.yml just in case we have new dependencies.

Building Docker

  1. Install and setup Docker
  2. Run docker build --tag=${ImageName} docker/, ${ImageName} can be whatever name you want and name cannot be caps.
  3. Run chmod 777 test.sh && sh test.sh ${ImageName} to run docker

Basic docker info

  • You can use docker image ls to list the images you have.
  • You can delete a docker image by doing docker image rm ${ImageName}

Publishing the image

  1. Run docker login and log into your docker account (make one if you do not have one)!
  2. Run docker tag <image> <username>/<repository>:<tag> to tag the image where <image> is the image name, <username> is your username and <respository> and <tag> are the corresponding repository and tag names which you can make. You can test if this works by running sh test.sh <username>/<repository>:<tag>.
  3. Run docker push <username>/<repository>:<tag> to push

Current working docker can be pulled from here. It should be noted that our final version is under finalproject, and the docker likely can not be run on most local machines, we reccomend for it to be run on AWS with a m5.xlarge EC2 instance, which has 4 vCPUs and 16GB of RAM (with Amazon Linux 2). However if you would like to run each of the two scripts answer and ask seperately, this can be done so locally.

About

NLP project that is a Question and Answer system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages