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
|
2018-09-12 12:21:50 +00:00
|
|
|
from SVM import SVM
|
2018-09-07 12:16:47 +00:00
|
|
|
|
|
|
|
print('# starting program')
|
2018-09-12 12:21:50 +00:00
|
|
|
print('#')
|
2018-09-07 12:16:47 +00:00
|
|
|
|
|
|
|
file = 'classification_labelled_corrected.csv'
|
|
|
|
|
|
|
|
# read csv file
|
2018-09-12 12:21:50 +00:00
|
|
|
print('# reading dataset')
|
|
|
|
print('#')
|
2018-09-07 12:16:47 +00:00
|
|
|
dataset = CsvHandler.read_csv(file)
|
|
|
|
|
|
|
|
NaiveBayes.make_naive_bayes(dataset)
|
2018-09-14 07:19:12 +00:00
|
|
|
# SVM.make_svm(dataset)
|
2018-09-07 12:16:47 +00:00
|
|
|
|
|
|
|
print('# ending program')
|