This is the base code of various Natural Language Processing (NLP) tasks. This project has been inspired by yunjey/pytorch-tutorial, and I wanted to write a tutorial code for NLP.
Prepare a virtual environment (Python 3.8) and install the requirements.
$ git clone https://github.com/c-juhwan/nlp-basecode
$ cd nlp-basecode
$ conda create -n nlp-basecode python=3.8
$ conda activate nlp-basecode
$ pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
$ pip install -r requirements.txtAfter the installation, move to the directory of each task and run the code.