forked from singnet/ai-dsl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrections to kif files and addition of dynamically typed versions
- Loading branch information
Showing
4 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(instance fakeNewsScore NuNetEnabledSNetAIService) | ||
|
||
(hasInputType fakeNewsScore StanceType) | ||
(hasInputType fakeNewsScore BinaryClassificationType) | ||
|
||
(hasOutput fakeNewsScore fakeNewsScoreOutput) | ||
(instance fakeNewsScoreOutputType DataType) | ||
|
||
(=> | ||
(and | ||
(hasField ?data agree RealNumber) | ||
(hasField ?data disagree RealNumber) | ||
(hasField ?data discuss RealNumber) | ||
(hasField ?data unrelated RealNumber) | ||
) | ||
(instance ?data StanceType) | ||
) | ||
|
||
(=> | ||
(hasField ?data fakeOrNot Boolean) | ||
(instance ?data BinaryClassificationType) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
(instance fnsBinaryClassifier SNetAIService) | ||
(documentation fnsBinaryClassifier EnglishLanguage "A pre-trained binary classification model for fake news detection") | ||
|
||
(hasInput fnsBinaryClassifier fnsBinaryClassifierInput) | ||
(hasOutput fnsBinaryClassifier fnsBinaryClassifierOutput) | ||
|
||
(instance fnsBinaryClassifierInputType DataType) | ||
(instance fnsBinaryClassifierOutputType DataType) | ||
|
||
(=> | ||
(hasField ?fnsBinaryClassifierInput mainText Text) | ||
(instance ?fnsBinaryClassifierInput fnsBinaryClassifierInputType) | ||
) | ||
(hasInput fnsBinaryClassifier WebContentType) | ||
(hasOutput fnsBinaryClassifier StanceType) | ||
|
||
(=> | ||
(hasField ?fnsBinaryClassifierOutput fakeOrNot Boolean) | ||
(instance ?fnsBinaryClassifierOutput fnsBinaryClassifierOutputType) | ||
(and | ||
(hasField ?data mainText Text) | ||
(hasField ?data titleText Text) | ||
) | ||
(instance ?data WebContentType) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(instance fnsBinaryClassifier SNetAIService) | ||
(documentation fnsBinaryClassifier EnglishLanguage "A pre-trained binary classification model for fake news detection") | ||
|
||
(hasInputType fnsBinaryClassifier WebContentType) | ||
(hasOutputType fnsBinaryClassifier StanceType) | ||
|
||
(instance fnsBinaryClassifierInputType DataType) | ||
(instance fnsBinaryClassifierOutputType DataType) | ||
|
||
(=> | ||
(hasField ?fnsBinaryClassifierInput mainText Text) | ||
(instance ?fnsBinaryClassifierInput fnsBinaryClassifierInputType) | ||
) | ||
|
||
(=> | ||
(hasField ?fnsBinaryClassifierOutput fakeOrNot Boolean) | ||
(instance ?fnsBinaryClassifierOutput fnsBinaryClassifierOutputType) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(instance uclnlp NuNetEnabledSNetAIService) | ||
|
||
(hasInput uclnlp WebContentType) | ||
(hasInput uclnlp StanceType) | ||
|
||
;; alternatively: | ||
(hasInput uclnlp SomeType) | ||
(hasInput uclnlp SomeOtherType) | ||
|
||
(=> | ||
(and | ||
(hasField ?data titleText Text) | ||
(hasField ?data mainText Text) | ||
) | ||
(instance ?data SomeType) | ||
) | ||
|
||
(=> | ||
(and | ||
(hasField ?data agree RealNumber) | ||
(hasField ?data disagree RealNumber) | ||
(hasField ?data discuss RealNumber) | ||
(hasField ?data unrelated RealNumber) | ||
) | ||
(instance ?data SomeOtherType) | ||
) |