本代码使用环境为python3.6,如果你的python版本为2.7,请升级,否则会出现诸多bug. This code run on python3.6,if your version is 2.7,maybe there is a bug. The textcnn acc is 74% if you run code on 3.6, but it may be low on 2.7,the reason why the acc is low in python2.7 is unknown,do not ask me.