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

18
LINES

< > BotCompany Repo | #1010511 // Node index from downloaded webs

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

Download Jar. Libraryless. Click here for Pure Java version (13740L/95K).

!7

p {
  L<Web> webs = downloadedWebs();
  print(n(webs, "web"));
  print();
  MultiSet<S> index = treeMultiSet();
  for (Web web : webs)
    for (WebNode node : web_nodes(web))
      index.addAll(node.texts());
  print(n(index, "string") + " (alphabetical)");
  print();
  pnl(multiSetToMap(index));
  print();
  print("Popular first");
  print();
  pnl(multiSetToMapPopularFirst(index));
}

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: #1010511
Snippet name: Node index from downloaded webs
Eternal ID of this version: #1010511/4
Text MD5: 1ff15261b7bdf96825b804810272b454
Transpilation MD5: 0a010744758b6f5012c611ef3d1d5d9c
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-09-19 18:30:46
Source code size: 409 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 580 / 1187
Version history: 3 change(s)
Referenced in: [show references]