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

15
LINES

< > BotCompany Repo | #1018195 // Gather word category facts for text [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (9724L/71K).

1  
!7
2  
3  
p-exp {
4  
  S text = mL_raw("Program 1");
5  
  
6  
  new TreeSet<S> facts;
7  
  
8  
  for (S word : words2(text)) {
9  
    LS cats = ai_categoriesForWord(word);
10  
    for (S cat : cats)
11  
      facts.add(quote(word) + " is " + a(underscoresToSpaces(deAngleBracket(cat))));
12  
  }
13  
  
14  
  pnl(facts);
15  
}

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: #1018195
Snippet name: Gather word category facts for text [dev.]
Eternal ID of this version: #1018195/4
Text MD5: c3614fcc48aec4ed0f5fdd9d670faa98
Transpilation MD5: 2eb7da91a6f2cc70c7da5c8f186abfdb
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-09 17:58:12
Source code size: 292 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 650
Version history: 3 change(s)
Referenced in: [show references]