-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomatedApi.py
More file actions
31 lines (21 loc) · 826 Bytes
/
AutomatedApi.py
File metadata and controls
31 lines (21 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import HateSpeech as ht
import Spamdetector as sp
import Readefficiency as rd
from textclass import _MLmodel
import ml
class LearningApi:
__data=''
def __init__(self,__data):
self.__data=__data
def modelTopicDifferncerML(self):
return ml._PredictML(LearningApi.__data)
def modelTopicDifferncerNN(self):
return _MLmodel._PredictNN(LearningApi.__data)
def modelHatedetector(self):
return ht.predictHate(LearningApi.__data)
def ReadablityTester(self):
return rd.Readtesting(LearningApi.__data)
def modelSpamdetector(self):
return sp.predictSpam(LearningApi.__data)
#def output(self):
# return str(LearningApi.modelTopicDifferncerML())+" : "+str(LearningApi.modelSpamdetector())+" : "+str(LearningApi.ReadablityTester())+" : "+str(LearningApi.modelHatedetector())