Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/a/i/AINews-HEAD/CorpusExport.py   AINews(Download)
    centroid = AINewsCentroidClassifier(aicorpus)
    for category in aicorpus.categories:
        centroid.train_centroid(category, corpus, 'centroid_eval', True)
    centroid.init_predict(paths['ainews.category_data'] + 'centroid_eval')