From 5b3965d50e30f285cb92b287d8d0a1762f4d4f23 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 11 Feb 2023 17:40:48 +0000 Subject: [PATCH] CORPUS Work --- src/corpus.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/corpus.py b/src/corpus.py index f8058c7..c4c5c51 100644 --- a/src/corpus.py +++ b/src/corpus.py @@ -18,12 +18,8 @@ def fetch(): return zlib.decompress(response.content, 16+zlib.MAX_WBITS) def removeEmpty(list): - for item in list: - if item["3ALPHA"] != ' ' and item["STANOX"] != ' ': - item.pop("UIC") - item.pop("NLCDESC16") - item.pop("NLC") - cleanList.append(item) + for dict in list: + print(dict) ORIGINAL METHOD FROM FILE: