thesis-anne/Starter.py

28 lines
545 B
Python
Raw Normal View History

2018-09-07 12:16:47 +00:00
'''
Starter
=============
starter program
'''
from BagOfWords import BagOfWords
from CsvHandler import CsvHandler
from DecisionTree import DecisionTree
from NaiveBayes import NaiveBayes
#from Requester import Requester
#from SVM import SVM
print('# starting program')
print()
# Requester.save_articles_from_webhoseio()
file = 'classification_labelled_corrected.csv'
# read csv file
dataset = CsvHandler.read_csv(file)
# DecisionTree.make_tree(dataset)
NaiveBayes.make_naive_bayes(dataset)
# SVM.make_svm(dataset)
print('# ending program')