解读(Solving Math Word Problems with Multi-Encoders and Multi-DEcoders)的代码(数据处理部分)
导入必要的包importos,json,time,re,copy,randomfromcollectionsimportCounterimportnumpyasnpimporttorchimporttorch.nnasnn加载数据的函数defload_raw_data(filename):data=[]withopen(filename,encoding='utf-8')asf:lines=f.r