Remove redundant python script

This commit is contained in:
Fred Boniface 2022-12-08 19:31:05 +00:00
parent 05bb96903d
commit b9ce8566bb
3 changed files with 0 additions and 29 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,27 +0,0 @@
#! /usr/bin/python3
import json
print("Opening CORPUSExtract.json")
with open("./CORPUSExtract.json", "r") as input_file:
dict = json.load(input_file)
list = dict['TIPLOCDATA']
cleanList = []
print("Processing data")
for item in list:
if item["3ALPHA"] != ' ' and item["STANOX"] != ' ':
item.pop("UIC")
item.pop("NLCDESC16")
item.pop("NLC")
cleanList.append(item)
print("Saving data")
cleanDict = {"data":cleanList}
with open("CorpusClean.json", "w") as output_file:
output_file.write(json.dumps(cleanDict))
print(cleanList)
print("Processed.")

File diff suppressed because one or more lines are too long