def topics_for_year(year): topicFiles = fileSys.traverseDirectory(path.join(root_path, 'lda_model', str(year), 'topic')) distanceFiles = fileSys.traverseDirectory(path.join(root_path, 'lda_model', str(year), 'distance')) topic_tree = graph.createTree(topicFiles, distanceFiles) return topic_tree
def topics_for_cs(): topicFiles = fileSys.traverseDirectory(path.join(root_path, 'htm/topic')) distanceFiles = fileSys.traverseDirectory(path.join(root_path, 'htm/distance')) topic_tree = graph.createTree(topicFiles, distanceFiles) return topic_tree