错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Sequence-to-Sequence Architectures: Encoder-Decoders and Decoders

  • Pierre M. Nugues

摘要

The transformer consisted originally of two parts: the encoder and the decoder. This chapter describes this complete structure and, to make it concrete, illustrates it with a machine-translation program in PyTorch. For sake of feasibility, we replace the word input with characters so that readers can train the model on a simple laptop. It produces, nonetheless, surprising good results given its simplicity. The chapter concludes with a description of the decoder alone and how we can apply it to text generation, dialogue, and question answering.