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

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

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