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).

1  
!7
2  
3  
static int timeout = 5000;
4  
5  
p-exp {
6  
  logOutputPlain();
7  
  useLocalMechListCopies(true);
8  
  LS log = singleLinesOnly(serverTelegramLog_text());
9  
  if (contains(args, 'reversed)) log = reversed(log);
10  
  int i = 0;
11  
  
12  
  for (fS s : log) pcall {
13  
    print(++i + "/" + l(log) + ": " + s);
14  
    time "Parse" {
15  
      PTElement tree = evalWithTimeoutOrNull(timeout, func -> PTElement {
16  
        ai_parseToCulledTree(s)
17  
      });
18  
    }
19  
    if (tree != null)
20  
      ai_printParseTree(tree);
21  
    print();
22  
  }
23  
}

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: 347 / 737
Version history: 9 change(s)
Referenced in: [show references]