我有一个 JSON 数据集,例如:
{"candidate00001": "graceful ones."
"candidate00002":"One more,Marvelous said, sounding royally bored from his seat."
"candidate00003":"She tired,Joe said, though not unkindly."
}
其中,candidate00001是我的第一堂课,candidate00002是第二堂课,以此类推。
我是 python 新手,所以我想使用本教程通过Keras实现字符级分类。
我的问题是我现在不知道如何将我的 JSON 文件转换为x_train和y_train。