You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
235 B
Python

import glob
import json
def process_file(f):
print(json.load(f.read())
for f in glob.glob('semeval/*.json'):
""" Find every file in the semeval folder that matches **.json
"""
with open(f) as w:
process_file(w)