示例#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