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

15
LINES

< > BotCompany Repo | #1012563 // Find related nouns [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (17917L/126K).

!7

p {
  MultiMap<S> relations = ciMultiMap();
  
  ai_tripleMode();
  for (TripleWeb t : indexedTriples()) {
    if (isNoun(t.a) && isNoun(t.b)) {
      relations.setPut(t.a, t.b);
      relations.setPut(t.b, t.a);
    }
  }
  
  pnl(multiMapToMap(relations));
}

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: #1012563
Snippet name: Find related nouns [dev.]
Eternal ID of this version: #1012563/2
Text MD5: c86b6d3734a2a3b735046df506556e17
Transpilation MD5: b5ea07dbcd8505d41801ebe389d04a1c
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-07 13:17:12
Source code size: 278 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 366 / 758
Version history: 1 change(s)
Referenced in: [show references]