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

5
LINES

< > BotCompany Repo | #1017458 // ai_getWordToCategoryWeight - e.g. for guessing word categories

JavaX fragment (include)

1  
static ThreadLocal<Map<S, Map<S, Double>>> ai_getWordToCategoryWeight_map = newThreadLocal();
2  
3  
static Double ai_getWordToCategoryWeight(S word, S category) {
4  
  ret mapGet(mapGet(ai_getWordToCategoryWeight_map!, word), category);
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017458
Snippet name: ai_getWordToCategoryWeight - e.g. for guessing word categories
Eternal ID of this version: #1017458/4
Text MD5: 44a2074d5be63577f1972d2fef90446e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-23 16:29:45
Source code size: 234 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 385
Version history: 3 change(s)
Referenced in: [show references]