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

22
LINES

< > BotCompany Repo | #1006275 // Get RecogInfo from Show & Recognize

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

Libraryless. Click here for Pure Java version (7995L/55K/180K).

1  
!752
2  
3  
p {
4  
  L<S> lines = unnull((L<S>) getSingleFieldFromSingletonConcept(#1006104, "RecogInfo", "lines"));
5  
  S s = joinLines(lines);
6  
  //print(s);
7  
  int l = l(lines);
8  
  lines = throwOutBadWordEntries(lines);
9  
  int thrownOut = l-l(lines);
10  
  print("Threw out " + n(thrownOut, "entries"));
11  
  psl(asTreeSet(map(f tok_lastQuotedString, lines)));
12  
  s = null;
13  
  final S s2 = joinLines(lines);
14  
  print("Got " + l(s2) + " chars.");
15  
  byte[] gz = gzipString(s2);
16  
  print("Gzipped to " + l(gz) + " bytes.");
17  
  showControlButton("Upload recognition info", r-thread {
18  
    S id = ntUpload("ocr-data", "Recognition info from " + computerID(), s2);
19  
    showDoneAnim("Uploaded as " + id + "!");
20  
  });
21  
  print("Read through the text above to see if anything embarrassing is up there. If not, press 'Upload recognition info' to upload to public database.");
22  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006275
Snippet name: Get RecogInfo from Show & Recognize
Eternal ID of this version: #1006275/1
Text MD5: a6059129ec668d765df694f3b378666a
Transpilation MD5: ea69f42192f3677d1905055deeb010f5
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-26 16:38:31
Source code size: 862 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 449 / 596
Referenced in: [show references]