Commit b6cbd4c858d6620eda7123501cba877d9ea190ec

Authored by Cristina Muntean
1 parent 4f3638b9

new info prints

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
merge_wordcount_with_edge_features.py
... ... @@ -85,7 +85,7 @@ def mergeBlackList(city, cityFile):
85 85 filetype = cityFile.split("/")[-1].replace(city, "")
86 86 for filename in os.listdir(fileDir):
87 87 if city not in filename and filetype in filename:
88   - print filename
  88 + print "Opening file: ", filename
89 89 inputFile = codecs.open(fileDir+"/"+filename, "r", "utf-8")
90 90 for line in inputFile:
91 91 node = Node.parseString(line)
... ... @@ -94,9 +94,10 @@ def mergeBlackList(city, cityFile):
94 94 existing_node = tokenDict[node.description]
95 95 updateNode(existing_node, node)
96 96 # for space issues we can destroy the object node
97   - node.__del__()
  97 +
98 98 else:
99 99 tokenDict[node.description] = node
  100 + print "Dict size: ", len(tokenDict)
100 101 return tokenDict
101 102  
102 103  
... ...