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

14
LINES

< > BotCompany Repo | #1026687 // ai_misrecognitionCandidates1

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3752L/24K).

static L<WithTimestamp<PairS>> ai_misrecognitionCandidates1() {
  LPair<S, Long> l = speechLogWithDates_pairs();
  new L<WithTimestamp<PairS>> out;
  for i over l: {
    Pair<S, Long> p = l.get(i);
    continue unless dm_isVoiceCommand(p.a);
    int j = i-1;
    while (j >= 0 && l.get(j).b >= l.get(j+1).b-10*1000) {
      out.add(WithTimestamp(l.get(j).b, pair(l.get(j).a, l.get(i).a)));
      --j;
    }
  }
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026687
Snippet name: ai_misrecognitionCandidates1
Eternal ID of this version: #1026687/2
Text MD5: 37274cd55e9fb069734c185d96b48627
Transpilation MD5: 267e43ce8560c23887f076e83ce4beb4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 00:24:56
Source code size: 436 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 216
Version history: 1 change(s)
Referenced in: [show references]