Open zyz222424 opened 3 years ago
最近实习,没带自己电脑,大概是这样的
fwrite=open('test.conll','w',encoding='utf-8')
with open('xx.txt','r',encoding='utf-8') as f:
for line in f.readlines():
text=line.strip('\n').split('\x01')[1] for char in text: _=write.writelines(char+' B-Prov\n') _=write.writelines('\n')
fwrite.close()
Send from Liu Hengyuan
在 2021年7月6日,19:11,zyz222424 @.***> 写道:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/hyliush/ccks-2021-task2-baseline/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALXIFUXO3RWUU4IW25JDR6TTWLQHDANCNFSM474LF2WQ.
多谢老哥
最近实习,没带自己电脑,大概是这样的
fwrite=open('test.conll','w',encoding='utf-8')
with open('xx.txt','r',encoding='utf-8') as f:
for line in f.readlines():
fwrite.close()
Send from Liu Hengyuan
在 2021年7月6日,19:11,zyz222424 @.***> 写道:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/hyliush/ccks-2021-task2-baseline/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALXIFUXO3RWUU4IW25JDR6TTWLQHDANCNFSM474LF2WQ.