ZubinGou / multi-view-prompting

Repo for "MvP: Multi-view Prompting Improves Aspect Sentiment Tuple Prediction" [ACL'2023]
MIT License
73 stars 17 forks source link

prefix_allowed_tokens_fn #10

Open zhaozhuoyang-six opened 1 year ago

zhaozhuoyang-six commented 1 year ago

您好,请问这里的def prefix_allowed_tokens_fn(self, task, data_name, source_ids, batch_id,input_ids):这一步是什么意思,是加入到T5的每一层中吗,还是只是embeding部分