在训练和测试过程中都会对记忆槽进行更新,但在测试过程中不会对I,G,O,R
I
,
G
,
O
,
R
中的参数进行更新。而记忆槽中的特征(产生)也可以利用其他的机器学习方法。
一个简单的例子
在得到形如下列的数据后,对每个句子和每个问题的回答进行embedding处理。通过输入
Joe went to the kitchen.
Fred went to the kitchen.
Joe picked up the milk.
Joe travelled to the office.
Joe left the milk.
Joe went to the bathroom.
Where is the milk now? A: office
Where is Joe? A: bathroom
Where was Joe before the office? A: kitchen