gated Transformer
1.0.0
نموذج المحولات المسبق بوابات للنمذجة المتسلسلة القوية إلى التسلسل. يستخدم وحدة البوابات لاكتشاف وتصحيح الضوضاء من البيانات النصية وإنشاء الهدف غير المهمل من وحدة فك ترميز توليدي.

في هذا العمل ، نجري تجربتنا في ثلاث مهام -
يظهر تحويل بوابات فعالة على -
$ pip install -r requirements.txt
نموذج تسلسل إلى تسلسل التسلسل المسبق (على سبيل المثال-BART ، T5)
$ cd ./drive/MyDrive/gated-denoise/ && python train.py --train_file ./data.csv
--model_path ./model/ --model_type bart --pretrained_encoder_path "facebook/bart-base"
--mask_gate --copy_gate --generate_gate --skip_gate
--epochs 15
نموذج ترميز المشفر المحول (على سبيل المثال - Bert2bert)
$ cd ./drive/MyDrive/gated-denoise/ && python train.py --train_file ./data.csv
--model_path ./model/ --model_type seq2seq
--pretrained_encoder_path "bert-base-uncased" --pretrained_decoder_path "bert-base-uncased"
--mask_gate --copy_gate --generate_gate --skip_gate
--epochs 15
$ cd ./drive/MyDrive/gated-denoise/ && python predict.py --data_file ./data.csv
--model_path ./model/ --model_type bart --pretrained_encoder_path "facebook/bart-base"
--mask_gate --copy_gate --generate_gate --skip_gate
إذا وجدت هذا الريبو مفيدًا ، فيرجى الاستشهاد بالورقة:
@inproceedings {,
author = { Ayan Sengupta and
Amit Kumar and
Sourabh Kumar Bhattacharjee and
Suman Roy } ,
title = { Gated Transformer for Robust De-noised Sequence-to-Sequence Modelling } ,
booktitle = { } ,
publisher = { } ,
year = { } ,
url = { } ,
doi = { } ,
}