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

12
LINES

< > BotCompany Repo | #1008719 // getSentencesFromWebBotLog

JavaX fragment (include)

1  
static MultiSet<S> getSentencesFromWebBotLog(S botID) {
2  
  S html = loadPage("http://ai1.lol/" + psI(botID) + "/raw/logs");
3  
  new MultiSet<S> sentences;
4  
  for (L<S> li : html_contentsOfLIs(html)) {
5  
    S dialogID = trim(first(li));
6  
    for (L<S> li2 : html_contentsOfLIs(li)) {
7  
      S msg = htmldecode(join(li2));
8  
      sentences.add(trim(dropPrefix("<", dropPrefix(">", msg))));
9  
    }
10  
  }
11  
  ret sentences;
12  
}

Author comment

Began life as a copy of #1008536

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: #1008719
Snippet name: getSentencesFromWebBotLog
Eternal ID of this version: #1008719/2
Text MD5: 7561532a554f95e31a252fab58456b49
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-01 16:43:30
Source code size: 419 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 478
Version history: 1 change(s)
Referenced in: [show references]