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

8
LINES

< > BotCompany Repo | #1026638 // ai_answerFromSpeechLog_singleWordChanged

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

Download Jar. Libraryless. Click here for Pure Java version (4071L/26K).

1  
// find line that differs in only one word
2  
// take line after that and rewrite the word
3  
svoid ai_answerFromSpeechLog_singleWordChanged(S input) {
4  
  for (PairS lines : overlappingPairs(speechLog())) {
5  
    SS map = pairToCIMap(gazelle_singleChangedWord_ifMoreThanOneWord(lines.a, input)), continue if null;
6  
    emit(replaceVars(lines.b, map));
7  
  }
8  
}

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: #1026638
Snippet name: ai_answerFromSpeechLog_singleWordChanged
Eternal ID of this version: #1026638/5
Text MD5: 443b7aacf23f256bfff131fa7f2e96e2
Transpilation MD5: 09a655af729dbc44128c54b5a483f804
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-16 23:34:04
Source code size: 354 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 312 / 943
Version history: 4 change(s)
Referenced in: [show references]