1、定义函数的时候指明返回类型 可以参见这里 训练集、验证集、测试集的区别 这里 2、AllenMLP AllenNLP入门 这里An In-Depth Tutorial to AllenNLP(From Basic to ELMo to Bert)allennlp之Filed和Token indexers 看这里Batch 和 iterator 3、TensorFlow tf.Saver(),查看这里