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

10
LINES

< > BotCompany Repo | #1007164 // conceptLanguageToEnglish_superSimple

JavaX fragment (include)

static S conceptLanguageToEnglish_superSimple(S s) {
  Map<S, AIConcept> map = aiConceptsMap_cached();
  L<S> tok = javaTok(s);
  for (int i = 1; i < l(tok); i += 2) {
    AIConcept c = map.get(tok.get(i));
    if (c != null)
      tok.set(i, quote(c.name));
  }
  ret join(tok);
}

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: #1007164
Snippet name: conceptLanguageToEnglish_superSimple
Eternal ID of this version: #1007164/4
Text MD5: 0d8bb65d36cdd79233e5e5389046af33
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-22 22:11:49
Source code size: 290 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 533
Version history: 3 change(s)
Referenced in: [show references]