def runLDAByID(ID,numtopics=20,path='Z:\ermunds'):
    cleanUp()
    tread = parserEdmund.threadEdmundBasic()
    tread.populate(ID,path)
    comment = tread.title +" "+ tread.ID
    print comment
    parserEdmund.export2MizikInterview(tread.getPosts(),comment)
    runMizikLDA(numtopics)
    cleanUp()
Beispiel #2
0
def runLDAByID(ID, numtopics=20, path='Z:\ermunds'):
    cleanUp()
    tread = parserEdmund.threadEdmundBasic()
    tread.populate(ID, path)
    comment = tread.title + " " + tread.ID
    print comment
    parserEdmund.export2MizikInterview(tread.getPosts(), comment)
    runMizikLDA(numtopics)
    cleanUp()
def main():    
    IDList = parserEdmund.readLoadedIDs()
    threads = parserEdmund.PopulateFromIDList(IDList)
    x = [(tr.pagesLoaded, tr.title, tr.ID, tr) for tr in threads]
    biggest = sorted(x)[-50:]
    tr = next(tu for tu in x if tu[2]=='ef0a892')[3]
    # [(a[1], a[0], a[2]) for a in biggest if a[1].find('edan')!=-1]
    #x ('GM News, New Models and Market Share - READ ONLY', 3200, 'f16697b')
    # ('Midsize Sedans 2.0', 1805, 'f12d514'),
    # ('Midsize Sedans Comparison Thread - READ ONLY', 1230, 'ef733f6'),
    #x ('Entry Level Luxury Performance Sedans', 1603, 'ef0a892'),
    # tr = biggest[1][3]
    #  ('High End Luxury Cars', 2473, 'ee9e5eb')]
    print tr.title
    comment = tr.title +" "+ tr.ID
    parserEdmund.export2MizikInterview(tr.getPosts(),comment)
    runMizikLDA(100)
    cleanUp()
Beispiel #4
0
def main():
    IDList = parserEdmund.readLoadedIDs()
    threads = parserEdmund.PopulateFromIDList(IDList)
    x = [(tr.pagesLoaded, tr.title, tr.ID, tr) for tr in threads]
    biggest = sorted(x)[-50:]
    tr = next(tu for tu in x if tu[2] == 'ef0a892')[3]
    # [(a[1], a[0], a[2]) for a in biggest if a[1].find('edan')!=-1]
    #x ('GM News, New Models and Market Share - READ ONLY', 3200, 'f16697b')
    # ('Midsize Sedans 2.0', 1805, 'f12d514'),
    # ('Midsize Sedans Comparison Thread - READ ONLY', 1230, 'ef733f6'),
    #x ('Entry Level Luxury Performance Sedans', 1603, 'ef0a892'),
    # tr = biggest[1][3]
    #  ('High End Luxury Cars', 2473, 'ee9e5eb')]
    print tr.title
    comment = tr.title + " " + tr.ID
    parserEdmund.export2MizikInterview(tr.getPosts(), comment)
    runMizikLDA(100)
    cleanUp()