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

12
LINES

< > BotCompany Repo | #1012136 // ai_spec_searchForAnswer_trace [with tracing, dev.]

JavaX fragment (include)

1  
static void ai_spec_searchForAnswer_trace(S s) {
2  
  Set<Traced<S>> cluster = litciset(tracedParam(s));
3  
  cluster = ai_cluster_forward_trace(cluster, "parses to triple");
4  
  //print("Cluster: " + cluster);
5  
  if (empty(cluster)) ret;
6  
  ai_expandCluster_trace(cluster);
7  
  //print("Cluster expanded: " + cluster);
8  
  cluster = ai_cluster_backward_trace(cluster, "answers triple");
9  
  //print("Cluster: " + cluster);
10  
  if (empty(cluster)) ret;
11  
  ai_postTriple_multi(untraceAll(cluster), "answers", s);
12  
}

Author comment

Began life as a copy of #1012033

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: #1012136
Snippet name: ai_spec_searchForAnswer_trace [with tracing, dev.]
Eternal ID of this version: #1012136/1
Text MD5: 6ae850ffe67ee529fef3ef9a05061ab4
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-21 10:30:55
Source code size: 505 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 359
Referenced in: [show references]