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

16
LINES

< > BotCompany Repo | #1011808 // ai_gc_unreachedWords

JavaX fragment (include)

1  
static Collection<S> ai_gc_unreachedWords() {
2  
  Set<S> unreached = caseInsensitiveSet();
3  
  
4  
  Map<S, Double> distances = ciMap();
5  
  for (WebRelation r : indexedRelations("has GC distance")) pcall {
6  
    distances.put(web_text(r.a), parseDouble(web_text(r.b)));
7  
  }
8  
  
9  
  for (S text : allIndexedFullTerms()) {
10  
    continue if unreached.contains(text);
11  
    if (!distances.containsKey(text))
12  
      unreached.add(text);
13  
  }
14  
    
15  
  ret unreached;
16  
}

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: #1011808
Snippet name: ai_gc_unreachedWords
Eternal ID of this version: #1011808/3
Text MD5: 912a48e3c81e92dc06b75e172a60ebc4
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 08:30:06
Source code size: 457 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 360 / 418
Version history: 2 change(s)
Referenced in: [show references]