forked from singnet/ai-dsl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFakeNewsScore.kif
27 lines (21 loc) · 1.01 KB
/
FakeNewsScore.kif
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
(instance fakeNewsScore NuNetEnabledSNetAIService)
(documentation fakeNewsScore EnglishLanguage "Calls dependent services, calculates summary result from their outputs
and calculates the overall probability that the provided content contains fake news")
(hasDependency fakeNewsScore uclnlp)
(hasInput fakeNewsScore uclnlpOutput)
(hasDependency fakeNewsScore fnsBinaryClassifier)
(hasInput fakeNewsScore fnsBinaryClassifierOutput)
(hasOutput fakeNewsScore fakeNewsScoreOutput)
(instance fakeNewsScoreOutputType DataType)
(=>
(and
(subclass ?fakeNewsScoreOutput JSONDef)
(hasField ?fakeNewsScoreOutput url URL)
)
(instance ?fnsBinaryClassifierOutput fnsBinaryClassifierOutputType)
)
; (...)
; all fields of actual data structure as approximately indicated here https://gitlab.com/nunet/fake-news-detection/fake_news_score/-/issues/22
; actual data structure is determined by the code
; (...)
; ideally we should include here the definition of RealizedFunction, as described in Idris part of the AI-DSL