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

23
LINES

< > BotCompany Repo | #1017940 // Run whole Telegram log through English parser

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

Download Jar. Libraryless. Click here for Pure Java version (12890L/94K).

!7

static int timeout = 5000;

p-exp {
  logOutputPlain();
  useLocalMechListCopies(true);
  LS log = singleLinesOnly(serverTelegramLog_text());
  if (contains(args, 'reversed)) log = reversed(log);
  int i = 0;
  
  for (fS s : log) pcall {
    print(++i + "/" + l(log) + ": " + s);
    time "Parse" {
      PTElement tree = evalWithTimeoutOrNull(timeout, func -> PTElement {
        ai_parseToCulledTree(s)
      });
    }
    if (tree != null)
      ai_printParseTree(tree);
    print();
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1017940
Snippet name: Run whole Telegram log through English parser
Eternal ID of this version: #1017940/10
Text MD5: b117830be66db6fa80769de70193def5
Transpilation MD5: 653a961cabb68a1089e6c0ac2dc31851
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-22 15:40:15
Source code size: 519 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 456 / 1009
Version history: 9 change(s)
Referenced in: