Warning: session_start(): open(/var/lib/php/sessions/sess_r1r4kohs5gmcoru65rqna7gv67, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
ai_renderWordTypesForLine [1018209]

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

8
LINES

< > BotCompany Repo | #1018209 // ai_renderWordTypesForLine

JavaX fragment (include)

sS ai_renderWordTypesForLine(S s) {
  new LS out;
  for (S word : uniquify(words2(s))) {
    LS cats = ai_categoriesForWord(word);
    out.add(word + ": " + (empty(cats) ? "unknown" : joinWithComma(map angleBracketCategoryToText(cats))));
  }
  ret lines(out);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018209
Snippet name: ai_renderWordTypesForLine
Eternal ID of this version: #1018209/2
Text MD5: 9b057044d37dea30ad84850db3ea5eb1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-10 12:04:21
Source code size: 269 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 740 / 772
Version history: 1 change(s)
Referenced in: [show references]