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

17
LINES

< > BotCompany Repo | #1014582 // Find user-spelled corrected mishearings in Katze log (e.g. hiya => h i g h e r, OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7938L/54K).

1  
!7
2  
3  
p-experiment {
4  
  for (Pair<S> p : listToOverlappingPairs(mL_katzeLog())) {
5  
    long dateDiff = parseKatzeLogEntryDate(p.b)
6  
      -parseKatzeLogEntryDate(p.a);
7  
    int seconds = iround(dateDiff/1000.0);
8  
    //print("Date diff: " + seconds + "s");
9  
    if (seconds > 12) continue;
10  
    p = pairMap dropLeadingSquareBracketStuff(p);
11  
    print(seconds + ": " + p);
12  
    if (isSingleCharactersPlusSpaces(p.b) && !isSingleCharactersPlusSpaces(p.a)) {
13  
      print("Possible correction: " + p);
14  
      botSuggestMechAppend("Mishearing corrections", p.a, dropSpaces(p.b));
15  
    }
16  
  }
17  
}

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: #1014582
Snippet name: Find user-spelled corrected mishearings in Katze log (e.g. hiya => h i g h e r, OK)
Eternal ID of this version: #1014582/9
Text MD5: e135b3edaa498af14048af9a8d6253f4
Transpilation MD5: 906197ea1359274ec58e45063f08647a
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-24 13:14:51
Source code size: 591 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 464 / 1403
Version history: 8 change(s)
Referenced in: [show references]