Whitelist tokens for text generation (XLNet, GPT-2) in huggingface-transformers

后端 未结 0 1996
青春惊慌失措
青春惊慌失措 2021-02-06 03:28

In the documentation on text generation (https://huggingface.co/transformers/main_classes/model.html#generative-models) there is the option to put

bad_words_ids (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题