This runs on Python 3.6.8.
This project requires fast.ai version 0.7.
- Use the configuration file to set up the environment. I used
condato manage the packages and environment. - Note that the code below is for cpu, but I have included the environment file for gpu
enviroment.yml.
conda env create -f environment-cpu.yml
conda activate fastai-cpu
Or for updating the environment:
conda env update -f environment-cpu.yml
- To acquire the dataset for amazon reviews please go Xiang Zhang's Google Drive following this link
- Download the file named "amazon_review_full_csv.tar.gz "
Note that you will have to download the pre-trained language model. I have used the wikitext103 language created by Stephen Merity @ Salesforce research. Here is a link from fast.ai, and here is a command for the terminal:
$ wget -nH -r -np -P {PATH} http://files.fast.ai/models/wt103/