bAbI数据是一些自动生成的逻辑描述
1 The garden is west of the bathroom.
2 The bedroom is north of the hallway.
转换为三元组模式,例如(garden, west, batchroom)
问题
Q: How do you go from the bathroom to the hallway
在这个方法里,所有节点都被编码了,而问题中的开始节点和结束节点赋予了特殊编码START和END,输入图之后,得到一个关于如何寻找最短路径的sequence。