Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1012033 // ai_spec_searchForAnswer

JavaX fragment (include)

1  
static void ai_spec_searchForAnswer(S s) {
2  
  Set<S> cluster = litciset(s);
3  
  cluster = ai_cluster_forward(cluster, "parses to triple");
4  
  //print("Cluster: " + cluster);
5  
  if (empty(cluster)) ret;
6  
  ai_expandCluster(cluster);
7  
  //print("Cluster expanded: " + cluster);
8  
  cluster = ai_cluster_backward(cluster, "answers triple");
9  
  //print("Cluster: " + cluster);
10  
  if (empty(cluster)) ret;
11  
  ai_postTriple_multi(cluster, "answers", s);
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012033
Snippet name: ai_spec_searchForAnswer
Eternal ID of this version: #1012033/6
Text MD5: 4956758805015541530145fe66ffa2d8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-16 07:12:28
Source code size: 448 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 489 / 508
Version history: 5 change(s)
Referenced in: [show references]