Libraryless. Click here for Pure Java version (7367L/49K/164K).
!7 concept Sentence { S text; S action; // subject S verb; new SS data; } p { Concepts in = new Concepts(#1008607).load(); Concepts out = new Concepts(#1008692); out.persist(); clearConcepts(out); for (Sentence s : list(in, Sentence)) { SS data = lithashmap( subject := dropPrefix("subject=", s.action), verb := dropPrefix("verb=", s.verb)); Sentence s2 = cnew(out, Sentence, text := s.text, +data); if (nempty(data)) { print(quote(s.text) + " => " + struct(data)); printConcept(s2); } } }
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: | #1008693 |
Snippet name: | Copy sentences DB [OK] |
Eternal ID of this version: | #1008693/8 |
Text MD5: | f77a4818f72458aa402b62108a0db4f4 |
Transpilation MD5: | b77209d385aadcc69005bf51d0a064be |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-28 19:27:55 |
Source code size: | 575 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 641 |
Version history: | 7 change(s) |
Referenced in: | -