机器翻译(日期文本转化为特定格式)

参考资料:
Coursera-Sequence Models 第三周作业1

  • 目标
    将日期转化为固定格式,“the 29th of August 1958", "03/30/1968", "24 JUNE 1987"——》"1958-08-29", "1968-03-30", "1987-06-24"

  • attention
    动机
    If you had to translate a book's paragraph from French to English, you would not read the whole paragraph, then close the book and translate. Even during the translation process, you would read/re-read and focus on the parts of the French paragraph corresponding to the parts of the English you are writing down.

对比普通的LSTM,不同的是,将纯输入转化为context,再输入。


注意力,可以看到对应的输出只注意在最正确的部分


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。