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

19
LINES

< > BotCompany Repo | #1005531 // PIF Reasoning 1 [Clustering, works, but might not be accurate if not every clip was searched in every screenshot]

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

Libraryless. Click here for Pure Java version (4534L/28K/97K).

!752

!include #1004863 // Dynamic Concepts
!include #1005530 // PIF Classes (Clip, Found, FullySearched)

p {
  final Concepts in = new Concepts("#1005522").load();
  new MultiMap<Long, Long> bitMap;
  for (Screenshot screenshot : in.list(Screenshot)) {
    continue unless in.findBackRef(screenshot, FullySearched) != null;
    L<Found> found = in.findBackRefs(screenshot, Found);
    print("Screenshot " + screenshot.id + " found clips: " + l(found));
    for (Found f : found)
      bitMap.put(screenshot.id, f.clip->id);
  }
  printStruct(bitMap);
  analyzeBitMap_idToText = func(long id) { ((Clip) in.getConcept(id)).description };
  analyzeBitMap(bitMap);
}

Author comment

Began life as a copy of #1005522

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005531
Snippet name: PIF Reasoning 1 [Clustering, works, but might not be accurate if not every clip was searched in every screenshot]
Eternal ID of this version: #1005531/1
Text MD5: 93fd8445866f9a5f88696b35e35fcca8
Transpilation MD5: 2abd657d33a35910546fb99608baf2a4
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-27 14:14:08
Source code size: 682 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 638 / 746
Referenced in: [show references]