Commit cb9d7eac authored by tssasha's avatar tssasha
Browse files

little fix

parent 3d7904ea
......@@ -5,7 +5,7 @@ import tarfile
with'../data/middle_final.tar.gz') as tar, open('words.txt', "w") as words_file, open('cities.txt', "w") as cities_file:
f = tar.extractfile("middle_final.json")
data = json.loads(
data = json.loads('utf-8'))
for item in data[:500]:
words = list(map(str, item['name'].split()))
word = random.choice(words)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment