예제 #1
0
파일: topic.py 프로젝트: ajm/topic-model
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
예제 #2
0
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
예제 #3
0
파일: topic.py 프로젝트: ajm/topic-model
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
예제 #4
0
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