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

15
LINES

< > BotCompany Repo | #1018215 // nlLogic_rawSentencesToFacts

JavaX fragment (include)

1  
static Exp nlLogic_rawSentencesToFacts(Exp e) {
2  
  ret nlLogic_transformShallow(e, nlLogic_rawSentencesToFacts_f());
3  
}
4  
5  
static IfThen nlLogic_rawSentencesToFacts(IfThen rule) {
6  
  ret nlLogic_transformShallow(rule, nlLogic_rawSentencesToFacts_f());
7  
}
8  
9  
static F1<Exp> nlLogic_rawSentencesToFacts_f() {
10  
  ret func(Exp e) -> Exp {
11  
    if (e instanceof Sentence2)
12  
      ret Func('fact, e);
13  
    ret e;
14  
  };
15  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018215
Snippet name: nlLogic_rawSentencesToFacts
Eternal ID of this version: #1018215/3
Text MD5: 39f9429a4d7e1ce210c0335f3d2cd622
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-10 12:34:30
Source code size: 415 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 380
Version history: 2 change(s)
Referenced in: [show references]