# Pointer_Transformer_Generator_Summary **Repository Path**: cngaoxl/Pointer_Transformer_Generator_Summary ## Basic Information - **Project Name**: Pointer_Transformer_Generator_Summary - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Pointer_Transformer_Generator tensorflow 2.0.0 For the abstractive summarization task, I wanted to experiment the transformer model. I recreated a transformer model (thanks to tensorflow transformer tutorial) and added a pointer module (have a look at this paper for more informations on the pointer generator network : https://arxiv.org/abs/1704.04368 ). Please follow the next steps to launch the project : ## Step 1 : The data Transform the data to tfrecords format。 (chunk files format : tfrecords) ## Step 2 : launch the project : **python main.py --max_enc_len=400 \
--max_dec_len=100 \
--batch_size=16 \
--vocab_size=50000 \
--num_layers=3 \
--model_depth=512 \
--num_heads=8 \
--dff=2048 \
--seed=123 \
--log_step_count_steps=1 \
--max_steps=230000 \
--mode=train \
--save_summary_steps=10000 \
--checkpoints_save_steps=10000 \
--model_dir=model_folder \
--data_dir=data_folder \
--vocab_path=vocab \
** PS : Feel free to change some of the hyperparameters
python main.py --help , for more details on the hyperparameters ## Requirements - python >= 3.6 - tensorflow 2.0.0 - argparse - os - glob - numpy