參考資料:
Coursera-Sequence Models 第三周作業(yè)1
目標(biāo)
將日期轉(zhuǎn)化為固定格式行冰,“the 29th of August 1958", "03/30/1968", "24 JUNE 1987"——》"1958-08-29", "1968-03-30", "1987-06-24"attention
動(dòng)機(jī)
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.
對(duì)比普通的LSTM掉奄,不同的是坐搔,將純輸入轉(zhuǎn)化為context荐操,再輸入凯力。
注意力催蝗,可以看到對(duì)應(yīng)的輸出只注意在最正確的部分