removing pickle stuff for faster loading...

pull/1/head
Ozbolt Menegatti 6 years ago
parent 6a221ae8fe
commit 6d574f674f

@ -751,12 +751,12 @@ def main():
for s in structures: for s in structures:
print(s) print(s)
# words = load_corpus(STAVKI) words = load_corpus(STAVKI)
import pickle # import pickle
# with open("words.p", "wb") as fp: # with open("words.p", "wb") as fp:
# pickle.dump(words, fp) # pickle.dump(words, fp)
with open("words.p", "rb") as fp: # with open("words.p", "rb") as fp:
words = pickle.load(fp) # words = pickle.load(fp)
print("MATCHES...") print("MATCHES...")
matches = {s.id: [] for s in structures} matches = {s.id: [] for s in structures}

Loading…
Cancel
Save