/Summarization

NLP in Deep Learning

Primary LanguagePython

ADL HW1

Implement Prediction

Extractive Summary

bash download.sh
bash extractive.sh "${TEST_FILE}" "${EXT_FILE}"

Abstractive Summary

bash download.sh
bash seq2seq.sh "${TEST_FILE}" "${S2S_FILE}"

Abstractive (with attention) Summary

bash download.sh
bash attention.sh "${TEST_FILE}" "${ATT_FILE}"

Training Model

Extractive Summary

python3.6 ./seq_tag/train.py

Abstractive Summary

python3.6 ./seq2seq/train.py

Abstractive (with attention) Summary

python3.6 ./seq2seq/train.py

Plotting Figures

Plot the distribution of relative location

pip3 install matplotlib.pyplot
pip3 install math

python3.6 ./seq_tag/distribution_plot.py

Visualize the attention weights

pip3 install matplotlib.pyplot
pip3 install matplotlib.ticker

python3.6 ./seq2seq/attention_plot.py