Detect if a news article is real or not ! using pytorch, LSTM and Django
- Download the dataset from kaggle
- Put the files into
./Data/
. - install required packages:
pip install -r requirements.txt
- preprocess the dataset :
python manage.py preprocess
- train the model:
MIN_FREQ]
[--embedding_output EMBEDDING_OUTPUT]
[--hidden_size HIDDEN_SIZE] [--num_layers
NUM_LAYERS]
[--num_epochs NUM_EPOCHS] [--batch_size
BATCH_SIZE]
[--bi_lstm BI_LSTM]
- run the django server :
python manage.py runserver