Skip to content

Commit

Permalink
语料库转换
Browse files Browse the repository at this point in the history
  • Loading branch information
karuboniru committed Jul 28, 2020
1 parent ed11132 commit 29b06d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jsontofile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import json

def main():
file = open('./ci.json', 'r')
file_out = open('ciout.txt', 'w+')
data = json.load(file)
for i in data:
file_out.write(i['ci']+',')
file.close()
file_out.close()


if __name__ == "__main__":
main()

0 comments on commit 29b06d6

Please sign in to comment.