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

12
LINES

< > BotCompany Repo | #1008719 // getSentencesFromWebBotLog

JavaX fragment (include)

static MultiSet<S> getSentencesFromWebBotLog(S botID) {
  S html = loadPage("http://ai1.lol/" + psI(botID) + "/raw/logs");
  new MultiSet<S> sentences;
  for (L<S> li : html_contentsOfLIs(html)) {
    S dialogID = trim(first(li));
    for (L<S> li2 : html_contentsOfLIs(li)) {
      S msg = htmldecode(join(li2));
      sentences.add(trim(dropPrefix("<", dropPrefix(">", msg))));
    }
  }
  ret sentences;
}

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: 413 / 475
Version history: 1 change(s)
Referenced in: [show references]