diff --git a/code/absinth.py b/code/absinth.py index 97485b9026a42523455f2c88d4d3de44fd158cf6..6a4f958898a04120df573c1d28a98927f27095bc 100644 --- a/code/absinth.py +++ b/code/absinth.py @@ -1,5 +1,5 @@ import os # for reading files -from tqdm import tqdm # for counting seconds +#from tqdm import tqdm # for counting seconds import spacy # for nlp import networkx as nx # for visualisation import matplotlib.pyplot as plt # for visualisation @@ -46,7 +46,7 @@ class Graph: files = [corpus_path+'/'+f for f in os.listdir(corpus_path)] # list of file paths (note that no other files should be in this directory) spaced_word = word.replace('_', ' ') #input words are generally seperated with underscores - for f in tqdm(files[:]): #iterates over corpus + for f in files[:]: #iterates over corpus with open(f, 'r') as source: try: #some decoding throws the iteration