def save_predictions(self):
f = tkFileDialog.asksaveasfile(mode='w')
for sent_preds in self.annotation_state.state.get_current_predictions():
f.write("\n".join(map(lambda t: "\t".join(t), sent_preds)))
f.write("\n\n")
f.close()
评论列表
文章目录