Skip to content

Commit

Permalink
[feat] add contextual knowledge base
Browse files Browse the repository at this point in the history
  • Loading branch information
pingpingy1 committed Dec 3, 2023
1 parent dcb030c commit fc6a29a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions hopre/context_kb/context.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
:- module(context,[similar/2,
dissimilar/2]).

/*========================================================================
Similar(=contextually relevant) phrases
========================================================================*/

similar([dressing],[salad]).

similar([dressing],[turn,red]).

similar([problems],[math]).

similar([problems],[sad]).

similar([jump],[frog]).

similar([jump],[car]).

similar([windows],[computer]).

similar([windows,open],[cold]).

similar([virus],[computer]).

similar([virus],[doctor]).

similar([peeling],[banana]).

similar([not,feeling,well],[doctor]).

similar([hole],[two,pairs]).

similar([hole-in-one],[golfer]).

similar([byte],[computer]).

similar([bite],[doctor]).


/*========================================================================
Dissimilar(=contextually incongruent) phrases
========================================================================*/

dissimilar([turn,red],[salad]).

dissimilar([math],[sad]).

dissimilar([frog],[car]).

dissimilar([computer],[cold]).

dissimilar([computer],[doctor]).

dissimilar([banana],[doctor]).

dissimilar([golfer],[two,pairs]).

0 comments on commit fc6a29a

Please sign in to comment.