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

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

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: 311 / 941
Version history: 4 change(s)
Referenced in: [show references]