Libraryless. Click here for Pure Java version (3844L/25K).
1 | static L<WithReasoning<S>> ai_misrecognitionCandidates2() { |
2 | L<WithTimestamp<S>> l = speechLogWithDates(); |
3 | new L<WithReasoning<S>> out; |
4 | for i over l: { |
5 | WithTimestamp<S> p = l.get(i); |
6 | continue unless dm_isVoiceCommand(p!); |
7 | int j = i-1; |
8 | while ping (j >= 0 && l.get(j).timestamp >= l.get(j+1).timestamp-10*1000) { |
9 | out.add(WithReasoning( |
10 | format_quoteAll("* is usually a misrecognition of *", l.get(j)!, p!), |
11 | format_noQuote("speech log entries * and *", |
12 | l.get(j).toStringQuoted(), |
13 | p.toStringQuoted()))); |
14 | j--; |
15 | } |
16 | } |
17 | ret out; |
18 | } |
Began life as a copy of #1026687
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: | #1026691 |
Snippet name: | ai_misrecognitionCandidates2 (as propositions) |
Eternal ID of this version: | #1026691/4 |
Text MD5: | a7c933df6f4bca2bafa79ba7a9ad1808 |
Transpilation MD5: | 18236f263daa66baafe00b47c4898f82 |
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:32:03 |
Source code size: | 612 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 284 |
Version history: | 3 change(s) |
Referenced in: | [show references] |